public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-libs/daq/files/, net-libs/daq/
@ 2018-12-18 14:16 Jeroen Roovers
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2018-12-18 14:16 UTC (permalink / raw
  To: gentoo-commits

commit:     ec97c7ca0bf2b577b0555fa9ffa30d29b89051b5
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 18 14:15:57 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Dec 18 14:16:06 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec97c7ca

net-libs/daq: Fix parallel make again

Fixes: https://bugs.gentoo.org/673390
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-libs/daq/daq-2.0.6.ebuild                       |  3 +++
 net-libs/daq/files/daq-2.0.6-parallel-grammar.patch | 20 ++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/net-libs/daq/daq-2.0.6.ebuild b/net-libs/daq/daq-2.0.6.ebuild
index 42db1344051..5b5742cc309 100644
--- a/net-libs/daq/daq-2.0.6.ebuild
+++ b/net-libs/daq/daq-2.0.6.ebuild
@@ -27,6 +27,9 @@ DEPEND="
 	pcap? ( ${PCAP_DEPEND} )
 "
 RDEPEND="${DEPEND}"
+PATCHES=(
+	"${FILESDIR}"/${PN}-2.0.6-parallel-grammar.patch #673390
+)
 
 src_prepare() {
 	default

diff --git a/net-libs/daq/files/daq-2.0.6-parallel-grammar.patch b/net-libs/daq/files/daq-2.0.6-parallel-grammar.patch
new file mode 100644
index 00000000000..1911caf72ea
--- /dev/null
+++ b/net-libs/daq/files/daq-2.0.6-parallel-grammar.patch
@@ -0,0 +1,20 @@
+https://bugs.gentoo.org/673390
+
+--- a/sfbpf/Makefile.am
++++ b/sfbpf/Makefile.am
+@@ -43,13 +43,14 @@
+ libsfbpf_la_LDFLAGS = -version-info 0:1:0 @XCCFLAGS@
+ 
+ # use of $@ and $< here is a GNU idiom that borks BSD
+-sf_scanner.c: $(srcdir)/scanner.l
++sf_scanner.c: $(srcdir)/scanner.l tokdefs.h
+ 	@rm -f $(srcdir)/sf_scanner.c
+ 	$(srcdir)/runlex.sh $(V_LEX) -osf_scanner.c $(srcdir)/scanner.l
+ 
+ sf_scanner.o: sf_scanner.c tokdefs.h
+ 
+ tokdefs.h: sf_grammar.c
++
+ sf_grammar.c: $(srcdir)/grammar.y
+ 	@rm -f sf_grammar.c tokdefs.h
+ 	$(V_YACC) -d $(srcdir)/grammar.y


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-libs/daq/files/, net-libs/daq/
@ 2018-12-18 15:03 Jeroen Roovers
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers @ 2018-12-18 15:03 UTC (permalink / raw
  To: gentoo-commits

commit:     4b8a9dc1aee5aee1e94a70c3ca35d45d3fd9a039
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 18 15:02:58 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Dec 18 15:03:15 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b8a9dc1

net-libs/daq: Fix USE=static-libs

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 .../daq/{daq-2.0.6.ebuild => daq-2.0.6-r1.ebuild}  |  10 +-
 net-libs/daq/files/daq-2.0.6-static-libs.patch     | 151 +++++++++++++++++++++
 2 files changed, 157 insertions(+), 4 deletions(-)

diff --git a/net-libs/daq/daq-2.0.6.ebuild b/net-libs/daq/daq-2.0.6-r1.ebuild
similarity index 95%
rename from net-libs/daq/daq-2.0.6.ebuild
rename to net-libs/daq/daq-2.0.6-r1.ebuild
index 5b5742cc309..ff91d75a4a1 100644
--- a/net-libs/daq/daq-2.0.6.ebuild
+++ b/net-libs/daq/daq-2.0.6-r1.ebuild
@@ -29,6 +29,7 @@ DEPEND="
 RDEPEND="${DEPEND}"
 PATCHES=(
 	"${FILESDIR}"/${PN}-2.0.6-parallel-grammar.patch #673390
+	"${FILESDIR}"/${PN}-2.0.6-static-libs.patch
 )
 
 src_prepare() {
@@ -42,15 +43,16 @@ src_configure() {
 	# cross-compiling doesn't break on us.
 	daq_cv_libpcap_version_1x=yes \
 	econf \
-		$(use_enable ipv6) \
-		$(use_enable pcap pcap-module) \
 		$(use_enable afpacket afpacket-module) \
 		$(use_enable dump dump-module) \
-		$(use_enable nfq nfq-module) \
 		$(use_enable ipq ipq-module) \
+		$(use_enable ipv6) \
+		$(use_enable nfq nfq-module) \
+		$(use_enable pcap pcap-module) \
 		$(use_enable static-libs static) \
+		--disable-bundled-modules \
 		--disable-ipfw-module \
-		--disable-bundled-modules
+		--enable-shared
 }
 
 DOCS=( ChangeLog README )

diff --git a/net-libs/daq/files/daq-2.0.6-static-libs.patch b/net-libs/daq/files/daq-2.0.6-static-libs.patch
new file mode 100644
index 00000000000..fb91c2c39e4
--- /dev/null
+++ b/net-libs/daq/files/daq-2.0.6-static-libs.patch
@@ -0,0 +1,151 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -268,7 +268,8 @@
+ 
+ AC_CHECK_LIB([dl], [dlopen], [LIBDL="-ldl"])
+ 
+-AM_CONDITIONAL([BUILD_SHARED_MODULES], [ test "$enable_shared" = yes ])
++AM_CONDITIONAL([BUILD_STATIC_LIBRARIES], [ test "$enable_shared" = no ])
++AM_CONDITIONAL([BUILD_STATIC_MODULES], [ test "$enable_shared" = no ])
+ 
+ # Checks for header files.
+ AC_CHECK_HEADERS([inttypes.h memory.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h])
+--- a/api/Makefile.am
++++ b/api/Makefile.am
+@@ -4,12 +4,15 @@
+ 
+ include_HEADERS = daq.h daq_api.h daq_common.h
+ 
+-lib_LTLIBRARIES = libdaq.la libdaq_static.la
++lib_LTLIBRARIES = libdaq.la
++
++if BUILD_STATIC_LIBRARIES
++    lib_LTLIBRARIES += libdaq_static.la
++    libdaq_static_la_SOURCES = daq_base.c daq_mod_ops.c daq.h daq_api.h daq_common.h
++    libdaq_static_la_CFLAGS = -DSTATIC_MODULE_LIST
++    libdaq_static_la_LDFLAGS = -static
++endif
+ 
+ libdaq_la_SOURCES = daq_base.c daq_mod_ops.c daq.h daq_api.h daq_common.h
+ libdaq_la_LDFLAGS = -version-info 2:4:0 @XCCFLAGS@
+ libdaq_la_LIBADD = @LIBDL@
+-
+-libdaq_static_la_SOURCES = daq_base.c daq_mod_ops.c daq.h daq_api.h daq_common.h
+-libdaq_static_la_CFLAGS = -DSTATIC_MODULE_LIST
+-libdaq_static_la_LDFLAGS = -static
+--- a/os-daq-modules/Makefile.am
++++ b/os-daq-modules/Makefile.am
+@@ -6,7 +6,9 @@
+ 
+ pkglib_LTLIBRARIES =
+ 
+-lib_LTLIBRARIES = libdaq_static_modules.la
++if BUILD_STATIC_MODULES
++    pkglib_LTLIBRARIES += libdaq_static_modules.la
++endif
+ libdaq_static_modules_la_SOURCES = \
+ daq_static_modules.c \
+ daq_static_modules.h
+@@ -15,88 +17,88 @@
+ libdaq_static_modules_la_LIBADD =
+ 
+ if BUILD_AFPACKET_MODULE
+-if BUILD_SHARED_MODULES
+     pkglib_LTLIBRARIES += daq_afpacket.la
+     daq_afpacket_la_SOURCES = daq_afpacket.c
+     daq_afpacket_la_CFLAGS = -DBUILDING_SO
+     daq_afpacket_la_LDFLAGS = -module -export-dynamic -avoid-version -shared @XCCFLAGS@
+     daq_afpacket_la_LIBADD = $(top_builddir)/sfbpf/libsfbpf.la
+-endif
++if BUILD_STATIC_MODULES
+     libdaq_static_modules_la_SOURCES += daq_afpacket.c
+     libdaq_static_modules_la_CFLAGS += -DBUILD_AFPACKET_MODULE
+ endif
++endif
+ 
+ if BUILD_PCAP_MODULE
+-if BUILD_SHARED_MODULES
+     pkglib_LTLIBRARIES += daq_pcap.la
+     daq_pcap_la_SOURCES = daq_pcap.c
+     daq_pcap_la_CFLAGS = -DBUILDING_SO
+     daq_pcap_la_LDFLAGS = -module -export-dynamic -avoid-version -shared @XCCFLAGS@
+     daq_pcap_la_LIBADD = -lpcap
+-endif
++if BUILD_STATIC_MODULES
+     libdaq_static_modules_la_SOURCES += daq_pcap.c
+     libdaq_static_modules_la_CFLAGS += -DBUILD_PCAP_MODULE
+ endif
++endif
+ 
+ if BUILD_DUMP_MODULE
+-if BUILD_SHARED_MODULES
+     pkglib_LTLIBRARIES += daq_dump.la
+     daq_dump_la_SOURCES = daq_dump.c
+     daq_dump_la_CFLAGS = -DBUILDING_SO
+     daq_dump_la_LDFLAGS = -module -export-dynamic -avoid-version -shared @XCCFLAGS@
+     daq_dump_la_LIBADD = -lpcap
+-endif
++if BUILD_STATIC_MODULES
+     libdaq_static_modules_la_SOURCES += daq_dump.c
+     libdaq_static_modules_la_CFLAGS += -DBUILD_DUMP_MODULE
+ endif
++endif
+ 
+ if BUILD_IPFW_MODULE
+-if BUILD_SHARED_MODULES
+     pkglib_LTLIBRARIES += daq_ipfw.la
+     daq_ipfw_la_SOURCES = daq_ipfw.c
+     daq_ipfw_la_CFLAGS = -DBUILDING_SO
+     daq_ipfw_la_LDFLAGS = -module -export-dynamic -avoid-version -shared @XCCFLAGS@
+     daq_ipfw_la_LIBADD = $(top_builddir)/sfbpf/libsfbpf.la
+-endif
++if BUILD_STATIC_MODULES
+     libdaq_static_modules_la_SOURCES += daq_ipfw.c
+     libdaq_static_modules_la_CFLAGS += -DBUILD_IPFW_MODULE
+ endif
++endif
+ 
+ if BUILD_IPQ_MODULE
+-if BUILD_SHARED_MODULES
+     pkglib_LTLIBRARIES += daq_ipq.la
+     daq_ipq_la_SOURCES = daq_ipq.c
+     daq_ipq_la_CFLAGS = -DBUILDING_SO
+     daq_ipq_la_LDFLAGS = -module -export-dynamic -avoid-version -shared @DNET_LDFLAGS@ @XCCFLAGS@
+     daq_ipq_la_LIBADD = -lipq @DNET_LDFLAGS@ $(top_builddir)/sfbpf/libsfbpf.la
+-endif
++if BUILD_STATIC_MODULES
+     libdaq_static_modules_la_SOURCES += daq_ipq.c
+     libdaq_static_modules_la_CFLAGS += -DBUILD_IPQ_MODULE
+ endif
++endif
+ 
+ if BUILD_NFQ_MODULE
+-if BUILD_SHARED_MODULES
+     pkglib_LTLIBRARIES += daq_nfq.la
+     daq_nfq_la_SOURCES = daq_nfq.c
+     daq_nfq_la_CFLAGS = -DBUILDING_SO
+     daq_nfq_la_LDFLAGS = -module -export-dynamic -avoid-version -shared @DNET_LDFLAGS@ @XCCFLAGS@
+     daq_nfq_la_LIBADD = -lnfnetlink -lnetfilter_queue @DNET_LDFLAGS@ $(top_builddir)/sfbpf/libsfbpf.la
+-endif
++if BUILD_STATIC_MODULES
+     libdaq_static_modules_la_SOURCES += daq_nfq.c
+     libdaq_static_modules_la_CFLAGS += -DBUILD_NFQ_MODULE
+ endif
++endif
+ 
+ if BUILD_NETMAP_MODULE
+-if BUILD_SHARED_MODULES
+     pkglib_LTLIBRARIES += daq_netmap.la
+     daq_netmap_la_SOURCES = daq_netmap.c
+     daq_netmap_la_CFLAGS = -DBUILDING_SO
+     daq_netmap_la_LDFLAGS = -module -export-dynamic -avoid-version -shared @XCCFLAGS@
+     daq_netmap_la_LIBADD = $(top_builddir)/sfbpf/libsfbpf.la
+-endif
++if BUILD_STATIC_MODULES
+     libdaq_static_modules_la_SOURCES += daq_netmap.c
+     libdaq_static_modules_la_CFLAGS += -DBUILD_NETMAP_MODULE
+ endif
++endif
+ 
+ AM_CPPFLAGS = -I$(top_srcdir)/api -I$(top_srcdir)/sfbpf -I$(top_builddir)/sfbpf
+ 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-18 15:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-18 15:03 [gentoo-commits] repo/gentoo:master commit in: net-libs/daq/files/, net-libs/daq/ Jeroen Roovers
  -- strict thread matches above, loose matches on Subject: below --
2018-12-18 14:16 Jeroen Roovers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox