From 4f9ec75b4ecdcfa44e9b242d5feab6975df42912 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Fri, 30 Aug 2019 19:27:25 +0200 Subject: net-libs/libpcap: Fix compiling on sparc64-linux-* Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Jeroen Roovers --- net-libs/libpcap/files/libpcap-1.9.0-os.patch | 33 +++++++++++++++++++++++++++ net-libs/libpcap/libpcap-1.9.0-r1.ebuild | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 net-libs/libpcap/files/libpcap-1.9.0-os.patch (limited to 'net-libs/libpcap') 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() { -- cgit v1.2.3-65-gdbad