Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 561560

Summary: net-dns/dnsmasq-2.7* doesn't build against dev-libs/nettle-3.1.1
Product: Gentoo Linux Reporter: jo77ah
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: RESOLVED DUPLICATE    
Severity: normal CC: toralf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log of net-dns/dnsmasq-2.75

Description jo77ah 2015-09-26 13:21:02 UTC
While updating gentoo, dnsmasq no longer compiles with the new nettle version.

Reproducible: Always

Steps to Reproduce:
1. update dev-libs/nettle to version 3.1.1
2. emerge @preserved-rebuild wants to rebuild dnsmasq
3. emerge fails
Comment 1 jo77ah 2015-09-26 13:22:12 UTC
Created attachment 412974 [details]
build.log of net-dns/dnsmasq-2.75
Comment 2 Agostino Sarubbo gentoo-dev 2015-09-26 16:56:33 UTC
It works for me also for me for stable/unstable versions:


(chroot) vh prova2 # qlop -l | tail -3
Sat Sep 26 16:49:14 2015 >>> dev-libs/nettle-3.1.1
Sat Sep 26 16:50:19 2015 >>> net-dns/dnsmasq-2.72-r2
Sat Sep 26 16:54:24 2015 >>> net-dns/dnsmasq-2.75
Comment 3 jo77ah 2015-09-26 21:59:26 UTC
If i disable dnssec it works:

$> emerge -avuND @world
$> USE="$USE -dnssec" emerge -av dnsmasq
$> qlop -l | tail 2
Sat Sep 26 23:53:02 2015 >>> dev-libs/nettle-3.1.1
Sat Sep 26 23:54:12 2015 >>> net-dns/dnsmasq-2.72-r2
Comment 4 jo77ah 2015-09-27 22:23:25 UTC
I figured it out:

The error is in /usr/lib64/pkgconfig/hogweed.pc, which is installed by nettle in combination with dev-util/pkgconf-0.9.3-r1.

The # in the "Libs:" line makes pkgconf throw an error and "-lhogweed -lnettle" are missing while linking:

$> pkg-config --libs hogweed
Package # was not found in the pkg-config search path.
Perhaps you should add the directory containing `#.pc'
to the PKG_CONFIG_PATH environment variable
Package '#', required by 'hogweed', not found

Affected are 
dev-util/pkgconf-0.9.3-r1
dev-util/pkgconf-0.9.6
dev-util/pkgconf-0.9.8

It works with
dev-util/pkgconf-0.9.11
dev-util/pkgconfig-0.20-r2

I'm not sure if dev-util/pkgconf or dev-libs/nettle-3.1.1 need fixing. Because a grep shows, that nettle is the only package on my system, which has a # on the "Libs:" line:

$> grep "^Libs:.*\#" /usr/lib64/pkgconfig/*pc
/usr/lib64/pkgconfig/hogweed.pc:Libs: -L${libdir} -lhogweed # -lgmp


Depending on the right solution, the title of the bug should be edited.
Comment 5 jo77ah 2015-09-28 10:35:52 UTC

*** This bug has been marked as a duplicate of bug 546092 ***
Comment 6 Patrick McLean gentoo-dev 2015-10-04 02:34:40 UTC
*** Bug 562144 has been marked as a duplicate of this bug. ***