summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/musl/gcompat/0001-auxv-new-module.patch59
-rw-r--r--meta/recipes-core/musl/gcompat_git.bb7
2 files changed, 64 insertions, 2 deletions
diff --git a/meta/recipes-core/musl/gcompat/0001-auxv-new-module.patch b/meta/recipes-core/musl/gcompat/0001-auxv-new-module.patch
new file mode 100644
index 0000000000..ee292f3841
--- /dev/null
+++ b/meta/recipes-core/musl/gcompat/0001-auxv-new-module.patch
@@ -0,0 +1,59 @@
1From aecd42801904462501a890d173648e4e826eda19 Mon Sep 17 00:00:00 2001
2From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
3Date: Sat, 23 Oct 2021 23:29:40 -0500
4Subject: [PATCH] auxv: new module
5
6Adds `__getauxval` wrapper, needed for Parallels Tools GUI installer.
7
8Upstream-Status: Submitted [https://git.adelielinux.org/adelie/gcompat/-/commit/e860a38a88c7ea148ee15976136a1f83ea13f8e0]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 CHANGELOG.rst | 5 +++++
12 Makefile | 1 +
13 libgcompat/auxv.c | 6 ++++++
14 3 files changed, 12 insertions(+)
15 create mode 100644 libgcompat/auxv.c
16
17diff --git a/CHANGELOG.rst b/CHANGELOG.rst
18index ce6859b..c3a9cee 100644
19--- a/CHANGELOG.rst
20+++ b/CHANGELOG.rst
21@@ -11,6 +11,11 @@
22 1.1 (202?-??-??)
23 ================
24
25+auxv
26+----
27+
28+* Add __getauxval wrapper for getauxval.
29+
30 locale
31 ------
32
33diff --git a/Makefile b/Makefile
34index cbb7634..1893cc1 100644
35--- a/Makefile
36+++ b/Makefile
37@@ -2,6 +2,7 @@ LIBGCOMPAT_INCLUDE = \
38 libgcompat/alias.h \
39 libgcompat/internal.h
40 LIBGCOMPAT_SRC = \
41+ libgcompat/auxv.c \
42 libgcompat/ctype.c \
43 libgcompat/cxx_thread.c \
44 libgcompat/dlfcn.c \
45diff --git a/libgcompat/auxv.c b/libgcompat/auxv.c
46new file mode 100644
47index 0000000..01de376
48--- /dev/null
49+++ b/libgcompat/auxv.c
50@@ -0,0 +1,6 @@
51+#include <sys/auxv.h> /* getauxval */
52+
53+unsigned long __getauxval(unsigned long value)
54+{
55+ return getauxval(value);
56+}
57--
582.37.3
59
diff --git a/meta/recipes-core/musl/gcompat_git.bb b/meta/recipes-core/musl/gcompat_git.bb
index b051e43b6c..11f3c58769 100644
--- a/meta/recipes-core/musl/gcompat_git.bb
+++ b/meta/recipes-core/musl/gcompat_git.bb
@@ -8,12 +8,13 @@ LICENSE = "NCSA"
8LIC_FILES_CHKSUM = "file://LICENSE;md5=eb33ef4af05a9c7602843afb7adfe792" 8LIC_FILES_CHKSUM = "file://LICENSE;md5=eb33ef4af05a9c7602843afb7adfe792"
9 9
10SRC_URI = "git://git.adelielinux.org/adelie/gcompat.git;protocol=https;branch=current \ 10SRC_URI = "git://git.adelielinux.org/adelie/gcompat.git;protocol=https;branch=current \
11 " 11 file://0001-auxv-new-module.patch \
12 "
12SRC_URI:append:powerpc = "\ 13SRC_URI:append:powerpc = "\
13 file://0001-make-Static-PIE-does-not-work-on-musl-ppc.patch \ 14 file://0001-make-Static-PIE-does-not-work-on-musl-ppc.patch \
14 " 15 "
15PV = "1.0.0+1.1+git${SRCPV}" 16PV = "1.0.0+1.1+git${SRCPV}"
16SRCREV = "4d6a5156a6eb7f56b30d93853a872e36dadde81b" 17SRCREV = "c6921a1aa454bb87671f9bd1ecfe47d80d1620aa"
17 18
18S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
19 20
@@ -42,6 +43,8 @@ do_install () {
42 install -d ${D}${nonarch_base_libdir}${SITEINFO_BITS} 43 install -d ${D}${nonarch_base_libdir}${SITEINFO_BITS}
43 ln -rs ${D}${GLIBC_LDSO} ${D}${nonarch_base_libdir}${SITEINFO_BITS}/`basename ${GLIBC_LDSO}` 44 ln -rs ${D}${GLIBC_LDSO} ${D}${nonarch_base_libdir}${SITEINFO_BITS}/`basename ${GLIBC_LDSO}`
44 fi 45 fi
46 install -d ${D}${libdir}
47 ln -sf ${base_libdir}/libgcompat.so.0 ${D}${libdir}/libgcompat.so
45} 48}
46 49
47FILES:${PN} += "${nonarch_base_libdir}${SITEINFO_BITS}" 50FILES:${PN} += "${nonarch_base_libdir}${SITEINFO_BITS}"