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

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

`

1373

1373

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

`

1374

1374

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

`

1375

1375

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

`

1376

``

`-

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

`

1377

``

`-

libs = ['nsl']

`

1378

``

`-

else:

`

1379

``

`-

libs = []

`

``

1376

`+

nis_libs = []

`

``

1377

`+

nis_includes = []

`

``

1378

`+

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

`

``

1379

`+

nis_libs.append('nsl')

`

``

1380

`+

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

`

``

1381

`+

Sun RPC has been moved from glibc to libtirpc

`

``

1382

`+

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

`

``

1383

`+

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

`

``

1384

`+

nis_libs.append('tirpc')

`

``

1385

`+

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

`

1380

1386

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

`

1381

``

`-

libraries = libs) )

`

``

1387

`+

libraries = nis_libs,

`

``

1388

`+

include_dirs=nis_includes) )

`

1382

1389

`else:

`

1383

1390

`missing.append('nis')

`

1384

1391

`else:

`