Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604708 - net-libs/nghttp2-1.18.0[utils] - missing dependency on net-dns/c-ares
Summary: net-libs/nghttp2-1.18.0[utils] - missing dependency on net-dns/c-ares
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 605468 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-01-05 00:38 UTC by David Roman
Modified: 2017-01-20 19:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Roman 2017-01-05 00:38:09 UTC
When emerging net-libs/nghttp2-1.18.0 in the configuration step I got the next error:

configure: Package libcares was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcares.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libcares', required by 'world', not found
configure: error: applications were requested (--enable-app) but dependencies are not met.

--

It seems that it's necessary to install "net-dns/c-ares".
Comment 1 Seong-ho Cho 2017-01-06 02:38:21 UTC
David's way helps me. It works! Thank you! 1+
Comment 2 Psi 2017-01-07 23:50:59 UTC
When the "utils" local USE flag is enabled, =net-libs/nghttp2-1.18* has a build and run-time dependency on >=net-dns/c-ares-1.7.5.  The "utils" USE flag causes --enable-app to be passed to ./configure, triggering the dependencies.

I see the same thing as David in my config.log.  Additionally, this line jumped out at me, hence the minimum version:

configure: $PKG_CONFIG --exists --print-errors "libcares >= 1.7.5"

A check of installed binaries/libraries shows that /usr/bin/nghttpx, installed when "utils" is enabled, links against libcares.so.2, making this a definite run-time dep as well.  FWIW, /usr/bin/nghttpx is the only file in the package which links to that library, at least on my system.

The ebuild simply needs >=net-dns/c-ares-1.7.5 added to the utils?() conditional in RDEPEND to fix this.

Or one can just do what David said for the really quick fix. :-)
Comment 3 James Ausmus 2017-01-19 23:48:57 UTC
Created a pull request to resolve the issue for both the 1.18.1 and the 9999 ebuild - https://github.com/gentoo/gentoo/pull/3553
Comment 4 James Ausmus 2017-01-19 23:59:36 UTC
And now a pull request with less "git commit -s -a"... <sigh>
https://github.com/gentoo/gentoo/pull/3554
Comment 5 SpanKY gentoo-dev 2017-01-20 19:27:56 UTC
*** Bug 605468 has been marked as a duplicate of this bug. ***