summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc
AgeCommit message (Collapse)Author
2022-08-08glibc: fix new upstream build issue with DEBUG_BUILD buildMartin Jansa
* refresh 0001-Revert-Linux-Implement-a-useful-version-of-_startup_.patch (just different commit SHA in master and 2.35 branch) * add proposed fixes for build failure with DEBUG_BUILD: http://errors.yoctoproject.org/Errors/Details/663898/ 86_64-oe-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0 -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0 -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot= -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now -fuse-ld=bfd -nostdlib -nostartfiles -r -o TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os '-Wl,-(' TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/dl-allobjs.os TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/rtld-libc.a -lgcc '-Wl,-)' \ -Wl,-Map,TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os.map x86_64-oe-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0 -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0=/usr/src/debug/glibc/2.36-r0 -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot= -fdebug-prefix-map=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now -fuse-ld=bfd -nostdlib -nostartfiles -shared -o TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/ld.so.new \ -Wl,-z,relro -Wl,-z,defs -Wl,-z,now \ -Wl,-z,pack-relative-relocs \ TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os -Wl,--version-script=TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/ld.map \ -Wl,-soname=ld-linux-x86-64.so.2 TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/12.1.0/ld.bfd: TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.36-r0/build-x86_64-oe-linux/elf/librtld.os: in function `_dl_load_cache_lookup': /usr/src/debug/glibc/2.36-r0/git/elf/dl-cache.c:513: undefined reference to `strcpy' collect2: error: ld returned 1 exit status introduced in 2.36 version, with: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=6b9006bfb0 upstream report with this fix proposed: https://sourceware.org/bugzilla/show_bug.cgi?id=29454 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-08glibc: Bump to 2.36Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2022-08-08glibc: revert one upstream change to work around broken DEBUG_BUILD buildMartin Jansa
* work around for build failure with DEBUG_BUILD: http://errors.yoctoproject.org/Errors/Details/661468/ TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.35-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/11.3.0/ld.bfd: TOPDIR/tmp-glibc/work/core2-64-oe-linux/glibc/2.35-r0/build-x86_64-oe-linux/libc.a(libc-tls.o): in function `__libc_setup_tls': /usr/src/debug/glibc/2.35-r0/git/csu/libc-tls.c:202: undefined reference to `_startup_fatal_not_constant' introduced in: https://git.openembedded.org/openembedded-core/commit/?id=50ca0eea5424c89c9b39cf69d8bd73fd65f06e95 with: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=a2a6bce7d7e52c1c34369a7da62c501cc350bc31 Temporary reverting as discussed in: https://lists.openembedded.org/g/openembedded-core/message/168463 (it's also reverted in buildroot now with: https://lore.kernel.org/buildroot/20220720213853.1A27184110@busybox.osuosl.org/t/) instead of revert we can use -fexpensive-optimizations which will optimize-out the symbol, but that works only with -O1 and not -Og used by DEBUG_BUILD upstream report: https://sourceware.org/bugzilla/show_bug.cgi?id=29249 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-08-08glibc : stable 2.35 branch updatesSundeep KOKKONDA
Below commits on glibc-2.35 development branch are updated. glibc: 0e5b239f45 malloc: Simplify implementation of __malloc_assert dc2d843045 Update syscall-names.list for Linux 5.18 d56c7e0965 Apply asm redirections in stdio.h before first use [BZ #27087] c4050b2552 x86: Add missing IS_IN (libc) check to strncmp-sse4_2.S fdf699edea x86: Move mem{p}{mov|cpy}_{chk_}erms to its own file de6f7bb873 x86: Move and slightly improve memset_erms 210e9728ff x86: Add definition for __wmemset_chk AVX2 RTM in ifunc impl list c77cde8172 x86: Put wcs{n}len-sse4.1 in the sse4.1 text section 3eb17048c4 x86: Align entry for memrchr to 64-bytes. dd3b6857ee x86: Add BMI1/BMI2 checks for ISA_V3 check ce32ad91eb x86: Cleanup bounds checking in large memcpy case 863987a6ef x86: Add bounds `x86_non_temporal_threshold` 232b7adb14 x86: Add sse42 implementation to strcmp's ifunc 7f7a728b71 x86: Fix misordered logic for setting `rep_movsb_stop_threshold` 6b4a2ab7e0 x86: Align varshift table to 32-bytes e74385736c x86: ZERO_UPPER_VEC_REGISTERS_RETURN_XTEST expect no transactions b4744d4414 x86: Shrink code size of memchr-evex.S 5321a217cf x86: Shrink code size of memchr-avx2.S c536b318f0 x86: Optimize memrchr-avx2.S f8ba0e0452 x86: Optimize memrchr-evex.S 7001d558a0 x86: Optimize memrchr-sse2.S 54486f520a x86: Add COND_VZEROUPPER that can replace vzeroupper if no `ret` 82560fe43e x86: Create header for VEC classes in x86 strings library b1f23b6128 x86_64: Add strstr function with 512-bit EVEX f9f0fbbf7b x86-64: Ignore r_addend for R_X86_64_GLOB_DAT/R_X86_64_JUMP_SLOT 650bf51c78 x86_64: Implement evex512 version of strlen, strnlen, wcslen and wcsnlen e0cb101d1b x86_64: Remove bzero optimization 51e2d3b53b nptl: Fix ___pthread_unregister_cancel_restore asynchronous restore cd4f43be3d linux: Fix mq_timereceive check for 32 bit fallback code (BZ 29304) Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-07-23glibc: make glibc-dev depend on kernel headersChen Qi
The linux kernel headers are necessary for glibc-dev, so we need to use RDEPENDS instead of DEV_PKG_DEPENDENCY which specifies RRECOMMENDS. Currently, in case of NO_RECOMMENDATIONS set to "1", linux kernel headers are not pulled in by glibc-dev, causing error like below when compiling. fatal error: linux/errno.h: No such file or directory The problem could be reproduced by setting NO_RECOMMENDATIONS to "1" and then running: bitbake core-image-minimal -c populate_sdk bitbake core-image-minimal -c testsdk Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-07-12glibc: stable 2.35 branch updatesSundeep KOKKONDA
Below commits on glibc-2.35 development branch are updated. b6aade18a7 nss: handle stat failure in check_reload_and_get (BZ #28752) ccac2d6d95 nss: add assert to DB_LOOKUP_FCT (BZ #28752) 9d8ae95604 nios2: Remove _dl_skip_args usage (BZ# 29187) 8468be8433 hppa: Remove _dl_skip_args usage (BZ# 29165) 99978cd42c NEWS: Add a bug fix entry for BZ #29225 97dd8b3f70 nptl: Fix __libc_cleanup_pop_restore asynchronous restore (BZ#29214) 0a1572b8bb powerpc: Fix VSX register number on __strncpy_power9 [BZ #29197] fe9ca732ac socket: Fix mistyped define statement in socket/sys/socket.h (BZ #29225) d7d1eebd4d iconv: Use 64 bit stat for gconv_parseconfdir (BZ# 29213) c5a75ecec8 catgets: Use 64 bit stat for __open_catalog (BZ# 29211) e429695805 inet: Use 64 bit stat for ruserpass (BZ# 29210) 6ea3c0aba4 socket: Use 64 bit stat for isfdtype (BZ# 29209) 9bcf5b12f8 posix: Use 64 bit stat for fpathconf (_PC_ASYNC_IO) (BZ# 29208) 45e5d0f533 posix: Use 64 bit stat for posix_fallocate fallback (BZ# 29207) 37c94dc999 misc: Use 64 bit stat for getusershell (BZ# 29204) cb49c14183 misc: Use 64 bit stat for daemon (BZ# 29203) 6abb4002df Fix deadlock when pthread_atfork handler calls pthread_atfork or dlclose ac87df8d75 x86: Fallback {str|wcs}cmp RTM in the ncmp overflow case [BZ #29127] 478cd506ea string.h: fix __fortified_attr_access macro call [BZ #29162] 2b128a7d30 linux: Add a getauxval test [BZ #23293] f5f7144dfc rtld: Use generic argv adjustment in ld.so [BZ #23293] 04892c543e S390: Enable static PIE 72d9dcfd16 csu: Implement and use _dl_early_allocate during static startup b5ddf33c6e Linux: Introduce __brk_call for invoking the brk system call 2d05ba7f8e Linux: Implement a useful version of _startup_fatal 55ee3afa0d ia64: Always define IA64_USE_NEW_STUB as a flag macro d66cca3fbb Linux: Define MMAP_CALL_INTERNAL a7b122a7b4 i386: Honor I386_USE_SYSENTER for 6-argument Linux system calls d1772c9376 i386: Remove OPTIMIZE_FOR_GCC_5 from Linux libc-do-syscall.S 58bb3aeaae elf: Remove __libc_init_secure 0a5c6c9d99 Linux: Consolidate auxiliary vector parsing (redo) 76304dfdaf Linux: Include <dl-auxv.h> in dl-sysdep.c only for SHARED 788eb21ff0 Revert "Linux: Consolidate auxiliary vector parsing" 150039ff07 Linux: Consolidate auxiliary vector parsing 3948c6ca89 Linux: Assume that NEED_DL_SYSINFO_DSO is always defined 29f833f5ab Linux: Remove DL_FIND_ARG_COMPONENTS 1695c5e0f6 Linux: Remove HAVE_AUX_SECURE, HAVE_AUX_XID, HAVE_AUX_PAGESIZE 756d583c9e elf: Merge dl-sysdep.c into the Linux version 2c4fc8e5ca x86: Optimize {str|wcs}rchr-evex fdbc8439ac x86: Optimize {str|wcs}rchr-avx2 b05c0c8b28 x86: Optimize {str|wcs}rchr-sse2 bc35e22be4 x86-64: Fix SSE2 memcmp and SSSE3 memmove for x32 4d1841deb7 x86: Fix missing __wmemcmp def for disable-multiarch build cee9939f67 x86: Cleanup page cross code in memcmp-avx2-movbe.S 0909286ffa x86: Remove memcmp-sse4.S 5a8df6485c x86: Optimize memcmp SSE2 in memcmp.S af0865571a x86: Small improvements for wcslen 3b710e32d8 x86: Remove AVX str{n}casecmp fc5d42bf82 x86: Add EVEX optimized str{n}casecmp 33fcf8344f x86: Add AVX2 optimized str{n}casecmp 3496d64d69 x86: Optimize str{n}casecmp TOLOWER logic in strcmp-sse42.S 283982b362 x86: Optimize str{n}casecmp TOLOWER logic in strcmp.S 420cd6f155 x86: Remove strspn-sse2.S and use the generic implementation 4b61d76521 x86: Remove strpbrk-sse2.S and use the generic implementation 2fef1961a7 x86: Remove strcspn-sse2.S and use the generic implementation 1ed2813eb1 x86: Optimize strspn in strspn-c.c 3214c878f2 x86: Optimize strcspn and strpbrk in strcspn-c.c ff9772ac19 x86: Code cleanup in strchr-evex and comment justifying branch 424bbd4d25 x86: Code cleanup in strchr-avx2 and comment justifying branch 0a10b8b181 x86_64: Remove bcopy optimizations f0a53588da x86-64: Define __memcmpeq in ld.so a133623048 x86-64: Remove bzero weak alias in SS2 memset 18baf86f51 x86_64/multiarch: Sort sysdep_routines and put one entry per line d422197a69 x86: Improve L to support L(XXX_SYMBOL (YYY, ZZZ)) 58947e1fa5 fortify: Ensure that __glibc_fortify condition is a constant [BZ #29141] 28ea43f8d6 dlfcn: Implement the RTLD_DI_PHDR request type for dlinfo 78f82ab4ef manual: Document the dlinfo function bbb017a2bb NEWS: Add a bug fix entry for BZ #29109 5c0d94d780 linux: Fix posix_spawn return code if clone fails (BZ#29109) 059e36d9ed x86: Fix fallback for wcsncmp_avx2 in strcmp-avx2.S [BZ #28896] 676f7bcf11 x86: Fix bug in strncmp-evex and strncmp-avx2 [BZ #28895] c394d7e11a x86: Set .text section in memset-vec-unaligned-erms de0cd691b2 x86-64: Optimize bzero 0bf9c8b5fe x86: Remove SSSE3 instruction for broadcast in memset.S (SSE2 Only) 58596411ad x86: Improve vec generation in memset-vec-unaligned-erms.S 36766c02af x86-64: Fix strcmp-evex.S 250e277797 x86-64: Fix strcmp-avx2.S 34ef810945 x86: Optimize strcmp-evex.S b68e782f8e x86: Optimize strcmp-avx2.S ec5b79aac7 manual: Clarify that abbreviations of long options are allowed 0bcba53020 Add HWCAP2_AFP, HWCAP2_RPRES from Linux 5.17 to AArch64 bits/hwcap.h 95759abbf3 Add SOL_MPTCP, SOL_MCTP from Linux 5.16 to bits/socket.h eed29011f9 Update kernel version to 5.17 in tst-mman-consts.py e72c363a15 Update kernel version to 5.16 in tst-mman-consts.py edc06fdd62 Update syscall lists for Linux 5.17 dde291ab53 posix/glob.c: update from gnulib 7d96aa2d7d linux: Fix fchmodat with AT_SYMLINK_NOFOLLOW for 64 bit time_t (BZ#29097) 14b1e32a4d i386: Regenerate ulps ef87599348 linux: Fix missing internal 64 bit time_t stat usage 10fe3cd309 elf: Fix DFS sorting algorithm for LD_TRACE_LOADED_OBJECTS with missing libraries (BZ #28868) cb4d670d8f scripts/glibcelf.py: Mark as UNSUPPORTED on Python 3.5 and earlier 106b7e0e45 dlfcn: Do not use rtld_active () to determine ld.so state (bug 29078) e5cf8ccca6 INSTALL: Rephrase -with-default-link documentation c8ee1c85c0 misc: Fix rare fortify crash on wchar funcs. [BZ 29030] Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-07-04glibc-tests: Avoid reproducibility issuesRichard Purdie
Currently, there are hardcoded paths in the binaries installed by this recipe, at least one some architectures. Change the compile definitions to point to more appropriate paths. Ideally we'd rework this patch into a form acceptable to upstream but I'm not entirely sure what that would look like right now. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-07-01glibc-tests: not clear BBCLASSEXTENDKai Kang
It clears BBCLASSEXTEND in glibc-tests recipe to remove 'nativesdk' which is set in glibc recipe. The side effect is that it removes "${MULTILIBS}" at same time if multilib enabled. Then there will no multilib version glibc-tests. So only remove 'nativesdk' from BBCLASSEXTEND rather than clear it. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-28bitbake.conf/recipes: Introduce add DEV_PKG_DEPENDENCY to change ↵Richard Purdie
RDEPENDS:${PN}-dev There is a pattern that several recipes need to break the dependency of ${PN}-dev on ${PN}, most often as ${PN} may be be empty. Add a new variable to parameterise this and allow it to be changed more easily. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-06glibc: Drop make-native dependencyRichard Purdie
Now that our make version is a minmum of 4.0 we can drop this dependency. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-04-26glibc: Update to latest 2.35 tipKhem Raj
Brings in below changes * 499a601796 Default to --with-default-link=no (bug 25812) * 70f1eecdc1 scripts: Add glibcelf.py module * d3feff2232 m68k: Handle fewer relocations for RTLD_BOOTSTRAP (#BZ29071) * 68d3a9a696 nptl: Fix pthread_cancel cancelhandling atomic operations * 8e8d46d598 mips: Fix mips64n32 64 bit time_t stat support (BZ#29069) * bd415684df hurd: Fix arbitrary error code * ba9c42ac0e nptl: Handle spurious EINTR when thread cancellation is disabled (BZ#29029) * 6583d53445 S390: Add new s390 platform z16. * cc9a4a664f elf: Fix memory leak in _dl_find_object_update (bug 29062) * db03235895 NEWS: Move PLT tracking slowdown to glibc 2.35. * 9be62976af hppa: Use END instead of PSEUDO_END in swapcontext.S * 01d5214bb4 hppa: Implement swapcontext in assembler (bug 28960) * 123bd1ec66 nss: Protect against errno changes in function lookup (bug 28953) * c54c5cd8e3 nss: Do not mention NSS test modules in <gnu/lib-names.h> * 3149f47b80 io: Add fsync call in tst-stat * e30c1c73da nptl: Fix cleanups for stack grows up [BZ# 28899] * ca0570fee3 hppa: Fix warnings from _dl_lookup_address * d82d9cdff4 hppa: Revise gettext trampoline design * 2631d3b3a6 hppa: Fix swapcontext * 1f77081178 Fix elf/tst-audit2 on hppa * c60e6a458b hppa: Fix bind-now audit (BZ #28857) * 90797f4972 localedef: Handle symbolic links when generating locale-archive * 732dd3a63d localedata: Do not generate output if warnings were present. * 3feecd8001 localedef: Update LC_MONETARY handling (Bug 28845) * a787325e83 NEWS: Add a bug fix entry for BZ #28688 * 264ad5d7d6 resolv: Fix tst-resolv tests for 2.35 ABIs and later * e247a3b118 elf: Replace tst-audit24bmod2.so with tst-audit24bmod2 * 1dd783fafd elf: Check invalid hole in PT_LOAD segments [BZ #28838] * 3226ffde07 NEWS: Add a bug fix entry for BZ #28896 * 676f85759c x86: Fix TEST_NAME to make it a string in tst-strncmp-rtm.c * d001088e22 x86: Test wcscmp RTM in the wcsncmp overflow case [BZ #28896] * fd412fff6d x86: Fallback {str|wcs}cmp RTM in the ncmp overflow case [BZ #28896] * a30807b7db string: Add a testcase for wcsncmp with SIZE_MAX [BZ #28755] * f055faf801 linux: Use socket-constants-time64.h on tst-socket-timestamp-compat * 491f2ef1f0 linux: fix accuracy of get_nprocs and get_nprocs_conf [BZ #28865] Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-04-20glibc: ptest: Fix glibc-tests package issuePgowda
Run glibc-tests only when its enabled in the DISTRO_FEATURES. Signed-off-by: pgowda <pgowda.cve@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25glibc: fix multilib headers conflict for armYi Zhao
Fixes: Error: Transaction test error: file /usr/include/bits/dl_find_object.h conflicts between attempted installs of lib32-libc6-dev-2.35-r0.armv7vet2hf_vfp and libc6-dev-2.35-r0.cortexa57 file /usr/include/bits/rseq.h conflicts between attempted installs of lib32-libc6-dev-2.35-r0.armv7vet2hf_vfp and libc6-dev-2.35-r0.cortexa57 file /usr/include/bits/timesize.h conflicts between attempted installs of lib32-libc6-dev-2.35-r0.armv7vet2hf_vfp and libc6-dev-2.35-r0.cortexa57 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-25glibc: unify wordsize.h between arm and aarch64Yi Zhao
Make sure this header file is same in arm and aarch64. Fix the conflict error when enable multilib: Error: Transaction test error: file /usr/include/bits/wordsize.h conflicts between attempted installs of lib32-libc6-dev-2.35-r0.armv7vet2hf_vfp and libc6-dev-2.35-r0.cortexa57 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-21meta/scripts: Automated conversion of OE renamed variablesRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-20meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX ↵Richard Purdie
license identifiers An automated conversion using scripts/contrib/convert-spdx-licenses.py to convert to use the standard SPDX license identifiers. Two recipes in meta-selftest were not converted as they're that way specifically for testing. A change in linux-firmware was also skipped and may need a more manual tweak. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-18glibc: fix create thread failed in unprivileged processHongxu Jia
Since upstream commit [d8ea0d0168 Add an internal wrapper for clone, clone2 and clone3] applied, start a unprivileged container (docker run without --privileged), it creates a thread failed in container. In commit d8ea0d0168, it calls __clone3 if HAVE_CLONE3_WAPPER is defined. If __clone3 returns -1 with ENOSYS, fall back to clone or clone2. As known from [1], cloneXXX fails with EPERM if CLONE_NEWCGROUP, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, or CLONE_NEWUTS was specified by an unprivileged process (process without CAP_SYS_ADMIN) [1] https://man7.org/linux/man-pages/man2/clone3.2.html So if __clone3 returns -1 with EPERM, fall back to clone or clone2 could fix the issue. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10meta: Remove libsegfault and catchsegvKhem Raj
Glibc has dropped them starting with 2.35 see [1] [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=65ccd641bacea33be23d51da737c2de7543d0f5e Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-10glibc: Upgrade to 2.35Richard Purdie
Package /usr/bin/ld.so in a separate package ld.so is a new tool which is added as a symlink to original dynamic linker so make it available with same name across architectures which is useful to leveral features like --preload, --audit, and --list-diagnostics more accessible to end users Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-02-05glibc: Drop prelink patchRichard Purdie
With the removal of prelink, we no longer need the glibc patch for it either. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-03glibc-tests: Correct PACKAGE_DEBUG_SPLIT_STYLEPeter Kjellerstedt
It was set to "debug", but the officially supported value is ".debug". Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-01-26glibc : Fix CVE-2021-3999Pgowda
Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=8c8a71c85f2ed5cc90d08d82ce645513fc907cb6] Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=472e799a5f2102bc0c3206dbd5a801765fceb39c] Signed-off-by: pgowda <pgowda.cve@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-01-26glibc : Fix CVE-2021-3998Pgowda
Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=062ff490c1467059f6cd64bb9c3d85f6cc6cf97a] Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=f7a79879c0b2bef0dadd6caaaeeb0d26423e04e5] Signed-off-by: pgowda <pgowda.cve@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-01-20glibc : Fix CVE-2022-23219Sundeep KOKKONDA
Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=226b46770c82899b555986583294b049c6ec9b40] Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=ef972a4c50014a16132b5c75571cfb6b30bef136] Signed-off-by: pgowda <pgowda.cve@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-01-20glibc : Fix CVE-2022-23218Sundeep KOKKONDA
Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=e368b12f6c16b6888dda99ba641e999b9c9643c8] Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=f545ad4928fa1f27a3075265182b38a4f939a5f7] Signed-off-by: pgowda <pgowda.cve@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-12-12glibc: Redo tzselect bash dependency problemKhem Raj
New patch adds a knob to select needed shell interpreter for tzselect script, which then we excercise via EXTRA_OEMAKE Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-12-08glibc: Drop patch for obsolete conflict issueRichard Purdie
We're no longer patching files called "libm-test-ulps" so this patch isn't really needed. Regardless, if we were, we should fix the real issue in the upstream code which may have already happened. Drop this patch. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-12-08glibc: Drop ppc sqrt optimisationsKhem Raj
OpenEmbedded isn't an upstream or a patch repository. These are optimisations which for reasons unknown were never merged into upstream glibc. We have no active ppc maintainers and these patches are at an evolutionary dead end. Since they are optimisations, there may be small performance regressions by removing them but OE can't carry patches like this indefinitely and these appear to have no future. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-12-03glibc: Drop patch to support/workaround prelinked apps on armv5Khem Raj
The usecase explained in bug #1443 works fine now a days on qemuarmv5, tested by using lltng-ust and explicitly linking in liburcu-bp.so as well, since its no more a direct dependency of liblttng-ust.so.1 Given that usecase works, unbolt this fix now. Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Mark Hatle <mark.hatle@kernel.crashing.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-24glibc: Fix i586/c3 supportRichard Purdie
CET can't be enabled on i586 or c3 for x86, adjust the configuration accordingly to fix those builds. [YOCTO #14632] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-23glibc-tests: Do not set SYSTEMD_SERVICEKhem Raj
These are glibc specific which comes from glibc packaging class Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-23glibc: ptest: Add running glibc time related test suite (Y2038) with ptestLukasz Majewski
This patch introduces new recipe - namely 'glibc-tests', which builds and installs time related (to check if Y2038 support works) glibc test suite to OE/Yocto built image. It reuses code from already available 'glibc-testsuite' recipe, which is run with 'bitbake glibc-testsuite -c check' and uses qemu to execute remotely (via SSH) tests on some emulated machine. This recipe installs time related glibc tests on some rootfs image. Afterwards, those tests can be executed on the real hardware, to facilitate validation of it with Y2038 problem compliance. To test time related subset - one needs to call: ptest-runner glibc-tests then change the date after Y2038 threshold for 32 bit systems: date -s "20 JAN 2038 18:00:00" and then run ptest-runner again. To facilitate debugging, source files are provided by default with the unstripped debugging symbols. Such approach would reduce the already complex recipe (as it inherits base glibc one), so there is no need to also install *-dbg and *-src packages. Signed-off-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-21patches: correct whitespace/spelling for Upstream-Status tagsAlexander Kanavin
Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-16glibc: Backport fix for CVE-2021-43396Richard Purdie
Backport the fix for CVE-2021-43396. It is disputed that this is a security issue however the fix applies easily so we may as well. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-11glibc-version.inc: remove branch= from GLIBC_GIT_URIAnuj Mittal
GLIBC_GIT_URI is used along with branch=${SRCBRANCH} so no need to add it here. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-10meta: use ln -rs instead of lnrRoss Burton
lnr is a script in oe-core that creates relative symlinks, with the same behaviour as `ln --relative --symlink`. It was added back in 2014[1] as not all of the supported host distributions at the time shipped coreutils 8.16, the first release with --relative. However the oldest coreutils release in the supported distributions is now 8.22 in CentOS 7, so lnr can be deprecated and users switched to ln. [1] 6ae3b85eaffd1b0b6914422e8de7c1230723157d Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-11-03recipes: Update github.com urls to use httpsRichard Purdie
Github has announced there will be no more git:// fetching from their servers: https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git and they're about to start having brownout periods to encourage people to update. This runs the conversion script over OE-Core to update our urls to use https instead of git. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-10-30meta: Add explict branch to git SRC_URIsRichard Purdie
There is uncertainty about the default branch name in git going forward. To try and cover the different possible outcomes, add branch names to all git:// and gitsm:// SRC_URI entries. This update was made with the script added to contrib in this patch which aims to help others convert other layers. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-10-18glibc: Extract common code to build tests to glibc-tests.incLukasz Majewski
The common code to build tests has been extracted from glibc-testsuite recipe to glibc-tests.inc This code will be reused in the recipe necessary for providing glibc tests executed with ptest framework. Signed-off-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-10-09glibc: Drop libcidn packageFred Liu
libcidn has been dropped since glibc 2.28 Signed-off-by: Fred Liu <yclw3d2y@live.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-17Update mailing list addressJon Mason
Signed-off-by: Jon Mason <jdmason@kudzu.us> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-09-07systemd: '${systemd_unitdir}/system' => '${systemd_system_unitdir}'Robert P. J. Day
Repo-wide replacement to use newer variable to represent systemd system unitdir directory. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-31glibc: fix create thread failed in unprivileged processHongxu Jia
Since upstream commit [d8ea0d0168 Add an internal wrapper for clone, clone2 and clone3] applied, start a unprivileged container (docker run without --privileged), it creates a thread failed in container. In commit d8ea0d0168, it calls __clone3 if HAVE_CLONE3_WAPPER is defined. If __clone3 returns -1 with ENOSYS, fall back to clone or clone2. As known from [1], cloneXXX fails with EPERM if CLONE_NEWCGROUP, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, or CLONE_NEWUTS was specified by an unprivileged process (process without CAP_SYS_ADMIN) [1] https://man7.org/linux/man-pages/man2/clone3.2.html So if __clone3 returns -1 with EPERM, fall back to clone or clone2 could fix the issue. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-22wordsize.h: Fix a miss, this file in arm and aarch64 should be the same.leimaohui
Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-22Fix conflict error when enable multilib.leimaohui
file /usr/include/bits/pthread_stack_min.h conflicts between attempted installs of libc6-dev-2.34-r0.aarch64 and lib32-libc6-dev-2.34-r0.armv7ahf_neon Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-20glibc: Fix CVE-2021-38604Vinay Kumar
Source: https://sourceware.org/git/glibc.git Tracking -- https://sourceware.org/bugzilla/show_bug.cgi?id=28213 Backported upstream commits b805aebd42364fe696e417808a700fdb9800c9e8 and 4cc79c217744743077bf7a0ec5e0a4318f1e6641 to glibc-2.34 source. Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=b805aebd42364fe696e417808a700fdb9800c9e8] Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=4cc79c217744743077bf7a0ec5e0a4318f1e6641] Signed-off-by: Vinay Kumar <vinay.m.engg@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-18glibc: package the stub .a libaries into glibc-devRoss Burton
In glibc 2.34, the libraries libpthread, libdl, libutil, libanl have been integrated into libc. To retain compatibility with old binaries the shared libaries are still shipped but are empty, and to keep software building there are empty static libraries. However, these static libraries get packaged into glibc-staticdev (as they should be), but by this design they should be in glibc-dev. https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-06glibc: Add missing symlinks for libpthread and librt dev filesKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-06glibc: Drop DUMMY_LOCALE_T define patchKhem Raj
It was needed for very old centos distros which are no longer supported Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-06glibc: Remove obsolete --enable-stackguard-randomizationKhem Raj
this has been removed in 2.34 onwards Signed-off-by: Khem Raj <raj.khem@gmail.com>