@@ -, +, @@ so far. --- dev-lang/python/files/3.6-nis.patch | 23 +++++++++++++++++++++++ dev-lang/python/python-3.6.3.ebuild | 12 +++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 dev-lang/python/files/3.6-nis.patch --- a/dev-lang/python/files/3.6-nis.patch +++ a/dev-lang/python/files/3.6-nis.patch @@ -0,0 +1,23 @@ +diff --git a/setup.py b/setup.py +index 51e5d7eff7..4ea1008d5c 100644 +--- a/setup.py ++++ b/setup.py +@@ -1350,12 +1350,17 @@ class PyBuildExt(build_ext): + exts.append( Extension('resource', ['resource.c']) ) + + # Sun yellow pages. Some systems have the functions in libc. ++ # We add the include dir of libtirpc in case we need it. ++ inc_dirs.append('/usr/include/tirpc') + if (host_platform not in ['cygwin', 'qnx6'] and +- find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None): ++ find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None and ++ find_file('rpc/rpc.h', inc_dirs, []) is not None): + if (self.compiler.find_library_file(lib_dirs, 'nsl')): + libs = ['nsl'] + else: + libs = [] ++ if (self.compiler.find_library_file(lib_dirs, 'tirpc')): ++ libs.append('tirpc') + exts.append( Extension('nis', ['nismodule.c'], + libraries = libs) ) + else: --- a/dev-lang/python/python-3.6.3.ebuild +++ a/dev-lang/python/python-3.6.3.ebuild @@ -46,7 +46,12 @@ RDEPEND="app-arch/bzip2:0= dev-tcltk/tix ) xml? ( >=dev-libs/expat-2.1:0= ) - !!