Skip to contentSkip to conversation

package/odhcp6c: bump to version d2e247d8d87ecf8c60fcf0acdad05667bd379521

PATCH New Fabrice Fontaine 2 participants 3 messages Mar 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/odhcp6c: bump to version d2e247d8d87ecf8c60fcf0acdad05667bd379521

- Remove patch (already in version)
- Add hash for license file

---
 .../0001-dhcpv6-fix-strncpy-bounds.patch      | 28 -------------------
 package/odhcp6c/odhcp6c.hash                  |  3 +-
 package/odhcp6c/odhcp6c.mk                    |  2 +-
 3 files changed, 3 insertions(+), 30 deletions(-)
 delete mode 100644 package/odhcp6c/0001-dhcpv6-fix-strncpy-bounds.patch
package/odhcp6c/0001-dhcpv6-fix-strncpy-bounds.patch deleted +0 -28
deleted file mode 100644
index abf5191522..0000000000
@@ -1,28 +0,0 @@
-From 327f73dd7093d04c2dbea13ee30fc3dfafc5e944 Mon Sep 17 00:00:00 2001
-From: Hans Dedecker <[email protected]>
-Date: Sat, 21 Apr 2018 13:40:29 +0200
-Subject: [PATCH] dhcpv6: fix strncpy bounds
-
-Fixes dhcpv6.c:138:2: error: 'strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation]                                                                                                        strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
-
-Signed-off-by: Khem Raj <[email protected]>
-Signed-off-by: Hans Dedecker <[email protected]>
-[Retrieved (and backported) from:
-https://github.com/openwrt/odhcp6c/commit/327f73dd7093d04c2dbea13ee30fc3dfafc5e944]
-Signed-off-by: Fabrice Fontaine <[email protected]>
----
- src/dhcpv6.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/dhcpv6.c b/src/dhcpv6.c
-index 0b3585c..d70d533 100644
---- a/src/dhcpv6.c
-+++ b/src/dhcpv6.c
-@@ -135,7 +135,7 @@ int init_dhcpv6(const char *ifname, unsigned int options, int sol_timeout)
- 	// Detect interface
- 	struct ifreq ifr;
--	strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name));
-+	strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name) - 1);
- 	if (ioctl(sock, SIOCGIFINDEX, &ifr) < 0)
- 		return -1;
- 
package/odhcp6c/odhcp6c.hash +2 -1
index 688d77dc62..8b16fa98bb 100644
@@ -1,2 +1,3 @@
 # Locally computed
-sha256 d84a713010865215301b4186c7b5368c9f006e6d3b9b52b99bd25e2d9e7a1dfc odhcp6c-7533a6243dc3ac5a747cf6ccbc4d0539dafd3e07.tar.gz
+sha256 6d472320ccfa2e57197596869507f2a4bf9900a502939404bf0c033dceeadf5f odhcp6c-d2e247d8d87ecf8c60fcf0acdad05667bd379521.tar.gz
+sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4 COPYING
package/odhcp6c/odhcp6c.mk +1 -1
index 31867d7217..735b47420f 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-ODHCP6C_VERSION = 7533a6243dc3ac5a747cf6ccbc4d0539dafd3e07
+ODHCP6C_VERSION = d2e247d8d87ecf8c60fcf0acdad05667bd379521
 ODHCP6C_SITE = $(call github,sbyx,odhcp6c,$(ODHCP6C_VERSION))
 ODHCP6C_LICENSE = GPL-2.0
 ODHCP6C_LICENSE_FILES = COPYING
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 package/odhcp6c: add optional libubox dependency

libubox dependency has been added in
https://github.com/openwrt/odhcp6c/commit/33a2ba1c14eb5447326945c120e0b64a587ed151

---
 package/odhcp6c/odhcp6c.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/odhcp6c/odhcp6c.mk +7 -0
index 735b47420f..3b4e7580a2 100644
@@ -16,4 +16,11 @@ endef
 
 ODHCP6C_POST_INSTALL_TARGET_HOOKS += ODHCP6C_INSTALL_SCRIPT
 
+ifeq ($(BR2_PACKAGE_LIBUBOX),y)
+ODHCP6C_CONF_OPTS += -DUSE_LIBUBOX=1
+ODHCP6C_DEPENDENCIES += libubox
+else
+ODHCP6C_CONF_OPTS += -DUSE_LIBUBOX=0
+endif
+
 $(eval $(cmake-package))
Signature · 1 line
2.20.1
#2 lore raw

PATCH 1/2 package/odhcp6c: bump to version d2e247d8d87ecf8c60fcf0acdad05667bd379521

In reply to Fabrice Fontaine
Quoted 10 lines · On Mon, 25 Mar 2019 18:59:32 +0100 Fabrice Fontaine…

- Remove patch (already in version)
- Add hash for license file

---
 .../0001-dhcpv6-fix-strncpy-bounds.patch      | 28 -------------------
 package/odhcp6c/odhcp6c.hash                  |  3 +-
 package/odhcp6c/odhcp6c.mk                    |  2 +-
 3 files changed, 3 insertions(+), 30 deletions(-)
 delete mode 100644 package/odhcp6c/0001-dhcpv6-fix-strncpy-bounds.patch

Both applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com