commit:     a9fb0f0c1c8ce2f4d8c06de5988df96627b41eac
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  1 11:35:42 2021 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Wed Dec  1 11:40:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9fb0f0c

net-libs/ldns: fix LDFLAGS in pkg-config (#695672)

Closes: https://bugs.gentoo.org/695672
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>

 net-libs/ldns/ldns-1.8.0-r1.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net-libs/ldns/ldns-1.8.0-r1.ebuild 
b/net-libs/ldns/ldns-1.8.0-r1.ebuild
index 71986a0e0f92..5d48f102da5c 100644
--- a/net-libs/ldns/ldns-1.8.0-r1.ebuild
+++ b/net-libs/ldns/ldns-1.8.0-r1.ebuild
@@ -81,6 +81,9 @@ src_prepare() {
        # remove $(srcdir) from path for multilib build
        sed -i 's,$(srcdir)/packaging/libldns.pc,packaging/libldns.pc,' 
"${S}"/Makefile.in || die 'could not patch Makefile.in'
 
+       # remove Libs.private, see bug #695672
+       sed -i '/^Libs.private:/d' "${S}"/packaging/libldns.pc.in || die 'could 
not patch libldns.pc.in'
+
        # backport 
https://github.com/NLnetLabs/ldns/commit/bc9d017f6fd8b6b5d2ff6e4489a2931d0aab8184
        sed -i 's/AC_SUBST(VERSION_INFO.*/AC_SUBST(VERSION_INFO, [5:0:2])/' 
"${S}"/configure.ac || die 'could not patch configure.ac'
 

Reply via email to