net-libs/libpcap: Fix compiling on sparc64-linux-*
authorJeroen Roovers <jer@gentoo.org>
Fri, 30 Aug 2019 17:27:25 +0000 (19:27 +0200)
committerJeroen Roovers <jer@gentoo.org>
Fri, 30 Aug 2019 17:29:28 +0000 (19:29 +0200)
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-libs/libpcap/files/libpcap-1.9.0-os.patch [new file with mode: 0644]
net-libs/libpcap/libpcap-1.9.0-r1.ebuild

diff --git a/net-libs/libpcap/files/libpcap-1.9.0-os.patch b/net-libs/libpcap/files/libpcap-1.9.0-os.patch
new file mode 100644 (file)
index 0000000..d3ec801
--- /dev/null
@@ -0,0 +1,33 @@
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -415,7 +415,7 @@
+           aix*)
+                   ;;
+-          freebsd*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
++          freebsd*|solaris*|netbsd*|openbsd*|dragonfly*|linux*|osf*)
+                   #
+                   # Platforms where the linker is the GNU linker
+                   # or accepts command-line arguments like
+@@ -429,10 +429,10 @@
+                   PIC_OPT=-fpic
+                   case "$host_cpu" in
+-                  sparc64*)
++                  sparc64*|sparcv9*)
+                       case "$host_os" in
+-                      freebsd*|openbsd*)
++                      freebsd*|solaris*|openbsd*|linux*)
+                           PIC_OPT=-fPIC
+                           ;;
+                       esac
+@@ -497,7 +497,7 @@
+                   V_SHLIB_OPT="-G -bnoentry -bexpall"
+                   ;;
+-          freebsd*|netbsd*|openbsd*|dragonfly*|linux*)
++          freebsd*|solaris*|netbsd*|openbsd*|dragonfly*|linux*)
+                   #
+                   # "cc" is GCC.
+                   #
index 4d5a0121e31a675cbeeceee5265e254341784486..38b37dbc6db7f0aa5b3f11e306e9983d21eda67a 100644 (file)
@@ -33,10 +33,10 @@ DEPEND="
 S=${WORKDIR}/${PN}-${P/_}
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-1.6.1-prefix-solaris.patch
        "${FILESDIR}"/${PN}-1.8.1-darwin.patch
        "${FILESDIR}"/${PN}-1.8.1-usbmon.patch
        "${FILESDIR}"/${PN}-1.9.0-pcap-config-includedir.patch
+       "${FILESDIR}"/${PN}-1.9.0-os.patch
 )
 
 src_prepare() {