diff mbox series

[v3] pseudo: Update to 1.99.2 version

Message ID 20261126021504.2712290-1-mark.hatle@amd.com
State Under Review
Headers show
Series [v3] pseudo: Update to 1.99.2 version | expand

Commit Message

Mark Hatle Nov. 26, 2026, 2:15 a.m. UTC
Changelog from last version:
    Makefile.in: call this 1.99.2
    Replace FASTOP with requests that don't wait for a reply
    Send client requests over one shared datagram socket
    pseudo_server: Log when running in a confined SELinux domain
    ports/linux: Report SELinux as disabled under pseudo
    README.security: Describe io_uring refusal and the host fallback
    ports/linux: Refuse io_uring in the kernel rather than be bypassed by it
    ports/linux/pseudo_wrappers: Report io_uring as unsupported in syscall()
    openat2: Look at dirfd for an empty path
    ports/linux: Pass an empty openat() path to the kernel
    ports/linux: Wrap name_to_handle_at() and open_by_handle_at()
    pseudo_client: Fail when the local state directory isn't writable
    ports/linux/pseudo_wrappers: Fake seccomp strict mode in syscall()
    ports/linux/pseudo_wrappers: Fake seccomp filters set by prctl()
    test-seccomp: Check that seccomp is never really enabled
    ports/linux/pseudo_wrappers: Report Landlock as unsupported
    pseudo_client: Connect to the server without changing directory
    test-landlock: Add a Landlock sandbox test
    Wrap execvpe(), fexecve() and execveat()
    wrappers: Don't re-block signals in nested wrapper calls
    pseudo_util: Skip unneeded lstat calls when canonicalizing paths
    configure: Fix the --enable-profiling default
    doc: Update README and doc/ to match the code
    configure: Require GCC 5 or later
    ports/linux: Don't require <linux/mount.h>
    pseudo.1: Update to match the current code
    pseudo_util: Write the event log to PSEUDO_EVLOG_FILE
    pseudo: List -p in the usage message
    pseudo_util: Fix the date format in the event log dump
    AGENTS.md: Add to assist future developers
    pseudo_util: Make -v and numeric PSEUDO_DEBUG add debug flags
    pseudo: Fix the -k severity option
    pseudo_util: Store PSEUDO_SEVERITY as severity names
    pseudo_server: Set highest_client to the new client when growing
    pseudo_server: Lower highest_client when the highest client closes
    configure: Fix --disable-* options
    pseudo_server: Always use epoll
    pseudo_server: Drop an idle client when out of file descriptors
    pseudo_server: Skip events for clients closed earlier in the batch
    ports/linux: Drop redundant PSEUDO_LINK_SYMLINK_BEHAVIOR override
    ports/common/subports: Show the unknown OS name in the error
    pseudo_util: Remove stale with_libpseudo() comment
    Replace #if 0 strerror() debug messages with a comment
    Remove unused #if 0 debug code
    patches/yocto-older-glibc-symbols.patch: Update to latest YP version
    ports: Let the port define how pseudo stats files
    ports/unix: Remove guts overridden by the Linux port
    ports: Remove PSEUDO_NO_REAL_AT_FUNCTIONS
    test-parallel-ops: Add a parallel create/rename/link/chmod test
    ports: check created files under the path lock before recording them
    ports: hold the path lock in create and metadata wrappers
    pseudo_client: serialize path changes across clients
    Makefile.in: Declare 1.99.1
    README.security: Add information specific to file/process security
    test-chroot-proc-dev: Add /proc and /dev within a chroot test
    test-proc-fd: Add a stale directory descriptor case
    pseudo_client.h: remove dangling pseudo_client_fdpath declaration
    pseudo_client: resolve /proc/<pid>/fd/<n> to the descriptor
    makewrappers: Allow the wrapper architecture to be set for cross builds
    makewrappers: Change 'Warning' to 'Info'
    makewrappers: Don't generate unused _int paths with noignore_path
    ports: Remove Darwin (macOS) support
    test: Skip open_tree tests when the function or syscall is unavailable
    ports/linux/guts: Fix uninitialized pseudo_path in open_tree wrappers

Signed-off-by: Mark Hatle <mark.hatle@amd.com>
---
V3:
Remove obsolete 0001-makewrappers-Allow-the-wrapper-architecture-to-be-se.patch
missed in the V2 patch and detected by patchtest.

V2:
Corrects the V1 by removing the makewrappers patch

 ...ow-the-wrapper-architecture-to-be-se.patch | 149 ------------------
 meta/recipes-devtools/pseudo/pseudo_git.bb    |   5 +-
 2 files changed, 2 insertions(+), 152 deletions(-)
 delete mode 100644 meta/recipes-devtools/pseudo/files/0001-makewrappers-Allow-the-wrapper-architecture-to-be-se.patch
diff mbox series

Patch

diff --git a/meta/recipes-devtools/pseudo/files/0001-makewrappers-Allow-the-wrapper-architecture-to-be-se.patch b/meta/recipes-devtools/pseudo/files/0001-makewrappers-Allow-the-wrapper-architecture-to-be-se.patch
deleted file mode 100644
index 6bdea7ad6d..0000000000
--- a/meta/recipes-devtools/pseudo/files/0001-makewrappers-Allow-the-wrapper-architecture-to-be-se.patch
+++ /dev/null
@@ -1,149 +0,0 @@ 
-From 979add31166eadc1954b32ff7cb6038fbd171e06 Mon Sep 17 00:00:00 2001
-From: Sunil Dora <sunilkumar.dora@windriver.com>
-Date: Fri, 30 Oct 2026 11:56:45 -0700
-Subject: [PATCH] makewrappers: Allow the wrapper architecture to be set for
- cross builds
-
-Architecture specific modifiers in wrapfuncs.in, such as
-version-aarch64="GLIBC_2.17" on the xattr wrappers, are selected with
-platform.machine(), so they follow the machine running the script
-rather than the one pseudo is built for. An aarch64 pseudo cross built
-on x86_64 ends up with GLIBC_2.3 and the reverse with GLIBC_2.17, which
-shows up as pseudo not being reproducible between x86_64 and aarch64
-builders.
-
-Add a --target option to configure and pass it on to makewrappers,
-which uses the cpu part of the triplet for these modifiers. Without
---target the build machine is used as before.
-
-[YOCTO #16376]
-
-Upstream-Status: Backport [https://git.yoctoproject.org/pseudo/commit/?id=979add31166eadc1954b32ff7cb6038fbd171e06]
-
-Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
-Message-Id: <20261030185645.765144-1-sunilkumar.dora@windriver.com>
-Signed-off-by: Mark Hatle <mark.hatle@amd.com>
----
- Makefile.in  |  3 ++-
- configure    |  6 ++++++
- makewrappers | 17 +++++++++++++++--
- 3 files changed, 23 insertions(+), 3 deletions(-)
-
-diff --git a/Makefile.in b/Makefile.in
-index 6640a73..9c6da77 100644
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -34,6 +34,7 @@ BITS=@BITS@
- ARCH_FLAGS=@ARCH_FLAGS@
- MARK64=@MARK64@
- RPATH=@RPATH@
-+TARGET=@TARGET@
- VERSION=1.99.0
- 
- LIB=@LIB@
-@@ -146,7 +147,7 @@ tables: enums/*.in maketables templatefile.py $(TABLES)
- 	./maketables enums/*.in
- 
- wrappers: makewrappers templatefile.py $(TEMPLATES) ports/*/wrapfuncs.in
--	CC="$(CC) $(CFLAGS) $(CFLAGS_PSEUDO)" ./makewrappers "xattr=$(XATTR)"
-+	CC="$(CC) $(CFLAGS) $(CFLAGS_PSEUDO)" ./makewrappers --target="$(TARGET)" "xattr=$(XATTR)"
- 
- .SECONDARY: tables wrappers
- 
-diff --git a/configure b/configure
-index 68c9962..b43809e 100755
---- a/configure
-+++ b/configure
-@@ -10,6 +10,7 @@
- opt_prefix=
- opt_libdir=
- opt_suffix=
-+opt_target=
- opt_arch=x86
- opt_bits=
- opt_sqlite=/usr
-@@ -32,6 +33,7 @@ usage()
-     echo >&2 "  configure --prefix=..."
-     echo >&2 "           [--libdir=...]"
-     echo >&2 "           [--suffix=...]"
-+    echo >&2 "           [--target=...]"
-     echo >&2 "           [--enable-memory-db]"
-     echo >&2 "           [--enable-epoll]"
-     echo >&2 "           [--enable-xattr]"
-@@ -153,6 +155,9 @@ do
-     --suffix=*)
-         opt_suffix=${arg#--suffix=}
-         ;;
-+    --target=*)
-+        opt_target=${arg#--target=}
-+        ;;
-     --arch=*)
-         echo >&2 "WARNING: The --arch option is now deprecated. Use --cflags."
-         opt_arch=${arg#--arch=}
-@@ -341,6 +346,7 @@ sed -e '
-   s,@LIBDIR@,'"$opt_libdir"',g
-   s,@LIB@,'"$opt_lib"',g
-   s,@SUFFIX@,'"$opt_suffix"',g
-+  s,@TARGET@,'"$opt_target"',g
-   s,@SQLITE@,'"$opt_sqlite"',g
-   s,@ARCH_FLAGS@,'"$arch_flags"',g
-   s,@DEFAULT_SQLITE@,'"$default_sqlite"',g
-diff --git a/makewrappers b/makewrappers
-index 81d2444..1ac46bf 100755
---- a/makewrappers
-+++ b/makewrappers
-@@ -15,6 +15,13 @@ import platform
- import subprocess
- from templatefile import TemplateFile
- 
-+# Set from --target=, empty means the machine running this script
-+target_arch = ""
-+
-+def wrapper_arch():
-+    """Architecture the wrappers are built for: the --target cpu or the build machine."""
-+    return target_arch or platform.machine()
-+
- class ArgumentList:
-     """A (possibly empty) list of arguments"""
- 
-@@ -316,11 +323,11 @@ class Function:
-             # Strip all leading/trailing whitespace
-             modifiers = {k.strip():v.strip() for k, v in modifiers.items()}
- 
--            arch = "-" + platform.machine()
-+            arch = "-" + wrapper_arch()
-             # Sorted so that versions-foo appear after versions, so overrides are easy
-             for key in sorted(modifiers):
-                 value = modifiers[key].replace('<equals>', '==')
--                # If the key is version-arm64 and we're on arm64 then rename this to version
-+                # If the key is version-arm64 and we're building for arm64 then rename this to version
-                 if key.endswith(arch):
-                     key = key.replace(arch, "")
-                 setattr(self, key, value)
-@@ -664,10 +671,15 @@ def process_wrapfuncs(port):
- 
- def main(argv):
-     """Read in function definitions, write out files based on templates."""
-+    global target_arch
-     funcs = []
-     sources = []
- 
-     for arg in argv:
-+        if arg.startswith('--target='):
-+            # A GNU triplet such as aarch64-poky-linux, only the cpu part is used
-+            target_arch = arg[len('--target='):].split('-')[0]
-+            continue
-         if '=' not in arg:
-             print("Invalid argument '%s', must be of the form name=value" % arg)
-             exit(1)
-@@ -697,6 +709,7 @@ def main(argv):
-     port = Port('common', sources)
- 
-     # the per-function stuff
-+    print("Architecture for wrapper modifiers: %s" % wrapper_arch())
-     print("Writing functions...")
-     all_funcs = port.functions()
-     for name in sorted(all_funcs.keys()):
--- 
-2.49.0
-
diff --git a/meta/recipes-devtools/pseudo/pseudo_git.bb b/meta/recipes-devtools/pseudo/pseudo_git.bb
index f8903dbb63..5db98f8ef5 100644
--- a/meta/recipes-devtools/pseudo/pseudo_git.bb
+++ b/meta/recipes-devtools/pseudo/pseudo_git.bb
@@ -3,7 +3,6 @@  require pseudo.inc
 SRC_URI = "git://git.yoctoproject.org/pseudo;branch=master;protocol=https \
            file://fallback-passwd \
            file://fallback-group \
-           file://0001-makewrappers-Allow-the-wrapper-architecture-to-be-se.patch \
            "
 SRC_URI:append:class-native = " \
     http://downloads.yoctoproject.org/mirror/sources/pseudo-prebuilt-2.33.tar.xz;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/prebuilt;name=prebuilt \
@@ -13,8 +12,8 @@  SRC_URI:append:class-nativesdk = " \
     file://older-glibc-symbols.patch"
 SRC_URI[prebuilt.sha256sum] = "ed9f456856e9d86359f169f46a70ad7be4190d6040282b84c8d97b99072485aa"
 
-SRCREV = "75222afce8836d12e58b7e85c2dd6057518257a1"
-PV = "1.99.0+git"
+SRCREV = "ca3223c55f51c046605fedc87c2c0de8deef4f7e"
+PV = "1.99.2+git"
 
 # largefile and 64bit time_t support adds these macros via compiler flags globally
 # remove them for pseudo since pseudo intercepts some of the functions which will be