gnupg2: Update from 2.2.5 to 2.2.6
[termux-packages] / packages / python / setup.py.patch
CommitLineData
3152547b
FF
1diff -u -r ../Python-3.5.0/setup.py ./setup.py
2--- ../Python-3.5.0/setup.py 2015-09-13 07:41:26.000000000 -0400
3+++ ./setup.py 2015-11-07 17:31:45.332321322 -0500
4@@ -592,7 +592,8 @@
59f0d218
FF
5 libraries=math_libs) )
6
7 # time libraries: librt may be needed for clock_gettime()
8- time_libs = []
9+ # math_libs is needed by floatsleep()
10+ time_libs = list(math_libs)
11 lib = sysconfig.get_config_var('TIMEMODULE_LIB')
12 if lib:
13 time_libs.append(lib)
3152547b 14@@ -651,7 +652,8 @@
59f0d218
FF
15 missing.append('spwd')
16
17 # select(2); not on ancient System V
18- exts.append( Extension('select', ['selectmodule.c']) )
19+ # selectmodule.c calls the ceil(3) math function
20+ exts.append( Extension('select', ['selectmodule.c'], libraries=math_libs) )
21
22 # Fred Drake's interface to the Python parser
23 exts.append( Extension('parser', ['parsermodule.c']) )
3152547b
FF
24@@ -661,7 +663,8 @@
25
26 # Lance Ellinghaus's syslog module
27 # syslog daemon interface
28- exts.append( Extension('syslog', ['syslogmodule.c']) )
29+ # Termux: Add 'log' android library since we use android logging:
30+ exts.append( Extension('syslog', ['syslogmodule.c'], libraries=['log']) )
31
32 #
33 # Here ends the simple stuff. From here on, modules need certain