@@ -27,16 +27,13 @@ Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Rebase to 0.16.0
Remove libaio option
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
+Rebase to 0.17.3
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
- lib/replace/wscript | 100 +++++++++++++++++++++++++++++++-------------
- wscript | 6 +++
- 2 files changed, 77 insertions(+), 29 deletions(-)
-
diff --git a/lib/replace/wscript b/lib/replace/wscript
-index 77e655b..452c741 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
-@@ -25,6 +25,34 @@ def options(opt):
+@@ -25,6 +25,34 @@
opt.PRIVATE_EXTENSION_DEFAULT('')
opt.RECURSE('buildtools/wafsamba')
@@ -71,9 +68,9 @@ index 77e655b..452c741 100644
@Utils.run_once
def configure(conf):
conf.RECURSE('buildtools/wafsamba')
-@@ -38,12 +66,24 @@ def configure(conf):
- conf.DEFINE('HAVE_LIBREPLACE', 1)
- conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
+@@ -59,12 +87,24 @@
+ strict=True, # -Werror
+ msg='Checking for _Static_assert')
- conf.CHECK_HEADERS('linux/types.h crypt.h locale.h acl/libacl.h compat.h')
- conf.CHECK_HEADERS('acl/libacl.h attr/xattr.h compat.h ctype.h dustat.h')
@@ -98,7 +95,7 @@ index 77e655b..452c741 100644
conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h')
conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h')
conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h')
-@@ -113,8 +153,9 @@ def configure(conf):
+@@ -134,8 +174,9 @@
conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h')
conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h')
@@ -110,7 +107,7 @@ index 77e655b..452c741 100644
conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h')
conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h')
conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h')
-@@ -443,31 +484,32 @@ def configure(conf):
+@@ -464,31 +505,32 @@
strlcpy_in_bsd = False
@@ -136,9 +133,6 @@ index 77e655b..452c741 100644
- conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
- if not conf.CHECK_FUNCS('setproctitle_init'):
- conf.CHECK_FUNCS_IN('setproctitle_init', 'bsd', headers='sys/types.h bsd/unistd.h')
--
-- if not conf.CHECK_FUNCS('closefrom'):
-- conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
+ if Options.options.enable_libbsd:
+ # libbsd on some platforms provides strlcpy and strlcat
+ if not conf.CHECK_FUNCS('strlcpy strlcat'):
@@ -162,17 +156,18 @@ index 77e655b..452c741 100644
+ conf.CHECK_FUNCS_IN('setproctitle', 'bsd', headers='sys/types.h bsd/unistd.h')
+ if not conf.CHECK_FUNCS('setproctitle_init'):
+ conf.CHECK_FUNCS_IN('setproctitle_init', 'bsd', headers='sys/types.h bsd/unistd.h')
-+
+
+- if not conf.CHECK_FUNCS('closefrom'):
+- conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
+ if not conf.CHECK_FUNCS('closefrom'):
+ conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
conf.CHECK_CODE('''
struct ucred cred;
diff --git a/wscript b/wscript
-index d912a8a..484a6fa 100644
--- a/wscript
+++ b/wscript
-@@ -28,6 +28,12 @@ def options(opt):
+@@ -28,6 +28,12 @@
opt.RECURSE('lib/replace')
opt.RECURSE('lib/talloc')
similarity index 90%
rename from meta-networking/recipes-support/libtevent/libtevent_0.17.2.bb
rename to meta-networking/recipes-support/libtevent/libtevent_0.17.3.bb
@@ -17,7 +17,10 @@ SRC_URI = "https://samba.org/ftp/tevent/tevent-${PV}.tar.gz \
LIC_FILES_CHKSUM = "file://tevent.h;endline=26;md5=47386b7c539bf2706b7ce52dc9341681"
-SRC_URI[sha256sum] = "e53b1ac288d017d66dde0471cd429a806168ecf07179d7f019572d7a7e05f0d6"
+SRC_URI[sha256sum] = "8eaa1b1b8d3c36ce8ddeae6d79c9a05360dcba5930115112c078415bcbe0d16d"
+
+UPSTREAM_CHECK_URI = "https://download.samba.org/pub/tevent/"
+UPSTREAM_CHECK_REGEX = "tevent-(?P<pver>\d+(\.\d+)+)\.tar\.gz"
inherit pkgconfig ptest waf-samba
- Fix handling of an immediate event handler that frees the tevent_context: running immediate events are tracked so the context destructor can reset their detach context and emit the DETACH trace - Updated waf/wafsamba build infrastructure (ABI version script handling for linkers such as mold, _Static_assert and HAVE_PACKETSOCKET checks in libreplace) The public API is unchanged (tevent.h is identical) and samba 4.25.1 only requires tevent >= 0.17.2, so the system library is still used. Refresh 0001-Add-configure-options-for-packages.patch, whose lib/replace context moved. Add UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...1-Add-configure-options-for-packages.patch | 29 ++++++++----------- ...ibtevent_0.17.2.bb => libtevent_0.17.3.bb} | 5 +++- 2 files changed, 16 insertions(+), 18 deletions(-) rename meta-networking/recipes-support/libtevent/{libtevent_0.17.2.bb => libtevent_0.17.3.bb} (90%)