Tevent 0.16.0
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
--- buildtools/wafsamba/samba_autoconf.py.orig 2019-09-04 15:42:16 UTC
|
||||
+++ buildtools/wafsamba/samba_autoconf.py
|
||||
@@ -573,7 +573,7 @@ def library_flags(self, libs):
|
||||
|
||||
|
||||
@conf
|
||||
-def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False):
|
||||
+def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None):
|
||||
'''check if a set of libraries exist as system libraries
|
||||
|
||||
returns the sublist of libs that do exist as a syslib or []
|
||||
@@ -593,11 +593,14 @@ int foo()
|
||||
ret.append(lib)
|
||||
continue
|
||||
|
||||
+ if msg is None:
|
||||
+ msg = 'Checking for library %s' % lib
|
||||
+
|
||||
(ccflags, ldflags, cpppath) = library_flags(conf, lib)
|
||||
if shlib:
|
||||
- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
||||
+ res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg)
|
||||
else:
|
||||
- res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
||||
+ res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg)
|
||||
|
||||
if not res:
|
||||
if mandatory:
|
||||
@@ -949,5 +952,5 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf):
|
||||
conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
|
||||
|
||||
if (conf.env.undefined_ignore_ldflags == [] and
|
||||
- conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'])):
|
||||
+ conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS)):
|
||||
conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']
|
||||
@ -0,0 +1,11 @@
|
||||
--- buildtools/wafsamba/samba_install.py.orig 2019-03-21 10:12:32 UTC
|
||||
+++ buildtools/wafsamba/samba_install.py
|
||||
@@ -115,7 +115,7 @@ def install_library(self):
|
||||
inst_name = bld.make_libname(t.target)
|
||||
elif self.vnum:
|
||||
vnum_base = self.vnum.split('.')[0]
|
||||
- install_name = bld.make_libname(target_name, version=self.vnum)
|
||||
+ install_name = bld.make_libname(target_name, version=vnum_base)
|
||||
install_link = bld.make_libname(target_name, version=vnum_base)
|
||||
inst_name = bld.make_libname(t.target)
|
||||
if not self.private_library or not t.env.SONAME_ST:
|
||||
15
devel/tevent016/files/patch-buildtools_wafsamba_wscript
Normal file
15
devel/tevent016/files/patch-buildtools_wafsamba_wscript
Normal file
@ -0,0 +1,15 @@
|
||||
--- buildtools/wafsamba/wscript.orig 2019-03-21 10:12:32 UTC
|
||||
+++ buildtools/wafsamba/wscript
|
||||
@@ -82,10 +82,10 @@ def options(opt):
|
||||
|
||||
opt.add_option('--with-libiconv',
|
||||
help='additional directory to search for libiconv',
|
||||
- action='store', dest='iconv_open', default='/usr/local',
|
||||
+ action='store', dest='iconv_open', default=None,
|
||||
match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h'])
|
||||
opt.add_option('--without-gettext',
|
||||
- help=("Disable use of gettext"),
|
||||
+ help=("disable use of gettext"),
|
||||
action="store_true", dest='disable_gettext', default=False)
|
||||
|
||||
gr = opt.option_group('developer options')
|
||||
11
devel/tevent016/files/patch-lib_replace_wscript
Normal file
11
devel/tevent016/files/patch-lib_replace_wscript
Normal file
@ -0,0 +1,11 @@
|
||||
--- lib/replace/wscript.orig 2019-03-21 10:12:32 UTC
|
||||
+++ lib/replace/wscript
|
||||
@@ -119,7 +119,7 @@ def configure(conf):
|
||||
conf.CHECK_HEADERS('sys/atomic.h stdatomic.h')
|
||||
conf.CHECK_HEADERS('libgen.h')
|
||||
|
||||
- if conf.CHECK_CFLAGS('-Wno-format-truncation'):
|
||||
+ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS):
|
||||
conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1')
|
||||
|
||||
if conf.CHECK_CFLAGS('-Wno-unused-function'):
|
||||
11
devel/tevent016/files/patch-wscript
Normal file
11
devel/tevent016/files/patch-wscript
Normal file
@ -0,0 +1,11 @@
|
||||
--- wscript.orig 2017-07-22 22:25:22 UTC
|
||||
+++ wscript
|
||||
@@ -88,7 +88,7 @@ def build(bld):
|
||||
SRC += ' tevent_port.c'
|
||||
|
||||
if bld.env.standalone_tevent:
|
||||
- bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
|
||||
+ bld.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%'
|
||||
private_library = False
|
||||
else:
|
||||
private_library = True
|
||||
Reference in New Issue
Block a user