summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2019-08-30 19:27:25 +0200
committerJeroen Roovers <jer@gentoo.org>2019-08-30 19:29:28 +0200
commit4f9ec75b4ecdcfa44e9b242d5feab6975df42912 (patch)
tree798a1bef18c3bdca278165ee689b9543a6cfa00d /net-libs
parentdev-util/pkgcheck: version bump to 0.6.3 (diff)
downloadgentoo-4f9ec75b4ecdcfa44e9b242d5feab6975df42912.tar.gz
gentoo-4f9ec75b4ecdcfa44e9b242d5feab6975df42912.tar.bz2
gentoo-4f9ec75b4ecdcfa44e9b242d5feab6975df42912.zip
net-libs/libpcap: Fix compiling on sparc64-linux-*
Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libpcap/files/libpcap-1.9.0-os.patch33
-rw-r--r--net-libs/libpcap/libpcap-1.9.0-r1.ebuild2
2 files changed, 34 insertions, 1 deletions
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
index 000000000000..d3ec8014084f
--- /dev/null
+++ b/net-libs/libpcap/files/libpcap-1.9.0-os.patch
@@ -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.
+ #
diff --git a/net-libs/libpcap/libpcap-1.9.0-r1.ebuild b/net-libs/libpcap/libpcap-1.9.0-r1.ebuild
index 4d5a0121e31a..38b37dbc6db7 100644
--- a/net-libs/libpcap/libpcap-1.9.0-r1.ebuild
+++ b/net-libs/libpcap/libpcap-1.9.0-r1.ebuild
@@ -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() {