]> code.ossystems Code Review - openembedded-core.git/commitdiff
pseudo: fix wit glibc 2.33?
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Feb 2021 23:41:16 +0000 (23:41 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Feb 2021 20:38:13 +0000 (20:38 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/pseudo/files/glibc233.patch [new file with mode: 0644]
meta/recipes-devtools/pseudo/pseudo_git.bb

diff --git a/meta/recipes-devtools/pseudo/files/glibc233.patch b/meta/recipes-devtools/pseudo/files/glibc233.patch
new file mode 100644 (file)
index 0000000..31dfe9f
--- /dev/null
@@ -0,0 +1,27 @@
+Index: git/ports/linux/portdefs.h
+===================================================================
+--- git.orig/ports/linux/portdefs.h
++++ git/ports/linux/portdefs.h
+@@ -34,3 +34,22 @@ GLIBC_COMPAT_SYMBOL(memcpy,2.0);
+ #include <sys/syscall.h>
+ #include <sys/prctl.h>
+ #include <linux/seccomp.h>
++
++#ifndef _STAT_VER
++#if defined (__aarch64__)
++#define _STAT_VER 0
++#elif defined (__x86_64__)
++#define _STAT_VER 1
++#else
++#define _STAT_VER 3
++#endif
++#endif
++#ifndef _MKNOD_VER
++#if defined (__aarch64__)
++#define _MKNOD_VER 0
++#elif defined (__x86_64__)
++#define _MKNOD_VER 0
++#else
++#define _MKNOD_VER 1
++#endif
++#endif
index 0ba7b5035517192328bb757d19ea12a28a911f17..47c351cadc820956c11b7c0f5f16813f1b21c1cd 100644 (file)
@@ -4,6 +4,7 @@ SRC_URI = "git://git.yoctoproject.org/pseudo;branch=oe-core \
            file://0001-configure-Prune-PIE-flags.patch \
            file://fallback-passwd \
            file://fallback-group \
+           file://glibc233.patch \
            "
 
 SRCREV = "8317c0ab172db47dabcef909bae02cd77b1f1010"