bpo-32521: nis libtirpc (GH-5137) (#5166) · python/cpython@ab95b30 (original) (raw)

`@@ -1349,12 +1349,19 @@ class db_found(Exception): pass

`

1349

1349

`# Sun yellow pages. Some systems have the functions in libc.

`

1350

1350

`if (host_platform not in ['cygwin', 'atheos', 'qnx6'] and

`

1351

1351

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

`

1352

``

`-

if (self.compiler.find_library_file(lib_dirs, 'nsl')):

`

1353

``

`-

libs = ['nsl']

`

1354

``

`-

else:

`

1355

``

`-

libs = []

`

``

1352

`+

nis_libs = []

`

``

1353

`+

nis_includes = []

`

``

1354

`+

if self.compiler.find_library_file(lib_dirs, 'nsl'):

`

``

1355

`+

nis_libs.append('nsl')

`

``

1356

`+

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

`

``

1357

`+

Sun RPC has been moved from glibc to libtirpc

`

``

1358

`+

rpcsvc/yp_prot.h is still in /usr/include, but

`

``

1359

`+

rpc/rpc.h has been moved into tirpc/ subdir.

`

``

1360

`+

nis_libs.append('tirpc')

`

``

1361

`+

nis_includes.append('/usr/include/tirpc')

`

1356

1362

`exts.append( Extension('nis', ['nismodule.c'],

`

1357

``

`-

libraries = libs) )

`

``

1363

`+

libraries = nis_libs,

`

``

1364

`+

include_dirs=nis_includes) )

`

1358

1365

`else:

`

1359

1366

`missing.append('nis')

`

1360

1367

`else:

`