diff options
| -rw-r--r-- | meta-networking/recipes-support/libtalloc/libtalloc/0001-waf-add-support-of-cross_compile.patch | 62 | ||||
| -rw-r--r-- | meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch | 15 | ||||
| -rw-r--r-- | meta-networking/recipes-support/libtalloc/libtalloc/options-2.2.0.patch | 25 | ||||
| -rw-r--r-- | meta-networking/recipes-support/libtalloc/libtalloc_2.3.1.bb (renamed from meta-networking/recipes-support/libtalloc/libtalloc_2.3.0.bb) | 5 |
4 files changed, 22 insertions, 85 deletions
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc/0001-waf-add-support-of-cross_compile.patch b/meta-networking/recipes-support/libtalloc/libtalloc/0001-waf-add-support-of-cross_compile.patch deleted file mode 100644 index e58339afbb..0000000000 --- a/meta-networking/recipes-support/libtalloc/libtalloc/0001-waf-add-support-of-cross_compile.patch +++ /dev/null | |||
| @@ -1,62 +0,0 @@ | |||
| 1 | From 4b8463ff43f8983a706b181c5292491f9f954be1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Changqing Li <changqing.li@windriver.com> | ||
| 3 | Date: Fri, 25 Jan 2019 15:00:59 +0800 | ||
| 4 | Subject: [PATCH] waf: add support of cross_compile | ||
| 5 | |||
| 6 | After upgrade, waf also upgraded | ||
| 7 | |||
| 8 | on 1.5.19, for cross_compile, subprocess.Popen is set to be | ||
| 9 | samba_cross.cross_Popen, which will not execute testprog on | ||
| 10 | host, but only read result from cross-answers.txt which is | ||
| 11 | passed by option --cross-answer | ||
| 12 | |||
| 13 | part of old code: | ||
| 14 | args = Utils.to_list(kw.get('exec_args', [])) | ||
| 15 | proc = Utils.pproc.Popen([lastprog] + args, stdout=Utils.pproc.PIPE, stderr=Utils.pproc.PIPE) | ||
| 16 | |||
| 17 | but on new version, exec_args is not used and cause do_configure | ||
| 18 | failed with Exec format error | ||
| 19 | |||
| 20 | fixed by append cross anser related args to cmd | ||
| 21 | |||
| 22 | Upstream-Status: Submitted [https://gitlab.com/samba-team/samba/merge_requests/211] | ||
| 23 | |||
| 24 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 25 | --- | ||
| 26 | third_party/waf/waflib/Tools/c_config.py | 11 ++++++----- | ||
| 27 | 1 file changed, 6 insertions(+), 5 deletions(-) | ||
| 28 | |||
| 29 | diff --git a/third_party/waf/waflib/Tools/c_config.py b/third_party/waf/waflib/Tools/c_config.py | ||
| 30 | index 7608215..767cf33 100644 | ||
| 31 | --- a/third_party/waf/waflib/Tools/c_config.py | ||
| 32 | +++ b/third_party/waf/waflib/Tools/c_config.py | ||
| 33 | @@ -660,20 +660,21 @@ class test_exec(Task.Task): | ||
| 34 | """ | ||
| 35 | color = 'PINK' | ||
| 36 | def run(self): | ||
| 37 | + args = self.generator.bld.kw.get('exec_args', []) | ||
| 38 | if getattr(self.generator, 'rpath', None): | ||
| 39 | if getattr(self.generator, 'define_ret', False): | ||
| 40 | - self.generator.bld.retval = self.generator.bld.cmd_and_log([self.inputs[0].abspath()]) | ||
| 41 | - else: | ||
| 42 | - self.generator.bld.retval = self.generator.bld.exec_command([self.inputs[0].abspath()]) | ||
| 43 | + self.generator.bld.retval = self.generator.bld.cmd_and_log([self.inputs[0].abspath()] + args) | ||
| 44 | + else: | ||
| 45 | + self.generator.bld.retval = self.generator.bld.exec_command([self.inputs[0].abspath()] + args) | ||
| 46 | else: | ||
| 47 | env = self.env.env or {} | ||
| 48 | env.update(dict(os.environ)) | ||
| 49 | for var in ('LD_LIBRARY_PATH', 'DYLD_LIBRARY_PATH', 'PATH'): | ||
| 50 | env[var] = self.inputs[0].parent.abspath() + os.path.pathsep + env.get(var, '') | ||
| 51 | if getattr(self.generator, 'define_ret', False): | ||
| 52 | - self.generator.bld.retval = self.generator.bld.cmd_and_log([self.inputs[0].abspath()], env=env) | ||
| 53 | + self.generator.bld.retval = self.generator.bld.cmd_and_log([self.inputs[0].abspath()] + args, env=env) | ||
| 54 | else: | ||
| 55 | - self.generator.bld.retval = self.generator.bld.exec_command([self.inputs[0].abspath()], env=env) | ||
| 56 | + self.generator.bld.retval = self.generator.bld.exec_command([self.inputs[0].abspath()] + args, env=env) | ||
| 57 | |||
| 58 | @feature('test_exec') | ||
| 59 | @after_method('apply_link') | ||
| 60 | -- | ||
| 61 | 2.7.4 | ||
| 62 | |||
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch b/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch index db3ddce2c1..5b7f69ec07 100644 --- a/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch +++ b/meta-networking/recipes-support/libtalloc/libtalloc/avoid-attr-unless-wanted.patch | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | --- a/lib/replace/wscript 2015-11-13 16:04:04.000000000 +0100 | 1 | --- a/lib/replace/wscript |
| 2 | +++ b/lib/replace/wscript 2015-11-13 16:23:20.000000000 +0100 | 2 | +++ b/lib/replace/wscript |
| 3 | @@ -837,8 +837,6 @@ def build(bld): | 3 | @@ -947,8 +947,6 @@ def build(bld): |
| 4 | if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c' | 4 | if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c' |
| 5 | if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c' | 5 | if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c' |
| 6 | if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c' | 6 | if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c' |
| @@ -9,12 +9,13 @@ | |||
| 9 | 9 | ||
| 10 | if not bld.CONFIG_SET('HAVE_CLOSEFROM'): | 10 | if not bld.CONFIG_SET('HAVE_CLOSEFROM'): |
| 11 | REPLACE_SOURCE += ' closefrom.c' | 11 | REPLACE_SOURCE += ' closefrom.c' |
| 12 | @@ -852,7 +850,7 @@ def build(bld): | 12 | @@ -962,7 +960,7 @@ def build(bld): |
| 13 | # at the moment: | 13 | # at the moment: |
| 14 | # hide_symbols=bld.BUILTIN_LIBRARY('replace'), | 14 | # hide_symbols=bld.BUILTIN_LIBRARY('replace'), |
| 15 | private_library=True, | 15 | private_library=True, |
| 16 | - deps='crypt dl nsl socket rt attr' + extra_libs) | 16 | - deps='dl attr' + extra_libs) |
| 17 | + deps='crypt dl nsl socket rt ' + extra_libs) | 17 | + deps='dl' + extra_libs) |
| 18 | 18 | ||
| 19 | replace_test_cflags="-Wno-format-zero-length" | 19 | replace_test_cflags = '' |
| 20 | if bld.CONFIG_SET('HAVE_WNO_FORMAT_TRUNCATION'): | 20 | if bld.CONFIG_SET('HAVE_WNO_FORMAT_TRUNCATION'): |
| 21 | |||
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc/options-2.2.0.patch b/meta-networking/recipes-support/libtalloc/libtalloc/options-2.2.0.patch index 3847b013e8..46fef1096b 100644 --- a/meta-networking/recipes-support/libtalloc/libtalloc/options-2.2.0.patch +++ b/meta-networking/recipes-support/libtalloc/libtalloc/options-2.2.0.patch | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | From c6d76c8ade57b996a8123b1c1a3a28ba4666e9c6 Mon Sep 17 00:00:00 2001 | 1 | From 8a82056ba2f70137714f225d82993aa4b11042da Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Wang Mingyu <wangmy@cn.fujitsu.com> |
| 3 | Date: Thu, 20 Jun 2019 10:57:06 +0800 | 3 | Date: Fri, 25 Dec 2020 14:14:08 +0900 |
| 4 | Subject: [PATCH] talloc: Add configure options for packages | 4 | Subject: [PATCH] talloc: Add configure options for packages |
| 5 | 5 | ||
| 6 | Add configure options for the following packages: | 6 | Add configure options for the following packages: |
| @@ -22,12 +22,12 @@ Signed-off-by: Joe Slater <joe.slater@windriver.com> | |||
| 22 | Modified tp apply to version 2.2.0 | 22 | Modified tp apply to version 2.2.0 |
| 23 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 23 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
| 24 | --- | 24 | --- |
| 25 | lib/replace/wscript | 91 ++++++++++++++++++++++++++++++++++++++++------------- | 25 | lib/replace/wscript | 89 +++++++++++++++++++++++++++++++++++---------- |
| 26 | wscript | 7 ++++- | 26 | wscript | 7 +++- |
| 27 | 2 files changed, 76 insertions(+), 22 deletions(-) | 27 | 2 files changed, 75 insertions(+), 21 deletions(-) |
| 28 | 28 | ||
| 29 | diff --git a/lib/replace/wscript b/lib/replace/wscript | 29 | diff --git a/lib/replace/wscript b/lib/replace/wscript |
| 30 | index 1d01e1e..7bc7666 100644 | 30 | index a2bc604..2e2e7bf 100644 |
| 31 | --- a/lib/replace/wscript | 31 | --- a/lib/replace/wscript |
| 32 | +++ b/lib/replace/wscript | 32 | +++ b/lib/replace/wscript |
| 33 | @@ -25,6 +25,41 @@ def options(opt): | 33 | @@ -25,6 +25,41 @@ def options(opt): |
| @@ -81,10 +81,9 @@ index 1d01e1e..7bc7666 100644 | |||
| 81 | + conf.CHECK_HEADERS('linux/types.h crypt.h locale.h compat.h') | 81 | + conf.CHECK_HEADERS('linux/types.h crypt.h locale.h compat.h') |
| 82 | + conf.CHECK_HEADERS('attr/xattr.h compat.h ctype.h dustat.h') | 82 | + conf.CHECK_HEADERS('attr/xattr.h compat.h ctype.h dustat.h') |
| 83 | conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h') | 83 | conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h') |
| 84 | - conf.CHECK_HEADERS('libaio.h locale.h ndir.h pwd.h') | 84 | conf.CHECK_HEADERS('locale.h ndir.h pwd.h') |
| 85 | - conf.CHECK_HEADERS('shadow.h sys/acl.h') | 85 | - conf.CHECK_HEADERS('shadow.h sys/acl.h') |
| 86 | - conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h') | 86 | - conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h') |
| 87 | + conf.CHECK_HEADERS('locale.h ndir.h pwd.h') | ||
| 88 | + conf.CHECK_HEADERS('shadow.h') | 87 | + conf.CHECK_HEADERS('shadow.h') |
| 89 | + conf.CHECK_HEADERS('sys/attributes.h sys/dir.h sys/epoll.h') | 88 | + conf.CHECK_HEADERS('sys/attributes.h sys/dir.h sys/epoll.h') |
| 90 | + | 89 | + |
| @@ -103,7 +102,7 @@ index 1d01e1e..7bc7666 100644 | |||
| 103 | conf.CHECK_HEADERS('port.h') | 102 | conf.CHECK_HEADERS('port.h') |
| 104 | conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') | 103 | conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') |
| 105 | conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') | 104 | conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') |
| 106 | @@ -110,8 +158,9 @@ def configure(conf): | 105 | @@ -121,8 +169,9 @@ def configure(conf): |
| 107 | conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') | 106 | conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') |
| 108 | conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') | 107 | conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') |
| 109 | 108 | ||
| @@ -115,7 +114,7 @@ index 1d01e1e..7bc7666 100644 | |||
| 115 | conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') | 114 | conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') |
| 116 | conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') | 115 | conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') |
| 117 | conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') | 116 | conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') |
| 118 | @@ -380,20 +429,20 @@ def configure(conf): | 117 | @@ -418,20 +467,20 @@ def configure(conf): |
| 119 | 118 | ||
| 120 | strlcpy_in_bsd = False | 119 | strlcpy_in_bsd = False |
| 121 | 120 | ||
| @@ -151,7 +150,7 @@ index 1d01e1e..7bc7666 100644 | |||
| 151 | conf.CHECK_CODE(''' | 150 | conf.CHECK_CODE(''' |
| 152 | struct ucred cred; | 151 | struct ucred cred; |
| 153 | diff --git a/wscript b/wscript | 152 | diff --git a/wscript b/wscript |
| 154 | index e402069..9976f4c 100644 | 153 | index b955d21..4ac6e1e 100644 |
| 155 | --- a/wscript | 154 | --- a/wscript |
| 156 | +++ b/wscript | 155 | +++ b/wscript |
| 157 | @@ -31,7 +31,12 @@ def options(opt): | 156 | @@ -31,7 +31,12 @@ def options(opt): |
| @@ -169,5 +168,5 @@ index e402069..9976f4c 100644 | |||
| 169 | def configure(conf): | 168 | def configure(conf): |
| 170 | conf.RECURSE('lib/replace') | 169 | conf.RECURSE('lib/replace') |
| 171 | -- | 170 | -- |
| 172 | 2.7.4 | 171 | 2.25.1 |
| 173 | 172 | ||
diff --git a/meta-networking/recipes-support/libtalloc/libtalloc_2.3.0.bb b/meta-networking/recipes-support/libtalloc/libtalloc_2.3.1.bb index 59deb15b63..07d54b71fb 100644 --- a/meta-networking/recipes-support/libtalloc/libtalloc_2.3.0.bb +++ b/meta-networking/recipes-support/libtalloc/libtalloc_2.3.1.bb | |||
| @@ -8,10 +8,9 @@ LIC_FILES_CHKSUM = "file://talloc.h;beginline=3;endline=27;md5=a301712782cad6dd6 | |||
| 8 | 8 | ||
| 9 | SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \ | 9 | SRC_URI = "https://www.samba.org/ftp/talloc/talloc-${PV}.tar.gz \ |
| 10 | file://options-2.2.0.patch \ | 10 | file://options-2.2.0.patch \ |
| 11 | file://0001-waf-add-support-of-cross_compile.patch \ | ||
| 12 | " | 11 | " |
| 13 | SRC_URI[md5sum] = "8416b153547add81cd1a4d24e598c890" | 12 | SRC_URI[md5sum] = "ce40593428c0de6b85946189dcc37b5e" |
| 14 | SRC_URI[sha256sum] = "75d5bcb34482545a82ffb06da8f6c797f963a0da450d0830c669267b14992fc6" | 13 | SRC_URI[sha256sum] = "ef4822d2fdafd2be8e0cabc3ec3c806ae29b8268e932c5e9a4cd5585f37f9f77" |
| 15 | 14 | ||
| 16 | inherit waf-samba | 15 | inherit waf-samba |
| 17 | 16 | ||
