diff options
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/glib-networking/glib-networking/eagain.patch | 2 | ||||
-rw-r--r-- | meta/recipes-core/glibc/glibc-package.inc | 8 | ||||
-rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/init | 2 | ||||
-rw-r--r-- | meta/recipes-core/initrdscripts/initramfs-framework/rootfs | 2 | ||||
-rw-r--r-- | meta/recipes-core/libxcrypt/files/configure-c99.patch | 39 | ||||
-rw-r--r-- | meta/recipes-core/libxcrypt/libxcrypt.inc | 3 | ||||
-rw-r--r-- | meta/recipes-core/libxml/libxml2_2.12.8.bb (renamed from meta/recipes-core/libxml/libxml2_2.12.7.bb) | 2 | ||||
-rw-r--r-- | meta/recipes-core/os-release/os-release.bb | 2 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd/0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch | 31 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd_255.6.bb | 6 | ||||
-rw-r--r-- | meta/recipes-core/ttyrun/ttyrun_2.33.1.bb (renamed from meta/recipes-core/ttyrun/ttyrun_2.32.0.bb) | 2 |
11 files changed, 91 insertions, 8 deletions
diff --git a/meta/recipes-core/glib-networking/glib-networking/eagain.patch b/meta/recipes-core/glib-networking/glib-networking/eagain.patch index 6c2e3c634b..98ff476071 100644 --- a/meta/recipes-core/glib-networking/glib-networking/eagain.patch +++ b/meta/recipes-core/glib-networking/glib-networking/eagain.patch | |||
@@ -12,7 +12,7 @@ FAIL: glib-networking/connection-openssl.test (Child process killed by signal 6) | |||
12 | 12 | ||
13 | The test should probably retry in this situation so test a patch which does this. | 13 | The test should probably retry in this situation so test a patch which does this. |
14 | 14 | ||
15 | Upstream-Status: Pending [testing to see if patch resolves the issue] | 15 | Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/253] |
16 | 16 | ||
17 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 17 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
18 | --- | 18 | --- |
diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc index 0c5e3b4c3d..3352f3e2f5 100644 --- a/meta/recipes-core/glibc/glibc-package.inc +++ b/meta/recipes-core/glibc/glibc-package.inc | |||
@@ -39,7 +39,7 @@ FILES:sln = "${base_sbindir}/sln" | |||
39 | FILES:${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/*.o" | 39 | FILES:${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/*.o" |
40 | FILES:libsotruss = "${libdir}/audit/sotruss-lib.so" | 40 | FILES:libsotruss = "${libdir}/audit/sotruss-lib.so" |
41 | FILES_SOLIBSDEV = "${libdir}/lib*${SOLIBSDEV}" | 41 | FILES_SOLIBSDEV = "${libdir}/lib*${SOLIBSDEV}" |
42 | FILES:${PN}-dev += "${libdir}/libpthread.a ${libdir}/libdl.a ${libdir}/libutil.a ${libdir}/libanl.a ${libdir}/*_nonshared.a ${base_libdir}/*_nonshared.a ${base_libdir}/*.o ${datadir}/aclocal" | 42 | FILES:${PN}-dev += "${libdir}/libpthread.a ${libdir}/libdl.a ${libdir}/libutil.a ${libdir}/libanl.a ${libdir}/*_nonshared.a ${base_libdir}/*_nonshared.a ${base_libdir}/*.o ${datadir}/aclocal ${libdir}/gcc/${TARGET_SYS}/*/finclude" |
43 | RDEPENDS:${PN}-dev = "linux-libc-headers-dev" | 43 | RDEPENDS:${PN}-dev = "linux-libc-headers-dev" |
44 | FILES:${PN}-staticdev += "${libdir}/*.a ${base_libdir}/*.a" | 44 | FILES:${PN}-staticdev += "${libdir}/*.a ${base_libdir}/*.a" |
45 | FILES:nscd = "${sbindir}/nscd* ${sysconfdir}/init.d/nscd ${systemd_system_unitdir}/nscd* ${nonarch_libdir}/tmpfiles.d/nscd.conf \ | 45 | FILES:nscd = "${sbindir}/nscd* ${sysconfdir}/init.d/nscd ${systemd_system_unitdir}/nscd* ${nonarch_libdir}/tmpfiles.d/nscd.conf \ |
@@ -169,6 +169,12 @@ do_install_armmultilib () { | |||
169 | oe_multilib_header sys/elf.h sys/procfs.h sys/ptrace.h sys/ucontext.h sys/user.h | 169 | oe_multilib_header sys/elf.h sys/procfs.h sys/ptrace.h sys/ucontext.h sys/user.h |
170 | } | 170 | } |
171 | 171 | ||
172 | do_install_armmultilib:append:class-target() { | ||
173 | gcc_version=$($CC -dumpversion) | ||
174 | mkdir -p ${D}${libdir}/gcc/${TARGET_SYS}/${gcc_version}/finclude | ||
175 | mv ${D}${includedir}/finclude/math-vector-fortran.h ${D}${libdir}/gcc/${TARGET_SYS}/${gcc_version}/finclude/ | ||
176 | rmdir --ignore-fail-on-non-empty ${D}${includedir}/finclude | ||
177 | } | ||
172 | 178 | ||
173 | LOCALESTASH = "${WORKDIR}/stashed-locale" | 179 | LOCALESTASH = "${WORKDIR}/stashed-locale" |
174 | bashscripts = "mtrace sotruss xtrace" | 180 | bashscripts = "mtrace sotruss xtrace" |
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index e3d8caa0e1..716a156f82 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/init +++ b/meta/recipes-core/initrdscripts/initramfs-framework/init | |||
@@ -120,7 +120,7 @@ if grep -q devtmpfs /proc/filesystems; then | |||
120 | mount -t devtmpfs devtmpfs /dev | 120 | mount -t devtmpfs devtmpfs /dev |
121 | else | 121 | else |
122 | if [ ! -d /dev ]; then | 122 | if [ ! -d /dev ]; then |
123 | fatal "ERROR: /dev doesn't exist and kernel doesn't has devtmpfs enabled." | 123 | fatal "ERROR: /dev doesn't exist and kernel doesn't have devtmpfs enabled." |
124 | fi | 124 | fi |
125 | fi | 125 | fi |
126 | 126 | ||
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs index e0efbe6ebe..38e138f618 100644 --- a/meta/recipes-core/initrdscripts/initramfs-framework/rootfs +++ b/meta/recipes-core/initrdscripts/initramfs-framework/rootfs | |||
@@ -59,7 +59,7 @@ rootfs_run() { | |||
59 | fi | 59 | fi |
60 | fi | 60 | fi |
61 | fi | 61 | fi |
62 | debug "Sleeping for $delay second(s) to wait root to settle..." | 62 | debug "Sleeping for $delay second(s) to wait for root to settle..." |
63 | sleep $delay | 63 | sleep $delay |
64 | C=$(( $C + 1 )) | 64 | C=$(( $C + 1 )) |
65 | done | 65 | done |
diff --git a/meta/recipes-core/libxcrypt/files/configure-c99.patch b/meta/recipes-core/libxcrypt/files/configure-c99.patch new file mode 100644 index 0000000000..b77ea7af07 --- /dev/null +++ b/meta/recipes-core/libxcrypt/files/configure-c99.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From cfe9f4d6b0a5d10a15e10e987d528c5c513a42f1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Florian Weimer <fweimer@redhat.com> | ||
3 | Date: Tue, 19 Dec 2023 11:00:11 +0100 | ||
4 | Subject: [PATCH] configure: Only text the makecontext signature we need | ||
5 | |||
6 | The test/explicit-bzero.c test uses a start routine without any | ||
7 | arguments. There is no need for the multi-argument version. | ||
8 | |||
9 | This avoids a build failure with glibc and future compilers. | ||
10 | The GNU C library declares the makecontext callback of | ||
11 | type void (*) (void), so no cast is needed. On other systems, | ||
12 | the type may be the (currently distinct) type void (*) (), | ||
13 | but given that this only affects the ability to execute a test, | ||
14 | no further machinery is added here to detect that different type. | ||
15 | |||
16 | Upstream-Status: Submitted [https://github.com/besser82/libxcrypt/pull/178/] | ||
17 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
18 | --- | ||
19 | configure.ac | 2 -- | ||
20 | 1 file changed, 2 deletions(-) | ||
21 | |||
22 | diff --git a/configure.ac b/configure.ac | ||
23 | index 016997c..4b8afd8 100644 | ||
24 | --- a/configure.ac | ||
25 | +++ b/configure.ac | ||
26 | @@ -303,13 +303,11 @@ AS_IF([test $ac_cv_header_ucontext_h = yes], | ||
27 | #include <ucontext.h> | ||
28 | static int x; | ||
29 | static void fn1(void) {} | ||
30 | -static void fn2(int a, int b) { x = a - b; } | ||
31 | ]], [[ | ||
32 | ucontext_t uc1, uc2; | ||
33 | if (getcontext(&uc1)) return 1; | ||
34 | if (setcontext(&uc1)) return 1; | ||
35 | makecontext(&uc1, fn1, 0); | ||
36 | - makecontext(&uc2, fn2, 2, 1, 1); | ||
37 | if (swapcontext(&uc1, &uc2)) return 1; | ||
38 | return x; | ||
39 | ]])], | ||
diff --git a/meta/recipes-core/libxcrypt/libxcrypt.inc b/meta/recipes-core/libxcrypt/libxcrypt.inc index ba93d91aef..ee6875aa05 100644 --- a/meta/recipes-core/libxcrypt/libxcrypt.inc +++ b/meta/recipes-core/libxcrypt/libxcrypt.inc | |||
@@ -13,7 +13,8 @@ SRC_URI = "git://github.com/besser82/libxcrypt.git;branch=${SRCBRANCH};protocol= | |||
13 | SRCREV = "f531a36aa916a22ef2ce7d270ba381e264250cbf" | 13 | SRCREV = "f531a36aa916a22ef2ce7d270ba381e264250cbf" |
14 | SRCBRANCH ?= "master" | 14 | SRCBRANCH ?= "master" |
15 | 15 | ||
16 | SRC_URI += "file://fix_cflags_handling.patch" | 16 | SRC_URI += "file://fix_cflags_handling.patch \ |
17 | file://configure-c99.patch" | ||
17 | 18 | ||
18 | PROVIDES = "virtual/crypt" | 19 | PROVIDES = "virtual/crypt" |
19 | 20 | ||
diff --git a/meta/recipes-core/libxml/libxml2_2.12.7.bb b/meta/recipes-core/libxml/libxml2_2.12.8.bb index 84601c282f..fb103f0273 100644 --- a/meta/recipes-core/libxml/libxml2_2.12.7.bb +++ b/meta/recipes-core/libxml/libxml2_2.12.8.bb | |||
@@ -20,7 +20,7 @@ SRC_URI += "http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt | |||
20 | file://install-tests.patch \ | 20 | file://install-tests.patch \ |
21 | " | 21 | " |
22 | 22 | ||
23 | SRC_URI[archive.sha256sum] = "24ae78ff1363a973e6d8beba941a7945da2ac056e19b53956aeb6927fd6cfb56" | 23 | SRC_URI[archive.sha256sum] = "43ad877b018bc63deb2468d71f95219c2fac196876ef36d1bee51d226173ec93" |
24 | SRC_URI[testtar.sha256sum] = "c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273" | 24 | SRC_URI[testtar.sha256sum] = "c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273" |
25 | 25 | ||
26 | # Disputed as a security issue, but fixed in d39f780 | 26 | # Disputed as a security issue, but fixed in d39f780 |
diff --git a/meta/recipes-core/os-release/os-release.bb b/meta/recipes-core/os-release/os-release.bb index 8906906bc3..93af08c182 100644 --- a/meta/recipes-core/os-release/os-release.bb +++ b/meta/recipes-core/os-release/os-release.bb | |||
@@ -24,7 +24,7 @@ ID = "${DISTRO}" | |||
24 | NAME = "${DISTRO_NAME}" | 24 | NAME = "${DISTRO_NAME}" |
25 | VERSION = "${DISTRO_VERSION}${@' (%s)' % DISTRO_CODENAME if 'DISTRO_CODENAME' in d else ''}" | 25 | VERSION = "${DISTRO_VERSION}${@' (%s)' % DISTRO_CODENAME if 'DISTRO_CODENAME' in d else ''}" |
26 | VERSION_ID = "${DISTRO_VERSION}" | 26 | VERSION_ID = "${DISTRO_VERSION}" |
27 | VERSION_CODENAME = "${DISTRO_CODENAME}" | 27 | VERSION_CODENAME = "${@d.getVar('DISTRO_CODENAME') or ''}" |
28 | PRETTY_NAME = "${DISTRO_NAME} ${VERSION}" | 28 | PRETTY_NAME = "${DISTRO_NAME} ${VERSION}" |
29 | 29 | ||
30 | # The vendor field is hardcoded to "openembedded" deliberately. We'd | 30 | # The vendor field is hardcoded to "openembedded" deliberately. We'd |
diff --git a/meta/recipes-core/systemd/systemd/0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch b/meta/recipes-core/systemd/systemd/0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch new file mode 100644 index 0000000000..5be4a27b36 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 7463b382bcaf26aacc60b73f98f0262aa41db3ee Mon Sep 17 00:00:00 2001 | ||
2 | From: Johannes Schneider <johannes.schneider@leica-geosystems.com> | ||
3 | Date: Thu, 20 Jun 2024 12:32:18 +0200 | ||
4 | Subject: [PATCH] meson: bpf: propagate 'sysroot' for cross compilation | ||
5 | |||
6 | During cross-compilation of systemd, the compiler used to build the bpf's needs | ||
7 | to be pointed at the correct include searchpath. Which can be done by passing | ||
8 | the corresponding directory in through the cflags; for example in yocto/bitbake | ||
9 | this would work: CFLAGS += "--sysroot=${STAGING_DIR_TARGET}" | ||
10 | |||
11 | Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/33427] | ||
12 | Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com> | ||
13 | --- | ||
14 | meson.build | 1 + | ||
15 | 1 file changed, 1 insertion(+) | ||
16 | |||
17 | diff --git a/meson.build b/meson.build | ||
18 | index 187e7b216d..15df058ab6 100644 | ||
19 | --- a/meson.build | ||
20 | +++ b/meson.build | ||
21 | @@ -1691,6 +1691,7 @@ if conf.get('BPF_FRAMEWORK') == 1 | ||
22 | '-ffile-prefix-map=', | ||
23 | '-fdebug-prefix-map=', | ||
24 | '-fmacro-prefix-map=', | ||
25 | + '--sysroot=', | ||
26 | ] | ||
27 | |||
28 | foreach opt : c_args | ||
29 | -- | ||
30 | 2.34.1 | ||
31 | |||
diff --git a/meta/recipes-core/systemd/systemd_255.6.bb b/meta/recipes-core/systemd/systemd_255.6.bb index 15b631fc07..0376412f61 100644 --- a/meta/recipes-core/systemd/systemd_255.6.bb +++ b/meta/recipes-core/systemd/systemd_255.6.bb | |||
@@ -28,6 +28,7 @@ SRC_URI += " \ | |||
28 | file://systemd-pager.sh \ | 28 | file://systemd-pager.sh \ |
29 | file://0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ | 29 | file://0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ |
30 | file://0008-implment-systemd-sysv-install-for-OE.patch \ | 30 | file://0008-implment-systemd-sysv-install-for-OE.patch \ |
31 | file://0023-meson-bpf-propagate-sysroot-for-cross-compilation.patch \ | ||
31 | " | 32 | " |
32 | 33 | ||
33 | # patches needed by musl | 34 | # patches needed by musl |
@@ -132,6 +133,7 @@ PACKAGECONFIG[acl] = "-Dacl=true,-Dacl=false,acl" | |||
132 | PACKAGECONFIG[audit] = "-Daudit=true,-Daudit=false,audit" | 133 | PACKAGECONFIG[audit] = "-Daudit=true,-Daudit=false,audit" |
133 | PACKAGECONFIG[backlight] = "-Dbacklight=true,-Dbacklight=false" | 134 | PACKAGECONFIG[backlight] = "-Dbacklight=true,-Dbacklight=false" |
134 | PACKAGECONFIG[binfmt] = "-Dbinfmt=true,-Dbinfmt=false" | 135 | PACKAGECONFIG[binfmt] = "-Dbinfmt=true,-Dbinfmt=false" |
136 | PACKAGECONFIG[bpf-framework] = "-Dbpf-framework=true,-Dbpf-framework=false,clang-native bpftool-native libbpf,libbpf" | ||
135 | PACKAGECONFIG[bzip2] = "-Dbzip2=true,-Dbzip2=false,bzip2" | 137 | PACKAGECONFIG[bzip2] = "-Dbzip2=true,-Dbzip2=false,bzip2" |
136 | PACKAGECONFIG[cgroupv2] = "-Ddefault-hierarchy=unified,-Ddefault-hierarchy=hybrid" | 138 | PACKAGECONFIG[cgroupv2] = "-Ddefault-hierarchy=unified,-Ddefault-hierarchy=hybrid" |
137 | PACKAGECONFIG[coredump] = "-Dcoredump=true,-Dcoredump=false" | 139 | PACKAGECONFIG[coredump] = "-Dcoredump=true,-Dcoredump=false" |
@@ -232,6 +234,10 @@ PACKAGECONFIG[zstd] = "-Dzstd=true,-Dzstd=false,zstd" | |||
232 | 234 | ||
233 | RESOLV_CONF ??= "" | 235 | RESOLV_CONF ??= "" |
234 | 236 | ||
237 | # bpf-framework: pass the recipe-sysroot to the compiler used to build | ||
238 | # the eBPFs, so that it can find needed system includes in there. | ||
239 | CFLAGS:append = " --sysroot=${STAGING_DIR_TARGET}" | ||
240 | |||
235 | # Helper variables to clarify locations. This mirrors the logic in systemd's | 241 | # Helper variables to clarify locations. This mirrors the logic in systemd's |
236 | # build system. | 242 | # build system. |
237 | rootprefix ?= "${root_prefix}" | 243 | rootprefix ?= "${root_prefix}" |
diff --git a/meta/recipes-core/ttyrun/ttyrun_2.32.0.bb b/meta/recipes-core/ttyrun/ttyrun_2.33.1.bb index 815f625a67..ccb7f9b268 100644 --- a/meta/recipes-core/ttyrun/ttyrun_2.32.0.bb +++ b/meta/recipes-core/ttyrun/ttyrun_2.33.1.bb | |||
@@ -7,7 +7,7 @@ LICENSE = "MIT" | |||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f5118f167b055bfd7c3450803f1847af" | 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f5118f167b055bfd7c3450803f1847af" |
8 | 8 | ||
9 | SRC_URI = "git://github.com/ibm-s390-linux/s390-tools;protocol=https;branch=master" | 9 | SRC_URI = "git://github.com/ibm-s390-linux/s390-tools;protocol=https;branch=master" |
10 | SRCREV = "9eea78b3ad8ab3710fb3b2d80b9cd058d7c8aba7" | 10 | SRCREV = "686262fdcdaed7903ca1720d7dd0b1f9f5621d7b" |
11 | 11 | ||
12 | CVE_PRODUCT = "s390-tools" | 12 | CVE_PRODUCT = "s390-tools" |
13 | 13 | ||