summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc
Commit message (Collapse)AuthorAgeFilesLines
* glibc: Update to latest on stable 2.39 branchPeter Marko26 hours4-65/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adresses CVE-2024-2961 Remove backported patch included in hash update. Changes: 31da30f23c iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing escape sequence (CVE-2024-2961) 423099a032 x86_64: Exclude SSE, AVX and FMA4 variants in libm multiarch 04df8652eb Apply the Makefile sorting fix edb9a76e30 powerpc: Fix ld.so address determination for PCREL mode (bug 31640) 7b92f46f04 x86-64: Simplify minimum ISA check ifdef conditional with if 9883f4304c x86-64: Don't use SSE resolvers for ISA level 3 or above 9d92452c70 AArch64: Check kernel version for SVE ifuncs 395a89f61e aarch64: fix check for SVE support in assembler b0e0a07018 aarch64/fpu: Sync libmvec routines from 2.39 and before with AOR 31c7d69af5 i386: Use generic memrchr in libc (bug 31316) 5d070d12b3 x86: Expand the comment on when REP STOSB is used on memset 6484a92698 x86: Do not prefer ERMS for memset on Zen3+ aa4249266e x86: Fix Zen3/Zen4 ERMS selection (BZ 30994) 5a461f2949 Add tst-gnu2-tls2mod1 to test-internal-extras aded2fc004 elf: Enable TLS descriptor tests on aarch64 a8ba52bde5 arm: Update _dl_tlsdesc_dynamic to preserve caller-saved registers (BZ 31372) 15aebdbada Ignore undefined symbols for -mtls-dialect=gnu2 354cabcb26 x86-64: Allocate state buffer space for RDI, RSI and RBX 853e915fdd x86-64: Update _dl_tlsdesc_dynamic to preserve AMX registers a364304718 x86: Update _dl_tlsdesc_dynamic to preserve caller-saved registers 7fc8242bf8 x86-64: Save APX registers in ld.so trampoline 983f34a125 LoongArch: Correct {__ieee754, _}_scalb -> {__ieee754, _}_scalbf aad45c8ac3 powerpc: Placeholder and infrastructure/build support to add Power11 related changes. ee7f4c54e1 powerpc: Add HWCAP3/HWCAP4 data to TCB for Power Architecture. 71fcdba577 linux: Use rseq area unconditionally in sched_getcpu (bug 31479) (From OE-Core rev: 8b0124782510389bdc376fab645a0920b3fb94c8) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Skip 2 qemu tests that can hang in oe-selftestYash Shinde2024-04-042-0/+46
| | | | | | | | | | | | | | | qemumips and qemuppc were leaving stale processes behind after running glibc oe-selftest. During analysis, it was found that it was due to "tst-scm_rights" and "tst-scm_rights-time64" tests. Disable them so that there are no stale processes left behind. [YOCTO #15423] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15423 (From OE-Core rev: b3f7b19b6d21368bac00a33ea208cc0379ce4543) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Repace aarch configure patch fix with a backportKhem Raj2024-03-261-29/+38
| | | | | | | | | | | despite it being an issue in gcc and still being open glibc has fixed this problem upstream regardless, therefore apply the backport instead. (From OE-Core rev: a6200d18c6a1438e39d44b391f8d0e343f8fdc1a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Update to tip of 2.39 branchKhem Raj2024-03-181-1/+1
| | | | | | | | | | | | | Brings * 1b9c1a0047 Use gcc __builtin_stdc_* builtins in stdbit.h if possible * e0910f1d32 S390: Do not clobber r7 in clone [BZ #31402] * d0724994de math: Update mips64 ulps (From OE-Core rev: b2274aa08fda1734af840aca05c7c7ce464d8775) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-locale: add an explicit dedicated package for locale.alias fileJonathan GUILLOT2024-02-241-1/+2
| | | | | | | | | | | | Until now, ${datadir}/locale/locale.alias file were automatically added to a weird glibc-locale-locale.alias package by split_locales() during do_package task. Create an explicit package name in recipe for this file. (From OE-Core rev: 405c5b6f04b531c968d0f8348c2dafe363011898) Signed-off-by: Jonathan GUILLOT <jonathan@joggee.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ldconfig-native: Fix to point correctly on the DT_NEEDED entries in an ELF fileFabien Mahot2024-02-172-0/+179
| | | | | | | | | | | | | | | | | | | When ldconfig-native reads an ELF file, it computes an offset from a LOAD segment, to point on DT NEEDED entries of dynstr section. Without this patch, ldconfig-native uses only the first LOAD segment, even if the offset is incorrect. This patch adds conditions to compute the offset by parsing all LOAD segments, one by one. This is a backport from [0], ported to support endianness and 32/64 bits. [0]: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=58e8f5fd2ba47b6dc47fd4d0a35e4175c7c87aaa (From OE-Core rev: 22e35ccf3731164722e3cda9de1802d7326cb507) Signed-off-by: Fabien Mahot <fabien.mahot@external.desouttertools.com> Reviewed-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Update to bring mips32/clone3 fixKhem Raj2024-02-143-85/+1
| | | | | | | | | | | This patch is the only change applied with this update * 312e159626 mips: FIx clone3 implementation (BZ 31325) (From OE-Core rev: c100c709e746e7b7301c5e01cbf43572a225f00e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Update to latest on 2.39Khem Raj2024-02-131-1/+1
| | | | | | | | | | | Brings this bugfix for arm 63295e4fda arm: Remove wrong ldr from _dl_start_user (BZ 31339) (From OE-Core rev: 109c14a3d6ebe0a7162bc275f4f8ae8adf91196d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Refresh CVE status w.r.t 2.39 releaseValek Andrej2024-02-062-7/+0
| | | | | | | | | | - drop irrelevant CVEs for 2.39 release (From OE-Core rev: bea91fb120fef012c1501d470f85ee60a672d1e3) Signed-off-by: Valek Andrej <andrej.v@skyrain.eu> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Upgrade to 2.39Khem Raj2024-02-0633-86/+165
| | | | | | | | | | | | | | | | | | | License-Update: Relicenses the IBM portions of resolv/base64.c and resolv/res_debug.c to a new license that does not have use-limited patent language [1] Upgrade localdef to get glibc 2.39 build fixes Details of release [2] Add fix for mips clone3 crash [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=ae49a7b29acc184b03c2a6bd6ac01b5e08efd54f [2] https://sourceware.org/glibc/wiki/Release/2.39 (From OE-Core rev: 41ee98ea7e029515a94835952b8563097150f456) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Do not enable CET on 32bit x86Khem Raj2024-01-241-1/+0
| | | | | | | | | | | Support has been removed from 2.39+ see [1] [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=25f1e16ef03a6a8fb1701c4647d46c564480d88c (From OE-Core rev: 63925be1c40aee0baeebd5bf6fdfafed18200b5f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Set status for CVE-2023-5156 & CVE-2023-0687Simone Weiß2024-01-121-0/+2
| | | | | | | | | | | | Set `CVE_STATUS`for those CVEs, they have already been fixed with the latest pull for stable branch fixes done in rev e444d2bed0ea140a574414fcd5a689867e8ba312. Hence the issues are fixed already. (From OE-Core rev: 6e6fe23c95f1d0a8a0503cb71557cf3272bf9945) Signed-off-by: Simone Weiß <simone.p.weiss@posteo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-y2038-tests: do not run tests using 32 bit time APIsAlexander Kanavin2024-01-031-6/+6
| | | | | | | | | | I'm not sure why this was included and enabled to begin with: the tests predictably mass-fail if system time is set to after y2038. (From OE-Core rev: c9c7ebd6e447bce19803253afd881854f686b5f6) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: stable 2.38 branch updatesSundeep KOKKONDA2023-11-301-1/+1
| | | | | | | | | | | | | Below commits on glibc-2.38 stable branch are updated. 1e04dcec49 Revert "elf: Move l_init_called_next to old place of l_text_end in link map" 719866ab2f Revert "elf: Always call destructors in reverse constructor order (bug 30785)" e0b6c9706c Revert "elf: Remove unused l_text_end field from struct link_map" (From OE-Core rev: c14832a8cd40171e4081aadb613de185ae233851) Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: use nonarch libdir for tmpfiles.dStefan Herbrechtsmeier2023-11-201-4/+4
| | | | | | | | | | | | | | | The documentation of systemd states that /etc/tmpfiles.d should be reserved for the local administrator and packages should put their files in /usr/lib/tmpfiles.d [1]. [1] https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html (From OE-Core rev: e2bebef14a64c510b8f5b0a21f15347d6919c218) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Pull in stable branch fixesRichard Purdie2023-10-041-1/+6
| | | | | | | | | | | | | | | Pull in stable branch fixes including: * tunables: Terminate if end of input is reached (CVE-2023-4911) * Propagate GLIBC_TUNABLES in setxid binaries * Document CVE-2023-4806 and CVE-2023-5156 in NEWS * Fix leak in getaddrinfo introduced by the fix for CVE-2023-4806 [BZ #30843] Also set CVE_STATUS accordingly for the fixes pulled in. (From OE-Core rev: 7d77bce6158bf11a2de0944f75589382f153bb91) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: stable 2.38 branch updates.Deepthi Hemraj2023-10-033-221/+1
| | | | | | | | | | | | | | | | | | | | | | | Below commits on glibc-2.38 stable branch are updated. 0e1ef6779a (HEAD -> release/2.38/master, origin/release/2.38/master) manual/jobs.texi: Add missing @item EPERM for getpgid d94461bb86 string: Fix tester build with fortify enable with gcc < 12 63250e9c57 iconv: restore verbosity with unrecognized encoding names (bug 30694) 00ae4f10b5 getaddrinfo: Fix use after free in getcanonname (CVE-2023-4806) b25508dd77 CVE-2023-4527: Stack read overflow with large TCP responses in no-aaaa mode 89da8bc588 NEWS: Add the 2.38.1 bug list d3ba6c1333 elf: Move l_init_called_next to old place of l_text_end in link map 750f19526a elf: Remove unused l_text_end field from struct link_map a3189f66a5 elf: Always call destructors in reverse constructor order (bug 30785) 7ae211a01b elf: Do not run constructors for proxy objects 92201f16cb libio: Fix oversized __io_vtables 5bdef6f27c io: Fix record locking contants for powerpc64 with __USE_FILE_OFFSET64 0024-CVE-2023-4527.patch is dropped (From OE-Core rev: eae8634ff7a7dd6f84c4607b5f1b0c6fe5e39f37) Signed-off-by: Deepthi Hemraj <Deepthi.Hemraj@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: fix CVE-2023-4527Yash Shinde2023-09-262-0/+220
| | | | | | | | | | Upstream-Status: Backport[https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=4ea972b7edd7e36610e8cde18bf7a8149d7bac4f] (From OE-Core rev: 66b6133b5e623f39d9c26dae3097035dafd41f60) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Drop remaining PR values from recipesRichard Purdie2023-09-221-1/+0
| | | | | | | | | | | | | | | | We've been removing PR values from recipes at upgrade time for a while. In general anyone maintaining a binary distro would end up having to curate these themselves so the values in OE-Core aren't really that useful anymore. In many ways it makes sense to clear out the remaining ones (which are mostly for 'config' recipes that are unlikely to increase in PV) and leave a clean slate for anyone implementing a binary distro config. References are left in meta-selftest since the tests there do involve them and their removal upon upgrade. (From OE-Core rev: d4c346e8ab8f3cae25d1b01c7331ed9f6d4f96ef) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-tests: rename to glibc-y2038-testsAlexander Kanavin2023-09-181-1/+1
| | | | | | | | | | The recipe originates from meta-y2038 where the name was not confusing, but in oe-core it is. (From OE-Core rev: 90bc7a66b08580207839fc6aafe1ac86c12981c5) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-package: Fix conflict error when enable multilib.Lei Maohui2023-09-061-1/+1
| | | | | | | | | | | | | | | | | file /usr/include/bits/math-vector.h from install of lib32-libc6-dev-2.38-r0.armv7ahf_neon conflicts with file from package libc6-dev-2.38-r0.aarch64 Reference to the git log of glibc, upstream modified math-vector.h for aarch64, so this file has many differences from aarch32. For detailed modifications, please refer to these two commit log of glibc: commit 4a9392ffc27ad280f84779eea3ba01f2c134d1d8 commit 78c01a5cbeb6717ffa2d4d66bb90ac5c39bd81a9 (From OE-Core rev: ecfa84f5bb238ef2252d6491a6cde2c5fd202213) Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Add glibc 2.38 stable updatesRichard Purdie2023-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | Pull in the following stable branch updates: 1aed90c9c8f8be9f68b58e96b6e4cd0fc08eb2b1 sysdeps: tst-bz21269: fix -Wreturn-type ad9b8399537670a990572c4b0c4da5411e3b68cf sysdeps: tst-bz21269: handle ENOSYS & skip appropriately c8ecda6251dd4a0dfe074e0a6011211cadeef742 sysdeps: tst-bz21269: fix test parameter 2af141bda3cd407abd4bedf615f9e45fe79518e2 malloc: Remove bin scanning from memalign (bug 30723) 98c293c61f770b6b7a22f89a6ea81b711ecb1952 malloc: Enable merging of remainders in memalign (bug 30723) 7ac405a74c6069b0627dc2d8449a82a621f8ff06 i686: Fix build with --disable-multiarch 6135d50e44233d8c89ca788f78c669941ad09fb9 x86_64: Fix build with --disable-multiarch (BZ 30721) 5ea70cc02626d9b85f1570153873d8648a47bf95 x86: Fix incorrect scope of setting `shared_per_thread` [BZ# 30745] 6b99458d197ab779ebb6ff632c168e2cbfa4f543 nscd: Do not rebuild getaddrinfo (bug 30709) ced101ed9d3b7cfd12d97ef24940cb00b8658c81 x86: Fix for cache computation on AMD legacy cpus. d97cca1e5df812be0e4de1e38091f02bb1e7ec4e stdlib: Improve tst-realpath compatibility with source fortification (From OE-Core rev: f65f0811e32b4fb57536f3331cc2422c4d71e9bf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cross-localedef-native: fix build on hosts with older glibcMartin Jansa2023-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Older glibc on host might be missing __glibc_has_attribute added in glibc-2.34 with: https://sourceware.org/git/?p=glibc.git;a=blobdiff;f=misc/sys/cdefs.h;h=8e244a77cf6271f09cbd26d18b1e07b1d1641404;hp=57ca262bdfb642bf4a945645532f2319ec1ff437;hb=c8ba52ab3350c334d6e34b1439a4c0c1431351f3;hpb=7dd416491e080456fc7742d884c520526509413e Fixes: In file included from ../git/localedef/include/programs/xmalloc.h:21, from glibc/locale/programs/localedef.h:124, from glibc/locale/programs/localedef.c:36: ../git/localedef/include/sys/cdefs.h:85:51: error: missing binary operator before token "(" 85 | #if __GNUC_PREREQ (4, 3) || __glibc_has_attribute (__cold__) | ^ Only commit included: e0eca29 cdefs.h: define __glibc_has_attribute (From OE-Core rev: 62c464bb4e3ebb6b50864ede7b352651b2c81e3c) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-tests: Add missing libgcc runtime dependencyKhem Raj2023-08-161-1/+1
| | | | | | | | | Some tests e.g. tst-y2039-time64 from glibc 2.38+ needs it. (From OE-Core rev: d41e6b8c9ff1d42fd6211fd2c24f666cac188f79) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Fix SVE detection on aarch64Khem Raj2023-08-162-0/+58
| | | | | | | (From OE-Core rev: 10e1ae119e8087598947dd45c163d5fe6569839d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Drop --enable-tunablesKhem Raj2023-08-161-1/+0
| | | | | | | | | | | Its removed and is implicit default in 2.38+ [1] [1] https://mail.gnu.org/archive/html/info-gnu/2023-07/msg00010.html (From OE-Core rev: e2af021f5b918c619396eecb20fa30a71cf5e776) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Enable fortify sources by defaultsKhem Raj2023-08-161-0/+1
| | | | | | | (From OE-Core rev: f71d9d87e638ebeea5be1a64ad98a9460ee3d1f2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Upgrade to 2.38 releaseKhem Raj2023-08-1631-128/+110
| | | | | | | | | Announcement - https://mail.gnu.org/archive/html/info-gnu/2023-07/msg00010.html (From OE-Core rev: 16aff29593d7991d7ae953d5fb526a897c5a7268) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-locale: use stricter matching for metapackages' runtime dependenciesAlexander Kanavin2023-07-301-4/+4
| | | | | | | | | | | | | | | | | | This resolves two issues: 1. metapackages were depending on themselves (except -binaries which wouldn't match against 'glibc-binary'). 2. for the nativesdk variant, due to a non-empty dependency list at parsing time caused by issue 1, map_depends_variable() from meta/lib/oe/classextend.py was forcibly setting PACKAGES to the initial parse-time value (e.g. missing the dynamically created packages). This meant that three out of four nativesdk- metapackages were entireyly missing the dependencies on the respective dynamic package sets. (From OE-Core rev: a90fd3afe9184aa1870b34a826e3ba0563477d4b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc/check-test-wrapper: don't emit warnings from sshAnuj Mittal2023-07-261-1/+1
| | | | | | | | | | | | | Dont fill up the test log with ssh warning about having added the host to list of known hosts. Also helps fix a test case failure where stderr log was being compared to a known value. (From OE-Core rev: 63b31ff7e54a171c4c02fca2e6b07aec64a410af) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cve_check: convert CVE_CHECK_IGNORE to CVE_STATUSAndrej Valek2023-07-211-8/+9
| | | | | | | | | | | | | - Try to add convert and apply statuses for old CVEs - Drop some obsolete ignores, while they are not relevant for current version (From OE-Core rev: 1634ed4048cf56788cd5c2c1bdc979b70afcdcd7) Signed-off-by: Andrej Valek <andrej.valek@siemens.com> Reviewed-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-testsuite: Fix network restrictions causing test failuresRichard Purdie2023-07-201-0/+1
| | | | | | | | | | | | The check target for the glibc testsuite uses networking to access a QEMU in system mode. This was resulting in large numbers of test failures for the x86 targets that use it. Enable network access to resolve this. (From OE-Core rev: 088e022f80e57ca345838bf57df9abad3d8b9313) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Pass linker choice via compiler flagsKhem Raj2023-06-131-1/+3
| | | | | | | | | | | | | | | | | glibc configury tries to detect ld version and assumes BFD or gold linker but when system ld is pointing to lld or mold it might fail the linker check, therefore pass LD variable to explicitly point at ld.bfd we are using BFD linker only to link glibc after all. Second problem in such a case is that some partial objects are linked with CC -r which will fail if we do not inform the compiler to use BFD linker thusly pass it via appending to CC variable (From OE-Core rev: 63248d2cbd7a15aec5b864d0058fe919eb17c46c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Default to https git protocol where possibleRichard Purdie2023-05-051-1/+1
| | | | | | | | | | The recommendation from server maintainers is that the https protocol is both faster and more reliable than the dedicated git protocol at this point. Switch to it where possible. (From OE-Core rev: 139102a73d4151f4748b4a861bd4ab28dda7dab7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* binutils: Drop crosssdk suffix from virtual provides to improve dependency ↵Richard Purdie2023-05-021-3/+1
| | | | | | | | | | | | handling There is little point in having "crosssdk" suffex added to the virtual provider within binutils since the TARGET_PREFIX or SDK_PREFIX already encapsulates this. Remove it allowing some of the special case overriding to be removed. (From OE-Core rev: 6856fc5c848cc2564bebe03a007ef109f46d0adb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* abi_version/sstate: Handle pkgconfig output changes and bump output versionsRichard Purdie2023-03-261-2/+0
| | | | | | | | | | | | | A recent package.py change has highlighted some corruption issues with -dev pkgconfig package dependencies. Bump the output versions to trigger a rebuild and ensure everything is consistent. Take the opportunity to also drop all HASHEQUIV_HASH_VERSION entries since the main version is changing. (From OE-Core rev: f45ddfbf007de858327eef0ffefd5840ef4c69b8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: add support for loongarch64Jialing Zhang2023-03-231-1/+1
| | | | | | | | | | | glibc gcc vulkan add support for loongarch64 (From OE-Core rev: 526b9a8ebacf07690dfc5beb1788ab7a5bef8423) Signed-off-by: Jialing Zhang <zhangjialing@loongson.cn> Signed-off-by: Qizheng Zhu <zhuqizheng@loongson.cn> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Disable warnings as errorsKhem Raj2023-03-221-0/+1
| | | | | | | | | | | As distro builders this option helps using different compilers to build glibc (From OE-Core rev: 4b082870d425b94cd2a7859d7d113d5c178b92b7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-tests: Add missing bash ptest dependencyRichard Purdie2023-03-122-2/+2
| | | | | | | | | | The script has a bashism and needs bash to execute correctly. Mark it as such and add the missing bash dependency so it executes in minimal images. (From OE-Core rev: a1b5afac108d9c94e8fc2ad8cfebfee16f6f243b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Update sstate/equiv versions to clean cacheRichard Purdie2023-03-091-0/+3
| | | | | | | | | | There are cached reproducibility issues on the autobuilder due to the PRServ sstate checksum issues, flush the bad data out the system by bumping the versions. (From OE-Core rev: b2b33e387c523d5936f6948115a73772b2cf9f2b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Add missing binutils dependencyRichard Purdie2023-03-091-1/+3
| | | | | | | | | | | | | | | glibc has it's dependencies handled more manually due to it's place in the toolchain bootstrap. It depends upon the compiler and indirectly through that to binutils. This did mean that if binutils changes and the compiler does not, sstate and hash equivalence could mean that glibc wouldn't rebuild. Add a direct dependency on binutils that if it changes, it forces glibc to rebuild, as it should. (From OE-Core rev: c4a7b3decff636292f5e76e95406a22b6fe4a994) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: remove obsolete CVE ignoresRoss Burton2023-02-281-5/+0
| | | | | | | | | | | | | | | | Remove some obsolete CVE ignores now that releases have been made, CPEs updated, or upgrades done: CVE-2020-10029 is marked as fixed in 2.32. CVE-2021-27645 is marked as fixed in 2.34. CVE-2022-39046 is marked as fixed in 2.37. (From OE-Core rev: a383d0e726011007419dd102cd6484733d80d9f6) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: add ignore for CVE-2023-25139Ross Burton2023-02-281-0/+3
| | | | | | | | | | | This CVE has been fixed in the 2.37 release branch (07b9521fc6) and we're now using a SHA that incorporates that commit, so manually mark it as ignored. (From OE-Core rev: b143e355ef362dac89f8b125904d2e47c74e597e) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: stable 2.37 branch updates.Yash Shinde2023-02-191-1/+1
| | | | | | | | | | | | | | | | | Below commits on glibc-2.37 stable branch are updated. d8e1a7590d elf: Smoke-test ldconfig -p against system /etc/ld.so.cache 6fe86ecd78 NEWS: Document CVE-2023-25139. 07b9521fc6 Account for grouping in printf width (bug 30068) fb7b95dc47 Use 64-bit time_t interfaces in strftime and strptime (bug 30053) 9f8513dc64 LoongArch: Add new relocation types. 020b43544a cdefs: Limit definition of fortification macros (From OE-Core rev: 262ee4d12fd82f1722b0ac859d95fdfd7640cb95) Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: unify wordsize.h between arm and aarch64Yi Zhao2023-02-101-14/+6
| | | | | | | | | | | | | | | | There is a redundant change in 0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch that causes wordsize.h to be different in arm and aarch64. This causes the build error when enable multilib: Error: Transaction test error: file /usr/include/bits/wordsize.h conflicts between attempted installs of lib32-libc6-dev-2.37-r0.armv7vet2hf_vfp and libc6-dev-2.37-r0.cortexa57 (From OE-Core rev: 303bb3b735da434eb135ee857c2c49c55da61918) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Upgrade to 2.37 releaseKhem Raj2023-02-0535-735/+100
| | | | | | | | | | | | Details are here [1] and summary of changes is here [2] [1] https://sourceware.org/glibc/wiki/Release/2.37 [2] https://sourceware.org/pipermail/libc-announce/2023/000035.html (From OE-Core rev: 1bba40755c8432bc654d1faa209727a6d68d9ba5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc: Add ppoll fortify symbol for 64 bit time_tOla x Nilsson2022-12-092-0/+529
| | | | | | | | | | | Patch so ppoll is properly redirected to it's 64bit time variant even when source fortification is active. (From OE-Core rev: 8cb7008090e98d990e7249b4ef723f65825915ae) Signed-off-by: Ola x Nilsson <olani@axis.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-tests: correctly pull in the actual tests when installing -ptest packageAlexander Kanavin2022-12-051-1/+1
| | | | | | | | | | | | The tests are packaged into the main glibc-tests package which is fine, but then glibc-tests-ptest package needs to depend on that. Which is what this commit addresses. (From OE-Core rev: d37c2d428b09b9d0cbb875f083c6a1e9883a7fed) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-locale: Do not INHIBIT_DEFAULT_DEPSNathan Rossi2022-11-111-8/+3
| | | | | | | | | | | | | | | | | | | | | The glibc-locale recipe already partially depends on the base depends in order to satisfy the do_package dependency on binutils. However since commit d6ffd683bf6 NM has defaulted to gcc-nm, meaning do_package depends on gcc (for minidebuginfo). Whilst the do_package task could handle having the dependencies explicitly defined (either in glibc-locale or in package.bbclass), setting these would require some amount of conditional dependency configuration (cross/crosssdk/etc.). Since both binutils and gcc are already dependencies of virtual/libc (although compilerlibs is not), having glibc-locale not inhibit the default depends simplifies the handling of this situation for both glibc-locale and package.bbclass. (From OE-Core rev: 8a40d0a6039e87a5b4b26a0e84dd797fe5c75cba) Signed-off-by: Nathan Rossi <nathan.rossi@digi.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* glibc-locale: explicitly remove empty dirs in ${libdir}Denys Dmytriyenko2022-09-291-3/+2
| | | | | | | | | | | | | | | | | | | | | | glibc-locale defaults to ENABLE_BINARY_LOCALE_GENERATION ?= "0", but gets changed to "1" in the default-distrovars.inc When it is explicitly set back to "0", it fails with this error: ERROR: glibc-locale-2.36-r0 do_package: QA Issue: glibc-locale: Files/directories were installed but not shipped in any package: /usr/lib/locale Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. glibc-locale: 1 installed and not shipped files. [installed-vs-shipped] ERROR: glibc-locale-2.36-r0 do_package: Fatal QA errors were found, failing task. There's a code to remove empty dirs in ${libdir}, but it's keyed off of PACKAGE_NO_GCONV to clean up $[libdir]/gconv, just extend it to also cover other empty dirs, including ${libdir}/locale. (From OE-Core rev: b2565de1d9fb513c61f80a4f02be39ee9c31e7dd) Signed-off-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>