* [Buildroot] [PATCH v4 1/1] package/iputils: bump to version s20190515
@ 2019-05-19 21:15 Petr Vorel
2019-05-20 18:56 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2019-05-19 21:15 UTC (permalink / raw)
To: buildroot
This commit also include changes from s20190324.
Upstream changed build system to Meson, these extra changes
were required:
* remove custom commands of previous build system:
(IPUTILS_INSTALL_TARGET_CMDS, IPUTILS_PERMISSIONS)
* remove USE_SYSFS=no (support removed from upstream
* transform options from USE_FOO={yes,no} to -DUSE_FOO={true,false}
Removed patch included in this release
Build ninfod if possible (when use any crypto)
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
Changes v3->v4:
* fixed build on systems without Docbook Stylesheets
Hi Thomas,
now tested, without Docbook Stylesheets):
./utils/test-pkg -p iputils
br-arm-full [1/6]: OK
br-arm-cortex-a9-glibc [2/6]: OK
br-arm-cortex-m4-full [3/6]: SKIPPED
br-x86-64-musl [4/6]: OK
br-arm-full-static [5/6]: OK
sourcery-arm [6/6]: OK
6 builds, 1 skipped, 0 build failed, 0 legal-info failed
Kind regards,
Petr
---
...ix-AI_CANONIDN-usage-on-some-systems.patch | 57 ------------------
package/iputils/iputils.hash | 2 +-
package/iputils/iputils.mk | 60 +++++++------------
3 files changed, 23 insertions(+), 96 deletions(-)
delete 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
deleted file mode 100644
index 556d3786fb..0000000000
--- a/package/iputils/0001-ping-Fix-AI_CANONIDN-usage-on-some-systems.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-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 14e2c67134..57b9ccf6a4 100644
--- a/package/iputils/iputils.hash
+++ b/package/iputils/iputils.hash
@@ -1,3 +1,3 @@
# Locally computed
-sha256 da14105291dd491f28ea91ade854ed10aee8ba019641c80eed233de3908be7c5 iputils-s20180629.tar.gz
+sha256 9b5125eb5ef9f4e947ad8fdddcf77f538f53b8f47b53eb5bc5347cb16d01c8fd iputils-s20190515.tar.gz
sha256 966075293e45785230c19415bcda15bd07c75bead4fe73332d1a4b9c45bb321f ninfod/COPYING
diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk
index 8371971231..f0902c7038 100644
--- a/package/iputils/iputils.mk
+++ b/package/iputils/iputils.mk
@@ -11,61 +11,45 @@
# and IPv6 updates.
# http://www.spinics.net/lists/netdev/msg279881.html
-IPUTILS_VERSION = s20180629
+IPUTILS_VERSION = s20190515
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
IPUTILS_LICENSE_FILES = ninfod/COPYING
-IPUTILS_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) USE_SYSFS=no USE_IDN=no\
- CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
-
ifeq ($(BR2_PACKAGE_LIBCAP),y)
-IPUTILS_MAKE_OPTS += USE_CAP=yes
+IPUTILS_CONF_OPTS += -DUSE_CAP=true
IPUTILS_DEPENDENCIES += libcap
else
-IPUTILS_MAKE_OPTS += USE_CAP=no
+IPUTILS_CONF_OPTS += -DUSE_CAP=false
endif
-ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
-IPUTILS_MAKE_OPTS += USE_GCRYPT=yes
-IPUTILS_DEPENDENCIES += libgcrypt
+ifeq ($(BR2_PACKAGE_LIBIDN),y)
+IPUTILS_CONF_OPTS += -DUSE_IDN=true
+IPUTILS_DEPENDENCIES += libidn
else
-IPUTILS_MAKE_OPTS += USE_GCRYPT=no
+IPUTILS_CONF_OPTS += -DUSE_IDN=false
endif
ifeq ($(BR2_PACKAGE_NETTLE),y)
-IPUTILS_MAKE_OPTS += USE_NETTLE=yes
+IPUTILS_CONF_OPTS += -DUSE_CRYPTO=nettle
IPUTILS_DEPENDENCIES += nettle
-else
-IPUTILS_MAKE_OPTS += USE_NETTLE=no
-endif
-
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-IPUTILS_MAKE_OPTS += USE_CRYPTO=yes
+else ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
+IPUTILS_CONF_OPTS += -DUSE_CRYPTO=gcrypt
+IPUTILS_DEPENDENCIES += libgcrypt
+else ifeq ($(BR2_PACKAGE_OPENSSL),y)
+IPUTILS_CONF_OPTS += -DUSE_CRYPTO=openssl
IPUTILS_DEPENDENCIES += openssl
+else ifeq ($(BR2_PACKAGE_LINUX_HEADERS),y)
+IPUTILS_CONF_OPTS += -DUSE_CRYPTO=kernel
+IPUTILS_DEPENDENCIES += linux-headers
else
-IPUTILS_MAKE_OPTS += USE_CRYPTO=no
+IPUTILS_CONF_OPTS += -DUSE_CRYPTO=none
+# BUILD_NINFOD=true and USE_CRYPTO=none cannot be combined
+IPUTILS_CONF_OPTS += -DBUILD_NINFOD=false
endif
-define IPUTILS_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(IPUTILS_MAKE_OPTS)
-endef
-
-define IPUTILS_INSTALL_TARGET_CMDS
- $(INSTALL) -D -m 755 $(@D)/arping $(TARGET_DIR)/sbin/arping
- $(INSTALL) -D -m 755 $(@D)/clockdiff $(TARGET_DIR)/bin/clockdiff
- $(INSTALL) -D -m 755 $(@D)/ping $(TARGET_DIR)/bin/ping
- $(INSTALL) -D -m 755 $(@D)/rarpd $(TARGET_DIR)/sbin/rarpd
- $(INSTALL) -D -m 755 $(@D)/rdisc $(TARGET_DIR)/sbin/rdisc
- $(INSTALL) -D -m 755 $(@D)/tftpd $(TARGET_DIR)/usr/sbin/in.tftpd
- $(INSTALL) -D -m 755 $(@D)/tracepath $(TARGET_DIR)/bin/tracepath
- $(INSTALL) -D -m 755 $(@D)/traceroute6 $(TARGET_DIR)/bin/traceroute6
-endef
-
-define IPUTILS_PERMISSIONS
- /bin/ping f 4755 0 0 - - - - -
- /bin/traceroute6 f 4755 0 0 - - - - -
-endef
+# XSL Stylesheets for DocBook 5 not packaged for buildroot
+IPUTILS_CONF_OPTS += -DBUILD_MANS=false -DBUILD_HTML_MANS=false
-$(eval $(generic-package))
+$(eval $(meson-package))
--
2.21.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v4 1/1] package/iputils: bump to version s20190515
2019-05-19 21:15 [Buildroot] [PATCH v4 1/1] package/iputils: bump to version s20190515 Petr Vorel
@ 2019-05-20 18:56 ` Thomas Petazzoni
2019-05-22 14:05 ` Matthew Weber
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2019-05-20 18:56 UTC (permalink / raw)
To: buildroot
On Sun, 19 May 2019 23:15:04 +0200
Petr Vorel <petr.vorel@gmail.com> wrote:
> This commit also include changes from s20190324.
>
> Upstream changed build system to Meson, these extra changes
> were required:
> * remove custom commands of previous build system:
> (IPUTILS_INSTALL_TARGET_CMDS, IPUTILS_PERMISSIONS)
> * remove USE_SYSFS=no (support removed from upstream
> * transform options from USE_FOO={yes,no} to -DUSE_FOO={true,false}
>
> Removed patch included in this release
>
> Build ninfod if possible (when use any crypto)
>
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
> Changes v3->v4:
> * fixed build on systems without Docbook Stylesheets
Applied to next, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v4 1/1] package/iputils: bump to version s20190515
2019-05-20 18:56 ` Thomas Petazzoni
@ 2019-05-22 14:05 ` Matthew Weber
2019-05-22 14:21 ` Petr Vorel
0 siblings, 1 reply; 5+ messages in thread
From: Matthew Weber @ 2019-05-22 14:05 UTC (permalink / raw)
To: buildroot
Petr,
On Mon, May 20, 2019 at 1:56 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> On Sun, 19 May 2019 23:15:04 +0200
> Petr Vorel <petr.vorel@gmail.com> wrote:
>
> > This commit also include changes from s20190324.
> >
> > Upstream changed build system to Meson, these extra changes
> > were required:
> > * remove custom commands of previous build system:
> > (IPUTILS_INSTALL_TARGET_CMDS, IPUTILS_PERMISSIONS)
> > * remove USE_SYSFS=no (support removed from upstream
> > * transform options from USE_FOO={yes,no} to -DUSE_FOO={true,false}
> >
> > Removed patch included in this release
> >
> > Build ninfod if possible (when use any crypto)
> >
> > Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Would you mind taking a look at a build failure from this patch?
http://autobuild.buildroot.net/results/f78ac0d3c9a679a584bd54ac7f908390f5a4087b/
> > ---
> > Changes v3->v4:
> > * fixed build on systems without Docbook Stylesheets
>
> Applied to next, thanks.
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
Matthew Weber | Pr. Software Engineer | Commercial Avionics
COLLINS AEROSPACE
400 Collins Road NE, Cedar Rapids, Iowa 52498, USA
Tel: +1 319 295 7349 | FAX: +1 319 263 6099
matthew.weber at collins.com | collinsaerospace.com
CONFIDENTIALITY WARNING: This message may contain proprietary and/or
privileged information of Collins Aerospace and its affiliated
companies. If you are not the intended recipient, please 1) Do not
disclose, copy, distribute or use this message or its contents. 2)
Advise the sender by return email. 3) Delete all copies (including all
attachments) from your computer. Your cooperation is greatly
appreciated.
Any export restricted material should be shared using my
matthew.weber at corp.rockwellcollins.com address.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v4 1/1] package/iputils: bump to version s20190515
2019-05-22 14:05 ` Matthew Weber
@ 2019-05-22 14:21 ` Petr Vorel
2019-05-22 15:34 ` [Buildroot] [External] " Matthew Weber
0 siblings, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2019-05-22 14:21 UTC (permalink / raw)
To: buildroot
Hi Matthew,
> Petr,
> Would you mind taking a look at a build failure from this patch?
> http://autobuild.buildroot.net/results/f78ac0d3c9a679a584bd54ac7f908390f5a4087b/
I already acked proposed fix made by Fabrice
https://patchwork.ozlabs.org/patch/1102942/
Kind regards,
Petr
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [External] Re: [PATCH v4 1/1] package/iputils: bump to version s20190515
2019-05-22 14:21 ` Petr Vorel
@ 2019-05-22 15:34 ` Matthew Weber
0 siblings, 0 replies; 5+ messages in thread
From: Matthew Weber @ 2019-05-22 15:34 UTC (permalink / raw)
To: buildroot
Petr,
On Wed, May 22, 2019 at 9:22 AM Petr Vorel <petr.vorel@gmail.com> wrote:
>
> Hi Matthew,
>
> > Petr,
>
> I already acked proposed fix made by Fabrice
Cool!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-05-22 15:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-19 21:15 [Buildroot] [PATCH v4 1/1] package/iputils: bump to version s20190515 Petr Vorel
2019-05-20 18:56 ` Thomas Petazzoni
2019-05-22 14:05 ` Matthew Weber
2019-05-22 14:21 ` Petr Vorel
2019-05-22 15:34 ` [Buildroot] [External] " Matthew Weber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox