Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554746 - dev-libs/nettle-3.1.1: generates corrupt pkg_config file hogweed.pc
Summary: dev-libs/nettle-3.1.1: generates corrupt pkg_config file hogweed.pc
Status: RESOLVED DUPLICATE of bug 546092
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: 2015-07-13 13:25 UTC by Jonas Jelten
Modified: 2015-07-17 14:12 UTC (History)
2 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 Jonas Jelten 2015-07-13 13:25:16 UTC
The generation template:
...
Version: @PACKAGE_VERSION@
Requires: @IF_NOT_SHARED@ nettle
Requires.private: @IF_SHARED@ nettle
Libs: -L${libdir} -lhogweed @IF_NOT_SHARED@ @LIBS@
Libs.private: @IF_SHARED@ @LIBS@
Cflags: -I${includedir}
...

Results to this real file on my machine (hogweed.pc):
Description: Nettle low-level cryptographic library (public-key algorithms)
URL: http://www.lysator.liu.se/~nisse/nettle
Version: 3.1.1
Requires: # nettle
Requires.private:  nettle
Libs: -L${libdir} -lhogweed # -lgmp 
Libs.private:  -lgmp 
Cflags: -I${includedir}


This leads to gnutls fail to build:
checking for NETTLE... yes
checking for HOGWEED... no
configure: error: 
  ***
  *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.

The above is using pkg_config with the following call:
pkg-config --exists --print-errors "hogweed >= 2.7"

which will error:
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


-> don't use # do ignore values in the pkg-config file to fix the build.

Reproducible: Always
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2015-07-17 14:12:50 UTC

*** This bug has been marked as a duplicate of bug 546092 ***