linknx: fix musl compatibility 1492/head
authorOthmar Truniger <github@truniger.ch>
Sat, 27 Jun 2015 20:55:51 +0000 (22:55 +0200)
committerOthmar Truniger <github@truniger.ch>
Sat, 27 Jun 2015 20:55:51 +0000 (22:55 +0200)
Signed-off-by: Othmar Truniger <github@truniger.ch>
net/linknx/Makefile
net/linknx/patches/010-musl-compat [new file with mode: 0644]
net/linknx/patches/012-fix-linknx.cpp [new file with mode: 0644]

index 06083fc961bcd3704a70b61162c5d5ab52c77fc2..3af3842bef3ce99d3eb71333cdaf64d899240904 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=linknx
 PKG_VERSION:=0.0.1.32
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 PKG_MD5SUM:=7ecc1208f59bceb05068c752b2250b63
 
 PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
@@ -18,6 +18,7 @@ PKG_LICENSE:=GPL-2.0+
 PKG_SOURCE_URL:=@SF/linknx
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_BUILD_DEPENDS:=argp-standalone
+PKG_FORTIFY_SOURCE:=1
 
 include $(INCLUDE_DIR)/package.mk
 
diff --git a/net/linknx/patches/010-musl-compat b/net/linknx/patches/010-musl-compat
new file mode 100644 (file)
index 0000000..15c757e
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/src/eibclient.c  2007-10-11 01:55:31.000000000 +0200
++++ b/src/eibclient.c  2015-06-27 22:18:01.433296921 +0200
+@@ -32,6 +32,7 @@
+ #include <netinet/in.h>
+ #include <netdb.h>
+ #include <errno.h>
++#include <string.h>
+ #include "config.h"
diff --git a/net/linknx/patches/012-fix-linknx.cpp b/net/linknx/patches/012-fix-linknx.cpp
new file mode 100644 (file)
index 0000000..8394cf1
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/linknx.cpp   2012-06-04 22:12:13.000000000 +0200
++++ b/src/linknx.cpp   2015-06-27 22:35:23.705721355 +0200
+@@ -136,7 +136,7 @@
+     if (errno)
+         printf (": %s\n", strerror (errno));
+     else
+-        printf ("\n", strerror (errno));
++        printf ("\n");
+     exit (1);
+ }