net-analyzer/wireshark: Update live ebuild patches (bug #575090 by Garri).
authorJeroen Roovers <jer@gentoo.org>
Wed, 24 Feb 2016 08:41:18 +0000 (09:41 +0100)
committerJeroen Roovers <jer@gentoo.org>
Wed, 24 Feb 2016 08:41:43 +0000 (09:41 +0100)
Package-Manager: portage-2.2.27

net-analyzer/wireshark/files/wireshark-99999999-androiddump.patch [new file with mode: 0644]
net-analyzer/wireshark/files/wireshark-99999999-sse4_2.patch [new file with mode: 0644]
net-analyzer/wireshark/wireshark-99999999.ebuild

diff --git a/net-analyzer/wireshark/files/wireshark-99999999-androiddump.patch b/net-analyzer/wireshark/files/wireshark-99999999-androiddump.patch
new file mode 100644 (file)
index 0000000..7c00d8b
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/extcap/Makefile.am
++++ b/extcap/Makefile.am
+@@ -46,6 +46,7 @@
+       ../wiretap/libwiretap.la        \
+       ../wsutil/libwsutil.la          \
+       @GLIB_LIBS@                     \
++      @PCAP_LIBS@                     \
+       @SOCKET_LIBS@
+ 
+ if ENABLE_STATIC
diff --git a/net-analyzer/wireshark/files/wireshark-99999999-sse4_2.patch b/net-analyzer/wireshark/files/wireshark-99999999-sse4_2.patch
new file mode 100644 (file)
index 0000000..daef2a1
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -1101,6 +1101,7 @@
+ AC_SUBST(PIE_CFLAGS)
+ AC_SUBST(PIE_LDFLAGS)
+ 
++AC_ARG_ENABLE(sse4_2,[  --enable-sse4_2         Support SSE4.2 (Streaming SIMD Extensions 4.2) instructions],[
+ WS_CFLAGS_saved="$WS_CFLAGS"
+ AC_WIRESHARK_COMPILER_FLAGS_CHECK(-msse4.2, C)
+ if test "x$can_add_to_cflags" = "xyes"
+@@ -1128,6 +1129,9 @@
+       fi
+ fi
+ WS_CFLAGS="$WS_CFLAGS_saved"
++],[
++AC_MSG_RESULT(no)
++])
+ 
+ if test "x$ac_sse4_2_flag" != x; then
+       #
index 786f1b1f116982490d64a13edca0fb539cfae956..b0ab8fdf2a0c7f8688fd410800cdcf88fbce89f1 100644 (file)
@@ -97,11 +97,10 @@ src_unpack() {
 
 src_prepare() {
        epatch \
-               "${FILESDIR}"/${PN}-1.6.13-ldflags.patch \
                "${FILESDIR}"/${PN}-1.11.0-oldlibs.patch \
-               "${FILESDIR}"/${PN}-99999999-pkgconfig.patch \
                "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch \
-               "${FILESDIR}"/${PN}-2.1.0-sse4_2.patch
+               "${FILESDIR}"/${PN}-99999999-sse4_2.patch \
+               "${FILESDIR}"/${PN}-99999999-androiddump.patch
 
        epatch_user
 
@@ -155,7 +154,6 @@ src_configure() {
        econf \
                $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \
                $(use_enable androiddump) \
-               $(use_enable ipv6) \
                $(use_enable tfshark) \
                $(use_with adns c-ares) \
                $(use_with caps libcap) \
@@ -212,7 +210,6 @@ src_install() {
        # install headers
        local wsheader
        for wsheader in \
-               color.h \
                config.h \
                epan/*.h \
                epan/crypt/*.h \