Skip to contentSkip to conversation

package/tinc: needs libdl for OpenSSL support

PATCH New Bernd Kuhls 2 participants 6 messages May 22, 2016 – Jun 1, 2016

lore
Share & tools
lore
#0 lore raw

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
index 5390ff3..1d8e2c4 100644
@@ -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
#1 lore raw

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
new file mode 100644
index 0000000..654c705
@@ -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
#2 lore raw

PATCH 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/

---
 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
#3 lore raw

PATCH 3/3 package/tinc: bump version to 1.0.28

In reply to Bernd Kuhls

This 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
deleted file mode 100644
index 654c705..0000000
@@ -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
index 721b6bd..0cccbbf 100644
@@ -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
index f7edd79..cb0785b 100644
@@ -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
#4 lore raw

PATCH 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.

---
 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
#5 lore raw

PATCH 1/3 package/tinc: needs libdl for OpenSSL support

In reply to Bernd Kuhls

Hello,

Quoted 7 lines · Bernd Kuhls

Fixes
http://autobuild.buildroot.net/results/d5b/d5b2f905d8da79cebda1408ffceac6d4c99f9e7b/

---
 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