radvd: bump to version 2.1
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 22 Jul 2014 13:26:52 +0000 (10:26 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 23 Jul 2014 19:50:50 +0000 (21:50 +0200)
It doesn't need libdaemon any longer, so drop that dependency.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/radvd/Config.in
package/radvd/radvd-01-drop-check.patch [new file with mode: 0644]
package/radvd/radvd-02-drop-stack-protector.patch [new file with mode: 0644]
package/radvd/radvd.mk

index 71f2f34883b565018bfbce7a3c2bb7ec248d4d80..e74777c0465a65cd887fe2a51056e128d1bd4b6f 100644 (file)
@@ -1,12 +1,10 @@
 config BR2_PACKAGE_RADVD
        bool "radvd"
-       # libdaemon uses fork()
-       depends on BR2_USE_MMU
-       select BR2_PACKAGE_FLEX
-       select BR2_PACKAGE_LIBDAEMON
+       depends on BR2_USE_MMU # fork()
        depends on BR2_INET_IPV6
        # uClibc too old, does not define ARPHRD_IEEE802154
        depends on !BR2_avr32
+       select BR2_PACKAGE_FLEX
        help
          IPv6 Router Advertisement Daemon.
 
diff --git a/package/radvd/radvd-01-drop-check.patch b/package/radvd/radvd-01-drop-check.patch
new file mode 100644 (file)
index 0000000..2b5d008
--- /dev/null
@@ -0,0 +1,15 @@
+Drop check requirement, we don't do unit tests.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura radvd-2.1.orig/configure.ac radvd-2.1/configure.ac
+--- radvd-2.1.orig/configure.ac        2014-07-22 08:23:12.642260069 -0300
++++ radvd-2.1/configure.ac     2014-07-22 08:23:21.270552628 -0300
+@@ -49,7 +49,6 @@
+ dnl Determine CC and preset CFLAGS
+ AC_PROG_CC_C99
+ AC_PROG_RANLIB
+-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
+ dnl Determine of netlink is available
+ AC_MSG_CHECKING(netlink)
diff --git a/package/radvd/radvd-02-drop-stack-protector.patch b/package/radvd/radvd-02-drop-stack-protector.patch
new file mode 100644 (file)
index 0000000..532c1b6
--- /dev/null
@@ -0,0 +1,15 @@
+Don't force -fstack-protector, the toolchain might lack support for it.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura radvd-2.1.orig/Makefile.am radvd-2.1/Makefile.am
+--- radvd-2.1.orig/Makefile.am 2014-07-22 08:23:12.642260069 -0300
++++ radvd-2.1/Makefile.am      2014-07-22 08:26:42.651380759 -0300
+@@ -43,7 +43,6 @@
+ AM_CFLAGS = \
+       -fno-strict-aliasing \
+-      -fstack-protector \
+       $(ENABLE_WARNINGS) \
+       $(DISABLE_WARNINGS)
index ecca879500ae2e35ec69df879cd6bd7d1a4869e2..ace65290d0b79a191ae7c00b66ea6e3dc110845f 100644 (file)
@@ -4,10 +4,13 @@
 #
 ################################################################################
 
-RADVD_VERSION = 1.14
+RADVD_VERSION = 2.1
 RADVD_SOURCE = radvd-$(RADVD_VERSION).tar.xz
 RADVD_SITE = http://www.litech.org/radvd/dist
-RADVD_DEPENDENCIES = host-bison flex libdaemon host-flex host-pkgconf
+RADVD_DEPENDENCIES = host-bison flex host-flex host-pkgconf
+RADVD_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
+# For radvd-01-drop-check.patch & radvd-02-drop-stack-protector.patch
+RADVD_AUTORECONF = YES
 
 define RADVD_INSTALL_INITSCRIPT
        $(INSTALL) -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d