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
*** This bug has been marked as a duplicate of bug 546092 ***