python requires in libunbound.pc

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!

(attachments)

0002-Do-not-export-python-from-pkg-config.patch (934 Bytes)