All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/iputils: Reenable traceroute6
@ 2019-06-11 21:26 Petr Vorel
  2019-06-11 21:26 ` [Buildroot] [PATCH 2/3] iputils: Update upstream status on patches Petr Vorel
  2019-06-11 21:26 ` [Buildroot] [PATCH 3/3] package/iputils: create ping6 symlink in post install hook Petr Vorel
  0 siblings, 2 replies; 4+ messages in thread
From: Petr Vorel @ 2019-06-11 21:26 UTC (permalink / raw)
  To: buildroot

Bump to s20190515 removed traceroute6 build (it's not built by default
since this version in upstream). Reenable it again.

Fixes: 9ffcd9279e ("package/iputils: bump to version s20190515")

This requires fix similar to one in 0003-meson.build-fix-build-with-NLS.patch
http://autobuild.buildroot.org/results/0a8a3efe734ac7fb3a68ba505277681857dc0a3d

Suggested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
 .../0005-traceroute6-fix-build-with-NLS.patch | 30 +++++++++++++++++++
 package/iputils/iputils.mk                    |  3 ++
 2 files changed, 33 insertions(+)
 create mode 100644 package/iputils/0005-traceroute6-fix-build-with-NLS.patch

diff --git a/package/iputils/0005-traceroute6-fix-build-with-NLS.patch b/package/iputils/0005-traceroute6-fix-build-with-NLS.patch
new file mode 100644
index 0000000000..70315c551b
--- /dev/null
+++ b/package/iputils/0005-traceroute6-fix-build-with-NLS.patch
@@ -0,0 +1,30 @@
+From b18c6c48e4dabaf8bf9b178b3deca631fc79c96e Mon Sep 17 00:00:00 2001
+From: Petr Vorel <petr.vorel@gmail.com>
+Date: Tue, 11 Jun 2019 21:51:58 +0200
+Subject: [PATCH] traceroute6: fix build with NLS
+
+commit 418d8be ("build-sys: fix build with NLS") fixed problems for
+default packages using libintl. Fix also traceroute6 (build it must be
+enabled with -DBUILD_TRACEROUTE6=true)
+
+Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
+Upstream status: 81bfb31a714641b70c2a7c7d9ce12cf08f98a372
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 2b545b6..85db8a6 100644
+--- a/meson.build
++++ b/meson.build
+@@ -266,7 +266,7 @@ endif
+
+ if build_traceroute6 == true
+	executable('traceroute6', ['traceroute6.c', git_version_h],
+-		dependencies : [cap_dep, idn_dep],
++		dependencies : [cap_dep, intl_dep, idn_dep],
+		link_with : [libcommon],
+		install: true)
+	meson.add_install_script('build-aux/setcap-setuid.sh',
+--
+2.21.0
diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk
index 8be54b4788..01d2388bab 100644
--- a/package/iputils/iputils.mk
+++ b/package/iputils/iputils.mk
@@ -49,6 +49,8 @@ IPUTILS_CONF_OPTS += -DUSE_CRYPTO=none
 IPUTILS_CONF_OPTS += -DBUILD_NINFOD=false
 endif
 
+IPUTILS_CONF_OPTS += -DBUILD_TRACEROUTE6=true
+
 # XSL Stylesheets for DocBook 5 not packaged for buildroot
 IPUTILS_CONF_OPTS += -DBUILD_MANS=false -DBUILD_HTML_MANS=false
 
@@ -58,6 +60,7 @@ define IPUTILS_PERMISSIONS
 	/bin/arping      f 4755 0 0 - - - - -
 	/bin/clockdiff   f 4755 0 0 - - - - -
 	/bin/ping        f 4755 0 0 - - - - -
+	/bin/traceroute6 f 4755 0 0 - - - - -
 endef
 
 $(eval $(meson-package))
-- 
2.21.0

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

* [Buildroot] [PATCH 2/3] iputils: Update upstream status on patches
  2019-06-11 21:26 [Buildroot] [PATCH 1/3] package/iputils: Reenable traceroute6 Petr Vorel
@ 2019-06-11 21:26 ` Petr Vorel
  2019-06-11 21:38   ` Petr Vorel
  2019-06-11 21:26 ` [Buildroot] [PATCH 3/3] package/iputils: create ping6 symlink in post install hook Petr Vorel
  1 sibling, 1 reply; 4+ messages in thread
From: Petr Vorel @ 2019-06-11 21:26 UTC (permalink / raw)
  To: buildroot

Patch 0002-meson.build-fix-static-build-with-gcrypt.patch replaced with
0002-build-sys-fix-static-build-gcrypt-dependency-gpg-err.patch

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
 ...-ninfod_name.c-fix-build-with-nettle.patch |  4 +-
 ...atic-build-gcrypt-dependency-gpg-err.patch | 51 ++++++++++++++++
 ...n.build-fix-static-build-with-gcrypt.patch | 58 -------------------
 .../0003-meson.build-fix-build-with-NLS.patch | 45 ++++++++------
 ...uild-sys-Make-setcap-really-optional.patch |  3 +-
 5 files changed, 80 insertions(+), 81 deletions(-)
 create mode 100644 package/iputils/0002-build-sys-fix-static-build-gcrypt-dependency-gpg-err.patch
 delete mode 100644 package/iputils/0002-meson.build-fix-static-build-with-gcrypt.patch

diff --git a/package/iputils/0001-ninfod-ninfod_name.c-fix-build-with-nettle.patch b/package/iputils/0001-ninfod-ninfod_name.c-fix-build-with-nettle.patch
index 796185011a..5d522f53ef 100644
--- a/package/iputils/0001-ninfod-ninfod_name.c-fix-build-with-nettle.patch
+++ b/package/iputils/0001-ninfod-ninfod_name.c-fix-build-with-nettle.patch
@@ -15,7 +15,7 @@ Fixes:
  - http://autobuild.buildroot.org/results/e86555090e27b631ba35214ef100aa9331844684
 
 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-[Upstream status: https://github.com/iputils/iputils/pull/181]
+Upstream status: commit f209ebb91e65980bcdddce8cc12b00ec11623f76
 ---
  ninfod/ninfod_name.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
@@ -34,5 +34,5 @@ index daf606d..525c93d 100644
  #elif defined(HAVE_GNUTLS_OPENSSL_H)
  # include <gnutls/openssl.h>
 -- 
-2.20.1
+2.21.0
 
diff --git a/package/iputils/0002-build-sys-fix-static-build-gcrypt-dependency-gpg-err.patch b/package/iputils/0002-build-sys-fix-static-build-gcrypt-dependency-gpg-err.patch
new file mode 100644
index 0000000000..aaf6a0d392
--- /dev/null
+++ b/package/iputils/0002-build-sys-fix-static-build-gcrypt-dependency-gpg-err.patch
@@ -0,0 +1,51 @@
+From eabe21164bbb29dead1a902b6d6e910f6892e3a7 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Fri, 7 Jun 2019 23:17:13 +0200
+Subject: [PATCH] build-sys: fix static build gcrypt dependency gpg-error
+
+The gcrypt depends on gpg-error, so find it's availability and link with it
+when needed to fix static build.
+
+Fixes:
+- http://autobuild.buildroot.net/results/fb698e3e903869978bd5e69d791ec362317b7981
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Upstream status: commit eabe21164bbb29dead1a902b6d6e910f6892e3a7
+---
+ meson.build | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 84e4360..3766edc 100644
+--- a/meson.build
++++ b/meson.build
+@@ -101,20 +101,22 @@ else
+ endif
+
+ crypto = get_option('USE_CRYPTO')
++crypto_dep = []
+ if crypto == 'nettle'
+-	crypto_dep = dependency('nettle')
++	crypto_dep += dependency('nettle')
+	conf.set('USE_NETTLE', 1, description : 'If set use nettle crypto library.')
+ elif crypto == 'gcrypt'
+-	crypto_dep = cc.find_library('gcrypt')
++	crypto_dep += cc.find_library('gcrypt')
++	crypto_dep += dependency('gpg-error', required : true)
+	conf.set('USE_GCRYPT', 1, description : 'If set use gcrypt crypto library.')
+ elif crypto == 'openssl'
+-	crypto_dep = dependency('openssl')
++	crypto_dep += dependency('openssl')
+	conf.set('USE_OPENSSL', 1, description : 'if set use openssl crypto library.')
+ elif crypto == 'kernel'
+-	crypto_dep = dependency('disabler-appears-to-disable-executable-build', required : false)
++	crypto_dep += dependency('disabler-appears-to-disable-executable-build', required : false)
+	conf.set('USE_KERNEL_CRYPTO_API', 1, description : 'if set use Linux kernel Crypto API.')
+ elif crypto == 'none'
+-	crypto_dep = dependency('disabler-appears-to-disable-executable-build', required : false)
++	crypto_dep += dependency('disabler-appears-to-disable-executable-build', required : false)
+	conf.set('PING6_NONCE_MEMORY', 1,
+		description : 'If set RFC6744 random does not use any CRYPTO lib.')
+ endif
+--
+2.21.0
diff --git a/package/iputils/0002-meson.build-fix-static-build-with-gcrypt.patch b/package/iputils/0002-meson.build-fix-static-build-with-gcrypt.patch
deleted file mode 100644
index 07bf4387dc..0000000000
--- a/package/iputils/0002-meson.build-fix-static-build-with-gcrypt.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-From 40123757a799fac0446e33055b33a540bf725589 Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-Date: Fri, 7 Jun 2019 23:17:13 +0200
-Subject: [PATCH] meson.build: fix static build with gcrypt
-
-gcrypt depends on gpg-error so save the result of
-dependency('gpg-error') in gpg_error_dep and use it when needed to fix
-static build
-
-Fixes:
- - http://autobuild.buildroot.net/results/fb698e3e903869978bd5e69d791ec362317b7981
-
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-[Upstream status: https://github.com/iputils/iputils/pull/185]
----
- meson.build        | 5 ++++-
- ninfod/meson.build | 2 +-
- 2 files changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index 84e4360..24bda0c 100644
---- a/meson.build
-+++ b/meson.build
-@@ -119,6 +119,9 @@ elif crypto == 'none'
- 		description : 'If set RFC6744 random does not use any CRYPTO lib.')
- endif
- 
-+# gpg-error is a dependency of gcrypt
-+gpg_error_dep = dependency('gpg-error', required : false)
-+
- systemd = dependency('systemd', required : false)
- systemdunitdir = get_option('systemdunitdir')
- if systemdunitdir == '' and systemd.found()
-@@ -241,7 +244,7 @@ libcommon = static_library(
- 
- if build_ping == true
- 	executable('ping', ['ping.c', 'ping_common.c', 'ping6_common.c', git_version_h],
--		dependencies : [m_dep, cap_dep, idn_dep, crypto_dep, resolv_dep],
-+		dependencies : [m_dep, cap_dep, idn_dep, crypto_dep, gpg_error_dep, resolv_dep],
- 		link_with : [libcommon],
- 		install: true)
- 	meson.add_install_script('build-aux/setcap-setuid.sh',
-diff --git a/ninfod/meson.build b/ninfod/meson.build
-index a0ee94d..1e7aa26 100644
---- a/ninfod/meson.build
-+++ b/ninfod/meson.build
-@@ -10,7 +10,7 @@ ninfod_sources = files('''
- 	ninfod_name.c
- '''.split())
- executable('ninfod', [ninfod_sources, git_version_h],
--	dependencies : [cap_dep, crypto_dep, rt_dep, threads],
-+	dependencies : [cap_dep, crypto_dep, gpg_error_dep, rt_dep, threads],
- 	link_with : [libcommon],
- 	include_directories : inc,
- 	install: true,
--- 
-2.20.1
-
diff --git a/package/iputils/0003-meson.build-fix-build-with-NLS.patch b/package/iputils/0003-meson.build-fix-build-with-NLS.patch
index f6fd737f43..1c999ba750 100644
--- a/package/iputils/0003-meson.build-fix-build-with-NLS.patch
+++ b/package/iputils/0003-meson.build-fix-build-with-NLS.patch
@@ -1,44 +1,51 @@
-From 8719555a530a8981214f1a35df4b17838dc5f3e8 Mon Sep 17 00:00:00 2001
+From 418d8bea5424d8a14a21fd7928747a233557618c Mon Sep 17 00:00:00 2001
 From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-Date: Sun, 9 Jun 2019 10:55:35 +0200
-Subject: [PATCH] meson.build: fix build with NLS
+Date: Sun, 9 Jun 2019 18:38:37 +0200
+Subject: [PATCH] build-sys: fix build with NLS
 
 With some toolchains, intl is needed for NLS support so search for this
-library and use if needed
+library and use if needed.
 
 Fixes:
  - http://autobuild.buildroot.org/results/0a8a3efe734ac7fb3a68ba505277681857dc0a3d
 
 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
--[Upstream status: not sent yet]
+Upstream status: commit 418d8bea5424d8a14a21fd7928747a233557618c
 ---
  meson.build | 11 +++++++----
  1 file changed, 7 insertions(+), 4 deletions(-)
 
 diff --git a/meson.build b/meson.build
-index 24bda0c..53a3995 100644
+index 3766edc..2b545b6 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -88,6 +88,9 @@ if opt == true
- 	subdir ('po')
+@@ -77,6 +77,8 @@ if opt != ''
+	conf.set_quoted('DEFAULT_DEVICE', opt, description : 'arping default device.')
  endif
  
 +# Some systems needs intl for gettext
-+intl_dep = cc.find_library('intl', required : false)
-+
- opt = get_option('USE_IDN')
++intl_dep = []
+ opt = get_option('USE_GETTEXT')
  if opt == true
- 	idn_dep = cc.find_library('idn2', required : false)
-@@ -244,7 +247,7 @@ libcommon = static_library(
+	prefix = get_option('prefix')
+@@ -86,6 +88,7 @@ if opt == true
+	conf.set('ENABLE_NLS', 1, description : 'If set enable I18N.')
+	conf.set_quoted('LOCALEDIR', join_paths(prefix, localedir))
+	subdir ('po')
++	intl_dep += cc.find_library('intl', required : false)
+ endif
+
+ opt = get_option('USE_IDN')
+@@ -243,7 +246,7 @@ libcommon = static_library(
  
  if build_ping == true
  	executable('ping', ['ping.c', 'ping_common.c', 'ping6_common.c', git_version_h],
--		dependencies : [m_dep, cap_dep, idn_dep, crypto_dep, gpg_error_dep, resolv_dep],
-+		dependencies : [m_dep, cap_dep, idn_dep, intl_dep, crypto_dep, gpg_error_dep, resolv_dep],
+-		dependencies : [m_dep, cap_dep, idn_dep, crypto_dep, resolv_dep],
++		dependencies : [m_dep, cap_dep, idn_dep, intl_dep, crypto_dep, resolv_dep],
  		link_with : [libcommon],
  		install: true)
  	meson.add_install_script('build-aux/setcap-setuid.sh',
-@@ -257,7 +260,7 @@ endif
+@@ -256,7 +259,7 @@ endif
  
  if build_tracepath == true
  	executable('tracepath', ['tracepath.c', git_version_h],
@@ -47,7 +54,7 @@ index 24bda0c..53a3995 100644
  		link_with : [libcommon],
  		install: true)
  endif
-@@ -277,7 +280,7 @@ endif
+@@ -276,7 +279,7 @@ endif
  
  if build_clockdiff == true
  	executable('clockdiff', ['clockdiff.c', git_version_h],
@@ -56,7 +63,7 @@ index 24bda0c..53a3995 100644
  		link_with : [libcommon],
  		install: true)
  	meson.add_install_script('build-aux/setcap-setuid.sh',
-@@ -307,7 +310,7 @@ endif
+@@ -306,7 +309,7 @@ endif
  
  if build_arping == true
  	executable('arping', ['arping.c', git_version_h],
@@ -66,5 +73,5 @@ index 24bda0c..53a3995 100644
  		install: true)
  	meson.add_install_script('build-aux/setcap-setuid.sh',
 -- 
-2.20.1
+2.21.0
 
diff --git a/package/iputils/0004-build-sys-Make-setcap-really-optional.patch b/package/iputils/0004-build-sys-Make-setcap-really-optional.patch
index 0024f3fa6f..5ebd1db026 100644
--- a/package/iputils/0004-build-sys-Make-setcap-really-optional.patch
+++ b/package/iputils/0004-build-sys-Make-setcap-really-optional.patch
@@ -8,9 +8,8 @@ setcap.path():
 
 meson.build:246:7: ERROR:  add_install_script args must be strings
 
-[Retrieved from:
-https://github.com/iputils/iputils/commit/473be6467f995865244e7e68b2fa587a4ee79551]
 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Upstream status: commit 473be6467f995865244e7e68b2fa587a4ee79551
 ---
  meson.build | 11 +++++++----
  1 file changed, 7 insertions(+), 4 deletions(-)
-- 
2.21.0

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

* [Buildroot] [PATCH 3/3] package/iputils: create ping6 symlink in post install hook
  2019-06-11 21:26 [Buildroot] [PATCH 1/3] package/iputils: Reenable traceroute6 Petr Vorel
  2019-06-11 21:26 ` [Buildroot] [PATCH 2/3] iputils: Update upstream status on patches Petr Vorel
@ 2019-06-11 21:26 ` Petr Vorel
  1 sibling, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2019-06-11 21:26 UTC (permalink / raw)
  To: buildroot

https://github.com/iputils/iputils/commit/ebad35fee3de851b809c7b72ccc654a72b6af61d

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
I'm sorry I wasn't able to verify this one.
But I see this warning:
Warning: target file "./usr/bin/arping" is touched by more than one package: [u'skeleton-init-common', u'iputils']

 package/iputils/iputils.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk
index 01d2388bab..eb592c3083 100644
--- a/package/iputils/iputils.mk
+++ b/package/iputils/iputils.mk
@@ -54,6 +54,12 @@ IPUTILS_CONF_OPTS += -DBUILD_TRACEROUTE6=true
 # XSL Stylesheets for DocBook 5 not packaged for buildroot
 IPUTILS_CONF_OPTS += -DBUILD_MANS=false -DBUILD_HTML_MANS=false
 
+# upstream requires distros to create symlink
+define IPUTILS_CREATE_PING6_SYMLINK
+ln -sv $(TARGET_DIR)/bin/ping $(TARGET_DIR)/bin/ping6
+endef
+IPUTILS_POST_INSTALL_HOOKS = IPUTILS_CREATE_PING6_SYMLINK
+
 # handle permissions ourselves
 IPUTILS_CONF_OPTS += -DNO_SETCAP_OR_SUID=true
 define IPUTILS_PERMISSIONS
-- 
2.21.0

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

* [Buildroot] [PATCH 2/3] iputils: Update upstream status on patches
  2019-06-11 21:26 ` [Buildroot] [PATCH 2/3] iputils: Update upstream status on patches Petr Vorel
@ 2019-06-11 21:38   ` Petr Vorel
  0 siblings, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2019-06-11 21:38 UTC (permalink / raw)
  To: buildroot

Hi,

prefix in commit message should be 'package/iputils:'
sorry for this mistake.

Kind regards,
Petr

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

end of thread, other threads:[~2019-06-11 21:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-11 21:26 [Buildroot] [PATCH 1/3] package/iputils: Reenable traceroute6 Petr Vorel
2019-06-11 21:26 ` [Buildroot] [PATCH 2/3] iputils: Update upstream status on patches Petr Vorel
2019-06-11 21:38   ` Petr Vorel
2019-06-11 21:26 ` [Buildroot] [PATCH 3/3] package/iputils: create ping6 symlink in post install hook Petr Vorel

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.