Gentoo Archives: gentoo-commits

From: Marc Schiffbauer <mschiff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/ldns/, net-libs/ldns/files/
Date: Sun, 29 Sep 2019 13:50:22
Message-Id: 1569764989.0df4386ba600726361146039e8246f2ec490e6ea.mschiff@gentoo
1 commit: 0df4386ba600726361146039e8246f2ec490e6ea
2 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 29 13:43:42 2019 +0000
4 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 29 13:49:49 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0df4386b
7
8 net-libs/ldns: reorder linking sources
9
10 fixes #641598
11
12 Package-Manager: Portage-2.3.66, Repoman-2.3.16
13 Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>
14
15 net-libs/ldns/files/ldns-1.7.1-Makefile.patch | 11 +++++++++++
16 net-libs/ldns/ldns-1.7.1-r1.ebuild | 5 ++---
17 2 files changed, 13 insertions(+), 3 deletions(-)
18
19 diff --git a/net-libs/ldns/files/ldns-1.7.1-Makefile.patch b/net-libs/ldns/files/ldns-1.7.1-Makefile.patch
20 new file mode 100644
21 index 00000000000..d654bbda613
22 --- /dev/null
23 +++ b/net-libs/ldns/files/ldns-1.7.1-Makefile.patch
24 @@ -0,0 +1,11 @@
25 +--- Makefile.in.orig 2019-09-29 15:17:24.728446345 +0200
26 ++++ Makefile.in 2019-09-29 15:18:09.544008785 +0200
27 +@@ -301,7 +301,7 @@
28 + $(COMP_LIB) -I./include/ldns $(LIBSSL_CPPFLAGS) $(PYTHON_CPPFLAGS) $(PYTHON_X_CFLAGS) -c $(pywrapdir)/ldns_wrapper.c -o $@
29 +
30 + _ldns.la: ldns_wrapper.lo libldns.la
31 +- $(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) $(PYTHON_CFLAGS) $(LDFLAGS) $(PYTHON_LDFLAGS) -module -version-info $(version_info) -no-undefined -o $@ ldns_wrapper.lo -rpath $(python_site) -L. -L.libs -lldns $(LIBS)
32 ++ $(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) $(PYTHON_CFLAGS) -module -version-info $(version_info) -no-undefined -o $@ ldns_wrapper.lo -rpath $(python_site) -L. -L.libs -lldns $(LDFLAGS) $(PYTHON_LDFLAGS) $(LIBS)
33 +
34 + $(p5_dns_ldns_dir)/Makefile: $(p5_dns_ldns_dir)/Makefile.PL
35 + BUILDDIR=`pwd`; cd $(p5_dns_ldns_dir); LD_LIBRARY_PATH="$$BUILDDIR/.libs:$$LD_LIBRARY_PATH" DYLD_LIBRARY_PATH="$$BUILDDIR/.libs:$$DYLD_LIBRARY_PATH" $(PERL) Makefile.PL LIBS="-L$$BUILDDIR/.libs -lldns" INC="-I$$BUILDDIR"
36
37 diff --git a/net-libs/ldns/ldns-1.7.1-r1.ebuild b/net-libs/ldns/ldns-1.7.1-r1.ebuild
38 index c01ece38615..071708308e4 100644
39 --- a/net-libs/ldns/ldns-1.7.1-r1.ebuild
40 +++ b/net-libs/ldns/ldns-1.7.1-r1.ebuild
41 @@ -2,7 +2,7 @@
42 # Distributed under the terms of the GNU General Public License v2
43
44 EAPI=6
45 -PYTHON_COMPAT=( python2_7 python3_5 )
46 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
47 inherit eutils multilib-minimal python-single-r1
48
49 DESCRIPTION="a library with the aim to simplify DNS programming in C"
50 @@ -74,8 +74,7 @@ multilib_src_configure() {
51
52 src_prepare() {
53 default
54 - #epatch "${FILESDIR}/${P}-CVE-2017-1000231.patch"
55 - #epatch "${FILESDIR}/${P}-CVE-2017-1000232.patch"
56 + epatch "${FILESDIR}/${P}-Makefile.patch"
57 # remove non-existing dependency for target packaging/libldns.pc
58 sed -i 's,packaging/libldns.pc.in,,' "${S}"/Makefile.in || die 'could not patch Makefile.in'
59 }