python requires in libunbound.pc

Petr Menšík pemensik at redhat.com
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:
https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4109

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 _unbound.so 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?

Thanks!

-- 
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik at redhat.com  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: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20180626/353f0d5f/attachment.bin>


More information about the Unbound-users mailing list