Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472196 - net-libs/gnutls-3.2.1 creates unusable pkgconfig file - Package 'gmp', required by 'gnutls', not found
Summary: net-libs/gnutls-3.2.1 creates unusable pkgconfig file - Package 'gmp', requir...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-03 18:14 UTC by Ben Kohler
Modified: 2013-06-03 20:16 UTC (History)
1 user (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 Ben Kohler gentoo-dev 2013-06-03 18:14:10 UTC
The newly applied gnutls-3.2.1-build-gmp.patch causes net-libs/gnutls-3.2.1 to create a gnutls.pc which requires a non-existant gmp.pc.  This causes build errors in most packages building against gnutls, like glib-networking.

# pkg-config --exists --print-errors gnutls
Package gmp was not found in the pkg-config search path.
Perhaps you should add the directory containing `gmp.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gmp', required by 'gnutls', not found
#

I don't know enough about pkg-config to pinpoint the problem, but it seems that adding pkg-config deps on nettle/hogweed is making it also pull gmp into Requires.private.  Below is the diff between gnutls.pc with the ebuild applying gnutls-3.2.1-build-gmp.patch, and without.


# diff -u gnutls.pc.unpatched gnutls.pc.patched
--- gnutls.pc.unpatched	2013-06-03 13:02:54.680492561 -0500
+++ gnutls.pc.patched	2013-06-03 13:11:23.369581728 -0500
@@ -20,5 +20,5 @@
 Version: 3.2.1
 Libs: -L${libdir} -lgnutls
 Libs.private: -L/usr/lib64 -lz       
-Requires.private: nettle, hogweed, zlib
+Requires.private: nettle, hogweed, gmp, zlib
 Cflags: -I${includedir}
#
Comment 1 Jason A. Donenfeld gentoo-dev 2013-06-03 19:25:31 UTC
This indeed causes problems build various things -- lftp, filezilla, for example.
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2013-06-03 20:16:57 UTC
Right. Sorry, already found this while working with upstream, today upstream committed the proper fix for this issue and bug#472056.

Fixed in gnutls-3.2.1-r1.