net-libs/libpcap: Fix parallel make issue by Geoff Levand (bug #647538).
authorJeroen Roovers <jer@gentoo.org>
Sat, 17 Feb 2018 14:21:02 +0000 (15:21 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sat, 17 Feb 2018 14:21:18 +0000 (15:21 +0100)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

net-libs/libpcap/files/libpcap-9999-libnl.patch [deleted file]
net-libs/libpcap/files/libpcap-9999-parallel.patch [new file with mode: 0644]
net-libs/libpcap/libpcap-1.8.1-r1.ebuild
net-libs/libpcap/libpcap-1.8.1-r2.ebuild
net-libs/libpcap/libpcap-1.8.1.ebuild
net-libs/libpcap/libpcap-9999.ebuild

diff --git a/net-libs/libpcap/files/libpcap-9999-libnl.patch b/net-libs/libpcap/files/libpcap-9999-libnl.patch
deleted file mode 100644 (file)
index f243906..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -492,10 +492,6 @@
- 
-                 incdir=-I/usr/include/libnl3
-                 libnldir=
--                if test x$withval != x ; then
--                  libnldir=-L${withval}/lib/.libs
--                  incdir=-I${withval}/include
--                fi
- 
-               #
-               # Try libnl 3.x first.
-@@ -510,7 +506,7 @@
-                       AC_DEFINE(HAVE_LIBNL_3_x,1,[if libnl exists and is version 3.x])
-                       AC_DEFINE(HAVE_LIBNL_NLE,1,[libnl has NLE_FAILURE])
-                       AC_DEFINE(HAVE_LIBNL_SOCKETS,1,[libnl has new-style socket api])
--                      V_INCLS="$V_INCLS ${incdir}"
-+                      V_INCLS="${incdir} $V_INCLS"
-                       have_any_nl="yes"
-               ],[], ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 )
- 
diff --git a/net-libs/libpcap/files/libpcap-9999-parallel.patch b/net-libs/libpcap/files/libpcap-9999-parallel.patch
new file mode 100644 (file)
index 0000000..61381a8
--- /dev/null
@@ -0,0 +1,22 @@
+From 0dd90a6bdbce4dca14106859eee63ef643a106e2 Mon Sep 17 00:00:00 2001
+From: Alfredo Alvarez Fernandez <alfredoalvarezernandez@gmail.com>
+Date: Tue, 21 Feb 2017 11:41:43 +0100
+Subject: [PATCH] Makefile.in: Fix missing dependency
+
+---
+ Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 7044f0438..f5d443aed 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -465,7 +465,7 @@ grammar.h: grammar.c
+               $(MAKE) $(MAKEFLAGS) grammar.c; \
+       fi
+ 
+-grammar.o: grammar.c
++grammar.o: grammar.c scanner.h
+       $(CC) $(FULL_CFLAGS) -c grammar.c
+ 
+ gencode.o: $(srcdir)/gencode.c grammar.h scanner.h
index af93e87f6c243345fa92a09a61afe5cec85b8730..e3cfd9d2741597ff97035679c7781e69682589e2 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit autotools eutils multilib-minimal
+inherit autotools multilib-minimal ltprune
 
 DESCRIPTION="A system-independent library for user-level network packet capture"
 HOMEPAGE="
@@ -38,13 +38,12 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.8.1-darwin.patch
        "${FILESDIR}"/${PN}-1.8.1-libnl.patch
        "${FILESDIR}"/${PN}-1.8.1-usbmon.patch
+       "${FILESDIR}"/${PN}-9999-parallel.patch
 )
 
 src_prepare() {
        default
 
-       eapply_user
-
        echo ${PV} > VERSION || die
 
        eautoreconf
index a8f06895f6d25951c90d5c1074edc5dbba400504..cbce63e8d61ca07887cf9b950c505b920647d979 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit autotools eutils multilib-minimal
+inherit autotools multilib-minimal ltprune
 
 DESCRIPTION="A system-independent library for user-level network packet capture"
 HOMEPAGE="
@@ -39,6 +39,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.8.1-libnl.patch
        "${FILESDIR}"/${PN}-1.8.1-usbmon.patch
        "${FILESDIR}"/${PN}-1.8.1-disable-remote.patch
+       "${FILESDIR}"/${PN}-9999-parallel.patch
 )
 
 src_prepare() {
index 3a8543b92dd7b2bf3d437a124bce3339de15d631..e362e19d2b4d3d88c9b36d80eb8cd22cc9bb751b 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit autotools eutils multilib-minimal
+inherit autotools multilib-minimal ltprune
 
 DESCRIPTION="A system-independent library for user-level network packet capture"
 HOMEPAGE="
@@ -38,13 +38,12 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.8.1-darwin.patch
        "${FILESDIR}"/${PN}-1.8.1-libnl.patch
        "${FILESDIR}"/${PN}-1.8.1-usbmon.patch
+       "${FILESDIR}"/${PN}-9999-parallel.patch
 )
 
 src_prepare() {
        default
 
-       eapply_user
-
        echo ${PV} > VERSION || die
 
        eautoreconf
index f7dcbffb9bf80071e573a7fddd57ecb4df087d5b..ad1d9345153022a4ac84531d26fe233cef03d88f 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit autotools eutils git-r3 multilib-minimal
+inherit autotools git-r3 multilib-minimal ltprune
 
 DESCRIPTION="A system-independent library for user-level network packet capture"
 EGIT_REPO_URI="https://github.com/the-tcpdump-group/libpcap"
@@ -31,7 +31,6 @@ DEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.6.1-prefix-solaris.patch
-       "${FILESDIR}"/${PN}-9999-libnl.patch
        "${FILESDIR}"/${PN}-9999-prefix-darwin.patch
 )
 
@@ -55,7 +54,7 @@ multilib_src_compile() {
 }
 
 multilib_src_install_all() {
-       dodoc CREDITS CHANGES VERSION TODO README{,.dag,.linux,.macosx,.septel}
+       dodoc CREDITS CHANGES VERSION TODO README*
 
        # remove static libraries (--disable-static does not work)
        if ! use static-libs; then