Skip to contentSkip to conversation

wireguard-tools Ubuntu package missing the binaries

DISCUSSION Ryan Riley 4 participants 7 messages Apr 16, 2017 – Apr 17, 2017

lore
Share & tools
lore

Ryan Riley

author
#0 lore raw

Hello,

I've been trying to setup wireguard to experiment with it a bit and I've run into a problem. The i386 wireguard-tools package on the PPA for Ubuntu Xenial doesn't actually contain any of the binaries, just documentation. You see this by checking the file listing at the end of the build log here:

https://launchpadlibrarian.net/315022481/buildlog_ubuntu-xenial-i386.wireguard_0.0.20170409-wg1~xenial_BUILDING.txt.gz

The amd64 package does contain the binaries.

I appreciate your work!

Thanks
Ryan

#1 lore raw
Quoted 2 lines · Ryan Riley

The i386 wireguard-tools package on the PPA for Ubuntu Xenial doesn't actually contain any of the binaries, just documentation.

It's not just i386 - each of the arm and ppc64 packages are also missing binaries.

Debian's packages (and my testing backports based on those) don't have that issue - might be time to check a diff or do a merge. :)

Looks like it's down to make installing the tools during install-indep rather than install-arch.

Working (Debian use a different flags setup, that's not the important bit):

Quoted 8 lines

override_dh_auto_install-indep:

	$(MAKE) -C src DESTDIR=../debian/wireguard-dkms DKMSDIR=/usr/src/wireguard-$(DEB_VERSION)/ dkms-install

override_dh_auto_build-arch:

	$(MAKE) -C src/tools $(WIREGUARD_ARGS)

override_dh_auto_install-arch:

	$(MAKE) -C src/tools DESTDIR=../../debian/wireguard-tools $(WIREGUARD_ARGS) install

Non-working:

Quoted 6 lines

override_dh_auto_install-indep:

	$(MAKE) -C wireguard-src/src DESTDIR=$(CURDIR)/debian/wireguard-dkms DKMSDIR=/usr/src/wireguard-$(DEB_VERSION_UPSTREAM)/ dkms-install
	$(MAKE) -C wireguard-src/src/tools DESTDIR=$(CURDIR)/debian/wireguard-tools WITH_SYSTEMDUNITS=yes WITH_WGQUICK=yes WITH_BASHCOMPLETION=yes install

override_dh_auto_build-arch:
$(MAKE) -C wireguard-src/src/tools

J

#2 lore raw

Hey Jonathon and Ryan,

This problem got previously with my RaspPi. That tools binaries build are not in de build of armv6 and think that is the same with i386.

This was a old item in the mailing list about arm packages in ubuntu
repo: https://lists.zx2c4.com/pipermail/wireguard/2017-February/001050.
html
Coud not figer out what the problem was.

And a great time to add ubuntu 17.04 (zesty) and test it on my pi.

hda (cryptofuture) is testing it now on his own ppa, see here the github issue: https://github.com/EggieCode/wireguard-ppa/issues/13 and the fix https://github.com/EggieCode/wireguard-ppa/pull/14

Greetz,
Egbert

Quoted 54 lines · Jonathon Fernyhough
Quoted 3 lines · Ryan Riley

The i386 wireguard-tools package on the PPA for Ubuntu Xenial doesn't
actually contain any of the binaries, just documentation.

It's not just i386 - each of the arm and ppc64 packages are also missing
binaries.

Debian's packages (and my testing backports based on those) don't have
that issue - might be time to check a diff or do a merge. :)

Looks like it's down to make installing the tools during install- indep
rather than install-arch.

Working (Debian use a different flags setup, that's not the important bit):

Quoted 10 lines

override_dh_auto_install-indep:

	$(MAKE) -C src DESTDIR=../debian/wireguard-dkms

DKMSDIR=/usr/src/wireguard-$(DEB_VERSION)/ dkms-install

override_dh_auto_build-arch:

	$(MAKE) -C src/tools $(WIREGUARD_ARGS)

override_dh_auto_install-arch:

	$(MAKE) -C src/tools DESTDIR=../../debian/wireguard-tools

$(WIREGUARD_ARGS) install

Non-working:

Quoted 10 lines

override_dh_auto_install-indep:

	$(MAKE) -C wireguard-src/src
DESTDIR=$(CURDIR)/debian/wireguard-dkms DKMSDIR=/usr/src/wireguard-
$(DEB_VERSION_UPSTREAM)/ dkms-install
	$(MAKE) -C wireguard-src/src/tools

DESTDIR=$(CURDIR)/debian/wireguard-tools WITH_SYSTEMDUNITS=yes WITH_WGQUICK=yes WITH_BASHCOMPLETION=yes install

override_dh_auto_build-arch:
  $(MAKE) -C wireguard-src/src/tools

J

_______________________________________________
WireGuard mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/wireguard

#3 lore raw

Hello Egbert,

I did not comprehend your message. Is the problem fixed and are packages that actually work available now on Launchpad?

Regards,
Jason

#4 lore raw

To clarify my message.

Going to fix/test the package on arm and i386 with hda. Then will update my PI to ubuntu 17.04 to add that to the package.

Greetz,
Egbert

Quoted 3 lines · Jason A. Donenfeld

I did not comprehend your message. Is the problem fixed and are packages that actually work available now on Launchpad?

Quoted 16 lines · Egbert Verhage


This problem got previously with my RaspPi. That tools binaries build are not in de build of armv6 and think that is the same with i386.
This was a old item in the mailing list about arm packages in ubuntu
repo: https://lists.zx2c4.com/pipermail/wireguard/2017-February/00105
0.
html
Coud not figer out what the problem was.

And a great time to add ubuntu 17.04 (zesty) and test it on my pi.
hda (cryptofuture) is testing it now on his own ppa, see here the github issue: https://github.com/EggieCode/wireguard-ppa/issues/13
and
the fix https://github.com/EggieCode/wireguard-ppa/pull/14

#5 lore raw

Re: wireguard-tools Ubuntu package missing the binaries; Fixed

In reply to Jonathon Fernyhough

Hey Ryan,

Fixed it. New build (0.0.20170409-wg2~xenial, 0.0.20170409- wg2~yakkety,) is live on the PPA.

Can you test this for me?

Thanks Jonathon, for that solution.

Greetz,
Egbert

Quoted 54 lines · Jonathon Fernyhough
Quoted 3 lines · Ryan Riley

The i386 wireguard-tools package on the PPA for Ubuntu Xenial doesn't
actually contain any of the binaries, just documentation.

It's not just i386 - each of the arm and ppc64 packages are also missing
binaries.

Debian's packages (and my testing backports based on those) don't have
that issue - might be time to check a diff or do a merge. :)

Looks like it's down to make installing the tools during install- indep
rather than install-arch.

Working (Debian use a different flags setup, that's not the important bit):

Quoted 10 lines

override_dh_auto_install-indep:

	$(MAKE) -C src DESTDIR=../debian/wireguard-dkms

DKMSDIR=/usr/src/wireguard-$(DEB_VERSION)/ dkms-install

override_dh_auto_build-arch:

	$(MAKE) -C src/tools $(WIREGUARD_ARGS)

override_dh_auto_install-arch:

	$(MAKE) -C src/tools DESTDIR=../../debian/wireguard-tools

$(WIREGUARD_ARGS) install

Non-working:

Quoted 10 lines

override_dh_auto_install-indep:

	$(MAKE) -C wireguard-src/src
DESTDIR=$(CURDIR)/debian/wireguard-dkms DKMSDIR=/usr/src/wireguard-
$(DEB_VERSION_UPSTREAM)/ dkms-install
	$(MAKE) -C wireguard-src/src/tools

DESTDIR=$(CURDIR)/debian/wireguard-tools WITH_SYSTEMDUNITS=yes WITH_WGQUICK=yes WITH_BASHCOMPLETION=yes install

override_dh_auto_build-arch:
  $(MAKE) -C wireguard-src/src/tools

J

_______________________________________________
WireGuard mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/wireguard

author
#6 lore raw

Re: wireguard-tools Ubuntu package missing the binaries; Fixed

Works great. Thanks a lot!

Thanks
Ryan

Quoted 65 lines · Egbert Verhage

Hey Ryan,

Fixed it. New build (0.0.20170409-wg2~xenial, 0.0.20170409- wg2~yakkety,) is live on the PPA.

Can you test this for me?

Thanks Jonathon, for that solution.

Greetz,
Egbert

Quoted 51 lines · Jonathon Fernyhough
Quoted 3 lines · Ryan Riley

The i386 wireguard-tools package on the PPA for Ubuntu Xenial doesn't
actually contain any of the binaries, just documentation.

It's not just i386 - each of the arm and ppc64 packages are also missing
binaries.

Debian's packages (and my testing backports based on those) don't have
that issue - might be time to check a diff or do a merge. :)

Looks like it's down to make installing the tools during install- indep
rather than install-arch.

Working (Debian use a different flags setup, that's not the important bit):

Quoted 10 lines

override_dh_auto_install-indep:

	$(MAKE) -C src DESTDIR=../debian/wireguard-dkms

DKMSDIR=/usr/src/wireguard-$(DEB_VERSION)/ dkms-install

override_dh_auto_build-arch:

	$(MAKE) -C src/tools $(WIREGUARD_ARGS)

override_dh_auto_install-arch:

	$(MAKE) -C src/tools DESTDIR=../../debian/wireguard-tools

$(WIREGUARD_ARGS) install

Non-working:

Quoted 10 lines

override_dh_auto_install-indep:

	$(MAKE) -C wireguard-src/src
DESTDIR=$(CURDIR)/debian/wireguard-dkms DKMSDIR=/usr/src/wireguard-
$(DEB_VERSION_UPSTREAM)/ dkms-install
	$(MAKE) -C wireguard-src/src/tools

DESTDIR=$(CURDIR)/debian/wireguard-tools WITH_SYSTEMDUNITS=yes WITH_WGQUICK=yes WITH_BASHCOMPLETION=yes install

override_dh_auto_build-arch:
$(MAKE) -C wireguard-src/src/tools

J

_______________________________________________
WireGuard mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/wireguard