summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-03 23:41:16 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-04 20:38:13 +0000
commit9e4fe63739de4da3f2d5b5e59452e23e19fd2877 (patch)
treee11ee9fd44e064a03898cf76914c6b7c1454289b
parent75e166f005e30139c639be255d5de8b128cba7b8 (diff)
downloadopenembedded-core-9e4fe63739de4da3f2d5b5e59452e23e19fd2877.tar.gz
openembedded-core-9e4fe63739de4da3f2d5b5e59452e23e19fd2877.tar.bz2
openembedded-core-9e4fe63739de4da3f2d5b5e59452e23e19fd2877.zip
pseudo: fix wit glibc 2.33?
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/pseudo/files/glibc233.patch27
-rw-r--r--meta/recipes-devtools/pseudo/pseudo_git.bb1
2 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/pseudo/files/glibc233.patch b/meta/recipes-devtools/pseudo/files/glibc233.patch
new file mode 100644
index 0000000000..31dfe9f9de
--- /dev/null
+++ b/meta/recipes-devtools/pseudo/files/glibc233.patch
@@ -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
diff --git a/meta/recipes-devtools/pseudo/pseudo_git.bb b/meta/recipes-devtools/pseudo/pseudo_git.bb
index 0ba7b50355..47c351cadc 100644
--- a/meta/recipes-devtools/pseudo/pseudo_git.bb
+++ b/meta/recipes-devtools/pseudo/pseudo_git.bb
@@ -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"