termux-packages/packages/serf/sconstruct.patch
vhqtvn 124efc9dd9
package updates & build issue fixes (#6919)
aptly: fix build failure

dpkg: fix $TERMUX_ARCH in configure script

gotty: switch to up-to-date upstream

minicom: update source url

ncurses: force build with -fPIC

newsboat: update to 2.23

ovmf: update to 20210421.18.g15ee7b7689

pforth: update to 20210315

pup: build with GO111MODULE=off

rcshell: update source url

remind: update to 03.03.07

tweego: update to 2.1.1

virustotal-cli: update to 0.9.6

docker image: install some missing build tools
2021-05-29 14:41:04 +03:00

39 lines
1.3 KiB
Diff

--- src/SConstruct 2021-05-17 10:52:36.910193982 +0000
+++ src/SConstruct 2021-05-17 10:53:54.856878859 +0000
@@ -155,6 +155,7 @@
env = Environment(variables=opts,
tools=('default', 'textfile',),
CPPPATH=['.', ],
+ PLATFORM='posix'
)
env.Append(BUILDERS = {
@@ -166,7 +167,7 @@
match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
'SERF_MINOR_VERSION ([0-9]+).*'
'SERF_PATCH_VERSION ([0-9]+)',
- env.File('serf.h').get_contents(),
+ str(env.File('serf.h').get_contents()),
re.DOTALL)
MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
env.Append(MAJOR=str(MAJOR))
@@ -183,7 +184,7 @@
unknown = opts.UnknownVariables()
if unknown:
- print 'Warning: Used unknown variables:', ', '.join(unknown.keys())
+ print('Warning: Used unknown variables:', ', '.join(unknown.keys()))
apr = str(env['APR'])
apu = str(env['APU'])
@@ -216,7 +217,8 @@
# from current_version, so don't use the PATCH level to avoid that build and
# runtime patch levels have to be identical.
if sys.platform != 'sunos5':
- env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
+ #env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
+ env['SHLIBSUFFIX'] = '.so'
LIBNAME = 'libserf-%d' % (MAJOR,)
if sys.platform != 'win32':