summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2024-01-01 15:49:56 +0800
committerKhem Raj <raj.khem@gmail.com>2024-01-08 19:54:40 -0800
commit03e1353cb72c7fa4362cf70c802ddd9de62ab186 (patch)
tree57c9da85ea3b2819b53028b7ffd3591b70590e14 /meta-networking/recipes-support
parentcf1dd83b6fbbacc0e845137cf832990aa4cf1fc2 (diff)
downloadmeta-openembedded-03e1353cb72c7fa4362cf70c802ddd9de62ab186.tar.gz
libtevent: upgrade 0.14.1 -> 0.16.0
* Remove PACKAGECONFIG[libaio] as libaio is no longer required by libtevent. * Refresh patches. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support')
-rw-r--r--meta-networking/recipes-support/libtevent/libtevent/0001-Add-configure-options-for-packages.patch70
-rw-r--r--meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch6
-rw-r--r--meta-networking/recipes-support/libtevent/libtevent/avoid-attr-unless-wanted.patch11
-rw-r--r--meta-networking/recipes-support/libtevent/libtevent_0.16.0.bb (renamed from meta-networking/recipes-support/libtevent/libtevent_0.14.1.bb)7
4 files changed, 55 insertions, 39 deletions
diff --git a/meta-networking/recipes-support/libtevent/libtevent/0001-Add-configure-options-for-packages.patch b/meta-networking/recipes-support/libtevent/libtevent/0001-Add-configure-options-for-packages.patch
index cb66adba9..7fdeec61f 100644
--- a/meta-networking/recipes-support/libtevent/libtevent/0001-Add-configure-options-for-packages.patch
+++ b/meta-networking/recipes-support/libtevent/libtevent/0001-Add-configure-options-for-packages.patch
@@ -1,4 +1,4 @@
1From d9fd1c52d1646254944bfee37be611e04d4daddb Mon Sep 17 00:00:00 2001 1From c2241d7a1371ece3b89dfdad4861dcf0a152d5d4 Mon Sep 17 00:00:00 2001
2From: Wang Mingyu <wangmy@cn.fujitsu.com> 2From: Wang Mingyu <wangmy@cn.fujitsu.com>
3Date: Fri, 25 Dec 2020 15:03:17 +0900 3Date: Fri, 25 Dec 2020 15:03:17 +0900
4Subject: [PATCH] Add configure options for packages 4Subject: [PATCH] Add configure options for packages
@@ -6,7 +6,6 @@ Subject: [PATCH] Add configure options for packages
6Add configure options for the following packages: 6Add configure options for the following packages:
7 - acl 7 - acl
8 - attr 8 - attr
9 - libaio
10 - libbsd 9 - libbsd
11 - libcap 10 - libcap
12 - valgrind 11 - valgrind
@@ -24,16 +23,20 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
24 23
25Update patch to version 0.14.1 24Update patch to version 0.14.1
26Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> 25Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
26
27Rebase to 0.16.0
28Remove libaio option
29Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
27--- 30---
28 lib/replace/wscript | 85 +++++++++++++++++++++++++++++++++++---------- 31 lib/replace/wscript | 100 +++++++++++++++++++++++++++++++-------------
29 wscript | 6 ++++ 32 wscript | 6 +++
30 2 files changed, 73 insertions(+), 18 deletions(-) 33 2 files changed, 77 insertions(+), 29 deletions(-)
31 34
32diff --git a/lib/replace/wscript b/lib/replace/wscript 35diff --git a/lib/replace/wscript b/lib/replace/wscript
33index 5c2b750..28835ac 100644 36index 77e655b..452c741 100644
34--- a/lib/replace/wscript 37--- a/lib/replace/wscript
35+++ b/lib/replace/wscript 38+++ b/lib/replace/wscript
36@@ -25,6 +25,41 @@ def options(opt): 39@@ -25,6 +25,34 @@ def options(opt):
37 opt.PRIVATE_EXTENSION_DEFAULT('') 40 opt.PRIVATE_EXTENSION_DEFAULT('')
38 opt.RECURSE('buildtools/wafsamba') 41 opt.RECURSE('buildtools/wafsamba')
39 42
@@ -51,13 +54,6 @@ index 5c2b750..28835ac 100644
51+ help=("Disable use of attr"), 54+ help=("Disable use of attr"),
52+ action="store_false", dest='enable_attr', default=False) 55+ action="store_false", dest='enable_attr', default=False)
53+ 56+
54+ opt.add_option('--with-libaio',
55+ help=("Enable use of libaio"),
56+ action="store_true", dest='enable_libaio')
57+ opt.add_option('--without-libaio',
58+ help=("Disable use of libaio"),
59+ action="store_false", dest='enable_libaio', default=False)
60+
61+ opt.add_option('--with-libbsd', 57+ opt.add_option('--with-libbsd',
62+ help=("Enable use of libbsd"), 58+ help=("Enable use of libbsd"),
63+ action="store_true", dest='enable_libbsd') 59+ action="store_true", dest='enable_libbsd')
@@ -75,7 +71,7 @@ index 5c2b750..28835ac 100644
75 @Utils.run_once 71 @Utils.run_once
76 def configure(conf): 72 def configure(conf):
77 conf.RECURSE('buildtools/wafsamba') 73 conf.RECURSE('buildtools/wafsamba')
78@@ -38,12 +73,27 @@ def configure(conf): 74@@ -38,12 +66,24 @@ def configure(conf):
79 conf.DEFINE('HAVE_LIBREPLACE', 1) 75 conf.DEFINE('HAVE_LIBREPLACE', 1)
80 conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) 76 conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
81 77
@@ -96,28 +92,25 @@ index 5c2b750..28835ac 100644
96+ if Options.options.enable_attr: 92+ if Options.options.enable_attr:
97+ conf.CHECK_HEADERS('attr/attributes.h attr/xattr.h') 93+ conf.CHECK_HEADERS('attr/attributes.h attr/xattr.h')
98+ 94+
99+ if Options.options.enable_libaio:
100+ conf.CHECK_HEADERS('libaio.h')
101+
102+ if Options.options.enable_libcap: 95+ if Options.options.enable_libcap:
103+ conf.CHECK_HEADERS('sys/capability.h') 96+ conf.CHECK_HEADERS('sys/capability.h')
104+ 97+
105 conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h') 98 conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h')
106 conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h') 99 conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h')
107 conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h') 100 conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h')
108@@ -113,8 +163,9 @@ def configure(conf): 101@@ -113,8 +153,9 @@ def configure(conf):
109 conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') 102 conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h')
110 conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') 103 conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h')
111 104
112- conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') 105- conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h')
113- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') 106- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h')
114+ if Options.options.enable_valgrind: 107+ if Options.options.enable_valgrind:
115+ conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h') 108+ conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h')
116+ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h') 109+ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h valgrind/callgrind.h')
117 conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') 110 conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h')
118 conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') 111 conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h')
119 conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h') 112 conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h')
120@@ -436,20 +487,18 @@ def configure(conf): 113@@ -443,31 +484,32 @@ def configure(conf):
121 114
122 strlcpy_in_bsd = False 115 strlcpy_in_bsd = False
123 116
@@ -126,6 +119,17 @@ index 5c2b750..28835ac 100644
126- if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h', 119- if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
127- checklibc=True): 120- checklibc=True):
128- strlcpy_in_bsd = True 121- strlcpy_in_bsd = True
122- elif conf.env.enable_fuzzing:
123- # Just to complicate it more, some versions of Honggfuzz have
124- # got strlcpy and strlcat in libc, but not in <string.h>
125- # (unless it is there coincidentally, on a BSD). Therefore we
126- # can't use CHECK_FUNCS alone to decide whether to add the
127- # headers to replace.h.
128- #
129- # As this is only known to happen on a fuzzing compiler, we'll
130- # skip the check when not in fuzzing mode.
131- conf.CHECK_HEADERS('bsd/string.h')
132-
129- if not conf.CHECK_FUNCS('getpeereid'): 133- if not conf.CHECK_FUNCS('getpeereid'):
130- conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h') 134- conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
131- if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'): 135- if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
@@ -138,12 +142,26 @@ index 5c2b750..28835ac 100644
138+ if Options.options.enable_libbsd: 142+ if Options.options.enable_libbsd:
139+ # libbsd on some platforms provides strlcpy and strlcat 143+ # libbsd on some platforms provides strlcpy and strlcat
140+ if not conf.CHECK_FUNCS('strlcpy strlcat'): 144+ if not conf.CHECK_FUNCS('strlcpy strlcat'):
141+ conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h', 145+ if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
142+ checklibc=True) 146+ checklibc=True):
147+ strlcpy_in_bsd = True
148+ elif conf.env.enable_fuzzing:
149+ # Just to complicate it more, some versions of Honggfuzz have
150+ # got strlcpy and strlcat in libc, but not in <string.h>
151+ # (unless it is there coincidentally, on a BSD). Therefore we
152+ # can't use CHECK_FUNCS alone to decide whether to add the
153+ # headers to replace.h.
154+ #
155+ # As this is only known to happen on a fuzzing compiler, we'll
156+ # skip the check when not in fuzzing mode.
157+ conf.CHECK_HEADERS('bsd/string.h')
158+
143+ if not conf.CHECK_FUNCS('getpeereid'): 159+ if not conf.CHECK_FUNCS('getpeereid'):
144+ conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h') 160+ conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
145+ if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'): 161+ if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
146+ conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h') 162+ conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
163+ if not conf.CHECK_FUNCS('setproctitle_init'):
164+ conf.CHECK_FUNCS_IN('setproctitle_init', 'bsd', headers='sys/types.h bsd/unistd.h')
147+ 165+
148+ if not conf.CHECK_FUNCS('closefrom'): 166+ if not conf.CHECK_FUNCS('closefrom'):
149+ conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h') 167+ conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
@@ -151,7 +169,7 @@ index 5c2b750..28835ac 100644
151 conf.CHECK_CODE(''' 169 conf.CHECK_CODE('''
152 struct ucred cred; 170 struct ucred cred;
153diff --git a/wscript b/wscript 171diff --git a/wscript b/wscript
154index 0f6e92f..5a54f3a 100644 172index d912a8a..484a6fa 100644
155--- a/wscript 173--- a/wscript
156+++ b/wscript 174+++ b/wscript
157@@ -28,6 +28,12 @@ def options(opt): 175@@ -28,6 +28,12 @@ def options(opt):
@@ -168,5 +186,5 @@ index 0f6e92f..5a54f3a 100644
168 def configure(conf): 186 def configure(conf):
169 conf.RECURSE('lib/replace') 187 conf.RECURSE('lib/replace')
170-- 188--
1712.34.1 1892.25.1
172 190
diff --git a/meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch b/meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
index ba3f4ca7a..f1b8f8e9b 100644
--- a/meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
+++ b/meta-networking/recipes-support/libtevent/libtevent/0002-Fix-pyext_PATTERN-for-cross-compilation.patch
@@ -1,4 +1,4 @@
1From da1dc659fd351ff6283f843eeba5e0b3f7b2d584 Mon Sep 17 00:00:00 2001 1From 2bb7bf2d945d4ea0dafe3858adc6b8faae18b1e8 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com> 2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 24 Nov 2021 13:33:35 +0800 3Date: Wed, 24 Nov 2021 13:33:35 +0800
4Subject: [PATCH] Fix pyext_PATTERN for cross compilation 4Subject: [PATCH] Fix pyext_PATTERN for cross compilation
@@ -25,10 +25,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
25 1 file changed, 1 insertion(+), 1 deletion(-) 25 1 file changed, 1 insertion(+), 1 deletion(-)
26 26
27diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py 27diff --git a/third_party/waf/waflib/Tools/python.py b/third_party/waf/waflib/Tools/python.py
28index a23bd01..af202e0 100644 28index b2dd1a9..2bd3545 100644
29--- a/third_party/waf/waflib/Tools/python.py 29--- a/third_party/waf/waflib/Tools/python.py
30+++ b/third_party/waf/waflib/Tools/python.py 30+++ b/third_party/waf/waflib/Tools/python.py
31@@ -328,7 +328,7 @@ def check_python_headers(conf, features='pyembed pyext'): 31@@ -339,7 +339,7 @@ def check_python_headers(conf, features='pyembed pyext'):
32 x = 'MACOSX_DEPLOYMENT_TARGET' 32 x = 'MACOSX_DEPLOYMENT_TARGET'
33 if dct[x]: 33 if dct[x]:
34 env[x] = conf.environ[x] = str(dct[x]) 34 env[x] = conf.environ[x] = str(dct[x])
diff --git a/meta-networking/recipes-support/libtevent/libtevent/avoid-attr-unless-wanted.patch b/meta-networking/recipes-support/libtevent/libtevent/avoid-attr-unless-wanted.patch
index e15f14ab7..a8cddcd04 100644
--- a/meta-networking/recipes-support/libtevent/libtevent/avoid-attr-unless-wanted.patch
+++ b/meta-networking/recipes-support/libtevent/libtevent/avoid-attr-unless-wanted.patch
@@ -1,19 +1,18 @@
1From 82dc31b72e77f263574645092ba1597a8f1152e7 Mon Sep 17 00:00:00 2001 1From ace8fed037ec3d03f65f861b4da217faff94015b Mon Sep 17 00:00:00 2001
2From: Wang Mingyu <wangmy@cn.fujitsu.com> 2From: Wang Mingyu <wangmy@cn.fujitsu.com>
3Date: Fri, 25 Dec 2020 15:10:58 +0900 3Date: Fri, 25 Dec 2020 15:10:58 +0900
4Subject: [PATCH] avoid attr unless wanted 4Subject: [PATCH] avoid attr unless wanted
5 5
6Upstream-Status: Inappropriate [embedded specific]
6--- 7---
7Upstream-Status: Pending
8
9 lib/replace/wscript | 4 +--- 8 lib/replace/wscript | 4 +---
10 1 file changed, 1 insertion(+), 3 deletions(-) 9 1 file changed, 1 insertion(+), 3 deletions(-)
11 10
12diff --git a/lib/replace/wscript b/lib/replace/wscript 11diff --git a/lib/replace/wscript b/lib/replace/wscript
13index 21a746a..6be3276 100644 12index 452c741..61fcde0 100644
14--- a/lib/replace/wscript 13--- a/lib/replace/wscript
15+++ b/lib/replace/wscript 14+++ b/lib/replace/wscript
16@@ -968,8 +968,6 @@ def build(bld): 15@@ -983,8 +983,6 @@ def build(bld):
17 if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c' 16 if not bld.CONFIG_SET('HAVE_INET_ATON'): REPLACE_SOURCE += ' inet_aton.c'
18 if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c' 17 if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c'
19 if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c' 18 if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c'
@@ -22,7 +21,7 @@ index 21a746a..6be3276 100644
22 21
23 if not bld.CONFIG_SET('HAVE_CLOSEFROM'): 22 if not bld.CONFIG_SET('HAVE_CLOSEFROM'):
24 REPLACE_SOURCE += ' closefrom.c' 23 REPLACE_SOURCE += ' closefrom.c'
25@@ -984,7 +982,7 @@ def build(bld): 24@@ -999,7 +997,7 @@ def build(bld):
26 # hide_symbols=bld.BUILTIN_LIBRARY('replace'), 25 # hide_symbols=bld.BUILTIN_LIBRARY('replace'),
27 private_library=True, 26 private_library=True,
28 provide_builtin_linking=True, 27 provide_builtin_linking=True,
diff --git a/meta-networking/recipes-support/libtevent/libtevent_0.14.1.bb b/meta-networking/recipes-support/libtevent/libtevent_0.16.0.bb
index 9a2b5ede2..0158f8bc7 100644
--- a/meta-networking/recipes-support/libtevent/libtevent_0.14.1.bb
+++ b/meta-networking/recipes-support/libtevent/libtevent_0.16.0.bb
@@ -16,7 +16,7 @@ SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \
16 16
17LIC_FILES_CHKSUM = "file://tevent.h;endline=26;md5=47386b7c539bf2706b7ce52dc9341681" 17LIC_FILES_CHKSUM = "file://tevent.h;endline=26;md5=47386b7c539bf2706b7ce52dc9341681"
18 18
19SRC_URI[sha256sum] = "ef85fcaa80ffd2351036ba4b347630fef2a1ac3da964a7f1820466bad03cd00d" 19SRC_URI[sha256sum] = "1aa58f21017ed8c2f606ae84aa7e795b5439edd4dd5f68f1a388a7d6fb40f682"
20 20
21inherit pkgconfig ptest waf-samba 21inherit pkgconfig ptest waf-samba
22 22
@@ -26,7 +26,6 @@ PACKAGECONFIG ??= "\
26" 26"
27PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" 27PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl"
28PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" 28PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr"
29PACKAGECONFIG[libaio] = "--with-libaio,--without-libaio,libaio"
30PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" 29PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd"
31PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap" 30PACKAGECONFIG[libcap] = "--with-libcap,--without-libcap,libcap"
32PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind" 31PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
@@ -35,8 +34,8 @@ SRC_URI += "${@bb.utils.contains('PACKAGECONFIG', 'attr', '', 'file://avoid-attr
35 34
36S = "${WORKDIR}/tevent-${PV}" 35S = "${WORKDIR}/tevent-${PV}"
37 36
38#cross_compile cannot use preforked process, since fork process earlier than point subproces.popen 37# Cross_compile cannot use preforked process, since fork process earlier than point subproces.popen
39#to cross Popen 38# to cross Popen
40export WAF_NO_PREFORK="yes" 39export WAF_NO_PREFORK="yes"
41 40
42EXTRA_OECONF += "--disable-rpath \ 41EXTRA_OECONF += "--disable-rpath \