Skip to contentSkip to conversation

netsniff-ng: use upstream provided tarball

PATCH New Baruch Siach 2 participants 4 messages Apr 19, 2017 – Apr 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 netsniff-ng: use upstream provided tarball

Cc Joris Lijssens <[email protected]>
---
 package/netsniff-ng/netsniff-ng.hash | 4 ++--
 package/netsniff-ng/netsniff-ng.mk   | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)
package/netsniff-ng/netsniff-ng.hash +2 -2
index 67b3331a92d9..79dc686174d7 100644
@@ -1,2 +1,2 @@
-# Locally calculated
-sha256 62e8aa970a4f46cdaddf54daf8ea26e7ae9f9f358efaf0651799c8c4e937c286 netsniff-ng-v0.6.2.tar.gz
+# Locally calculated after checking signature
+sha256 4f2f7afc96b5044b5ccd3b671d0c3b8cb166bfa7f1063cea6c2d5e0fd5a13cf5 netsniff-ng-0.6.2.tar.xz
package/netsniff-ng/netsniff-ng.mk +3 -2
index 1a4017e76dba..5d5974731d00 100644
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-NETSNIFF_NG_VERSION = v0.6.2
-NETSNIFF_NG_SITE = $(call github,netsniff-ng,netsniff-ng,$(NETSNIFF_NG_VERSION))
+NETSNIFF_NG_VERSION = 0.6.2
+NETSNIFF_NG_SITE = http://pub.netsniff-ng.org/netsniff-ng
+NETSNIFF_NG_SOURCE = netsniff-ng-$(NETSNIFF_NG_VERSION).tar.xz
 NETSNIFF_NG_LICENSE = GPL-2.0
 NETSNIFF_NG_LICENSE_FILES = README COPYING
 # Prevent netsniff-ng configure script from finding a host installed nacl
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/3 netsniff-ng: fix static build with netfilter_conntrack

Use pkg-config to determine link flags.

Fixes:
http://autobuild.buildroot.net/results/0ef/0efb90d69fdffafe0630e6507d40198bfb1c5818/
http://autobuild.buildroot.net/results/0ea/0eaf15dd387961641b42d977c49804fe8872074b/
http://autobuild.buildroot.net/results/43d/43d3f2d54deb9d095a4f8cbf70a7b933c09ed618/

Cc Joris Lijssens <[email protected]>
---
 ...e-PKG_CONFIG-into-account-for-libnetfilte.patch | 43 ++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 package/netsniff-ng/0002-flowtop-take-PKG_CONFIG-into-account-for-libnetfilte.patch
package/netsniff-ng/0002-flowtop-take-PKG_CONFIG-into-account-for-libnetfilte.patch new file +43 -0
new file mode 100644
index 000000000000..bd7619ba7af0
@@ -0,0 +1,43 @@
+From 2d38d16d86db941fcb4d4fb8ad761e7e163c01e5 Mon Sep 17 00:00:00 2001
+From: Baruch Siach <[email protected]>
+Date: Sun, 16 Apr 2017 07:41:38 +0300
+Subject: [PATCH] flowtop: take PKG_CONFIG into account for
+ libnetfilter_conntrack
+
+Use $PKG_CONFIG to determine the linker flags for libnetfilter_conntrack. This
+fixes static link failure like the following:
+
+  LD	flowtop
+.../usr/x86_64-buildroot-linux-musl/sysroot/usr/lib/../lib64/libnetfilter_conntrack.a(main.o): In function `nfct_open_nfnl':
+main.c:(.text+0x52): undefined reference to `nfnl_subsys_open'
+main.c:(.text+0x69): undefined reference to `nfnl_subsys_close'
+main.c:(.text+0x87): undefined reference to `nfnl_subsys_open'
+main.c:(.text+0xa3): undefined reference to `nfnl_subsys_close'
+.../usr/x86_64-buildroot-linux-musl/sysroot/usr/lib/../lib64/libnetfilter_conntrack.a(main.o): In function `nfct_open':
+main.c:(.text+0xc9): undefined reference to `nfnl_open'
+main.c:(.text+0xf0): undefined reference to `nfnl_close'
+...
+
+Signed-off-by: Baruch Siach <[email protected]>
+---
+
+Patch status: sent upstream
+http://www.mail-archive.com/netsniff-ng%40googlegroups.com/msg01971.html
+
+ flowtop/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/flowtop/Makefile b/flowtop/Makefile
+index effe7eb33fc3..e001ce8aaf13 100644
+--- a/flowtop/Makefile
++++ b/flowtop/Makefile
+@@ -1,5 +1,5 @@
+ flowtop-libs =	-lurcu \
+-		-lnetfilter_conntrack \
++		$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs libnetfilter_conntrack 2> /dev/null ) \
+ 		$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs ncurses 2> /dev/null \
+ 			|| echo '-lncurses') \
+ 		$(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs tinfo 2> /dev/null ) \
+-- 
+2.11.0
+
Signature · 1 line
2.11.0
#2 lore raw

PATCH 3/3 netsniff-ng: bump to version 0.6.3

In reply to Baruch Siach

Drop upstream patch.

Add two more patches to deal with musl build issues.

Cc Joris Lijssens <[email protected]>
---
 ...-PKG_CONFIG-into-account-for-libnetfilte.patch} |  0
 ...-nlmsg-Drop-dissection-of-GENL_ID_GENERAT.patch | 48 -----------------
 .../0002-proc.h-add-missing-headers.patch          | 44 +++++++++++++++
 ...ix-if_arp.h-musl-libc-kernel-headers-conf.patch | 62 ++++++++++++++++++++++
 package/netsniff-ng/netsniff-ng.hash               |  2 +-
 package/netsniff-ng/netsniff-ng.mk                 |  2 +-
 6 files changed, 108 insertions(+), 50 deletions(-)
 rename package/netsniff-ng/{0002-flowtop-take-PKG_CONFIG-into-account-for-libnetfilte.patch => 0001-flowtop-take-PKG_CONFIG-into-account-for-libnetfilte.patch} (100%)
 delete mode 100644 package/netsniff-ng/0001-netsniff-ng-nlmsg-Drop-dissection-of-GENL_ID_GENERAT.patch
 create mode 100644 package/netsniff-ng/0002-proc.h-add-missing-headers.patch
 create mode 100644 package/netsniff-ng/0003-pcap_io.h-fix-if_arp.h-musl-libc-kernel-headers-conf.patch
package/netsniff-ng/0001-flowtop-take-PKG_CONFIG-into-account-for-libnetfilte.patch renamed from package/netsniff-ng/0002-flowtop-take-PKG_CONFIG-into-account-for-libnetfilte.patch +0 -0
similarity index 100%
rename from package/netsniff-ng/0002-flowtop-take-PKG_CONFIG-into-account-for-libnetfilte.patch
rename to package/netsniff-ng/0001-flowtop-take-PKG_CONFIG-into-account-for-libnetfilte.patch
package/netsniff-ng/0001-netsniff-ng-nlmsg-Drop-dissection-of-GENL_ID_GENERAT.patch deleted +0 -48

48 lines not on this page · raw message

package/netsniff-ng/0002-proc.h-add-missing-headers.patch new file +44 -0

44 lines not on this page · raw message

package/netsniff-ng/0003-pcap_io.h-fix-if_arp.h-musl-libc-kernel-headers-conf.patch new file +62 -0

62 lines not on this page · raw message

package/netsniff-ng/netsniff-ng.hash +1 -1
index 79dc686174d7..fea2dada1463 100644
@@ -1,2 +1,2 @@
 # Locally calculated after checking signature
-sha256 4f2f7afc96b5044b5ccd3b671d0c3b8cb166bfa7f1063cea6c2d5e0fd5a13cf5 netsniff-ng-0.6.2.tar.xz
+sha256 f8e0094f77de8a70f91240bfa77137d5631ac48138cb29fcf962c0bcbe81f04a netsniff-ng-0.6.3.tar.xz
package/netsniff-ng/netsniff-ng.mk +1 -1
index 5d5974731d00..73c840cf0fa1 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-NETSNIFF_NG_VERSION = 0.6.2
+NETSNIFF_NG_VERSION = 0.6.3
 NETSNIFF_NG_SITE = http://pub.netsniff-ng.org/netsniff-ng
 NETSNIFF_NG_SOURCE = netsniff-ng-$(NETSNIFF_NG_VERSION).tar.xz
 NETSNIFF_NG_LICENSE = GPL-2.0
Signature · 1 line
2.11.0
#3 lore raw

PATCH 1/3 netsniff-ng: use upstream provided tarball

In reply to Baruch Siach

Hello,

Quoted 6 lines · Baruch Siach
Cc Joris Lijssens <[email protected]>
---
 package/netsniff-ng/netsniff-ng.hash | 4 ++--
 package/netsniff-ng/netsniff-ng.mk   | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

Series applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com