bpo-32521: nis libtirpc by tiran · Pull Request #5137 · python/cpython (original) (raw)

With this change, setup.py first checks if rpcsvc/yp_prot.h is available:

find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None

and then it checks if libtirpc is available:

self.compiler.find_library_file(lib_dirs, 'tirpc')

If libtirpc is available, it pass /usr/include/tirpc in include directories to build nismodule.c.

In Fedora 27, rpcsvc/yp_prot.h is provided by glibc-headers. In Fedora rawhide (future F28), it's still provided by glibc-headers. It may be provided by a different package (rpcsvc-proto) in the future: https://bugzilla.redhat.com/show_bug.cgi?id=1532364

The PR is correct since rpcsvc/yp_prot.h will remain in /usr/include (full path: /usr/include/rpcsvc/yp_prot.h) even if it will be provided by a different package in Fedora 28.