Skip to contentSkip to conversation

package/setools: add homepage to Config.in

PATCH New Bernd Kuhls 2 participants 4 messages Jan 24, 2016 – Feb 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/setools: add homepage to Config.in

---
 package/setools/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/setools/Config.in +2 -0
index 7bab789..c291b21 100644
@@ -26,6 +26,8 @@ config BR2_PACKAGE_SETOOLS
 	   * secmds - command-line tools to analyze and search SELinux
 	     policy.
 
+	  https://github.com/TresysTechnology/setools3/wiki
+
 comment "setools needs a toolchain w/ threads, C++, wchar, dynamic library"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
 		|| !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
Signature · 1 line
2.7.0.rc3
#1 lore raw

PATCH 1/1 package/tcpreplay: fix musl build

The autobuilders did not catch the error yet because they failed earlier with other packages, but I am continuing the build based on the defconfig from:
http://autobuild.buildroot.net/results/6cc/6cc0f8c067e07deea688b9b97284601a596b898c/

---
 package/tcpreplay/0001-musl.patch           | 20 ++++++++++++++++++++
 package/tcpreplay/0002-musl-socklen_t.patch | 20 ++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 package/tcpreplay/0001-musl.patch
 create mode 100644 package/tcpreplay/0002-musl-socklen_t.patch
package/tcpreplay/0001-musl.patch new file +20 -0
new file mode 100644
index 0000000..cf86719
@@ -0,0 +1,20 @@
+Fix musl build
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+diff -uNr tcpreplay-4.1.1.org/src/common/sendpacket.h tcpreplay-4.1.1/src/common/sendpacket.h
+--- tcpreplay-4.1.1.org/src/common/sendpacket.h	2015-12-30 23:01:48.000000000 +0100
++++ tcpreplay-4.1.1/src/common/sendpacket.h	2016-01-24 13:15:04.000000000 +0100
+@@ -23,12 +23,6 @@
+ 
+ #include <sys/socket.h>
+ 
+-#ifdef __NetBSD__
+-#include <net/if_ether.h>
+-#else
+-#include <netinet/if_ether.h>
+-#endif
+-
+ #ifdef HAVE_QUICK_TX
+ #include <linux/quick_tx.h>
+ #if defined (__x86_64__)
package/tcpreplay/0002-musl-socklen_t.patch new file +20 -0
new file mode 100644
index 0000000..db49dbc
@@ -0,0 +1,20 @@
+Fix musl build
+
+Downloaded from
+http://git.alpinelinux.org/cgit/aports/tree/testing/tcpreplay/musl-socklen_t.patch
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+--- ./src/common/sendpacket.c.orig
++++ ./src/common/sendpacket.c
+@@ -166,10 +166,6 @@
+ #include "txring.h"
+ #endif
+ 
+-#ifndef __GLIBC__
+-typedef int socklen_t;
+-#endif
+-
+ static sendpacket_t *sendpacket_open_pf(const char *, char *);
+ static struct tcpr_ether_addr *sendpacket_get_hwaddr_pf(sendpacket_t *);
+ static int get_iface_index(int fd, const char *device, char *);
Signature · 1 line
2.7.0.rc3
#2 lore raw

PATCH 1/1 package/tcpreplay: fix musl build

Dear Bernd Kuhls,

Quoted 6 lines · Bernd Kuhls

The autobuilders did not catch the error yet because they failed earlier with other packages, but I am continuing the build based on the defconfig from:
http://autobuild.buildroot.net/results/6cc/6cc0f8c067e07deea688b9b97284601a596b898c/

Please use more descriptive patch description, use Git to format the patches, and submit those upstream, since upstream is active on Github:
https://github.com/appneta/tcpreplay.

Due to this, the patches should be in an upstreamable state, i.e not break other platforms.

Thanks!

Thomas

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

PATCH 1/1 package/setools: add homepage to Config.in

In reply to Bernd Kuhls

Dear Bernd Kuhls,

Quoted 4 lines · Bernd Kuhls
---
 package/setools/Config.in | 2 ++
 1 file changed, 2 insertions(+)

Applied, thanks.

Thomas

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