python requires in libunbound.pc

Petr Menšík pemensik at
Tue Jun 26 17:42:24 UTC 2018

Hello everyone,

is there good reason to include always "Requires: python" in
libunbound.pc, when --with-pythonmodule --with-pyunbound configure flags
are used? I want to build python3 only version in Fedora. I can use
PYTHON=python3 to choose different python. But I found no way to change
default pkg-config libunbound requires. In Fedora there is different
pkg-config files for python2 and python3. I checked Debian uses
different directories, both has got minor versions as well.

I filled a new bug for it:

I would like to ask though. Is it even useful to export python library
and flags in pkg-config? In what cases would I need these libraries? I
think it is used only to build python native library. Is it
expected to link against this library? It is not so versioned, it seems
private to me. I removed these flags in Fedora and no one complained. I
think it should be removed or at least moved into Requires.private:
section. Am I missing something important?


Petr Menšík
Software Engineer
Red Hat,
email: pemensik at  PGP: 65C6C973
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Do-not-export-python-from-pkg-config.patch
Type: text/x-patch
Size: 934 bytes
Desc: not available
URL: <>

More information about the Unbound-users mailing list