All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] iputils: Bump to version s20180629
@ 2018-09-24  0:14 Petr Vorel
  2018-09-24  0:14 ` [Buildroot] [PATCH 2/2] iputils: Add hash for ninfod/COPYING license file Petr Vorel
  2018-09-25 20:22 ` [Buildroot] [PATCH 1/2] iputils: Bump to version s20180629 Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Petr Vorel @ 2018-09-24  0:14 UTC (permalink / raw)
  To: buildroot

Add upstream patch to fix build error:
ping.c: In function ?main?:
ping.c:212:23: error: ?AI_CANONIDN? undeclared (first use in this function); did you mean ?AI_CANONNAME??
   hints.ai_flags &= ~ AI_CANONIDN;

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
 ...ix-AI_CANONIDN-usage-on-some-systems.patch | 57 +++++++++++++++++++
 package/iputils/iputils.hash                  |  2 +-
 package/iputils/iputils.mk                    |  2 +-
 3 files changed, 59 insertions(+), 2 deletions(-)
 create mode 100644 package/iputils/0001-ping-Fix-AI_CANONIDN-usage-on-some-systems.patch

diff --git a/package/iputils/0001-ping-Fix-AI_CANONIDN-usage-on-some-systems.patch b/package/iputils/0001-ping-Fix-AI_CANONIDN-usage-on-some-systems.patch
new file mode 100644
index 0000000000..556d3786fb
--- /dev/null
+++ b/package/iputils/0001-ping-Fix-AI_CANONIDN-usage-on-some-systems.patch
@@ -0,0 +1,57 @@
+From 25899e849aa3abc1ad29ebf0b830262a859eaed5 Mon Sep 17 00:00:00 2001
+From: Petr Vorel <petr.vorel@gmail.com>
+Date: Sat, 21 Jul 2018 17:46:14 +0200
+Subject: [PATCH] ping: Fix AI_CANONIDN usage on some systems
+
+Commit 99f67db used AI_CANONIDN in a way, which broke compilation on
+systems where AI_CANONIDN is not defined in netdb.h (e.g. glibc < 2.3.4,
+alternative libcs that don't support IDN: e.g. current musl 1.1.19 and
+uClibc-ng 1.0.30) when not using the system libidn2.
+
+Fixes: 99f67db ping: Fix ping name encoded using ACE on C locale
+
+Reported-by: Nicholas Fish
+Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
+---
+ ping.c | 2 +-
+ ping.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ping.c b/ping.c
+index 733477f..b241815 100644
+--- a/ping.c
++++ b/ping.c
+@@ -207,9 +207,9 @@ main(int argc, char **argv)
+ 
+ #ifdef USE_IDN
+ 	setlocale(LC_ALL, "");
+-#endif
+ 	if (!strcmp(setlocale(LC_ALL, NULL), "C"))
+ 		hints.ai_flags &= ~ AI_CANONIDN;
++#endif
+ 
+ 	/* Support being called using `ping4` or `ping6` symlinks */
+ 	if (argv[0][strlen(argv[0])-1] == '4')
+diff --git a/ping.h b/ping.h
+index 3e09685..8a0c4ef 100644
+--- a/ping.h
++++ b/ping.h
+@@ -28,7 +28,6 @@
+ #include <netinet/icmp6.h>
+ #include <linux/filter.h>
+ #include <resolv.h>
+-#include <locale.h>
+ 
+ #ifdef CAPABILITIES
+ #include <sys/prctl.h>
+@@ -36,6 +35,7 @@
+ #endif
+ 
+ #ifdef USE_IDN
++#include <locale.h>
+ #include <idn2.h>
+ #define getaddrinfo_flags (AI_CANONNAME | AI_IDN | AI_CANONIDN)
+ #define getnameinfo_flags NI_IDN
+-- 
+2.19.0.rc2
+
diff --git a/package/iputils/iputils.hash b/package/iputils/iputils.hash
index a19348aa1f..89c3ab6013 100644
--- a/package/iputils/iputils.hash
+++ b/package/iputils/iputils.hash
@@ -1,2 +1,2 @@
 # Locally computed
-sha256 f813092f03d17294fd23544b129b95cdb87fe19f7970a51908a6b88509acad8a  iputils-s20161105.tar.gz
+sha256 da14105291dd491f28ea91ade854ed10aee8ba019641c80eed233de3908be7c5  iputils-s20180629.tar.gz
diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk
index 713b0e4abf..8371971231 100644
--- a/package/iputils/iputils.mk
+++ b/package/iputils/iputils.mk
@@ -11,7 +11,7 @@
 # and IPv6 updates.
 # http://www.spinics.net/lists/netdev/msg279881.html
 
-IPUTILS_VERSION = s20161105
+IPUTILS_VERSION = s20180629
 IPUTILS_SITE = $(call github,iputils,iputils,$(IPUTILS_VERSION))
 IPUTILS_LICENSE = GPL-2.0+, BSD-3-Clause, BSD-4-Clause
 # Only includes a license file for BSD
-- 
2.19.0.rc2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 2/2] iputils: Add hash for ninfod/COPYING license file
  2018-09-24  0:14 [Buildroot] [PATCH 1/2] iputils: Bump to version s20180629 Petr Vorel
@ 2018-09-24  0:14 ` Petr Vorel
  2018-09-25 20:22 ` [Buildroot] [PATCH 1/2] iputils: Bump to version s20180629 Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2018-09-24  0:14 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
 package/iputils/iputils.hash | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/iputils/iputils.hash b/package/iputils/iputils.hash
index 89c3ab6013..14e2c67134 100644
--- a/package/iputils/iputils.hash
+++ b/package/iputils/iputils.hash
@@ -1,2 +1,3 @@
 # Locally computed
 sha256 da14105291dd491f28ea91ade854ed10aee8ba019641c80eed233de3908be7c5  iputils-s20180629.tar.gz
+sha256 966075293e45785230c19415bcda15bd07c75bead4fe73332d1a4b9c45bb321f  ninfod/COPYING
-- 
2.19.0.rc2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/2] iputils: Bump to version s20180629
  2018-09-24  0:14 [Buildroot] [PATCH 1/2] iputils: Bump to version s20180629 Petr Vorel
  2018-09-24  0:14 ` [Buildroot] [PATCH 2/2] iputils: Add hash for ninfod/COPYING license file Petr Vorel
@ 2018-09-25 20:22 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-09-25 20:22 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 24 Sep 2018 02:14:45 +0200, Petr Vorel wrote:
> Add upstream patch to fix build error:
> ping.c: In function ?main?:
> ping.c:212:23: error: ?AI_CANONIDN? undeclared (first use in this function); did you mean ?AI_CANONNAME??
>    hints.ai_flags &= ~ AI_CANONIDN;
> 
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
>  ...ix-AI_CANONIDN-usage-on-some-systems.patch | 57 +++++++++++++++++++
>  package/iputils/iputils.hash                  |  2 +-
>  package/iputils/iputils.mk                    |  2 +-
>  3 files changed, 59 insertions(+), 2 deletions(-)
>  create mode 100644 package/iputils/0001-ping-Fix-AI_CANONIDN-usage-on-some-systems.patch

Both applied, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-25 20:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-24  0:14 [Buildroot] [PATCH 1/2] iputils: Bump to version s20180629 Petr Vorel
2018-09-24  0:14 ` [Buildroot] [PATCH 2/2] iputils: Add hash for ninfod/COPYING license file Petr Vorel
2018-09-25 20:22 ` [Buildroot] [PATCH 1/2] iputils: Bump to version s20180629 Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.