package/tinc: needs libdl for OpenSSL support
PATCH 1/3 package/tinc: needs libdl for OpenSSL support
Fixes
http://autobuild.buildroot.net/results/d5b/d5b2f905d8da79cebda1408ffceac6d4c99f9e7b/
--- package/tinc/Config.in | 4 ++++ 1 file changed, 4 insertions(+)
package/tinc/Config.in +4 -0
@@ -3,6 +3,7 @@ config BR2_PACKAGE_TINC select BR2_PACKAGE_LZO select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_ZLIB + depends on !BR2_STATIC_LIBS # tinc requires libdl for OpenSSL depends on BR2_USE_MMU # fork() help tinc is a Virtual Private Network (VPN) daemon that uses
@@ -10,3 +11,6 @@ config BR2_PACKAGE_TINC between hosts on the Internet. http://www.tinc-vpn.org/ + +comment "tinc needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS
Signature · 1 line
2.8.1
PATCH 2/3 package/tinc: optionally include linux/if_tun.h to fix musl build
Fixes
http://autobuild.buildroot.net/results/5b1/5b1d0c8c1bd75f7e228c313cb21b1638301568ae/
--- package/tinc/0001-musl.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/tinc/0001-musl.patch
package/tinc/0001-musl.patch new file +32 -0
@@ -0,0 +1,32 @@ +From: Jo-Philipp Wich <[email protected]> +Date: Thu, 18 Jun 2015 21:58:31 +0000 (+0200) +Subject: fix musl compatibility +X-Git-Tag: release-1.0.26~9 +X-Git-Url: http://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=a04fd9d0c9babca461cee186677db8f607677c6a;hp=bb616245b7883ab30291cd8d46672ed2ae733166 + +fix musl compatibility + +Let configure include sys/if_tun.h when testing for netinet/if_ether.h +to detect the Kernel/libc header conflict on musl. + +After this patch, configure will correctly detect netinet/if_ether.h as +unusable and the subsequent compilation will not attempt to use it. + +Signed-off-by: Bernd Kuhls <[email protected]> +(downloaded upstream commit included in tinc 1.0.25: + http://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff;h=a04fd9d0c9babca461cee186677db8f607677c6a) +--- + +diff --git a/src/have.h b/src/have.h +index e83f98f..69d5100 100644 +--- a/src/have.h ++++ b/src/have.h +@@ -207,4 +207,8 @@ + #include <resolv.h> + #endif + ++#ifdef HAVE_LINUX_IF_TUN_H ++#include <linux/if_tun.h> ++#endif ++ + #endif /* __TINC_SYSTEM_H__ */
Signature · 1 line
2.8.1
Thomas Petazzoni
AppliedPATCH 2/3 package/tinc: optionally include linux/if_tun.h to fix musl build
Hello,
Quoted 8 lines · Bernd Kuhls
Fixes
http://autobuild.buildroot.net/results/5b1/5b1d0c8c1bd75f7e228c313cb21b1638301568ae/Signed-off-by Bernd Kuhls <[email protected]>--- package/tinc/0001-musl.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/tinc/0001-musl.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 3/3 package/tinc: bump version to 1.0.28
In reply to Bernd KuhlsThis patch can be applied after the release of buildroot 2016.05.
Removed 0001-musl.patch, applied upstream.
--- package/tinc/0001-musl.patch | 32 -------------------------------- package/tinc/tinc.hash | 2 +- package/tinc/tinc.mk | 2 +- 3 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 package/tinc/0001-musl.patch
package/tinc/0001-musl.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From: Jo-Philipp Wich <[email protected]> -Date: Thu, 18 Jun 2015 21:58:31 +0000 (+0200) -Subject: fix musl compatibility -X-Git-Tag: release-1.0.26~9 -X-Git-Url: http://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=a04fd9d0c9babca461cee186677db8f607677c6a;hp=bb616245b7883ab30291cd8d46672ed2ae733166 - -fix musl compatibility - -Let configure include sys/if_tun.h when testing for netinet/if_ether.h -to detect the Kernel/libc header conflict on musl. - -After this patch, configure will correctly detect netinet/if_ether.h as -unusable and the subsequent compilation will not attempt to use it. - -Signed-off-by: Bernd Kuhls <[email protected]> -(downloaded upstream commit included in tinc 1.0.25: - http://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff;h=a04fd9d0c9babca461cee186677db8f607677c6a) ---- - -diff --git a/src/have.h b/src/have.h -index e83f98f..69d5100 100644 ---- a/src/have.h -+++ b/src/have.h -@@ -207,4 +207,8 @@ - #include <resolv.h> - #endif - -+#ifdef HAVE_LINUX_IF_TUN_H -+#include <linux/if_tun.h> -+#endif -+ - #endif /* __TINC_SYSTEM_H__ */
package/tinc/tinc.hash +1 -1
@@ -1,2 +1,2 @@ # Locally calculated after checking pgp signature -sha256 498e58f9f39e3922030a63cf62baf4b46a40fbda8d90b23ec0f084f4a9f9b687 tinc-1.0.24.tar.gz +sha256 0b502699360f09ce2128a39cf02abca07bfc699fc02ce829b3a90cf5e1e8b344 tinc-1.0.28.tar.gz
package/tinc/tinc.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -TINC_VERSION = 1.0.24 +TINC_VERSION = 1.0.28 TINC_SITE = http://www.tinc-vpn.org/packages TINC_DEPENDENCIES = lzo openssl zlib TINC_LICENSE = GPLv2+ with OpenSSL exception
Signature · 1 line
2.8.1
Thomas Petazzoni
AppliedPATCH 3/3 package/tinc: bump version to 1.0.28
Hello,
Quoted 11 lines · Bernd Kuhls
This patch can be applied after the release of buildroot 2016.05.
Removed 0001-musl.patch, applied upstream.
Signed-off-by Bernd Kuhls <[email protected]>--- package/tinc/0001-musl.patch | 32 -------------------------------- package/tinc/tinc.hash | 2 +- package/tinc/tinc.mk | 2 +- 3 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 package/tinc/0001-musl.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/3 package/tinc: needs libdl for OpenSSL support
In reply to Bernd KuhlsHello,
Quoted 7 lines · Bernd Kuhls
Fixes
http://autobuild.buildroot.net/results/d5b/d5b2f905d8da79cebda1408ffceac6d4c99f9e7b/Signed-off-by Bernd Kuhls <[email protected]>--- package/tinc/Config.in | 4 ++++ 1 file changed, 4 insertions(+)
It is somewhat weird that they decide that OpenSSL needs dlopen, while it doesn't seem like it use it. But well, that's what tinc's configure script has decided, so I've applied to master. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com