diff options
Diffstat (limited to 'meta/recipes-core/glibc')
40 files changed, 301 insertions, 413 deletions
diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.39.bb b/meta/recipes-core/glibc/cross-localedef-native_2.41.bb index fed6e4ea97..95acb3fc56 100644 --- a/meta/recipes-core/glibc/cross-localedef-native_2.39.bb +++ b/meta/recipes-core/glibc/cross-localedef-native_2.41.bb | |||
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.gnu.org/software/libc/libc.html" | |||
3 | SECTION = "libs" | 3 | SECTION = "libs" |
4 | LICENSE = "LGPL-2.1-only" | 4 | LICENSE = "LGPL-2.1-only" |
5 | 5 | ||
6 | LIC_FILES_CHKSUM = "file://LICENSES;md5=f77e878d320e99e94ae9a4aea7f491d1 \ | 6 | LIC_FILES_CHKSUM = "file://LICENSES;md5=df6e0948b55669789c30764c5fd9bc41 \ |
7 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 7 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
8 | file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ | 8 | file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ |
9 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" | 9 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" |
@@ -20,7 +20,7 @@ inherit native | |||
20 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/glibc:" | 20 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/glibc:" |
21 | 21 | ||
22 | SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ | 22 | SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ |
23 | git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=git/localedef;protocol=https \ | 23 | git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=${BB_GIT_DEFAULT_DESTSUFFIX}/localedef;protocol=https \ |
24 | \ | 24 | \ |
25 | file://0001-localedef-Add-hardlink-resolver-from-util-linux.patch \ | 25 | file://0001-localedef-Add-hardlink-resolver-from-util-linux.patch \ |
26 | file://0002-localedef-fix-ups-hardlink-to-make-it-compile.patch \ | 26 | file://0002-localedef-fix-ups-hardlink-to-make-it-compile.patch \ |
@@ -37,8 +37,6 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ | |||
37 | # | 37 | # |
38 | SRCREV_FORMAT = "glibc_localedef" | 38 | SRCREV_FORMAT = "glibc_localedef" |
39 | 39 | ||
40 | S = "${WORKDIR}/git" | ||
41 | |||
42 | EXTRA_OECONF = "--with-glibc=${S}" | 40 | EXTRA_OECONF = "--with-glibc=${S}" |
43 | 41 | ||
44 | # We do not need bash to run tzselect script, the default is to use | 42 | # We do not need bash to run tzselect script, the default is to use |
diff --git a/meta/recipes-core/glibc/glibc-common.inc b/meta/recipes-core/glibc/glibc-common.inc index b9516e77f0..fb62a4af94 100644 --- a/meta/recipes-core/glibc/glibc-common.inc +++ b/meta/recipes-core/glibc/glibc-common.inc | |||
@@ -2,9 +2,9 @@ SUMMARY = "GLIBC (GNU C Library)" | |||
2 | DESCRIPTION = "The GNU C Library is used as the system C library in most systems with the Linux kernel." | 2 | DESCRIPTION = "The GNU C Library is used as the system C library in most systems with the Linux kernel." |
3 | HOMEPAGE = "http://www.gnu.org/software/libc/libc.html" | 3 | HOMEPAGE = "http://www.gnu.org/software/libc/libc.html" |
4 | SECTION = "libs" | 4 | SECTION = "libs" |
5 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" | 5 | LICENSE = "GPL-2.0-only & LGPL-2.1-or-later" |
6 | 6 | ||
7 | LIC_FILES_CHKSUM ?= "file://LICENSES;md5=f77e878d320e99e94ae9a4aea7f491d1 \ | 7 | LIC_FILES_CHKSUM ?= "file://LICENSES;md5=df6e0948b55669789c30764c5fd9bc41 \ |
8 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 8 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
9 | file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ | 9 | file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ |
10 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" | 10 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" |
@@ -22,4 +22,6 @@ ARM_INSTRUCTION_SET:armv6 = "arm" | |||
22 | # | 22 | # |
23 | COMPATIBLE_HOST:libc-musl:class-target = "null" | 23 | COMPATIBLE_HOST:libc-musl:class-target = "null" |
24 | 24 | ||
25 | PV = "2.39+git" | 25 | PV = "2.41+git" |
26 | |||
27 | TOOLCHAIN = "gcc" | ||
diff --git a/meta/recipes-core/glibc/glibc-locale.inc b/meta/recipes-core/glibc/glibc-locale.inc index c63c9edd76..90248bbc0f 100644 --- a/meta/recipes-core/glibc/glibc-locale.inc +++ b/meta/recipes-core/glibc/glibc-locale.inc | |||
@@ -65,6 +65,8 @@ FILES:${LOCALEBASEPN}-locale-alias = "${datadir}/locale/locale.alias" | |||
65 | 65 | ||
66 | LOCALETREESRC = "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale" | 66 | LOCALETREESRC = "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale" |
67 | 67 | ||
68 | PSEUDO_INCLUDE_PATHS .= ",${WORKDIR}/locale-tree" | ||
69 | |||
68 | copy_locale_files() { | 70 | copy_locale_files() { |
69 | local dir=$1 mode=$2 | 71 | local dir=$1 mode=$2 |
70 | 72 | ||
diff --git a/meta/recipes-core/glibc/glibc-locale_2.39.bb b/meta/recipes-core/glibc/glibc-locale_2.41.bb index f7702e0358..f7702e0358 100644 --- a/meta/recipes-core/glibc/glibc-locale_2.39.bb +++ b/meta/recipes-core/glibc/glibc-locale_2.41.bb | |||
diff --git a/meta/recipes-core/glibc/glibc-mtrace_2.39.bb b/meta/recipes-core/glibc/glibc-mtrace_2.41.bb index 0b69bad46a..0b69bad46a 100644 --- a/meta/recipes-core/glibc/glibc-mtrace_2.39.bb +++ b/meta/recipes-core/glibc/glibc-mtrace_2.41.bb | |||
diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc index 1ef987be0a..21f2200d19 100644 --- a/meta/recipes-core/glibc/glibc-package.inc +++ b/meta/recipes-core/glibc/glibc-package.inc | |||
@@ -26,6 +26,7 @@ INSANE_SKIP:${PN}-dev += "staticdev" | |||
26 | INSANE_SKIP:${MLPREFIX}ldso:append = " dev-so libdir" | 26 | INSANE_SKIP:${MLPREFIX}ldso:append = " dev-so libdir" |
27 | 27 | ||
28 | FILES:${PN} = "${libc_baselibs} ${libexecdir}/* ${sysconfdir}/ld.so.conf" | 28 | FILES:${PN} = "${libc_baselibs} ${libexecdir}/* ${sysconfdir}/ld.so.conf" |
29 | CONFFILES:${PN} = "${sysconfdir}/ld.so.conf" | ||
29 | RRECOMMENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'ldconfig', '${MLPREFIX}ldconfig', '', d)}" | 30 | RRECOMMENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'ldconfig', '${MLPREFIX}ldconfig', '', d)}" |
30 | FILES:ldconfig = "${base_sbindir}/ldconfig" | 31 | FILES:ldconfig = "${base_sbindir}/ldconfig" |
31 | FILES:ldd = "${bindir}/ldd" | 32 | FILES:ldd = "${bindir}/ldd" |
@@ -39,7 +40,7 @@ FILES:sln = "${base_sbindir}/sln" | |||
39 | FILES:${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/*.o" | 40 | FILES:${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/*.o" |
40 | FILES:libsotruss = "${libdir}/audit/sotruss-lib.so" | 41 | FILES:libsotruss = "${libdir}/audit/sotruss-lib.so" |
41 | FILES_SOLIBSDEV = "${libdir}/lib*${SOLIBSDEV}" | 42 | 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" | 43 | 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" | 44 | RDEPENDS:${PN}-dev = "linux-libc-headers-dev" |
44 | FILES:${PN}-staticdev += "${libdir}/*.a ${base_libdir}/*.a" | 45 | 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 \ | 46 | FILES:nscd = "${sbindir}/nscd* ${sysconfdir}/init.d/nscd ${systemd_system_unitdir}/nscd* ${nonarch_libdir}/tmpfiles.d/nscd.conf \ |
@@ -69,9 +70,9 @@ inherit multilib_header | |||
69 | 70 | ||
70 | do_install() { | 71 | do_install() { |
71 | oe_runmake install_root=${D} install | 72 | oe_runmake install_root=${D} install |
72 | install -Dm 0644 ${WORKDIR}/etc/ld.so.conf ${D}/${sysconfdir}/ld.so.conf | 73 | install -Dm 0644 ${UNPACKDIR}/etc/ld.so.conf ${D}/${sysconfdir}/ld.so.conf |
73 | install -d ${D}${localedir} | 74 | install -d ${D}${localedir} |
74 | make -f ${WORKDIR}/generate-supported.mk IN="${S}/localedata/SUPPORTED" OUT="${WORKDIR}/SUPPORTED" | 75 | make -f ${UNPACKDIR}/generate-supported.mk IN="${S}/localedata/SUPPORTED" OUT="${WORKDIR}/SUPPORTED" |
75 | # get rid of some broken files... | 76 | # get rid of some broken files... |
76 | for i in ${GLIBC_BROKEN_LOCALES}; do | 77 | for i in ${GLIBC_BROKEN_LOCALES}; do |
77 | sed -i "/$i/d" ${WORKDIR}/SUPPORTED | 78 | sed -i "/$i/d" ${WORKDIR}/SUPPORTED |
@@ -87,7 +88,7 @@ do_install() { | |||
87 | rmdir --ignore-fail-on-non-empty ${D}${libexecdir} | 88 | rmdir --ignore-fail-on-non-empty ${D}${libexecdir} |
88 | fi | 89 | fi |
89 | 90 | ||
90 | oe_multilib_header bits/syscall.h bits/long-double.h bits/floatn.h bits/endianness.h bits/struct_rwlock.h bits/math-vector.h | 91 | oe_multilib_header bits/syscall.h bits/long-double.h bits/floatn.h bits/endianness.h bits/struct_rwlock.h bits/math-vector.h bits/indirect-return.h |
91 | 92 | ||
92 | if [ -f ${D}${bindir}/mtrace ]; then | 93 | if [ -f ${D}${bindir}/mtrace ]; then |
93 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' -e '2s,exec.*perl,exec ${USRBINPATH}/env perl,' ${D}${bindir}/mtrace | 94 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' -e '2s,exec.*perl,exec ${USRBINPATH}/env perl,' ${D}${bindir}/mtrace |
@@ -101,7 +102,7 @@ do_install() { | |||
101 | install -d ${D}${localstatedir}/db/nscd | 102 | install -d ${D}${localstatedir}/db/nscd |
102 | install -m 0755 ${S}/nscd/nscd.init ${D}${sysconfdir}/init.d/nscd | 103 | install -m 0755 ${S}/nscd/nscd.init ${D}${sysconfdir}/init.d/nscd |
103 | install -m 0755 ${S}/nscd/nscd.conf ${D}${sysconfdir}/nscd.conf | 104 | install -m 0755 ${S}/nscd/nscd.conf ${D}${sysconfdir}/nscd.conf |
104 | install -m 0755 ${WORKDIR}/makedbs.sh ${D}${localstatedir}/db | 105 | install -m 0755 ${UNPACKDIR}/makedbs.sh ${D}${localstatedir}/db |
105 | sed -i "s%daemon%start-stop-daemon --start --exec%g" ${D}${sysconfdir}/init.d/nscd | 106 | sed -i "s%daemon%start-stop-daemon --start --exec%g" ${D}${sysconfdir}/init.d/nscd |
106 | sed -i "s|\(enable-cache\t\+netgroup\t\+\)yes|\1no|" ${D}${sysconfdir}/nscd.conf | 107 | sed -i "s|\(enable-cache\t\+netgroup\t\+\)yes|\1no|" ${D}${sysconfdir}/nscd.conf |
107 | 108 | ||
@@ -169,6 +170,12 @@ do_install_armmultilib () { | |||
169 | oe_multilib_header sys/elf.h sys/procfs.h sys/ptrace.h sys/ucontext.h sys/user.h | 170 | oe_multilib_header sys/elf.h sys/procfs.h sys/ptrace.h sys/ucontext.h sys/user.h |
170 | } | 171 | } |
171 | 172 | ||
173 | do_install_armmultilib:append:class-target() { | ||
174 | gcc_version=$($CC -dumpversion) | ||
175 | mkdir -p ${D}${libdir}/gcc/${TARGET_SYS}/${gcc_version}/finclude | ||
176 | mv ${D}${includedir}/finclude/math-vector-fortran.h ${D}${libdir}/gcc/${TARGET_SYS}/${gcc_version}/finclude/ | ||
177 | rmdir --ignore-fail-on-non-empty ${D}${includedir}/finclude | ||
178 | } | ||
172 | 179 | ||
173 | LOCALESTASH = "${WORKDIR}/stashed-locale" | 180 | LOCALESTASH = "${WORKDIR}/stashed-locale" |
174 | bashscripts = "mtrace sotruss xtrace" | 181 | bashscripts = "mtrace sotruss xtrace" |
@@ -286,7 +293,7 @@ pkg_postinst:nscd () { | |||
286 | fi | 293 | fi |
287 | fi | 294 | fi |
288 | } | 295 | } |
289 | CONFFILES:nscd="${sysconfdir}/nscd.conf" | 296 | CONFFILES:nscd = "${sysconfdir}/nscd.conf" |
290 | 297 | ||
291 | SYSTEMD_PACKAGES = "nscd" | 298 | SYSTEMD_PACKAGES = "nscd" |
292 | SYSTEMD_SERVICE:nscd = "nscd.service" | 299 | SYSTEMD_SERVICE:nscd = "nscd.service" |
diff --git a/meta/recipes-core/glibc/glibc-scripts_2.39.bb b/meta/recipes-core/glibc/glibc-scripts_2.41.bb index 5a89bd8022..5a89bd8022 100644 --- a/meta/recipes-core/glibc/glibc-scripts_2.39.bb +++ b/meta/recipes-core/glibc/glibc-scripts_2.41.bb | |||
diff --git a/meta/recipes-core/glibc/glibc-testsuite_2.39.bb b/meta/recipes-core/glibc/glibc-testsuite_2.41.bb index 2e076f4b0f..3a2764e40b 100644 --- a/meta/recipes-core/glibc/glibc-testsuite_2.39.bb +++ b/meta/recipes-core/glibc/glibc-testsuite_2.41.bb | |||
@@ -18,7 +18,7 @@ TOOLCHAIN_TEST_HOST_PORT ??= "2222" | |||
18 | do_check[nostamp] = "1" | 18 | do_check[nostamp] = "1" |
19 | do_check[network] = "1" | 19 | do_check[network] = "1" |
20 | do_check:append () { | 20 | do_check:append () { |
21 | chmod 0755 ${WORKDIR}/check-test-wrapper | 21 | chmod 0755 ${UNPACKDIR}/check-test-wrapper |
22 | 22 | ||
23 | oe_runmake -i \ | 23 | oe_runmake -i \ |
24 | QEMU_SYSROOT="${RECIPE_SYSROOT}" \ | 24 | QEMU_SYSROOT="${RECIPE_SYSROOT}" \ |
@@ -26,7 +26,7 @@ do_check:append () { | |||
26 | SSH_HOST="${TOOLCHAIN_TEST_HOST}" \ | 26 | SSH_HOST="${TOOLCHAIN_TEST_HOST}" \ |
27 | SSH_HOST_USER="${TOOLCHAIN_TEST_HOST_USER}" \ | 27 | SSH_HOST_USER="${TOOLCHAIN_TEST_HOST_USER}" \ |
28 | SSH_HOST_PORT="${TOOLCHAIN_TEST_HOST_PORT}" \ | 28 | SSH_HOST_PORT="${TOOLCHAIN_TEST_HOST_PORT}" \ |
29 | test-wrapper="${WORKDIR}/check-test-wrapper ${TOOLCHAIN_TEST_TARGET}" \ | 29 | test-wrapper="${UNPACKDIR}/check-test-wrapper ${TOOLCHAIN_TEST_TARGET}" \ |
30 | check | 30 | check |
31 | } | 31 | } |
32 | 32 | ||
diff --git a/meta/recipes-core/glibc/glibc-version.inc b/meta/recipes-core/glibc/glibc-version.inc index 618a574566..2d31131e03 100644 --- a/meta/recipes-core/glibc/glibc-version.inc +++ b/meta/recipes-core/glibc/glibc-version.inc | |||
@@ -1,10 +1,8 @@ | |||
1 | SRCBRANCH ?= "release/2.39/master" | 1 | SRCBRANCH ?= "release/2.41/master" |
2 | PV = "2.39+git" | 2 | PV = "2.41+git" |
3 | SRCREV_glibc ?= "1b9c1a0047fb26a65a9b2a7b8cd977243f7d353c" | 3 | SRCREV_glibc ?= "0c76c951620f9e12df2a89b2c684878b55bb6795" |
4 | SRCREV_localedef ?= "fab74f31b3811df543e24b6de47efdf45b538abc" | 4 | SRCREV_localedef ?= "fab74f31b3811df543e24b6de47efdf45b538abc" |
5 | 5 | ||
6 | GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git;protocol=https" | 6 | GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git;protocol=https" |
7 | 7 | ||
8 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.(?!90)\d+)*)" | 8 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.(?!90)\d+)*)" |
9 | |||
10 | CVE_STATUS[CVE-2023-4911] = "fixed-version: Fixed in stable branch updates" | ||
diff --git a/meta/recipes-core/glibc/glibc-y2038-tests_2.39.bb b/meta/recipes-core/glibc/glibc-y2038-tests_2.39.bb deleted file mode 100644 index be49ca4cb7..0000000000 --- a/meta/recipes-core/glibc/glibc-y2038-tests_2.39.bb +++ /dev/null | |||
@@ -1,119 +0,0 @@ | |||
1 | require glibc_${PV}.bb | ||
2 | require glibc-tests.inc | ||
3 | |||
4 | inherit ptest features_check | ||
5 | REQUIRED_DISTRO_FEATURES = "ptest" | ||
6 | |||
7 | SRC_URI += "\ | ||
8 | file://run-ptest \ | ||
9 | " | ||
10 | |||
11 | SUMMARY = "glibc tests using time32/time64 interfaces to be run with ptest for the purpose of checking y2038 compatiblity" | ||
12 | |||
13 | # Erase some variables already set by glibc_${PV} | ||
14 | python __anonymous() { | ||
15 | # Remove packages provided by glibc build, we only need a subset of them | ||
16 | d.setVar("PACKAGES", "${PN} ${PN}-ptest") | ||
17 | |||
18 | d.setVar("PROVIDES", "${PN} ${PN}-ptest") | ||
19 | |||
20 | bbclassextend = d.getVar("BBCLASSEXTEND").replace("nativesdk", "").strip() | ||
21 | d.setVar("BBCLASSEXTEND", bbclassextend) | ||
22 | d.setVar("RRECOMMENDS", "") | ||
23 | d.setVar("SYSTEMD_SERVICE:nscd", "") | ||
24 | d.setVar("SYSTEMD_PACKAGES", "") | ||
25 | } | ||
26 | |||
27 | # Remove any leftovers from original glibc recipe | ||
28 | RPROVIDES:${PN} = "${PN}" | ||
29 | RRECOMMENDS:${PN} = "" | ||
30 | RDEPENDS:${PN} = "glibc libgcc sed bash" | ||
31 | RDEPENDS:${PN}-ptest = "${PN}" | ||
32 | DEPENDS += "sed" | ||
33 | |||
34 | export oe_srcdir="${exec_prefix}/src/debug/glibc/${PV}/" | ||
35 | |||
36 | # Just build tests for target - do not run them | ||
37 | do_check:append () { | ||
38 | oe_runmake -i check run-built-tests=no | ||
39 | } | ||
40 | addtask do_check after do_compile before do_install_ptest_base | ||
41 | |||
42 | glibc_strip_build_directory () { | ||
43 | # Delete all non executable files from build directory | ||
44 | find ${B} ! -executable -type f -delete | ||
45 | |||
46 | # Remove build dynamic libraries and links to them as | ||
47 | # those are already installed in the target device | ||
48 | find ${B} -type f -name "*.so" -delete | ||
49 | find ${B} -type l -name "*.so*" -delete | ||
50 | |||
51 | # Remove headers (installed with glibc) | ||
52 | find ${B} -type f -name "*.h" -delete | ||
53 | |||
54 | find ${B} -type f -name "isomac" -delete | ||
55 | find ${B} -type f -name "annexc" -delete | ||
56 | } | ||
57 | |||
58 | do_install_ptest_base () { | ||
59 | glibc_strip_build_directory | ||
60 | |||
61 | ls -r ${B}/*/*-time64 > ${B}/tst_time64 | ||
62 | |||
63 | # Remove '-time64' suffix - those tests are also time related | ||
64 | sed -e "s/-time64$//" ${B}/tst_time64 > ${B}/tst_time_tmp | ||
65 | tst_time=$(cat ${B}/tst_time_tmp ${B}/tst_time64) | ||
66 | |||
67 | rm ${B}/tst_time_tmp ${B}/tst_time64 | ||
68 | echo "${tst_time}" | ||
69 | |||
70 | # Install build test programs to the image | ||
71 | install -d ${D}${PTEST_PATH}/tests/glibc-ptest/ | ||
72 | |||
73 | for f in "${tst_time}" | ||
74 | do | ||
75 | cp -r ${f} ${D}${PTEST_PATH}/tests/glibc-ptest/ | ||
76 | done | ||
77 | |||
78 | install -d ${D}${PTEST_PATH} | ||
79 | cp ${WORKDIR}/run-ptest ${D}${PTEST_PATH}/ | ||
80 | |||
81 | } | ||
82 | |||
83 | # The datadir directory is required to allow core (and reused) | ||
84 | # glibc cleanup function to finish correctly, as this directory | ||
85 | # is not created for ptests | ||
86 | stash_locale_package_cleanup:prepend () { | ||
87 | mkdir -p ${PKGD}${datadir} | ||
88 | } | ||
89 | |||
90 | stash_locale_sysroot_cleanup:prepend () { | ||
91 | mkdir -p ${SYSROOT_DESTDIR}${datadir} | ||
92 | } | ||
93 | |||
94 | # Prevent the do_package() task to set 'libc6' prefix | ||
95 | # for glibc tests related packages | ||
96 | python populate_packages:prepend () { | ||
97 | if d.getVar('DEBIAN_NAMES'): | ||
98 | d.setVar('DEBIAN_NAMES', '') | ||
99 | } | ||
100 | |||
101 | FILES:${PN} = "${PTEST_PATH}/* /usr/src/debug/${PN}/*" | ||
102 | |||
103 | EXCLUDE_FROM_SHLIBS = "1" | ||
104 | |||
105 | # Install debug data in .debug and sources in /usr/src/debug | ||
106 | # It is more handy to have _all_ the sources and symbols in one | ||
107 | # place (package) as this recipe will be used for validation and | ||
108 | # debugging. | ||
109 | PACKAGE_DEBUG_SPLIT_STYLE = ".debug" | ||
110 | |||
111 | # glibc test cases violate by default some Yocto/OE checks (staticdev, | ||
112 | # textrel) | ||
113 | # 'debug-files' - add everything (including debug) into one package | ||
114 | # (no need to install/build *-src package) | ||
115 | INSANE_SKIP:${PN} += "staticdev textrel debug-files rpaths" | ||
116 | |||
117 | deltask do_stash_locale | ||
118 | do_install[noexec] = "1" | ||
119 | do_populate_sysroot[noexec] = "1" | ||
diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index b08a70aa46..d8f20c87dd 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | require glibc-common.inc | 1 | require glibc-common.inc |
2 | require glibc-ld.inc | 2 | require glibc-ld.inc |
3 | 3 | ||
4 | DEPENDS = "virtual/${HOST_PREFIX}gcc virtual/${HOST_PREFIX}binutils libgcc-initial linux-libc-headers" | 4 | DEPENDS = "virtual/cross-cc virtual/cross-binutils libgcc-initial linux-libc-headers" |
5 | 5 | ||
6 | PROVIDES = "virtual/libc" | 6 | PROVIDES = "virtual/libc" |
7 | PROVIDES += "virtual/libintl virtual/libiconv" | 7 | PROVIDES += "virtual/libintl virtual/libiconv" |
diff --git a/meta/recipes-core/glibc/glibc/0001-Propagate-ffile-prefix-map-from-CFLAGS-to-ASFLAGS.patch b/meta/recipes-core/glibc/glibc/0001-Propagate-ffile-prefix-map-from-CFLAGS-to-ASFLAGS.patch new file mode 100644 index 0000000000..b42b186418 --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0001-Propagate-ffile-prefix-map-from-CFLAGS-to-ASFLAGS.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From 603e50d6b8ccadb32d59b0497f76629665c1794b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 16 Apr 2025 19:51:01 -0700 | ||
4 | Subject: [PATCH] Propagate -ffile-prefix-map from CFLAGS to ASFLAGS. | ||
5 | |||
6 | Upstream-Status: Submitted [https://sourceware.org/pipermail/libc-alpha/2025-April/165969.html] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | Makeconfig | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/Makeconfig b/Makeconfig | ||
13 | index e35c5cfe4e..7a19c731c6 100644 | ||
14 | --- a/Makeconfig | ||
15 | +++ b/Makeconfig | ||
16 | @@ -1172,7 +1172,7 @@ endif | ||
17 | |||
18 | # The assembler can generate debug information too. | ||
19 | ifndef ASFLAGS | ||
20 | -ASFLAGS := $(filter -g% -fdebug-prefix-map=%,$(CFLAGS)) | ||
21 | +ASFLAGS := $(filter -g% -fdebug-prefix-map=% -ffile-prefix-map=%,$(CFLAGS)) | ||
22 | endif | ||
23 | override ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu) | ||
24 | |||
diff --git a/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-from-util-linux.patch b/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-from-util-linux.patch index 4f919078dd..dbe3ce8c32 100644 --- a/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-from-util-linux.patch +++ b/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-from-util-linux.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 544d23dea91b2be793c805b9e4bce8cd1d28121f Mon Sep 17 00:00:00 2001 | 1 | From cecd20fa2ff3ee2bd887b1d427088f32678cc04f Mon Sep 17 00:00:00 2001 |
2 | From: Jason Wessel <jason.wessel@windriver.com> | 2 | From: Jason Wessel <jason.wessel@windriver.com> |
3 | Date: Sat, 7 Dec 2019 09:59:22 -0800 | 3 | Date: Sat, 7 Dec 2019 09:59:22 -0800 |
4 | Subject: [PATCH] localedef: Add hardlink resolver from util-linux | 4 | Subject: [PATCH] localedef: Add hardlink resolver from util-linux |
diff --git a/meta/recipes-core/glibc/glibc/0001-stdlib-Add-single-threaded-fast-path-to-rand.patch b/meta/recipes-core/glibc/glibc/0001-stdlib-Add-single-threaded-fast-path-to-rand.patch new file mode 100644 index 0000000000..736fc51f38 --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0001-stdlib-Add-single-threaded-fast-path-to-rand.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 4f54b0dfc16dbe0df86afccb90e447df5f7f571e Mon Sep 17 00:00:00 2001 | ||
2 | From: Wilco Dijkstra <wilco.dijkstra@arm.com> | ||
3 | Date: Mon, 18 Mar 2024 15:18:20 +0000 | ||
4 | Subject: [PATCH] stdlib: Add single-threaded fast path to rand() | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Improve performance of rand() and __random() by adding a single-threaded | ||
10 | fast path. Bench-random-lock shows about 5x speedup on Neoverse V1. | ||
11 | |||
12 | Upstream-Status: Backport [be0cfd848d9ad7378800d6302bc11467cf2b514f] | ||
13 | |||
14 | Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> | ||
15 | Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com> | ||
16 | --- | ||
17 | stdlib/random.c | 7 +++++++ | ||
18 | 1 file changed, 7 insertions(+) | ||
19 | |||
20 | diff --git a/stdlib/random.c b/stdlib/random.c | ||
21 | index 17cc61ba8f55..5d482a857065 100644 | ||
22 | --- a/stdlib/random.c | ||
23 | +++ b/stdlib/random.c | ||
24 | @@ -51,6 +51,7 @@ | ||
25 | SUCH DAMAGE.*/ | ||
26 | |||
27 | #include <libc-lock.h> | ||
28 | +#include <sys/single_threaded.h> | ||
29 | #include <limits.h> | ||
30 | #include <stddef.h> | ||
31 | #include <stdlib.h> | ||
32 | @@ -288,6 +289,12 @@ __random (void) | ||
33 | { | ||
34 | int32_t retval; | ||
35 | |||
36 | + if (SINGLE_THREAD_P) | ||
37 | + { | ||
38 | + (void) __random_r (&unsafe_state, &retval); | ||
39 | + return retval; | ||
40 | + } | ||
41 | + | ||
42 | __libc_lock_lock (lock); | ||
43 | |||
44 | (void) __random_r (&unsafe_state, &retval); | ||
45 | -- | ||
46 | 2.34.1 | ||
47 | |||
diff --git a/meta/recipes-core/glibc/glibc/0002-localedef-fix-ups-hardlink-to-make-it-compile.patch b/meta/recipes-core/glibc/glibc/0002-localedef-fix-ups-hardlink-to-make-it-compile.patch index 7c8fa973ec..59d71a0d8b 100644 --- a/meta/recipes-core/glibc/glibc/0002-localedef-fix-ups-hardlink-to-make-it-compile.patch +++ b/meta/recipes-core/glibc/glibc/0002-localedef-fix-ups-hardlink-to-make-it-compile.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From ebb1e37285ab541135005cfe945b7a58e4b95040 Mon Sep 17 00:00:00 2001 | 1 | From e31f032ae87ba38645c66dd7d2dfaa8606602e70 Mon Sep 17 00:00:00 2001 |
2 | From: Jason Wessel <jason.wessel@windriver.com> | 2 | From: Jason Wessel <jason.wessel@windriver.com> |
3 | Date: Sat, 7 Dec 2019 10:01:37 -0800 | 3 | Date: Sat, 7 Dec 2019 10:01:37 -0800 |
4 | Subject: [PATCH] localedef: fix-ups hardlink to make it compile | 4 | Subject: [PATCH] localedef: fix-ups hardlink to make it compile |
diff --git a/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch b/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch index bd4b5aa98b..0f7db0d500 100644 --- a/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch +++ b/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | From 9770abfda8e85fe027f95871bc03450d05b1e2c8 Mon Sep 17 00:00:00 2001 | 1 | From f794ec18764a59ad45e242092e2ae6f5e3b19761 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 01:48:24 +0000 | 3 | Date: Sat, 3 Feb 2024 13:54:16 -0800 |
4 | Subject: [PATCH] nativesdk-glibc: Look for host system ld.so.cache as well | 4 | Subject: [PATCH] nativesdk-glibc: Look for host system ld.so.cache as well |
5 | 5 | ||
6 | Upstream-Status: Inappropriate [embedded specific] | 6 | Upstream-Status: Inappropriate [embedded specific] |
@@ -30,25 +30,25 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
30 | 1 file changed, 8 insertions(+), 8 deletions(-) | 30 | 1 file changed, 8 insertions(+), 8 deletions(-) |
31 | 31 | ||
32 | diff --git a/elf/dl-load.c b/elf/dl-load.c | 32 | diff --git a/elf/dl-load.c b/elf/dl-load.c |
33 | index ce8fdea302..1f502eb026 100644 | 33 | index f905578a65..d4dd0fbc2a 100644 |
34 | --- a/elf/dl-load.c | 34 | --- a/elf/dl-load.c |
35 | +++ b/elf/dl-load.c | 35 | +++ b/elf/dl-load.c |
36 | @@ -2105,6 +2105,14 @@ _dl_map_object (struct link_map *loader, const char *name, | 36 | @@ -2038,6 +2038,14 @@ _dl_map_object (struct link_map *loader, const char *name, |
37 | } | 37 | &loader->l_runpath_dirs, &realname, &fb, loader, |
38 | } | 38 | LA_SER_RUNPATH, &found_other_class); |
39 | 39 | ||
40 | + /* try the default path. */ | 40 | + /* Try the default path. */ |
41 | + if (fd == -1 | 41 | + if (fd == -1 |
42 | + && ((l = loader ?: GL(dl_ns)[nsid]._ns_loaded) == NULL | 42 | + && ((l = loader ?: GL(dl_ns)[nsid]._ns_loaded) == NULL |
43 | + || __builtin_expect (!(l->l_flags_1 & DF_1_NODEFLIB), 1)) | 43 | + || __glibc_likely (!(l->l_flags_1 & DF_1_NODEFLIB))) |
44 | + && __rtld_search_dirs.dirs != (void *) -1) | 44 | + && __rtld_search_dirs.dirs != (void *) -1) |
45 | + fd = open_path (name, namelen, mode & __RTLD_SECURE, &__rtld_search_dirs, | 45 | + fd = open_path (name, namelen, mode, &__rtld_search_dirs, |
46 | + &realname, &fb, l, LA_SER_DEFAULT, &found_other_class); | 46 | + &realname, &fb, l, LA_SER_DEFAULT, &found_other_class); |
47 | + /* Finally try ld.so.cache */ | 47 | + /* Finally try ld.so.cache */ |
48 | #ifdef USE_LDCONFIG | 48 | #ifdef USE_LDCONFIG |
49 | if (fd == -1 | 49 | if (fd == -1 |
50 | && (__glibc_likely ((mode & __RTLD_SECURE) == 0) | 50 | && (__glibc_likely ((mode & __RTLD_SECURE) == 0) |
51 | @@ -2163,14 +2171,6 @@ _dl_map_object (struct link_map *loader, const char *name, | 51 | @@ -2096,14 +2104,6 @@ _dl_map_object (struct link_map *loader, const char *name, |
52 | } | 52 | } |
53 | #endif | 53 | #endif |
54 | 54 | ||
diff --git a/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch b/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch index 19fc561a06..d9731a6fb7 100644 --- a/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch +++ b/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 587b92ff99e6d8f59c461ee8beecae39d8818f7e Mon Sep 17 00:00:00 2001 | 1 | From e8af7c91033875cfaf419c840d3283d71eb72d50 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 01:50:00 +0000 | 3 | Date: Wed, 18 Mar 2015 01:50:00 +0000 |
4 | Subject: [PATCH] nativesdk-glibc: Fix buffer overrun with a relocated SDK | 4 | Subject: [PATCH] nativesdk-glibc: Fix buffer overrun with a relocated SDK |
@@ -21,10 +21,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
21 | 1 file changed, 12 insertions(+) | 21 | 1 file changed, 12 insertions(+) |
22 | 22 | ||
23 | diff --git a/elf/dl-load.c b/elf/dl-load.c | 23 | diff --git a/elf/dl-load.c b/elf/dl-load.c |
24 | index 1f502eb026..c4a543fb00 100644 | 24 | index d4dd0fbc2a..0cd5221d6a 100644 |
25 | --- a/elf/dl-load.c | 25 | --- a/elf/dl-load.c |
26 | +++ b/elf/dl-load.c | 26 | +++ b/elf/dl-load.c |
27 | @@ -1802,7 +1802,19 @@ open_path (const char *name, size_t namelen, int mode, | 27 | @@ -1749,7 +1749,19 @@ open_path (const char *name, size_t namelen, int mode, |
28 | given on the command line when rtld is run directly. */ | 28 | given on the command line when rtld is run directly. */ |
29 | return -1; | 29 | return -1; |
30 | 30 | ||
diff --git a/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch b/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch index 55892417f4..0ee03c95d8 100644 --- a/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch +++ b/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 49caf586b80ba030a0ee4af9f6128ff2979ea636 Mon Sep 17 00:00:00 2001 | 1 | From d7c4488ff48992631e14a53c27252790eaefe928 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 01:51:38 +0000 | 3 | Date: Wed, 18 Mar 2015 01:51:38 +0000 |
4 | Subject: [PATCH] nativesdk-glibc: Raise the size of arrays containing dl paths | 4 | Subject: [PATCH] nativesdk-glibc: Raise the size of arrays containing dl paths |
@@ -26,10 +26,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
26 | 8 files changed, 15 insertions(+), 10 deletions(-) | 26 | 8 files changed, 15 insertions(+), 10 deletions(-) |
27 | 27 | ||
28 | diff --git a/elf/dl-cache.c b/elf/dl-cache.c | 28 | diff --git a/elf/dl-cache.c b/elf/dl-cache.c |
29 | index 85f3f179ed..cc55887c56 100644 | 29 | index 300aa1b6dd..6df873e08b 100644 |
30 | --- a/elf/dl-cache.c | 30 | --- a/elf/dl-cache.c |
31 | +++ b/elf/dl-cache.c | 31 | +++ b/elf/dl-cache.c |
32 | @@ -352,6 +352,10 @@ search_cache (const char *string_table, uint32_t string_table_size, | 32 | @@ -336,6 +336,10 @@ search_cache (const char *string_table, uint32_t string_table_size, |
33 | return best; | 33 | return best; |
34 | } | 34 | } |
35 | 35 | ||
@@ -41,10 +41,10 @@ index 85f3f179ed..cc55887c56 100644 | |||
41 | _dl_cache_libcmp (const char *p1, const char *p2) | 41 | _dl_cache_libcmp (const char *p1, const char *p2) |
42 | { | 42 | { |
43 | diff --git a/elf/dl-load.c b/elf/dl-load.c | 43 | diff --git a/elf/dl-load.c b/elf/dl-load.c |
44 | index c4a543fb00..27fb70f09b 100644 | 44 | index 0cd5221d6a..9b9593f8d8 100644 |
45 | --- a/elf/dl-load.c | 45 | --- a/elf/dl-load.c |
46 | +++ b/elf/dl-load.c | 46 | +++ b/elf/dl-load.c |
47 | @@ -117,8 +117,8 @@ enum { ncapstr = 1, max_capstrlen = 0 }; | 47 | @@ -107,8 +107,8 @@ enum { ncapstr = 1, max_capstrlen = 0 }; |
48 | gen-trusted-dirs.awk. */ | 48 | gen-trusted-dirs.awk. */ |
49 | #include "trusted-dirs.h" | 49 | #include "trusted-dirs.h" |
50 | 50 | ||
@@ -56,7 +56,7 @@ index c4a543fb00..27fb70f09b 100644 | |||
56 | SYSTEM_DIRS_LEN | 56 | SYSTEM_DIRS_LEN |
57 | }; | 57 | }; |
58 | diff --git a/elf/dl-usage.c b/elf/dl-usage.c | 58 | diff --git a/elf/dl-usage.c b/elf/dl-usage.c |
59 | index 5baac4ba8e..60097ad0e2 100644 | 59 | index c6d13ac2ee..1dac82102d 100644 |
60 | --- a/elf/dl-usage.c | 60 | --- a/elf/dl-usage.c |
61 | +++ b/elf/dl-usage.c | 61 | +++ b/elf/dl-usage.c |
62 | @@ -25,6 +25,8 @@ | 62 | @@ -25,6 +25,8 @@ |
@@ -87,7 +87,7 @@ index 5baac4ba8e..60097ad0e2 100644 | |||
87 | print_hwcaps_subdirectories (state); | 87 | print_hwcaps_subdirectories (state); |
88 | _exit (EXIT_SUCCESS); | 88 | _exit (EXIT_SUCCESS); |
89 | diff --git a/elf/interp.c b/elf/interp.c | 89 | diff --git a/elf/interp.c b/elf/interp.c |
90 | index 8b705824bf..7d094829f3 100644 | 90 | index cc49e13c86..394c1ce0c5 100644 |
91 | --- a/elf/interp.c | 91 | --- a/elf/interp.c |
92 | +++ b/elf/interp.c | 92 | +++ b/elf/interp.c |
93 | @@ -18,5 +18,5 @@ | 93 | @@ -18,5 +18,5 @@ |
@@ -98,10 +98,10 @@ index 8b705824bf..7d094829f3 100644 | |||
98 | +const char __invoke_dynamic_linker__[4096] __attribute__ ((section (".interp"))) | 98 | +const char __invoke_dynamic_linker__[4096] __attribute__ ((section (".interp"))) |
99 | = RUNTIME_LINKER; | 99 | = RUNTIME_LINKER; |
100 | diff --git a/elf/ldconfig.c b/elf/ldconfig.c | 100 | diff --git a/elf/ldconfig.c b/elf/ldconfig.c |
101 | index b64c54b53e..caf7001745 100644 | 101 | index 1432187e9b..0654e02389 100644 |
102 | --- a/elf/ldconfig.c | 102 | --- a/elf/ldconfig.c |
103 | +++ b/elf/ldconfig.c | 103 | +++ b/elf/ldconfig.c |
104 | @@ -150,6 +150,8 @@ static struct argp argp = | 104 | @@ -151,6 +151,8 @@ static struct argp argp = |
105 | options, parse_opt, NULL, doc, NULL, more_help, NULL | 105 | options, parse_opt, NULL, doc, NULL, more_help, NULL |
106 | }; | 106 | }; |
107 | 107 | ||
@@ -111,7 +111,7 @@ index b64c54b53e..caf7001745 100644 | |||
111 | static error_t | 111 | static error_t |
112 | parse_opt (int key, char *arg, struct argp_state *state) | 112 | parse_opt (int key, char *arg, struct argp_state *state) |
113 | diff --git a/elf/rtld.c b/elf/rtld.c | 113 | diff --git a/elf/rtld.c b/elf/rtld.c |
114 | index 4f494b792e..d1c1252188 100644 | 114 | index f32058bba6..434ea6d0c5 100644 |
115 | --- a/elf/rtld.c | 115 | --- a/elf/rtld.c |
116 | +++ b/elf/rtld.c | 116 | +++ b/elf/rtld.c |
117 | @@ -190,6 +190,7 @@ dso_name_valid_for_suid (const char *p) | 117 | @@ -190,6 +190,7 @@ dso_name_valid_for_suid (const char *p) |
@@ -123,7 +123,7 @@ index 4f494b792e..d1c1252188 100644 | |||
123 | static void | 123 | static void |
124 | audit_list_init (struct audit_list *list) | 124 | audit_list_init (struct audit_list *list) |
125 | diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c | 125 | diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c |
126 | index 1063c31a2b..57fa832e52 100644 | 126 | index 41ab0768c9..7c48c2b328 100644 |
127 | --- a/iconv/gconv_conf.c | 127 | --- a/iconv/gconv_conf.c |
128 | +++ b/iconv/gconv_conf.c | 128 | +++ b/iconv/gconv_conf.c |
129 | @@ -35,7 +35,7 @@ | 129 | @@ -35,7 +35,7 @@ |
@@ -136,7 +136,7 @@ index 1063c31a2b..57fa832e52 100644 | |||
136 | /* Type to represent search path. */ | 136 | /* Type to represent search path. */ |
137 | struct path_elem | 137 | struct path_elem |
138 | diff --git a/sysdeps/generic/dl-cache.h b/sysdeps/generic/dl-cache.h | 138 | diff --git a/sysdeps/generic/dl-cache.h b/sysdeps/generic/dl-cache.h |
139 | index 919e49ffc8..cd3f8ba94b 100644 | 139 | index 0ee6571315..792308c0ab 100644 |
140 | --- a/sysdeps/generic/dl-cache.h | 140 | --- a/sysdeps/generic/dl-cache.h |
141 | +++ b/sysdeps/generic/dl-cache.h | 141 | +++ b/sysdeps/generic/dl-cache.h |
142 | @@ -34,10 +34,6 @@ | 142 | @@ -34,10 +34,6 @@ |
diff --git a/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch b/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch index 56eaaed4b7..597923e792 100644 --- a/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch +++ b/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 3a94365c730d174a3c30c6d9282e6ca12d9ad091 Mon Sep 17 00:00:00 2001 | 1 | From 9b408439eb042c4fc5cb33c8929dea419bf25b41 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 31 Dec 2015 14:35:35 -0800 | 3 | Date: Thu, 31 Dec 2015 14:35:35 -0800 |
4 | Subject: [PATCH] nativesdk-glibc: Allow 64 bit atomics for x86 | 4 | Subject: [PATCH] nativesdk-glibc: Allow 64 bit atomics for x86 |
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
17 | 1 file changed, 1 insertion(+), 6 deletions(-) | 17 | 1 file changed, 1 insertion(+), 6 deletions(-) |
18 | 18 | ||
19 | diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h | 19 | diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h |
20 | index cfd395087b..28a937c468 100644 | 20 | index 5452716d22..8c7408feb4 100644 |
21 | --- a/sysdeps/x86/atomic-machine.h | 21 | --- a/sysdeps/x86/atomic-machine.h |
22 | +++ b/sysdeps/x86/atomic-machine.h | 22 | +++ b/sysdeps/x86/atomic-machine.h |
23 | @@ -26,19 +26,14 @@ | 23 | @@ -26,19 +26,14 @@ |
diff --git a/meta/recipes-core/glibc/glibc/0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch b/meta/recipes-core/glibc/glibc/0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch index 54c085a714..2886d461c8 100644 --- a/meta/recipes-core/glibc/glibc/0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch +++ b/meta/recipes-core/glibc/glibc/0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 296bdde0683aa55cdea0fd0cab05ff8fbc462b17 Mon Sep 17 00:00:00 2001 | 1 | From 1a57ab6f7d602401396a18b0270498ff9228cf64 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 3 Aug 2018 09:55:12 -0700 | 3 | Date: Fri, 3 Aug 2018 09:55:12 -0700 |
4 | Subject: [PATCH] nativesdk-glibc: Make relocatable install for locales | 4 | Subject: [PATCH] nativesdk-glibc: Make relocatable install for locales |
@@ -19,7 +19,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
19 | 4 files changed, 8 insertions(+), 7 deletions(-) | 19 | 4 files changed, 8 insertions(+), 7 deletions(-) |
20 | 20 | ||
21 | diff --git a/locale/findlocale.c b/locale/findlocale.c | 21 | diff --git a/locale/findlocale.c b/locale/findlocale.c |
22 | index 8d6e4e33e3..bfe74f241d 100644 | 22 | index e5e2bd3974..bdd9b79f83 100644 |
23 | --- a/locale/findlocale.c | 23 | --- a/locale/findlocale.c |
24 | +++ b/locale/findlocale.c | 24 | +++ b/locale/findlocale.c |
25 | @@ -55,7 +55,7 @@ struct __locale_data *const _nl_C[] attribute_hidden = | 25 | @@ -55,7 +55,7 @@ struct __locale_data *const _nl_C[] attribute_hidden = |
@@ -41,7 +41,7 @@ index 8d6e4e33e3..bfe74f241d 100644 | |||
41 | else | 41 | else |
42 | /* We really have to load some data. First see whether the name is | 42 | /* We really have to load some data. First see whether the name is |
43 | diff --git a/locale/loadarchive.c b/locale/loadarchive.c | 43 | diff --git a/locale/loadarchive.c b/locale/loadarchive.c |
44 | index 452e3eb6e3..c7467aec42 100644 | 44 | index 058a467cde..af62f3c304 100644 |
45 | --- a/locale/loadarchive.c | 45 | --- a/locale/loadarchive.c |
46 | +++ b/locale/loadarchive.c | 46 | +++ b/locale/loadarchive.c |
47 | @@ -42,7 +42,7 @@ | 47 | @@ -42,7 +42,7 @@ |
@@ -54,7 +54,7 @@ index 452e3eb6e3..c7467aec42 100644 | |||
54 | /* Size of initial mapping window, optimal if large enough to | 54 | /* Size of initial mapping window, optimal if large enough to |
55 | cover the header plus the initial locale. */ | 55 | cover the header plus the initial locale. */ |
56 | diff --git a/locale/localeinfo.h b/locale/localeinfo.h | 56 | diff --git a/locale/localeinfo.h b/locale/localeinfo.h |
57 | index ed698faef1..f7efc288a5 100644 | 57 | index ab1b5e5659..92aef8d58e 100644 |
58 | --- a/locale/localeinfo.h | 58 | --- a/locale/localeinfo.h |
59 | +++ b/locale/localeinfo.h | 59 | +++ b/locale/localeinfo.h |
60 | @@ -347,7 +347,7 @@ _nl_lookup_word (locale_t l, int category, int item) | 60 | @@ -347,7 +347,7 @@ _nl_lookup_word (locale_t l, int category, int item) |
@@ -67,7 +67,7 @@ index ed698faef1..f7efc288a5 100644 | |||
67 | /* Load the locale data for CATEGORY from the file specified by *NAME. | 67 | /* Load the locale data for CATEGORY from the file specified by *NAME. |
68 | If *NAME is "", use environment variables as specified by POSIX, and | 68 | If *NAME is "", use environment variables as specified by POSIX, and |
69 | diff --git a/locale/programs/locale.c b/locale/programs/locale.c | 69 | diff --git a/locale/programs/locale.c b/locale/programs/locale.c |
70 | index c7ee1874e8..8281e32236 100644 | 70 | index 7e8832dc3b..7fa484f092 100644 |
71 | --- a/locale/programs/locale.c | 71 | --- a/locale/programs/locale.c |
72 | +++ b/locale/programs/locale.c | 72 | +++ b/locale/programs/locale.c |
73 | @@ -631,6 +631,7 @@ nameentcmp (const void *a, const void *b) | 73 | @@ -631,6 +631,7 @@ nameentcmp (const void *a, const void *b) |
diff --git a/meta/recipes-core/glibc/glibc/0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch b/meta/recipes-core/glibc/glibc/0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch index 096764009a..025ad153d6 100644 --- a/meta/recipes-core/glibc/glibc/0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch +++ b/meta/recipes-core/glibc/glibc/0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 70da806febac8b2eead6ddc32451bbc1787a1d7d Mon Sep 17 00:00:00 2001 | 1 | From 789083eea1feb1249ec5817710552dc31653b36e Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 6 Mar 2021 14:48:56 -0800 | 3 | Date: Sat, 6 Mar 2021 14:48:56 -0800 |
4 | Subject: [PATCH] nativesdk-glibc: Fall back to faccessat on faccess2 returns | 4 | Subject: [PATCH] nativesdk-glibc: Fall back to faccessat on faccess2 returns |
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
14 | 1 file changed, 5 insertions(+), 1 deletion(-) | 14 | 1 file changed, 5 insertions(+), 1 deletion(-) |
15 | 15 | ||
16 | diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c | 16 | diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c |
17 | index 2fa57fd63d..4d0d5ff0c4 100644 | 17 | index edb22ebce6..b67684a3ba 100644 |
18 | --- a/sysdeps/unix/sysv/linux/faccessat.c | 18 | --- a/sysdeps/unix/sysv/linux/faccessat.c |
19 | +++ b/sysdeps/unix/sysv/linux/faccessat.c | 19 | +++ b/sysdeps/unix/sysv/linux/faccessat.c |
20 | @@ -30,7 +30,11 @@ __faccessat (int fd, const char *file, int mode, int flag) | 20 | @@ -30,7 +30,11 @@ __faccessat (int fd, const char *file, int mode, int flag) |
diff --git a/meta/recipes-core/glibc/glibc/0009-yes-within-the-path-sets-wrong-config-variables.patch b/meta/recipes-core/glibc/glibc/0009-yes-within-the-path-sets-wrong-config-variables.patch index 364e5cfde8..dbb6d674d5 100644 --- a/meta/recipes-core/glibc/glibc/0009-yes-within-the-path-sets-wrong-config-variables.patch +++ b/meta/recipes-core/glibc/glibc/0009-yes-within-the-path-sets-wrong-config-variables.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 2192588942c5bc3b5fa10fc6d7433923f42e9ba0 Mon Sep 17 00:00:00 2001 | 1 | From 4a1ff3c313645aa425a0a87459c907dad1b9ca4b Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:31:06 +0000 | 3 | Date: Wed, 18 Mar 2015 00:31:06 +0000 |
4 | Subject: [PATCH] 'yes' within the path sets wrong config variables | 4 | Subject: [PATCH] 'yes' within the path sets wrong config variables |
@@ -20,20 +20,22 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
20 | sysdeps/arm/configure.ac | 4 ++-- | 20 | sysdeps/arm/configure.ac | 4 ++-- |
21 | sysdeps/mips/configure | 4 ++-- | 21 | sysdeps/mips/configure | 4 ++-- |
22 | sysdeps/mips/configure.ac | 4 ++-- | 22 | sysdeps/mips/configure.ac | 4 ++-- |
23 | sysdeps/nios2/configure | 4 ++-- | ||
24 | sysdeps/nios2/configure.ac | 4 ++-- | ||
25 | sysdeps/unix/sysv/linux/mips/configure | 4 ++-- | 23 | sysdeps/unix/sysv/linux/mips/configure | 4 ++-- |
26 | sysdeps/unix/sysv/linux/mips/configure.ac | 4 ++-- | 24 | sysdeps/unix/sysv/linux/mips/configure.ac | 4 ++-- |
27 | sysdeps/unix/sysv/linux/powerpc/powerpc64/configure | 8 ++++---- | 25 | sysdeps/unix/sysv/linux/powerpc/powerpc64/configure | 8 ++++---- |
28 | sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac | 8 ++++---- | 26 | sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac | 8 ++++---- |
29 | 12 files changed, 28 insertions(+), 28 deletions(-) | 27 | 10 files changed, 24 insertions(+), 24 deletions(-) |
28 | mode change 100644 => 100755 sysdeps/arm/configure | ||
29 | mode change 100644 => 100755 sysdeps/mips/configure | ||
30 | mode change 100644 => 100755 sysdeps/unix/sysv/linux/mips/configure | ||
31 | mode change 100644 => 100755 sysdeps/unix/sysv/linux/powerpc/powerpc64/configure | ||
30 | 32 | ||
31 | diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure | 33 | diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure |
32 | index ca57edce47..5e91fab023 100644 | 34 | index 4bd5496a4a..6c051369fb 100755 |
33 | --- a/sysdeps/aarch64/configure | 35 | --- a/sysdeps/aarch64/configure |
34 | +++ b/sysdeps/aarch64/configure | 36 | +++ b/sysdeps/aarch64/configure |
35 | @@ -165,12 +165,12 @@ else $as_nop | 37 | @@ -157,12 +157,12 @@ else case e in #( |
36 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 38 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
37 | /* end confdefs.h. */ | 39 | /* end confdefs.h. */ |
38 | #ifdef __AARCH64EB__ | 40 | #ifdef __AARCH64EB__ |
39 | - yes | 41 | - yes |
@@ -42,13 +44,13 @@ index ca57edce47..5e91fab023 100644 | |||
42 | 44 | ||
43 | _ACEOF | 45 | _ACEOF |
44 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 46 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
45 | - $EGREP "yes" >/dev/null 2>&1 | 47 | - $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 |
46 | + $EGREP "is_aarch64_be" >/dev/null 2>&1 | 48 | + $EGREP_TRADITIONAL "is_aarch64_be" >/dev/null 2>&1 |
47 | then : | 49 | then : |
48 | libc_cv_aarch64_be=yes | 50 | libc_cv_aarch64_be=yes |
49 | else $as_nop | 51 | else case e in #( |
50 | diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac | 52 | diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac |
51 | index 27874eceb4..8a708f2ef4 100644 | 53 | index 56d12d661d..80fca20873 100644 |
52 | --- a/sysdeps/aarch64/configure.ac | 54 | --- a/sysdeps/aarch64/configure.ac |
53 | +++ b/sysdeps/aarch64/configure.ac | 55 | +++ b/sysdeps/aarch64/configure.ac |
54 | @@ -13,8 +13,8 @@ AC_DEFINE(SUPPORT_STATIC_PIE) | 56 | @@ -13,8 +13,8 @@ AC_DEFINE(SUPPORT_STATIC_PIE) |
@@ -63,11 +65,13 @@ index 27874eceb4..8a708f2ef4 100644 | |||
63 | ], libc_cv_aarch64_be=yes, libc_cv_aarch64_be=no)]) | 65 | ], libc_cv_aarch64_be=yes, libc_cv_aarch64_be=no)]) |
64 | if test $libc_cv_aarch64_be = yes; then | 66 | if test $libc_cv_aarch64_be = yes; then |
65 | diff --git a/sysdeps/arm/configure b/sysdeps/arm/configure | 67 | diff --git a/sysdeps/arm/configure b/sysdeps/arm/configure |
66 | index 35e2918922..94d7fbe8bb 100644 | 68 | old mode 100644 |
69 | new mode 100755 | ||
70 | index 935e022c74..9f7c98bcd3 | ||
67 | --- a/sysdeps/arm/configure | 71 | --- a/sysdeps/arm/configure |
68 | +++ b/sysdeps/arm/configure | 72 | +++ b/sysdeps/arm/configure |
69 | @@ -161,12 +161,12 @@ else $as_nop | 73 | @@ -153,12 +153,12 @@ else case e in #( |
70 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 74 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
71 | /* end confdefs.h. */ | 75 | /* end confdefs.h. */ |
72 | #ifdef __ARM_PCS_VFP | 76 | #ifdef __ARM_PCS_VFP |
73 | - yes | 77 | - yes |
@@ -76,13 +80,13 @@ index 35e2918922..94d7fbe8bb 100644 | |||
76 | 80 | ||
77 | _ACEOF | 81 | _ACEOF |
78 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 82 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
79 | - $EGREP "yes" >/dev/null 2>&1 | 83 | - $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 |
80 | + $EGREP "use_arm_pcs_vfp" >/dev/null 2>&1 | 84 | + $EGREP_TRADITIONAL "use_arm_pcs_vfp" >/dev/null 2>&1 |
81 | then : | 85 | then : |
82 | libc_cv_arm_pcs_vfp=yes | 86 | libc_cv_arm_pcs_vfp=yes |
83 | else $as_nop | 87 | else case e in #( |
84 | diff --git a/sysdeps/arm/configure.ac b/sysdeps/arm/configure.ac | 88 | diff --git a/sysdeps/arm/configure.ac b/sysdeps/arm/configure.ac |
85 | index 5172e30bbe..f06dedd7c5 100644 | 89 | index cd00ddc9d9..d3831867ac 100644 |
86 | --- a/sysdeps/arm/configure.ac | 90 | --- a/sysdeps/arm/configure.ac |
87 | +++ b/sysdeps/arm/configure.ac | 91 | +++ b/sysdeps/arm/configure.ac |
88 | @@ -10,8 +10,8 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. | 92 | @@ -10,8 +10,8 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. |
@@ -97,10 +101,12 @@ index 5172e30bbe..f06dedd7c5 100644 | |||
97 | ], libc_cv_arm_pcs_vfp=yes, libc_cv_arm_pcs_vfp=no)]) | 101 | ], libc_cv_arm_pcs_vfp=yes, libc_cv_arm_pcs_vfp=no)]) |
98 | if test $libc_cv_arm_pcs_vfp = yes; then | 102 | if test $libc_cv_arm_pcs_vfp = yes; then |
99 | diff --git a/sysdeps/mips/configure b/sysdeps/mips/configure | 103 | diff --git a/sysdeps/mips/configure b/sysdeps/mips/configure |
100 | index 1e8c6711e6..ae52ccd929 100644 | 104 | old mode 100644 |
105 | new mode 100755 | ||
106 | index 60dbd947e2..e3d10d7b96 | ||
101 | --- a/sysdeps/mips/configure | 107 | --- a/sysdeps/mips/configure |
102 | +++ b/sysdeps/mips/configure | 108 | +++ b/sysdeps/mips/configure |
103 | @@ -158,11 +158,11 @@ else $as_nop | 109 | @@ -150,11 +150,11 @@ else case e in #( |
104 | /* end confdefs.h. */ | 110 | /* end confdefs.h. */ |
105 | dnl | 111 | dnl |
106 | #ifdef __mips_nan2008 | 112 | #ifdef __mips_nan2008 |
@@ -109,11 +115,11 @@ index 1e8c6711e6..ae52ccd929 100644 | |||
109 | #endif | 115 | #endif |
110 | _ACEOF | 116 | _ACEOF |
111 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 117 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
112 | - $EGREP "yes" >/dev/null 2>&1 | 118 | - $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 |
113 | + $EGREP "use_mips_nan2008" >/dev/null 2>&1 | 119 | + $EGREP_TRADITIONAL "use_mips_nan2008" >/dev/null 2>&1 |
114 | then : | 120 | then : |
115 | libc_cv_mips_nan2008=yes | 121 | libc_cv_mips_nan2008=yes |
116 | else $as_nop | 122 | else case e in #( |
117 | diff --git a/sysdeps/mips/configure.ac b/sysdeps/mips/configure.ac | 123 | diff --git a/sysdeps/mips/configure.ac b/sysdeps/mips/configure.ac |
118 | index d3cd780d78..250223d206 100644 | 124 | index d3cd780d78..250223d206 100644 |
119 | --- a/sysdeps/mips/configure.ac | 125 | --- a/sysdeps/mips/configure.ac |
@@ -130,45 +136,13 @@ index d3cd780d78..250223d206 100644 | |||
130 | #endif], libc_cv_mips_nan2008=yes, libc_cv_mips_nan2008=no)]) | 136 | #endif], libc_cv_mips_nan2008=yes, libc_cv_mips_nan2008=no)]) |
131 | if test x$libc_cv_mips_nan2008 = xyes; then | 137 | if test x$libc_cv_mips_nan2008 = xyes; then |
132 | AC_DEFINE(HAVE_MIPS_NAN2008) | 138 | AC_DEFINE(HAVE_MIPS_NAN2008) |
133 | diff --git a/sysdeps/nios2/configure b/sysdeps/nios2/configure | ||
134 | index 2fb230cbaa..1959d0a444 100644 | ||
135 | --- a/sysdeps/nios2/configure | ||
136 | +++ b/sysdeps/nios2/configure | ||
137 | @@ -155,12 +155,12 @@ else $as_nop | ||
138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
139 | /* end confdefs.h. */ | ||
140 | #ifdef __nios2_big_endian__ | ||
141 | - yes | ||
142 | + is_nios2_be | ||
143 | #endif | ||
144 | |||
145 | _ACEOF | ||
146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
147 | - $EGREP "yes" >/dev/null 2>&1 | ||
148 | + $EGREP "is_nios2_be" >/dev/null 2>&1 | ||
149 | then : | ||
150 | libc_cv_nios2_be=yes | ||
151 | else $as_nop | ||
152 | diff --git a/sysdeps/nios2/configure.ac b/sysdeps/nios2/configure.ac | ||
153 | index f738e9a7ed..4085851cbc 100644 | ||
154 | --- a/sysdeps/nios2/configure.ac | ||
155 | +++ b/sysdeps/nios2/configure.ac | ||
156 | @@ -4,8 +4,8 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. | ||
157 | # Nios II big endian is not yet supported. | ||
158 | AC_CACHE_CHECK([for big endian], | ||
159 | [libc_cv_nios2_be], | ||
160 | - [AC_EGREP_CPP(yes,[#ifdef __nios2_big_endian__ | ||
161 | - yes | ||
162 | + [AC_EGREP_CPP(is_nios2_be,[#ifdef __nios2_big_endian__ | ||
163 | + is_nios2_be | ||
164 | #endif | ||
165 | ], libc_cv_nios2_be=yes, libc_cv_nios2_be=no)]) | ||
166 | if test $libc_cv_nios2_be = yes; then | ||
167 | diff --git a/sysdeps/unix/sysv/linux/mips/configure b/sysdeps/unix/sysv/linux/mips/configure | 139 | diff --git a/sysdeps/unix/sysv/linux/mips/configure b/sysdeps/unix/sysv/linux/mips/configure |
168 | index a060901de4..0ac7019438 100644 | 140 | old mode 100644 |
141 | new mode 100755 | ||
142 | index 6e3402c111..a23f24ef8e | ||
169 | --- a/sysdeps/unix/sysv/linux/mips/configure | 143 | --- a/sysdeps/unix/sysv/linux/mips/configure |
170 | +++ b/sysdeps/unix/sysv/linux/mips/configure | 144 | +++ b/sysdeps/unix/sysv/linux/mips/configure |
171 | @@ -441,11 +441,11 @@ else $as_nop | 145 | @@ -443,11 +443,11 @@ else case e in #( |
172 | /* end confdefs.h. */ | 146 | /* end confdefs.h. */ |
173 | dnl | 147 | dnl |
174 | #ifdef __mips_nan2008 | 148 | #ifdef __mips_nan2008 |
@@ -177,11 +151,11 @@ index a060901de4..0ac7019438 100644 | |||
177 | #endif | 151 | #endif |
178 | _ACEOF | 152 | _ACEOF |
179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 153 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
180 | - $EGREP "yes" >/dev/null 2>&1 | 154 | - $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 |
181 | + $EGREP "use_mips_nan2008" >/dev/null 2>&1 | 155 | + $EGREP_TRADITIONAL "use_mips_nan2008" >/dev/null 2>&1 |
182 | then : | 156 | then : |
183 | libc_cv_mips_nan2008=yes | 157 | libc_cv_mips_nan2008=yes |
184 | else $as_nop | 158 | else case e in #( |
185 | diff --git a/sysdeps/unix/sysv/linux/mips/configure.ac b/sysdeps/unix/sysv/linux/mips/configure.ac | 159 | diff --git a/sysdeps/unix/sysv/linux/mips/configure.ac b/sysdeps/unix/sysv/linux/mips/configure.ac |
186 | index 049a0f4bdf..005526d4e8 100644 | 160 | index 049a0f4bdf..005526d4e8 100644 |
187 | --- a/sysdeps/unix/sysv/linux/mips/configure.ac | 161 | --- a/sysdeps/unix/sysv/linux/mips/configure.ac |
@@ -199,11 +173,13 @@ index 049a0f4bdf..005526d4e8 100644 | |||
199 | 173 | ||
200 | libc_mips_nan= | 174 | libc_mips_nan= |
201 | diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure b/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure | 175 | diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure b/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure |
202 | index cf1b70c745..0dccf6cd76 100644 | 176 | old mode 100644 |
177 | new mode 100755 | ||
178 | index 5dd70689fc..7d6c2322d3 | ||
203 | --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure | 179 | --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure |
204 | +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure | 180 | +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure |
205 | @@ -168,12 +168,12 @@ else $as_nop | 181 | @@ -160,12 +160,12 @@ else case e in #( |
206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 182 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
207 | /* end confdefs.h. */ | 183 | /* end confdefs.h. */ |
208 | #if _CALL_ELF == 2 | 184 | #if _CALL_ELF == 2 |
209 | - yes | 185 | - yes |
@@ -212,13 +188,13 @@ index cf1b70c745..0dccf6cd76 100644 | |||
212 | 188 | ||
213 | _ACEOF | 189 | _ACEOF |
214 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 190 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
215 | - $EGREP "yes" >/dev/null 2>&1 | 191 | - $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 |
216 | + $EGREP "use_ppc_elfv2_abi" >/dev/null 2>&1 | 192 | + $EGREP_TRADITIONAL "use_ppc_elfv2_abi" >/dev/null 2>&1 |
217 | then : | 193 | then : |
218 | libc_cv_ppc64_elfv2_abi=yes | 194 | libc_cv_ppc64_elfv2_abi=yes |
219 | else $as_nop | 195 | else case e in #( |
220 | @@ -203,12 +203,12 @@ else $as_nop | 196 | @@ -197,12 +197,12 @@ else case e in #( |
221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 197 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
222 | /* end confdefs.h. */ | 198 | /* end confdefs.h. */ |
223 | #ifdef _CALL_ELF | 199 | #ifdef _CALL_ELF |
224 | - yes | 200 | - yes |
@@ -227,11 +203,11 @@ index cf1b70c745..0dccf6cd76 100644 | |||
227 | 203 | ||
228 | _ACEOF | 204 | _ACEOF |
229 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
230 | - $EGREP "yes" >/dev/null 2>&1 | 206 | - $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 |
231 | + $EGREP "is_def_call_elf" >/dev/null 2>&1 | 207 | + $EGREP_TRADITIONAL "is_def_call_elf" >/dev/null 2>&1 |
232 | then : | 208 | then : |
233 | libc_cv_ppc64_def_call_elf=yes | 209 | libc_cv_ppc64_def_call_elf=yes |
234 | else $as_nop | 210 | else case e in #( |
235 | diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac b/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac | 211 | diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac b/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac |
236 | index f9cba6e15d..b21f72f1e4 100644 | 212 | index f9cba6e15d..b21f72f1e4 100644 |
237 | --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac | 213 | --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac |
diff --git a/meta/recipes-core/glibc/glibc/0010-eglibc-Cross-building-and-testing-instructions.patch b/meta/recipes-core/glibc/glibc/0010-eglibc-Cross-building-and-testing-instructions.patch index d7f15c1cfa..b1bed71f2b 100644 --- a/meta/recipes-core/glibc/glibc/0010-eglibc-Cross-building-and-testing-instructions.patch +++ b/meta/recipes-core/glibc/glibc/0010-eglibc-Cross-building-and-testing-instructions.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From ce8b13bdf488058754fce573754cea0b022c37e2 Mon Sep 17 00:00:00 2001 | 1 | From 7d158af5750b351b3b08e78bb6c5fe80e7cb36ba Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:42:58 +0000 | 3 | Date: Wed, 18 Mar 2015 00:42:58 +0000 |
4 | Subject: [PATCH] eglibc: Cross building and testing instructions | 4 | Subject: [PATCH] eglibc: Cross building and testing instructions |
diff --git a/meta/recipes-core/glibc/glibc/0011-eglibc-Help-bootstrap-cross-toolchain.patch b/meta/recipes-core/glibc/glibc/0011-eglibc-Help-bootstrap-cross-toolchain.patch index 82a3292655..13190125eb 100644 --- a/meta/recipes-core/glibc/glibc/0011-eglibc-Help-bootstrap-cross-toolchain.patch +++ b/meta/recipes-core/glibc/glibc/0011-eglibc-Help-bootstrap-cross-toolchain.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 65b79161b9e2848a174d3519a03348884f182975 Mon Sep 17 00:00:00 2001 | 1 | From 435b57e8327555b273a52df672b2611050a8c579 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:49:28 +0000 | 3 | Date: Wed, 18 Mar 2015 00:49:28 +0000 |
4 | Subject: [PATCH] eglibc: Help bootstrap cross toolchain | 4 | Subject: [PATCH] eglibc: Help bootstrap cross toolchain |
@@ -29,7 +29,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
29 | create mode 100644 include/stubs-bootstrap.h | 29 | create mode 100644 include/stubs-bootstrap.h |
30 | 30 | ||
31 | diff --git a/Makefile b/Makefile | 31 | diff --git a/Makefile b/Makefile |
32 | index 7052b46df8..46073abaa8 100644 | 32 | index 97b4328af8..5c20ed3cff 100644 |
33 | --- a/Makefile | 33 | --- a/Makefile |
34 | +++ b/Makefile | 34 | +++ b/Makefile |
35 | @@ -79,9 +79,18 @@ subdir-dirs = include | 35 | @@ -79,9 +79,18 @@ subdir-dirs = include |
diff --git a/meta/recipes-core/glibc/glibc/0012-eglibc-Resolve-__fpscr_values-on-SH4.patch b/meta/recipes-core/glibc/glibc/0012-eglibc-Resolve-__fpscr_values-on-SH4.patch index e726a9e76f..780aff1e7d 100644 --- a/meta/recipes-core/glibc/glibc/0012-eglibc-Resolve-__fpscr_values-on-SH4.patch +++ b/meta/recipes-core/glibc/glibc/0012-eglibc-Resolve-__fpscr_values-on-SH4.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 07a5fa22a9a8bbd43982c1b35132f8c2d5276bfe Mon Sep 17 00:00:00 2001 | 1 | From 46937c30c52cf186609bee1ec927464d395afb30 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:55:53 +0000 | 3 | Date: Wed, 18 Mar 2015 00:55:53 +0000 |
4 | Subject: [PATCH] eglibc: Resolve __fpscr_values on SH4 | 4 | Subject: [PATCH] eglibc: Resolve __fpscr_values on SH4 |
@@ -33,7 +33,7 @@ index 3ad702e165..931985b5d6 100644 | |||
33 | # a* | 33 | # a* |
34 | alphasort64; | 34 | alphasort64; |
35 | diff --git a/sysdeps/unix/sysv/linux/sh/sysdep.S b/sysdeps/unix/sysv/linux/sh/sysdep.S | 35 | diff --git a/sysdeps/unix/sysv/linux/sh/sysdep.S b/sysdeps/unix/sysv/linux/sh/sysdep.S |
36 | index d5d8c5e033..f356d02077 100644 | 36 | index db898e9e39..6e2972e814 100644 |
37 | --- a/sysdeps/unix/sysv/linux/sh/sysdep.S | 37 | --- a/sysdeps/unix/sysv/linux/sh/sysdep.S |
38 | +++ b/sysdeps/unix/sysv/linux/sh/sysdep.S | 38 | +++ b/sysdeps/unix/sysv/linux/sh/sysdep.S |
39 | @@ -30,3 +30,14 @@ ENTRY (__syscall_error) | 39 | @@ -30,3 +30,14 @@ ENTRY (__syscall_error) |
diff --git a/meta/recipes-core/glibc/glibc/0013-eglibc-Forward-port-cross-locale-generation-support.patch b/meta/recipes-core/glibc/glibc/0013-eglibc-Forward-port-cross-locale-generation-support.patch index f36b7f6f4c..8f9bbb6cf3 100644 --- a/meta/recipes-core/glibc/glibc/0013-eglibc-Forward-port-cross-locale-generation-support.patch +++ b/meta/recipes-core/glibc/glibc/0013-eglibc-Forward-port-cross-locale-generation-support.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 33e9867758e830e19d181d5a0aa7f2f3cc4a08b3 Mon Sep 17 00:00:00 2001 | 1 | From 68dcae2527a64a4448334fdfe27c7b6014589aae Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 01:33:49 +0000 | 3 | Date: Wed, 18 Mar 2015 01:33:49 +0000 |
4 | Subject: [PATCH] eglibc: Forward port cross locale generation support | 4 | Subject: [PATCH] eglibc: Forward port cross locale generation support |
@@ -23,7 +23,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
23 | create mode 100644 locale/catnames.c | 23 | create mode 100644 locale/catnames.c |
24 | 24 | ||
25 | diff --git a/locale/Makefile b/locale/Makefile | 25 | diff --git a/locale/Makefile b/locale/Makefile |
26 | index 2810f28605..05f847f9a6 100644 | 26 | index 9d9c1a7691..bf271fd0a8 100644 |
27 | --- a/locale/Makefile | 27 | --- a/locale/Makefile |
28 | +++ b/locale/Makefile | 28 | +++ b/locale/Makefile |
29 | @@ -30,6 +30,7 @@ headers = \ | 29 | @@ -30,6 +30,7 @@ headers = \ |
@@ -87,7 +87,7 @@ index 0000000000..538f3f5edb | |||
87 | + [LC_ALL] = sizeof ("LC_ALL") - 1 | 87 | + [LC_ALL] = sizeof ("LC_ALL") - 1 |
88 | + }; | 88 | + }; |
89 | diff --git a/locale/localeinfo.h b/locale/localeinfo.h | 89 | diff --git a/locale/localeinfo.h b/locale/localeinfo.h |
90 | index f7efc288a5..6ef082eb25 100644 | 90 | index 92aef8d58e..ae23b2f7fe 100644 |
91 | --- a/locale/localeinfo.h | 91 | --- a/locale/localeinfo.h |
92 | +++ b/locale/localeinfo.h | 92 | +++ b/locale/localeinfo.h |
93 | @@ -246,7 +246,7 @@ __libc_tsd_define (extern, locale_t, LOCALE) | 93 | @@ -246,7 +246,7 @@ __libc_tsd_define (extern, locale_t, LOCALE) |
@@ -100,7 +100,7 @@ index f7efc288a5..6ef082eb25 100644 | |||
100 | # define NL_CURRENT_INDIRECT 1 | 100 | # define NL_CURRENT_INDIRECT 1 |
101 | #endif | 101 | #endif |
102 | diff --git a/locale/programs/charmap-dir.c b/locale/programs/charmap-dir.c | 102 | diff --git a/locale/programs/charmap-dir.c b/locale/programs/charmap-dir.c |
103 | index 36504f238d..56ee97e61b 100644 | 103 | index e635a01ede..10e34a6da9 100644 |
104 | --- a/locale/programs/charmap-dir.c | 104 | --- a/locale/programs/charmap-dir.c |
105 | +++ b/locale/programs/charmap-dir.c | 105 | +++ b/locale/programs/charmap-dir.c |
106 | @@ -18,7 +18,9 @@ | 106 | @@ -18,7 +18,9 @@ |
@@ -146,7 +146,7 @@ index 36504f238d..56ee97e61b 100644 | |||
146 | return NULL; | 146 | return NULL; |
147 | } | 147 | } |
148 | diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c | 148 | diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c |
149 | index 5048adbd9f..4232834ead 100644 | 149 | index 7de3ba064d..3256427d21 100644 |
150 | --- a/locale/programs/ld-collate.c | 150 | --- a/locale/programs/ld-collate.c |
151 | +++ b/locale/programs/ld-collate.c | 151 | +++ b/locale/programs/ld-collate.c |
152 | @@ -352,7 +352,7 @@ new_element (struct locale_collate_t *collate, const char *mbs, size_t mbslen, | 152 | @@ -352,7 +352,7 @@ new_element (struct locale_collate_t *collate, const char *mbs, size_t mbslen, |
@@ -195,7 +195,7 @@ index 5048adbd9f..4232834ead 100644 | |||
195 | == runp->wcnext->wcs[runp->nwcs - 1] + 1)); | 195 | == runp->wcnext->wcs[runp->nwcs - 1] + 1)); |
196 | 196 | ||
197 | diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c | 197 | diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c |
198 | index eb6e7e145c..14736d1cac 100644 | 198 | index 15fd39c637..d4c5e0c9e7 100644 |
199 | --- a/locale/programs/ld-ctype.c | 199 | --- a/locale/programs/ld-ctype.c |
200 | +++ b/locale/programs/ld-ctype.c | 200 | +++ b/locale/programs/ld-ctype.c |
201 | @@ -914,7 +914,7 @@ ctype_output (struct localedef_t *locale, const struct charmap_t *charmap, | 201 | @@ -914,7 +914,7 @@ ctype_output (struct localedef_t *locale, const struct charmap_t *charmap, |
@@ -277,7 +277,7 @@ index eb6e7e145c..14736d1cac 100644 | |||
277 | srunp = srunp->next; | 277 | srunp = srunp->next; |
278 | } | 278 | } |
279 | diff --git a/locale/programs/ld-time.c b/locale/programs/ld-time.c | 279 | diff --git a/locale/programs/ld-time.c b/locale/programs/ld-time.c |
280 | index 1abff3cf53..8a2f2b820a 100644 | 280 | index 9529d7945a..554454b9c1 100644 |
281 | --- a/locale/programs/ld-time.c | 281 | --- a/locale/programs/ld-time.c |
282 | +++ b/locale/programs/ld-time.c | 282 | +++ b/locale/programs/ld-time.c |
283 | @@ -219,8 +219,10 @@ No definition for %s category found"), "LC_TIME"); | 283 | @@ -219,8 +219,10 @@ No definition for %s category found"), "LC_TIME"); |
@@ -346,7 +346,7 @@ index 1abff3cf53..8a2f2b820a 100644 | |||
346 | 346 | ||
347 | 347 | ||
348 | diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c | 348 | diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c |
349 | index 61373d2657..7ec5726377 100644 | 349 | index 6f40ecf77a..573d051d0a 100644 |
350 | --- a/locale/programs/linereader.c | 350 | --- a/locale/programs/linereader.c |
351 | +++ b/locale/programs/linereader.c | 351 | +++ b/locale/programs/linereader.c |
352 | @@ -776,7 +776,7 @@ get_string (struct linereader *lr, const struct charmap_t *charmap, | 352 | @@ -776,7 +776,7 @@ get_string (struct linereader *lr, const struct charmap_t *charmap, |
@@ -359,7 +359,7 @@ index 61373d2657..7ec5726377 100644 | |||
359 | lr_buffer_init (&lrb); | 359 | lr_buffer_init (&lrb); |
360 | 360 | ||
361 | diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c | 361 | diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c |
362 | index 907bb5fb25..3106529043 100644 | 362 | index 7b66cd279c..dd0c3f1562 100644 |
363 | --- a/locale/programs/localedef.c | 363 | --- a/locale/programs/localedef.c |
364 | +++ b/locale/programs/localedef.c | 364 | +++ b/locale/programs/localedef.c |
365 | @@ -108,6 +108,7 @@ void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version; | 365 | @@ -108,6 +108,7 @@ void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version; |
@@ -405,7 +405,7 @@ index 907bb5fb25..3106529043 100644 | |||
405 | force_output = 1; | 405 | force_output = 1; |
406 | break; | 406 | break; |
407 | diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c | 407 | diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c |
408 | index 6c6ebf2dd6..cc02ab82bf 100644 | 408 | index b54fcbbceb..6110c7b369 100644 |
409 | --- a/locale/programs/locfile.c | 409 | --- a/locale/programs/locfile.c |
410 | +++ b/locale/programs/locfile.c | 410 | +++ b/locale/programs/locfile.c |
411 | @@ -543,6 +543,9 @@ compare_files (const char *filename1, const char *filename2, size_t size, | 411 | @@ -543,6 +543,9 @@ compare_files (const char *filename1, const char *filename2, size_t size, |
@@ -428,7 +428,7 @@ index 6c6ebf2dd6..cc02ab82bf 100644 | |||
428 | 428 | ||
429 | /* Record that FILE's next element is the 32-bit integer VALUE. */ | 429 | /* Record that FILE's next element is the 32-bit integer VALUE. */ |
430 | diff --git a/locale/programs/locfile.h b/locale/programs/locfile.h | 430 | diff --git a/locale/programs/locfile.h b/locale/programs/locfile.h |
431 | index 3afb0a8d29..46785374e8 100644 | 431 | index 9103fade14..ecd878563d 100644 |
432 | --- a/locale/programs/locfile.h | 432 | --- a/locale/programs/locfile.h |
433 | +++ b/locale/programs/locfile.h | 433 | +++ b/locale/programs/locfile.h |
434 | @@ -70,6 +70,8 @@ extern void write_all_categories (struct localedef_t *definitions, | 434 | @@ -70,6 +70,8 @@ extern void write_all_categories (struct localedef_t *definitions, |
@@ -517,7 +517,7 @@ index 3afb0a8d29..46785374e8 100644 | |||
517 | + | 517 | + |
518 | #endif /* locfile.h */ | 518 | #endif /* locfile.h */ |
519 | diff --git a/locale/setlocale.c b/locale/setlocale.c | 519 | diff --git a/locale/setlocale.c b/locale/setlocale.c |
520 | index 7bd27e5398..2f194bad7c 100644 | 520 | index c04740ca19..12deadeb24 100644 |
521 | --- a/locale/setlocale.c | 521 | --- a/locale/setlocale.c |
522 | +++ b/locale/setlocale.c | 522 | +++ b/locale/setlocale.c |
523 | @@ -63,35 +63,6 @@ static char *const _nl_current_used[] = | 523 | @@ -63,35 +63,6 @@ static char *const _nl_current_used[] = |
diff --git a/meta/recipes-core/glibc/glibc/0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch b/meta/recipes-core/glibc/glibc/0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch index daeff7b065..9448f360ef 100644 --- a/meta/recipes-core/glibc/glibc/0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch +++ b/meta/recipes-core/glibc/glibc/0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From f4b1d6429298c0f8a2aa29ff559eb2093ea0188f Mon Sep 17 00:00:00 2001 | 1 | From 194e83794369783287956fb12c7f8469e6b7d110 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 3 Aug 2018 09:42:06 -0700 | 3 | Date: Fri, 3 Aug 2018 09:42:06 -0700 |
4 | Subject: [PATCH] localedef --add-to-archive uses a hard-coded locale path | 4 | Subject: [PATCH] localedef --add-to-archive uses a hard-coded locale path |
@@ -18,7 +18,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
18 | 1 file changed, 25 insertions(+), 10 deletions(-) | 18 | 1 file changed, 25 insertions(+), 10 deletions(-) |
19 | 19 | ||
20 | diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c | 20 | diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c |
21 | index 8d79a1b6d1..6dc7ecd4e7 100644 | 21 | index 2c19f4fd29..b8495848c3 100644 |
22 | --- a/locale/programs/locarchive.c | 22 | --- a/locale/programs/locarchive.c |
23 | +++ b/locale/programs/locarchive.c | 23 | +++ b/locale/programs/locarchive.c |
24 | @@ -339,12 +339,24 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head) | 24 | @@ -339,12 +339,24 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head) |
diff --git a/meta/recipes-core/glibc/glibc/0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch b/meta/recipes-core/glibc/glibc/0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch index 8dd1f0a656..0e00c04659 100644 --- a/meta/recipes-core/glibc/glibc/0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch +++ b/meta/recipes-core/glibc/glibc/0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 2d064c0c1243ea0bf405909285d7cddca92cf097 Mon Sep 17 00:00:00 2001 | 1 | From 7d7f6fcd4f4b6664bff75addc92bc7b8a86dc22d Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 7 Aug 2020 14:31:16 -0700 | 3 | Date: Fri, 7 Aug 2020 14:31:16 -0700 |
4 | Subject: [PATCH] powerpc: Do not ask compiler for finding arch | 4 | Subject: [PATCH] powerpc: Do not ask compiler for finding arch |
@@ -15,7 +15,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
15 | 2 files changed, 2 insertions(+), 8 deletions(-) | 15 | 2 files changed, 2 insertions(+), 8 deletions(-) |
16 | 16 | ||
17 | diff --git a/sysdeps/powerpc/preconfigure b/sysdeps/powerpc/preconfigure | 17 | diff --git a/sysdeps/powerpc/preconfigure b/sysdeps/powerpc/preconfigure |
18 | index 4de94089a3..428ad7b162 100644 | 18 | index 48b9c9b65a..7eb260fc78 100644 |
19 | --- a/sysdeps/powerpc/preconfigure | 19 | --- a/sysdeps/powerpc/preconfigure |
20 | +++ b/sysdeps/powerpc/preconfigure | 20 | +++ b/sysdeps/powerpc/preconfigure |
21 | @@ -29,10 +29,7 @@ esac | 21 | @@ -29,10 +29,7 @@ esac |
@@ -31,7 +31,7 @@ index 4de94089a3..428ad7b162 100644 | |||
31 | # directory exists in sysdeps/powerpc. Likewise, if we find a | 31 | # directory exists in sysdeps/powerpc. Likewise, if we find a |
32 | # cpu, don't let the generic configure append extra compiler options. | 32 | # cpu, don't let the generic configure append extra compiler options. |
33 | diff --git a/sysdeps/powerpc/preconfigure.ac b/sysdeps/powerpc/preconfigure.ac | 33 | diff --git a/sysdeps/powerpc/preconfigure.ac b/sysdeps/powerpc/preconfigure.ac |
34 | index 6c63bd8257..3e925f1d48 100644 | 34 | index 14b6dafd4a..1acc6a457c 100644 |
35 | --- a/sysdeps/powerpc/preconfigure.ac | 35 | --- a/sysdeps/powerpc/preconfigure.ac |
36 | +++ b/sysdeps/powerpc/preconfigure.ac | 36 | +++ b/sysdeps/powerpc/preconfigure.ac |
37 | @@ -29,10 +29,7 @@ esac | 37 | @@ -29,10 +29,7 @@ esac |
diff --git a/meta/recipes-core/glibc/glibc/0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch b/meta/recipes-core/glibc/glibc/0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch index 066c3b1ea2..f40a8eff07 100644 --- a/meta/recipes-core/glibc/glibc/0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch +++ b/meta/recipes-core/glibc/glibc/0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From b1c374f7ede81a98f2d02def2c7ca17f1001f7cb Mon Sep 17 00:00:00 2001 | 1 | From 2bd0ea2c8f9595414741ed523c6ca07630a4fc96 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 15 May 2020 17:05:45 -0700 | 3 | Date: Fri, 15 May 2020 17:05:45 -0700 |
4 | Subject: [PATCH] wordsize.h: Unify the header between arm and aarch64 | 4 | Subject: [PATCH] wordsize.h: Unify the header between arm and aarch64 |
@@ -11,16 +11,16 @@ Upstream-Status: Inappropriate [ OE-Specific ] | |||
11 | 11 | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | --- | 13 | --- |
14 | sysdeps/aarch64/bits/wordsize.h | 8 ++++++-- | 14 | sysdeps/aarch64/bits/wordsize.h | 11 +++++++++-- |
15 | sysdeps/arm/bits/wordsize.h | 1 + | 15 | sysdeps/arm/bits/wordsize.h | 22 +--------------------- |
16 | 2 files changed, 7 insertions(+), 2 deletions(-) | 16 | 2 files changed, 10 insertions(+), 23 deletions(-) |
17 | create mode 120000 sysdeps/arm/bits/wordsize.h | 17 | mode change 100644 => 120000 sysdeps/arm/bits/wordsize.h |
18 | 18 | ||
19 | diff --git a/sysdeps/aarch64/bits/wordsize.h b/sysdeps/aarch64/bits/wordsize.h | 19 | diff --git a/sysdeps/aarch64/bits/wordsize.h b/sysdeps/aarch64/bits/wordsize.h |
20 | index 118e59172d..b4b0692eb5 100644 | 20 | index f56260c2de..391d79d5a8 100644 |
21 | --- a/sysdeps/aarch64/bits/wordsize.h | 21 | --- a/sysdeps/aarch64/bits/wordsize.h |
22 | +++ b/sysdeps/aarch64/bits/wordsize.h | 22 | +++ b/sysdeps/aarch64/bits/wordsize.h |
23 | @@ -17,12 +17,16 @@ | 23 | @@ -17,12 +17,19 @@ |
24 | License along with the GNU C Library; if not, see | 24 | License along with the GNU C Library; if not, see |
25 | <https://www.gnu.org/licenses/>. */ | 25 | <https://www.gnu.org/licenses/>. */ |
26 | 26 | ||
@@ -34,11 +34,41 @@ index 118e59172d..b4b0692eb5 100644 | |||
34 | # define __WORDSIZE32_PTRDIFF_LONG 1 | 34 | # define __WORDSIZE32_PTRDIFF_LONG 1 |
35 | +#else | 35 | +#else |
36 | +# define __WORDSIZE 32 | 36 | +# define __WORDSIZE 32 |
37 | +# define __WORDSIZE_TIME64_COMPAT32 1 | ||
37 | +# define __WORDSIZE32_SIZE_ULONG 0 | 38 | +# define __WORDSIZE32_SIZE_ULONG 0 |
38 | +# define __WORDSIZE32_PTRDIFF_LONG 0 | 39 | +# define __WORDSIZE32_PTRDIFF_LONG 0 |
39 | #endif | 40 | #endif |
40 | 41 | ||
42 | +#ifdef __aarch64__ | ||
41 | #define __WORDSIZE_TIME64_COMPAT32 0 | 43 | #define __WORDSIZE_TIME64_COMPAT32 0 |
44 | +#endif | ||
45 | diff --git a/sysdeps/arm/bits/wordsize.h b/sysdeps/arm/bits/wordsize.h | ||
46 | deleted file mode 100644 | ||
47 | index be457d84d3..0000000000 | ||
48 | --- a/sysdeps/arm/bits/wordsize.h | ||
49 | +++ /dev/null | ||
50 | @@ -1,21 +0,0 @@ | ||
51 | -/* Copyright (C) 1999-2025 Free Software Foundation, Inc. | ||
52 | - This file is part of the GNU C Library. | ||
53 | - | ||
54 | - The GNU C Library is free software; you can redistribute it and/or | ||
55 | - modify it under the terms of the GNU Lesser General Public | ||
56 | - License as published by the Free Software Foundation; either | ||
57 | - version 2.1 of the License, or (at your option) any later version. | ||
58 | - | ||
59 | - The GNU C Library is distributed in the hope that it will be useful, | ||
60 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
61 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
62 | - Lesser General Public License for more details. | ||
63 | - | ||
64 | - You should have received a copy of the GNU Lesser General Public | ||
65 | - License along with the GNU C Library; if not, see | ||
66 | - <https://www.gnu.org/licenses/>. */ | ||
67 | - | ||
68 | -#define __WORDSIZE 32 | ||
69 | -#define __WORDSIZE_TIME64_COMPAT32 1 | ||
70 | -#define __WORDSIZE32_SIZE_ULONG 0 | ||
71 | -#define __WORDSIZE32_PTRDIFF_LONG 0 | ||
42 | diff --git a/sysdeps/arm/bits/wordsize.h b/sysdeps/arm/bits/wordsize.h | 72 | diff --git a/sysdeps/arm/bits/wordsize.h b/sysdeps/arm/bits/wordsize.h |
43 | new file mode 120000 | 73 | new file mode 120000 |
44 | index 0000000000..4c4a788ec2 | 74 | index 0000000000..4c4a788ec2 |
diff --git a/meta/recipes-core/glibc/glibc/0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch b/meta/recipes-core/glibc/glibc/0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch index d8c0b1b4ad..2af39799be 100644 --- a/meta/recipes-core/glibc/glibc/0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch +++ b/meta/recipes-core/glibc/glibc/0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 0aac3b8ee5b13e289b6969da51de384443286a5b Mon Sep 17 00:00:00 2001 | 1 | From 7ef9358bbb184026914fb4d9ff479361b82bf6c9 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 31 Dec 2015 14:33:02 -0800 | 3 | Date: Thu, 31 Dec 2015 14:33:02 -0800 |
4 | Subject: [PATCH] Replace echo with printf builtin in nscd init script | 4 | Subject: [PATCH] Replace echo with printf builtin in nscd init script |
diff --git a/meta/recipes-core/glibc/glibc/0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch b/meta/recipes-core/glibc/glibc/0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch index c81f82f433..ca30edd91c 100644 --- a/meta/recipes-core/glibc/glibc/0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch +++ b/meta/recipes-core/glibc/glibc/0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 7a25d4796411f22f824742092a4c2a08df99752d Mon Sep 17 00:00:00 2001 | 1 | From c43c1758baddaff1fb82afc118f7dba23af12540 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:27:10 +0000 | 3 | Date: Wed, 18 Mar 2015 00:27:10 +0000 |
4 | Subject: [PATCH] sysdeps/gnu/configure.ac: Set libc_cv_rootsbindir only if its | 4 | Subject: [PATCH] sysdeps/gnu/configure.ac: Set libc_cv_rootsbindir only if its |
diff --git a/meta/recipes-core/glibc/glibc/0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch b/meta/recipes-core/glibc/glibc/0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch index d724c3e968..2e4c6ced9e 100644 --- a/meta/recipes-core/glibc/glibc/0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch +++ b/meta/recipes-core/glibc/glibc/0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 6aa1b835d95482287851e02abd3a406cbd0ef8c7 Mon Sep 17 00:00:00 2001 | 1 | From a2179a1a5e0f6ded889d2c88cabb23c92b5a4b1e Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 9 Dec 2021 15:14:42 -0800 | 3 | Date: Thu, 9 Dec 2021 15:14:42 -0800 |
4 | Subject: [PATCH] timezone: Make shell interpreter overridable in tzselect.ksh | 4 | Subject: [PATCH] timezone: Make shell interpreter overridable in tzselect.ksh |
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
14 | 2 files changed, 10 insertions(+) | 14 | 2 files changed, 10 insertions(+) |
15 | 15 | ||
16 | diff --git a/Makeconfig b/Makeconfig | 16 | diff --git a/Makeconfig b/Makeconfig |
17 | index 85e00cef94..643724108a 100644 | 17 | index d0108d2caa..75887b1334 100644 |
18 | --- a/Makeconfig | 18 | --- a/Makeconfig |
19 | +++ b/Makeconfig | 19 | +++ b/Makeconfig |
20 | @@ -309,6 +309,15 @@ ifndef sysincludedir | 20 | @@ -309,6 +309,15 @@ ifndef sysincludedir |
@@ -34,10 +34,10 @@ index 85e00cef94..643724108a 100644 | |||
34 | # Commands to install files. | 34 | # Commands to install files. |
35 | ifndef INSTALL_DATA | 35 | ifndef INSTALL_DATA |
36 | diff --git a/timezone/Makefile b/timezone/Makefile | 36 | diff --git a/timezone/Makefile b/timezone/Makefile |
37 | index d7acb387ba..ec79326f66 100644 | 37 | index ebe5cf73a1..b5fa38f4d7 100644 |
38 | --- a/timezone/Makefile | 38 | --- a/timezone/Makefile |
39 | +++ b/timezone/Makefile | 39 | +++ b/timezone/Makefile |
40 | @@ -136,6 +136,7 @@ $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make | 40 | @@ -143,6 +143,7 @@ $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make |
41 | -e '/TZVERSION=/s|see_Makefile|"$(version)"|' \ | 41 | -e '/TZVERSION=/s|see_Makefile|"$(version)"|' \ |
42 | -e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \ | 42 | -e '/PKGVERSION=/s|=.*|="$(PKGVERSION)"|' \ |
43 | -e '/REPORT_BUGS_TO=/s|=.*|="$(REPORT_BUGS_TO)"|' \ | 43 | -e '/REPORT_BUGS_TO=/s|=.*|="$(REPORT_BUGS_TO)"|' \ |
diff --git a/meta/recipes-core/glibc/glibc/0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch b/meta/recipes-core/glibc/glibc/0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch index 08c60a271b..e68e37b125 100644 --- a/meta/recipes-core/glibc/glibc/0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch +++ b/meta/recipes-core/glibc/glibc/0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From ef47e6199986c4951e681ed74f064042db1ae2e1 Mon Sep 17 00:00:00 2001 | 1 | From c86de3e8b739f20fd7211b66dc3c69b61d28d611 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 15 Dec 2021 21:47:53 -0800 | 3 | Date: Wed, 15 Dec 2021 21:47:53 -0800 |
4 | Subject: [PATCH] tzselect.ksh: Use /bin/sh default shell interpreter | 4 | Subject: [PATCH] tzselect.ksh: Use /bin/sh default shell interpreter |
@@ -16,7 +16,7 @@ Cc: Paul Eggert <eggert@cs.ucla.edu> | |||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
17 | 17 | ||
18 | diff --git a/timezone/tzselect.ksh b/timezone/tzselect.ksh | 18 | diff --git a/timezone/tzselect.ksh b/timezone/tzselect.ksh |
19 | index 18fce27e24..cc08efb0fb 100755 | 19 | index ca3d82c6aa..1be42814fe 100755 |
20 | --- a/timezone/tzselect.ksh | 20 | --- a/timezone/tzselect.ksh |
21 | +++ b/timezone/tzselect.ksh | 21 | +++ b/timezone/tzselect.ksh |
22 | @@ -1,4 +1,4 @@ | 22 | @@ -1,4 +1,4 @@ |
diff --git a/meta/recipes-core/glibc/glibc/0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch b/meta/recipes-core/glibc/glibc/0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch index d57dce125c..f1391a095c 100644 --- a/meta/recipes-core/glibc/glibc/0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch +++ b/meta/recipes-core/glibc/glibc/0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 7254706544be5100843fc0a332e836fccffc9ef1 Mon Sep 17 00:00:00 2001 | 1 | From 06dd2eec0d57e1e2702069ee4c970c68fc4d3bcb Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Sun, 29 Aug 2021 20:49:16 +0800 | 3 | Date: Sun, 29 Aug 2021 20:49:16 +0800 |
4 | Subject: [PATCH] fix create thread failed in unprivileged process [BZ #28287] | 4 | Subject: [PATCH] fix create thread failed in unprivileged process [BZ #28287] |
@@ -72,7 +72,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
72 | 1 file changed, 1 insertion(+), 1 deletion(-) | 72 | 1 file changed, 1 insertion(+), 1 deletion(-) |
73 | 73 | ||
74 | diff --git a/sysdeps/unix/sysv/linux/clone-internal.c b/sysdeps/unix/sysv/linux/clone-internal.c | 74 | diff --git a/sysdeps/unix/sysv/linux/clone-internal.c b/sysdeps/unix/sysv/linux/clone-internal.c |
75 | index 40ef30303f..f97b1f6900 100644 | 75 | index 9a1f27d017..9a48340055 100644 |
76 | --- a/sysdeps/unix/sysv/linux/clone-internal.c | 76 | --- a/sysdeps/unix/sysv/linux/clone-internal.c |
77 | +++ b/sysdeps/unix/sysv/linux/clone-internal.c | 77 | +++ b/sysdeps/unix/sysv/linux/clone-internal.c |
78 | @@ -98,7 +98,7 @@ __clone_internal (struct clone_args *cl_args, | 78 | @@ -98,7 +98,7 @@ __clone_internal (struct clone_args *cl_args, |
diff --git a/meta/recipes-core/glibc/glibc/0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch b/meta/recipes-core/glibc/glibc/0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch index b527ddffc8..a90814c63a 100644 --- a/meta/recipes-core/glibc/glibc/0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch +++ b/meta/recipes-core/glibc/glibc/0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From d39779afc72d34f87f052097592008cc38e20615 Mon Sep 17 00:00:00 2001 | 1 | From cd66a5301c4d84e3dbc4e30fdb9e32b341e66b3d Mon Sep 17 00:00:00 2001 |
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
3 | Date: Sun, 24 Jul 2022 07:07:29 -0700 | 3 | Date: Sun, 24 Jul 2022 07:07:29 -0700 |
4 | Subject: [PATCH] Avoid hardcoded build time paths in the output binaries | 4 | Subject: [PATCH] Avoid hardcoded build time paths in the output binaries |
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
14 | 1 file changed, 3 insertions(+), 3 deletions(-) | 14 | 1 file changed, 3 insertions(+), 3 deletions(-) |
15 | 15 | ||
16 | diff --git a/support/Makefile b/support/Makefile | 16 | diff --git a/support/Makefile b/support/Makefile |
17 | index 362a51f882..56d2b37058 100644 | 17 | index 59a9974539..c3f7302bcb 100644 |
18 | --- a/support/Makefile | 18 | --- a/support/Makefile |
19 | +++ b/support/Makefile | 19 | +++ b/support/Makefile |
20 | @@ -228,9 +228,9 @@ libsupport-inhibit-o += .o | 20 | @@ -238,9 +238,9 @@ libsupport-inhibit-o += .o |
21 | endif | 21 | endif |
22 | 22 | ||
23 | CFLAGS-support_paths.c = \ | 23 | CFLAGS-support_paths.c = \ |
diff --git a/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch b/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch deleted file mode 100644 index f6523c5498..0000000000 --- a/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | From 73c26018ed0ecd9c807bb363cc2c2ab4aca66a82 Mon Sep 17 00:00:00 2001 | ||
2 | From: Szabolcs Nagy <szabolcs.nagy@arm.com> | ||
3 | Date: Wed, 13 Mar 2024 14:34:14 +0000 | ||
4 | Subject: [PATCH] aarch64: fix check for SVE support in assembler | ||
5 | |||
6 | Due to GCC bug 110901 -mcpu can override -march setting when compiling | ||
7 | asm code and thus a compiler targetting a specific cpu can fail the | ||
8 | configure check even when binutils gas supports SVE. | ||
9 | |||
10 | The workaround is that explicit .arch directive overrides both -mcpu | ||
11 | and -march, and since that's what the actual SVE memcpy uses the | ||
12 | configure check should use that too even if the GCC issue is fixed | ||
13 | independently. | ||
14 | |||
15 | Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=73c26018ed0ecd9c807bb363cc2c2ab4aca66a82] | ||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | Reviewed-by: Florian Weimer <fweimer@redhat.com> | ||
18 | --- | ||
19 | sysdeps/aarch64/configure | 5 +++-- | ||
20 | sysdeps/aarch64/configure.ac | 5 +++-- | ||
21 | 2 files changed, 6 insertions(+), 4 deletions(-) | ||
22 | mode change 100644 => 100755 sysdeps/aarch64/configure | ||
23 | |||
24 | diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure | ||
25 | old mode 100644 | ||
26 | new mode 100755 | ||
27 | index ca57edce47..9606137e8d | ||
28 | --- a/sysdeps/aarch64/configure | ||
29 | +++ b/sysdeps/aarch64/configure | ||
30 | @@ -325,9 +325,10 @@ then : | ||
31 | printf %s "(cached) " >&6 | ||
32 | else $as_nop | ||
33 | cat > conftest.s <<\EOF | ||
34 | - ptrue p0.b | ||
35 | + .arch armv8.2-a+sve | ||
36 | + ptrue p0.b | ||
37 | EOF | ||
38 | -if { ac_try='${CC-cc} -c -march=armv8.2-a+sve conftest.s 1>&5' | ||
39 | +if { ac_try='${CC-cc} -c conftest.s 1>&5' | ||
40 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | ||
41 | (eval $ac_try) 2>&5 | ||
42 | ac_status=$? | ||
43 | diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac | ||
44 | index 27874eceb4..56d12d661d 100644 | ||
45 | --- a/sysdeps/aarch64/configure.ac | ||
46 | +++ b/sysdeps/aarch64/configure.ac | ||
47 | @@ -90,9 +90,10 @@ LIBC_CONFIG_VAR([aarch64-variant-pcs], [$libc_cv_aarch64_variant_pcs]) | ||
48 | # Check if asm support armv8.2-a+sve | ||
49 | AC_CACHE_CHECK([for SVE support in assembler], [libc_cv_aarch64_sve_asm], [dnl | ||
50 | cat > conftest.s <<\EOF | ||
51 | - ptrue p0.b | ||
52 | + .arch armv8.2-a+sve | ||
53 | + ptrue p0.b | ||
54 | EOF | ||
55 | -if AC_TRY_COMMAND(${CC-cc} -c -march=armv8.2-a+sve conftest.s 1>&AS_MESSAGE_LOG_FD); then | ||
56 | +if AC_TRY_COMMAND(${CC-cc} -c conftest.s 1>&AS_MESSAGE_LOG_FD); then | ||
57 | libc_cv_aarch64_sve_asm=yes | ||
58 | else | ||
59 | libc_cv_aarch64_sve_asm=no | ||
60 | -- | ||
61 | 2.44.0 | ||
62 | |||
diff --git a/meta/recipes-core/glibc/glibc/0024-qemu-stale-process.patch b/meta/recipes-core/glibc/glibc/0023-tests-Skip-2-qemu-tests-that-can-hang-in-oe-selftest.patch index c0a467fcec..50d80ed577 100644 --- a/meta/recipes-core/glibc/glibc/0024-qemu-stale-process.patch +++ b/meta/recipes-core/glibc/glibc/0023-tests-Skip-2-qemu-tests-that-can-hang-in-oe-selftest.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | glibc: Skip 2 qemu tests that can hang in oe-selftest | 1 | From 5395ccff4478d42fab7f2bd6ba7f7188bec09ddf Mon Sep 17 00:00:00 2001 |
2 | From: Yash Shinde <Yash.Shinde@windriver.com> | ||
3 | Date: Fri, 5 Apr 2024 08:24:36 -0700 | ||
4 | Subject: [PATCH] tests: Skip 2 qemu tests that can hang in oe-selftest | ||
2 | 5 | ||
3 | qemumips and qemuppc were leaving stale processes behind after | 6 | qemumips and qemuppc were leaving stale processes behind after |
4 | running glibc oe-selftest. During analysis, it was found that | 7 | running glibc oe-selftest. During analysis, it was found that |
@@ -9,29 +12,35 @@ Disable them so that there are no stale processes left behind. | |||
9 | https://bugzilla.yoctoproject.org/show_bug.cgi?id=15423 | 12 | https://bugzilla.yoctoproject.org/show_bug.cgi?id=15423 |
10 | 13 | ||
11 | Upstream-Status: Inappropriate [oe-core specific] | 14 | Upstream-Status: Inappropriate [oe-core specific] |
15 | |||
12 | Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> | 16 | Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> |
17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | 18 | --- |
14 | diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile | 19 | sysdeps/unix/sysv/linux/Makefile | 6 ++++-- |
15 | --- a/sysdeps/unix/sysv/linux/Makefile 2024-03-18 01:15:49.019202881 -0700 | 20 | 1 file changed, 4 insertions(+), 2 deletions(-) |
16 | +++ b/sysdeps/unix/sysv/linux/Makefile 2024-03-14 06:26:18.581404107 -0700 | 21 | |
17 | @@ -222,7 +222,6 @@ | 22 | diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile |
18 | tst-process_mrelease \ | 23 | index 8a755293b3..22dafcaad1 100644 |
19 | tst-quota \ | 24 | --- a/sysdeps/unix/sysv/linux/Makefile |
25 | +++ b/sysdeps/unix/sysv/linux/Makefile | ||
26 | @@ -228,7 +228,6 @@ tests += \ | ||
20 | tst-rlimit-infinity \ | 27 | tst-rlimit-infinity \ |
28 | tst-sched-affinity-inheritance \ | ||
29 | tst-sched_setattr \ | ||
21 | - tst-scm_rights \ | 30 | - tst-scm_rights \ |
22 | tst-sigtimedwait \ | 31 | tst-sigtimedwait \ |
23 | tst-sync_file_range \ | 32 | tst-sync_file_range \ |
24 | tst-sysconf-iov_max \ | 33 | tst-syscall-restart \ |
25 | @@ -233,6 +232,8 @@ | 34 | @@ -240,6 +239,8 @@ tests += \ |
26 | tst-timerfd \ | 35 | tst-timerfd \ |
27 | tst-ttyname-direct \ | 36 | tst-ttyname-direct \ |
28 | tst-ttyname-namespace \ | 37 | tst-ttyname-namespace \ |
29 | + # Skip this test to avoid stale qemu process | 38 | + # Skip this test to avoid stale qemu process |
30 | + # tst-scm_rights \ | 39 | + # tst-scm_rights \ |
31 | # tests | 40 | # tests |
32 | 41 | ||
33 | # process_madvise requires CAP_SYS_ADMIN. | 42 | # process_madvise requires CAP_SYS_ADMIN. |
34 | @@ -270,9 +271,10 @@ | 43 | @@ -282,9 +283,10 @@ tests-time64 += \ |
35 | tst-ntp_gettimex-time64 \ | 44 | tst-ntp_gettimex-time64 \ |
36 | tst-ppoll-time64 \ | 45 | tst-ppoll-time64 \ |
37 | tst-prctl-time64 \ | 46 | tst-prctl-time64 \ |
@@ -41,5 +50,5 @@ diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefil | |||
41 | + # Skip this test to avoid stale qemu process | 50 | + # Skip this test to avoid stale qemu process |
42 | + # tst-scm_rights-time64 \ | 51 | + # tst-scm_rights-time64 \ |
43 | # tests-time64 | 52 | # tests-time64 |
44 | 53 | ||
45 | tests-clone-internal = \ | 54 | tests-clone-internal = \ |
diff --git a/meta/recipes-core/glibc/glibc/run-ptest b/meta/recipes-core/glibc/glibc/run-ptest deleted file mode 100755 index cb71c75682..0000000000 --- a/meta/recipes-core/glibc/glibc/run-ptest +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | # ptest script for glibc - to run time related tests to | ||
3 | # facilitate Y2038 validation | ||
4 | # Run with 'ptest-runner glibc-tests' | ||
5 | |||
6 | output() { | ||
7 | retcode=$? | ||
8 | if [ $retcode -eq 0 ] | ||
9 | then echo "PASS: $i" | ||
10 | elif [ $retcode -eq 77 ] | ||
11 | then echo "SKIP: $i" | ||
12 | else echo "FAIL: $i" | ||
13 | fi | ||
14 | } | ||
15 | |||
16 | # Allow altering time on the target | ||
17 | export GLIBC_TEST_ALLOW_TIME_SETTING="1" | ||
18 | |||
19 | tst_time64=$(ls -r ${PWD}/tests/glibc-ptest/*-time64) | ||
20 | |||
21 | # Remove '-time64' suffix - those tests are also time | ||
22 | # related | ||
23 | tst_time_tmp=$(sed -e "s/-time64$//" <<< ${tst_time64}) | ||
24 | |||
25 | # Do not run tests supporting only 32 bit time | ||
26 | #for i in ${tst_time_tmp} | ||
27 | #do | ||
28 | # $i >/dev/null 2>&1 | ||
29 | # output | ||
30 | #done | ||
31 | |||
32 | # Run tests supporting only 64 bit time | ||
33 | for i in ${tst_time64} | ||
34 | do | ||
35 | $i >/dev/null 2>&1 | ||
36 | output | ||
37 | done | ||
diff --git a/meta/recipes-core/glibc/glibc_2.39.bb b/meta/recipes-core/glibc/glibc_2.41.bb index 9122472689..7771fac041 100644 --- a/meta/recipes-core/glibc/glibc_2.39.bb +++ b/meta/recipes-core/glibc/glibc_2.41.bb | |||
@@ -16,6 +16,10 @@ CVE_STATUS[CVE-2019-1010025] = "disputed: \ | |||
16 | Allows for ASLR bypass so can bypass some hardening, not an exploit in itself, may allow \ | 16 | Allows for ASLR bypass so can bypass some hardening, not an exploit in itself, may allow \ |
17 | easier access for another. 'ASLR bypass itself is not a vulnerability.'" | 17 | easier access for another. 'ASLR bypass itself is not a vulnerability.'" |
18 | 18 | ||
19 | CVE_STATUS_GROUPS += "CVE_STATUS_STABLE_BACKPORTS" | ||
20 | CVE_STATUS_STABLE_BACKPORTS = "CVE-2025-4802 CVE-2025-5702 CVE-2025-5745" | ||
21 | CVE_STATUS_STABLE_BACKPORTS[status] = "cpe-stable-backport: fix available in used git hash" | ||
22 | |||
19 | DEPENDS += "gperf-native bison-native" | 23 | DEPENDS += "gperf-native bison-native" |
20 | 24 | ||
21 | NATIVESDKFIXES ?= "" | 25 | NATIVESDKFIXES ?= "" |
@@ -48,10 +52,10 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ | |||
48 | file://0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch \ | 52 | file://0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch \ |
49 | file://0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch \ | 53 | file://0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch \ |
50 | file://0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch \ | 54 | file://0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch \ |
51 | file://0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch \ | 55 | file://0023-tests-Skip-2-qemu-tests-that-can-hang-in-oe-selftest.patch \ |
52 | file://0024-qemu-stale-process.patch \ | 56 | file://0001-stdlib-Add-single-threaded-fast-path-to-rand.patch \ |
57 | file://0001-Propagate-ffile-prefix-map-from-CFLAGS-to-ASFLAGS.patch \ | ||
53 | " | 58 | " |
54 | S = "${WORKDIR}/git" | ||
55 | B = "${WORKDIR}/build-${TARGET_SYS}" | 59 | B = "${WORKDIR}/build-${TARGET_SYS}" |
56 | 60 | ||
57 | PACKAGES_DYNAMIC = "" | 61 | PACKAGES_DYNAMIC = "" |
@@ -76,7 +80,6 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ | |||
76 | --with-default-link \ | 80 | --with-default-link \ |
77 | --disable-werror \ | 81 | --disable-werror \ |
78 | --enable-fortify-source \ | 82 | --enable-fortify-source \ |
79 | ${@bb.utils.contains_any('SELECTED_OPTIMIZATION', '-O0 -Og', '--disable-werror', '', d)} \ | ||
80 | ${GLIBCPIE} \ | 83 | ${GLIBCPIE} \ |
81 | ${GLIBC_EXTRA_OECONF}" | 84 | ${GLIBC_EXTRA_OECONF}" |
82 | 85 | ||
@@ -125,4 +128,15 @@ do_compile () { | |||
125 | 128 | ||
126 | require glibc-package.inc | 129 | require glibc-package.inc |
127 | 130 | ||
131 | # When upgrading glibc it's important to know if there are any new symbols | ||
132 | # that pseudo needs to wrap. In the future a generalised ABI comparison tool | ||
133 | # would be good, but to solve the immediate need we can simply list the | ||
134 | # exported symbols to files in WORKDIR. | ||
135 | do_symlist() { | ||
136 | for LIB in ${D}${base_libdir}/lib*.so.*; do | ||
137 | ${NM} --dynamic $LIB | awk --source '$2 == "T" { print $3 }' | sort > ${WORKDIR}/$(basename $LIB)-${PV}.symbols | ||
138 | done | ||
139 | } | ||
140 | addtask symlist after do_install | ||
141 | |||
128 | BBCLASSEXTEND = "nativesdk" | 142 | BBCLASSEXTEND = "nativesdk" |
diff --git a/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb b/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb index 9ca95d1e52..1c475eeb8a 100644 --- a/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb +++ b/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb | |||
@@ -19,12 +19,11 @@ SRC_URI = "file://ldconfig-native-2.12.1.tar.bz2 \ | |||
19 | file://ldconfig-handle-.dynstr-located-in-separate-segment.patch \ | 19 | file://ldconfig-handle-.dynstr-located-in-separate-segment.patch \ |
20 | " | 20 | " |
21 | 21 | ||
22 | |||
23 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/${P}:" | 22 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/${P}:" |
24 | 23 | ||
25 | inherit native | 24 | inherit native |
26 | 25 | ||
27 | S = "${WORKDIR}/${PN}-${PV}" | 26 | S = "${UNPACKDIR}/${PN}-${PV}" |
28 | 27 | ||
29 | do_compile () { | 28 | do_compile () { |
30 | $CC ldconfig.c -std=gnu99 chroot_canon.c xmalloc.c xstrdup.c cache.c readlib.c -I. dl-cache.c -o ldconfig | 29 | $CC ldconfig.c -std=gnu99 chroot_canon.c xmalloc.c xstrdup.c cache.c readlib.c -I. dl-cache.c -o ldconfig |