diff options
author | Jeroen Roovers <jer@gentoo.org> | 2013-01-30 03:40:50 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2013-01-30 03:40:50 +0000 |
commit | a4c55ea7bb8d579260d46c7fa3e6166af3a5acfd (patch) | |
tree | 22c1a3f2fbeace46b468272909530e3dc6921a91 /net-analyzer/wireshark/files | |
parent | Version bump. Expand -L/usr/lib abuse prevention. (diff) | |
download | gentoo-2-a4c55ea7bb8d579260d46c7fa3e6166af3a5acfd.tar.gz gentoo-2-a4c55ea7bb8d579260d46c7fa3e6166af3a5acfd.tar.bz2 gentoo-2-a4c55ea7bb8d579260d46c7fa3e6166af3a5acfd.zip |
Remove even more -L/usr/lib abuse.
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-analyzer/wireshark/files')
-rw-r--r-- | net-analyzer/wireshark/files/wireshark-1.6.13-ldflags.patch | 141 | ||||
-rw-r--r-- | net-analyzer/wireshark/files/wireshark-1.8.1-ldflags.patch | 69 |
2 files changed, 210 insertions, 0 deletions
diff --git a/net-analyzer/wireshark/files/wireshark-1.6.13-ldflags.patch b/net-analyzer/wireshark/files/wireshark-1.6.13-ldflags.patch new file mode 100644 index 000000000000..77e2af080953 --- /dev/null +++ b/net-analyzer/wireshark/files/wireshark-1.6.13-ldflags.patch @@ -0,0 +1,141 @@ +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -416,7 +416,7 @@ + # + CFLAGS="$CFLAGS -I$pcap_dir/include" + CPPFLAGS="$CPPFLAGS -I$pcap_dir/include" +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, $pcap_dir/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LDFLAGS, $pcap_dir/lib) + fi + + # Pcap header check +@@ -642,7 +642,7 @@ + wireshark_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I$zlib_dir/include" + wireshark_save_LIBS="$LIBS" +- AC_WIRESHARK_ADD_DASH_L(LIBS, $zlib_dir/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LIBS, $zlib_dir/lib) + fi + + # +@@ -695,7 +695,7 @@ + # LIBS. + # + LIBS="" +- AC_WIRESHARK_ADD_DASH_L(LIBS, $zlib_dir/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LIBS, $zlib_dir/lib) + LIBS="$LIBS -lz $wireshark_save_LIBS" + else + LIBS="-lz $LIBS" +@@ -1268,7 +1268,8 @@ + if test "x$ac_cv_enable_usr_local" = "xyes" ; then + withval=/usr/local + if test -d "$withval"; then +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + fi + fi +@@ -1299,7 +1300,8 @@ + if test "x$ac_cv_enable_usr_local" = "xyes" ; then + withval=/usr/local + if test -d "$withval"; then +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + fi + fi +@@ -1330,7 +1332,8 @@ + if test "x$ac_cv_enable_usr_local" = "xyes" ; then + withval=/usr/local + if test -d "$withval"; then +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + fi + fi +@@ -1619,7 +1622,8 @@ + if test "x$ac_cv_enable_usr_local" = "xyes" ; then + withval=/usr/local + if test -d "$withval"; then +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + fi + fi +--- a/configure.in ++++ b/configure.in +@@ -616,7 +616,8 @@ + # + # Arrange that we search for libraries in "$prefix/lib". + # +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, $prefix/lib) ++# AC_WIRESHARK_ADD_DASH_L(LDFLAGS, $prefix/lib) ++ true + else + AC_MSG_RESULT(no) + fi +@@ -647,7 +648,8 @@ + # + # Arrange that we search for libraries in "/usr/local/lib". + # +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, /usr/local/lib) ++# AC_WIRESHARK_ADD_DASH_L(LDFLAGS, /usr/local/lib) ++ true + else + AC_MSG_RESULT(no) + fi +@@ -1468,7 +1470,8 @@ + want_libcap=yes + elif test -d "$withval"; then + want_libcap=yes +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++# AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + ]) + if test "x$with_libcap" = "xno" ; then +@@ -1499,7 +1502,8 @@ + want_ssl=yes + elif test -d "$withval"; then + want_ssl=yes +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++# AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + ],[ + want_ssl=no +@@ -1564,7 +1568,8 @@ + want_c_ares=yes + elif test -d "$withval"; then + want_c_ares=yes +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++# AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + ]) + if test "x$want_c_ares" = "xno" ; then +@@ -1589,7 +1594,8 @@ + want_adns=yes + elif test -d "$withval"; then + want_adns=yes +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++# AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + ]) + if test "x$want_adns" = "xno" -o "x$have_good_c_ares" = "xyes" ; then +@@ -1614,7 +1620,8 @@ + want_geoip=yes + elif test -d "$withval"; then + want_geoip=yes +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++# AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + ]) + if test "x$want_geoip" = "xno"; then diff --git a/net-analyzer/wireshark/files/wireshark-1.8.1-ldflags.patch b/net-analyzer/wireshark/files/wireshark-1.8.1-ldflags.patch index 1f4a28ca406e..ace5fd1db6c9 100644 --- a/net-analyzer/wireshark/files/wireshark-1.8.1-ldflags.patch +++ b/net-analyzer/wireshark/files/wireshark-1.8.1-ldflags.patch @@ -64,3 +64,72 @@ fi ]) if test "x$want_geoip" = "xno"; then +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -435,7 +435,7 @@ + # searches the specified directory. + # + CPPFLAGS="$CPPFLAGS -I$pcap_dir/include" +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, $pcap_dir/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LDFLAGS, $pcap_dir/lib) + fi + + # Pcap header check +@@ -659,7 +659,7 @@ + wireshark_save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -I$zlib_dir/include" + wireshark_save_LIBS="$LIBS" +- AC_WIRESHARK_ADD_DASH_L(LIBS, $zlib_dir/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LIBS, $zlib_dir/lib) + fi + + # +@@ -711,7 +711,7 @@ + # of LIBS. + # + LIBS="" +- AC_WIRESHARK_ADD_DASH_L(LIBS, $zlib_dir/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LIBS, $zlib_dir/lib) + LIBS="$LIBS -lz $wireshark_save_LIBS" + else + LIBS="-lz $LIBS" +@@ -1162,7 +1162,8 @@ + if test "x$ac_cv_enable_usr_local" = "xyes" ; then + withval=/usr/local + if test -d "$withval"; then +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + fi + fi +@@ -1193,7 +1194,8 @@ + if test "x$ac_cv_enable_usr_local" = "xyes" ; then + withval=/usr/local + if test -d "$withval"; then +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + fi + fi +@@ -1224,7 +1226,8 @@ + if test "x$ac_cv_enable_usr_local" = "xyes" ; then + withval=/usr/local + if test -d "$withval"; then +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + fi + fi +@@ -1508,7 +1511,8 @@ + if test "x$ac_cv_enable_usr_local" = "xyes" ; then + withval=/usr/local + if test -d "$withval"; then +- AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++dnl AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib) ++ true + fi + fi + fi |