summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/musl
Commit message (Collapse)AuthorAgeFilesLines
* musl-locales: Add patch to support builds with CMake 4+Moritz Haase2025-07-072-1/+49
| | | | | | | | | | | PR [0] has been filed upstream, but isn't merged yet. [0]: https://git.adelielinux.org/adelie/musl-locales/-/merge_requests/10 (From OE-Core rev: ab7c39ac6d3145b8f711282ebd2c6da5ebfb3de1) Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libucontext: use hard/soft floatJon Mason2025-07-031-0/+6
| | | | | | | | | | | | | | | | | | | | | When building for qemuarm-secureboot in meta-arn with musl and clang, the following compile error is seen: - | ../sources/libucontext-1.3.2/arch/arm/swapcontext.S:23:11: error: unknown token in expression - | ldr r4, =#0x56465001 - | ^ This is happening because 1.3 added ifdefs for assembly code for both hard and soft float, and bcause neither is being defined, it is taking this path with the issue. Since we can tell if soft or hard float is being used via the TARGET_FPU variable, use that and set the relevant makefile flag. (From OE-Core rev: 61c54f169db74b818f587b3147c9abb611f64e0d) Signed-off-by: Jon Mason <jon.mason@arm.com> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: remove consecutive blank linesAlexander Kanavin2025-06-207-7/+0
| | | | | | | | | | | | | | | | | Some of them were introduced by mass-removal of S = WORKDIR/git assignments; rather than try to fix up (or redo) just these, I've run this sed command over the whole tree: sed -i -z -E 's/([ \t\f\v\r]*\n){3,}/\n\n/g' `find . -name *.bb -o -name *.inc` The rationale is that more than one empty line is wasting vertical screen space, and does nothing for readability. (From OE-Core rev: cedc4ff7c9bcfb22a20e43e47f9759f4007a4f1a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: set S from UNPACKDIR in recipes that use only local filesAlexander Kanavin2025-06-203-6/+3
| | | | | | | | | | | | | | | There is no need to have two assignments; also setting S from UNPACKDIR (and not vice versa) is more logical as unpack task comes first, and tasks that come after unpack use S to access unpack results. Also adjust reference test data in selftest/recipeutils to reflect changes in test recipes. (From OE-Core rev: f64b7e5fb3181734c8dde87b27e872a026261a74) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: remove S in recipes that fetch from git via setting ↵Alexander Kanavin2025-06-207-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BB_GIT_DEFAULT_DESTSUFFIX Removing all the S = ${WORKDIR}/git assignments works because BB_GIT_DEFAULT_DESTSUFFIX is set to match S from bitbake.conf (which itself is set to match typical tarball releases). A few recipes are setting S to a sub-directory of the git tree and need to be adjusted accordingly. bzip2 recipe is fetching a tarball and separately cloning tests; adjust the recipe to put the latter into 'bzip2-tests', instead of 'git'. devupstream.bbclass no longer needs to rewrite S, and is adjusted accordingly. Adjust scripts/lib/recipetool/append.py to not hardcode 'git' as unpack destination. Adjust kernel-yocto.bbclass to use the git unpack variable instead of hardcoding 'git' (there's also removal of repetition of string constants and a correction of workdir/unpackdir mismatch in one of the if-else branches). Ensure build-appliance-image recipe does not use 'git' as checkout directory for poky repo, but rather explicitly name it 'poky'. Ensure reproducible.py code that looks for git repositories does not hardcode 'git' but uses the destination set by BB_GIT_DEFAULT_DESTSUFFIX. Ensure recipetool does not write out unneeded S settings into newly created recipes that fetch from git. Adjust selftest to not hardcode 'git' as unpack directory. (From OE-Core rev: f80c07019ddadaf9c5fb890faabfda7920ecd15e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl-locale: Recommend musl-locale in every locale-base packageKhem Raj2025-06-051-0/+17
| | | | | | | | | | | | | | | | | | | musl-locale installs a profile fragment in /etc/profile.d/ which sets MUSL_LOCPATH in environment. This is required for locale to work correctly. e.g. root@qemux86-64:~# date Wed Jun 4 03:06:25 UTC 2025 root@qemux86-64:~# LC_ALL=fr_FR.UTF-8 date Mer Jun 4 03:06:29 UTC 2025 Works out of box now. (From OE-Core rev: e11cbc89d56da76585de97d62ef48ca860a05caf) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libucontext: upgrade 1.2 -> 1.3.2Wang Mingyu2025-06-051-1/+1
| | | | | | | | (From OE-Core rev: a2d010290c800901f644a6eb8edbc231054ef6a6) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to tip of trunkKhem Raj2025-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Brings following changes * ae3a8c93 fix strcasestr failing to find zero-length needle * 23febbd3 align mbsnrtowcs behavior on partial character with new requirements * 6915b348 dns resolver: reorder sockaddr union to make initialization safe * a34ca6ea termios: fix input speed handling * b6b81f69 clone: clear the frame pointer in the child process on relevant ports * 5e03c03f clone: align the given stack pointer on or1k and riscv * 06c5e4e8 signal: check sigpause() input parameter * b0dc340b loongarch64: add bits/hwcap.h for cpu feature bits in AT_HWCAP auxv entry * cabbd869 bind_textdomain_codeset: fix return value * 00fb7107 shadow.h: remove declaration of function not implemented * 362fc545 riscv: mark __restore and __restore_rt hidden * f1cda422 i386, x86_64, x32: set the symbol type for the crt1 START function (From OE-Core rev: f73f00e01d7a2713605cd9e828b4a0cb29de4448) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Enable riscv32Khem Raj2025-05-081-3/+0
| | | | | | | | | | | | | Musl recipe points to recent tip of trunk (1.2.5+) where we now have riscv32 port merged [1], Enable riscv32 as supported arch for musl systems. [1] https://git.musl-libc.org/cgit/musl/commit/?id=377c363fb5519a224682692004ecd3703c19df93 (From OE-Core rev: 25e65df559de06bb056d19f8acfcd1b8b63b81ca) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to latest tip of trunkKhem Raj2025-02-181-1/+1
| | | | | | | | | | | | | | | | | | | * c47ad25e iconv: harden UTF-8 output code path against input decoder bugs * 4c4f15da hasmntopt: match only whole options not arbitrary substrings * e5adcd97 iconv: fix erroneous input validation in EUC-KR decoder * 5e594aea iconv: fix erroneous decoding of some invalid ShiftJIS sequences * 6af4f25b s390x: manually inline __tls_get_addr in __tls_get_offset * 5ccf05d8 ldso: don't reclaim zero-memory-sized segments * 1a985764 sched.h: reduce namespace conflicts in _GNU_SOURCE profile * d36e5bf8 mq: add x32-specific implementations to work around mismatched kernel ABI * 561cd07d SIGEV_THREAD timers: re-block signals when reusing kernel thread * 47fa6e4f SIGEV_THREAD timers: fix fatal signal if internal SIGTIMER becomes unblocked (From OE-Core rev: bfcc61f7b0ec42fafdcc7441bd50c8a75f456693) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta/meta-selftest: Fix variable assignment whitespaceRichard Purdie2025-02-011-1/+1
| | | | | | | | | | Recipes are much more readable with whitespace around the assignment operators. Fix various assignments in OE-Core to show this is definitely the preferred formatting. (From OE-Core rev: 30ea609d3357fb3de911f2f6a5e6856c151b976a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/recipes: Switch virtual/XXX-gcc to virtual/cross-cc (and c++/binutils)Richard Purdie2025-01-212-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea of the base class dependency is to say "yes, I need a C cross compiler" and this was never meant to be gcc specific. Looking at the codebase, whilst we code triplets into this, it does overcomplicate things as there are only ever limited, "target", "sdk" and the class extended versions like mutlilib. After much thought, we can simplify this to virtual/cross-cc and virtual/nativesdk-cross-cc. This lets us remove the "gcc" specific element as well as removing the over complicated triplet usage. At the same time, change the much less widely used "g++" variant to "c++" for similar reasons and remove the triplet from virtual/XXX-binutils too. Backwards compatibility mappings could be left but are just going to confuse things in future so we'll just require users to update. This simplification, whilst disruptive for any toolchain focused layers, will make improved toolchain selection in the future much easier. Since we no longer have overlapping variables, some code for that can just be removed. The class extension code does need to start remapping some variables but not the crosssdk target recipe names. This patch is in two pieces, this one handles the renaming with the functional changes separate in a second for easier review even if this breaks bisection. (From OE-Core rev: 4ccc3bc8266c327bcc18c9a3faf7536210dfb9f0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to latestKhem Raj2024-12-201-1/+1
| | | | | | | | | | | | | | | | | Brings following changes * 61399d4b loongarch64: add TLSDESC support * 9b6a24f9 wire up vdso clock_gettime for riscv32 and riscv64 * f2375aac wire up vdso clock_gettime for powerpc, powerpc64, and s390x * bc5f816a mips: use preferred asm mnemomic jr for better assembler compatibility * 4e6c827c mntent: exclude trailing newline from parsed field * 9929a571 arm: fix _init/_fini alignment in crti.o (From OE-Core rev: 77a1992eeda6cc6d6f52b50311fb4d98f6e58fc3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update riscv syscalls till 6.10 kernelKhem Raj2024-12-092-0/+71
| | | | | | | | | | Some packages e.g. ffmpeg have started using __NR_riscv_hwprobe to detect Zba and Zbb at run-time. (From OE-Core rev: c564b3bc3277e3b5eed2eb3de1bfa391d9eb4ca8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to tip of trunkKhem Raj2024-10-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - License-Update: One of COPYRIGHT holders name changed [1] - Brings these changes * 047a1639 sys/stat.h: fix typo in statx member name stx_dio_offset_align * 5be920e9 s390x: don't allow br r0 in CRTJMP asm * 2fc56aaa update contributor name in authorship notices * 43664364 fix compile regression in exit on archs without SYS_pause * 6d8000d3 abstract missing SYS_pause syscall with macros * 23ab04a8 statx: add new struct statx fields and corresponding mask macros * 4ca8c267 statx: fix uninitialized attributes/mask in fallback path * 251cbb63 statx: fix ENOSYS emulation not setting stx_rdev_* * 8c43c562 sysconf: fix _SC_MINSIGSTKSZ computation to match kernel interpretation * 300a1f53 sigaltstack: enforce dynamic MINSIGSTKSZ limit * 572a2e2e printf: drastically reduce stack usage without [long] double args * c94a0c16 isatty: don't collapse all non-EBADF errors to ENOTTY * ee18e584 printf core: replace if(0) blocks around switch cases with explicit gotos * 06a96470 iconv: add cp858 * e1b57ede catan: remove no-op reduction mod pi and unused code * ca4e632d remove incorrect comment regarding powl exceptional cases * c851b268 strerror: add error strings for EUCLEAN and ENAVAIL * 9c78557a use hidden visibility for C entry point function _start_c * 882aedf6 fix lost or delayed wakes in sem_post under certain race conditions * b09e3174 m68k: fix POLLWRNORM and POLLWRBAND * 2de6b426 fix missing make dependency for Scrt1.o due to typo * cde213f9 timer_create: replace pthread barrier with semaphores for thread start * 9ee6f104 atexit: fail rather than deadlocking after last handler is called * 8cca79a7 exit: add back lock to make concurrent calls to exit safe * ef7d0ae2 move __utc string object to its own translation unit [1] https://git.musl-libc.org/cgit/musl/commit/?id=2fc56aaa9f660ebd735d1595c3501b792af42eb8 (From OE-Core rev: 13381184a262f6cc69240a34985646fd0ad44655) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to latest tip of trunkKhem Raj2024-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring following changes on top of 1.2.5 * dd1e63c3 syslog: revert LOG_FAC/LOG_FACMASK changes * 008f737d siglongjmp: document why this function just calls longjmp * 947b4574 inet_ntop: fix the IPv6 leading zero sequence compression * 50ab8306 dynlink: avoid copying to temp buffer in get_lfs64 * 1b97d006 sys/epoll.h: add epoll ioctls * ab31e9d6 getusershell: skip blank lines and comments * 53ac44ff dynlink: fix get_lfs64() with posix_fallocate64 * 895736d4 syslog: fix incorrect LOG_MAKEPRI and LOG_FAC[MASK] macros * 05ce67fe add renameat2 linux syscall wrapper * 00799729 fix mismatched type in posix_getdents definition * cbf59dd6 aarch64 crti.o: fix alignment of _init/_fini * 84015cee fix typo that broke sys/reg.h and sys/user.h * 1b0d4851 implement posix_getdents adopted for next issue of POSIX * 2c124e13 stdint.h: derive limits from __LONG_MAX, use common fast16 types * 7019fbe1 sys/user.h: derive __WORDSIZE from __LONG_MAX * e709a6f0 sys/reg.h: derive __WORDSIZE from __LONG_MAX * 29b216b2 unistd.h: derive ILP32/LP64 macros from __LONG_MAX instead of arch bits * 0dfa1d8c unify bits/stat.h for all archs sharing a common definition * ef600888 align aarch64, riscv64, loongarch64 stat structure padding type * 6f666231 ldso: fix non-functional fix to early dynamic PAGE_SIZE access * fced99e9 strptime: implement conversion specifiers adopted for next POSIX issue * 3f9d4224 printf decimal integer formatting: shave off one division * a23cf8f9 riscv mcontext_t/sigcontext: use __aligned__ instead of aligned * cbf1c7b6 add missing STATX_ATTR_* macros omitted when statx was added * 3f49203c initgroups: do not artificially limit number of supplementary groups * 24ebbbde printf: fix edge case where hex float precision was not honored * e3b0ace5 complex: fix comment in cacosh * 9683bd62 math: fix fma(x,y,0) when x*y rounds to -0 * 5370070f fix pwrite/pwritev handling of O_APPEND files * bdc9a9ff uio.h: add RWF_NOAPPEND flag for pwritev2 * 7ada6dde iconv: fix missing bounds checking for shift_jis decoding * fd7d0185 add missing inline keyword on default a_barrier definition * b5121e2e iconv: add aliases for GBK * ca6f46af iconv: add euro symbol to GBK as single byte 0x80 (From OE-Core rev: 70179bc94c90ba1f33a3fff8f3019cb96fcdbaef) (From OE-Core rev: bcfaa9542fac82e90fbb8bdf67e3ade2697fbca4) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to 1.2.5 releaseKhem Raj2024-08-294-52/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This release adds extension functions statx and preadv2/pwritev2, with fallback implementations for older kernels, and adds two new ports: loongarch64 and riscv32. Minor changes to the printf family of functions have been made for conformance to new standards interpretations/requirements. TLSDESC support for riscv64 has also been added. Bugs fixed include some DNS issues related to new TCP fallback functionality, several rare race conditions, potentially incorrect return value when glob aborts, and several signifiant arch-specific bugs affecting TLSDESC on arm, riscv64 icache flushing, and sh sigsetjmp and dlsym RTLD_NEXT. [1] Do not use https protocol for fetching Musl author confirms that https protocol is not well supported yet on musl git host, currently we experience this problem intermittently on some build hosts where the fetching fails. fatal: protocol error: bad line length character: erro WARNING: Failed to fetch URL git://git.etalabs.net/git/musl;branch=master;protocol=https [1] https://www.openwall.com/lists/musl/2024/03/01/2 (From OE-Core rev: c6c79477209f5e7e1a0206942de9603a7accec67) (From OE-Core rev: 0d0a2d62810bfa7ea51d536c4e43c2edae823a6b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Show error when used with multilibsRichard Purdie2024-08-071-0/+6
| | | | | | | | | | | | | | | | As discussed in the bugzilla entry, musl doesn't work with multilibs. I originally sent this patch in 2020 but was told that support was being added. I recently revisited the bug and retested a basic config which still fails the way it did in 2019. Since clearly nobody is using this, make it clear we don't support it. If anyone does add support, we can remove this error very easily. [YOCTO #13122] (From OE-Core rev: 4da308d37aa51231b617fedb401076c13cafd89a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Switch away from S = WORKDIRRichard Purdie2024-05-213-3/+6
| | | | | | | | | | | | | Where recipes use S = ${WORKDIR}, change them to set UNPACKDIR to a subdir of WORKDIR and make S point at this instead. I've chosen not to force S into any standard UNPACKDIR we may pick in future just so the S = UNPACKDIR case is clearly visible by the directory naming under WORKDIR as that should aid usability. (From OE-Core rev: d9328e3b0b062f0621de3d114584b44f384a1c02) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Start WORKDIR -> UNPACKDIR transitionRichard Purdie2024-05-211-1/+1
| | | | | | | | | Replace references of WORKDIR with UNPACKDIR where it makes sense to do so in preparation for changing the default value of UNPACKDIR. (From OE-Core rev: 1f18b9a512800860d5153d89eb82b56388efad6f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: doesn't support riscv32Ross Burton2024-01-191-0/+3
| | | | | | | | | musl doesn't support riscv32, so set COMPATIBLE_HOST appropriately. (From OE-Core rev: c321d381cfecde6ec502317822eb4058cb3aced7) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: add typedefs for Elf64_Relr and Elf32_RelrZang Ruochen2023-12-132-0/+38
| | | | | | | | | | | | | The absence of this typedef causes elfutils to report the following error: /usr/include/gelf.h:86:9: error: unknown type name 'Elf64_Relr' https://git.musl-libc.org/cgit/musl/commit/?id=6be76895f6863100a311d474a42abdbb6466189d (From OE-Core rev: 161bb7923bed67c91f45e8383b5a487b6107e431) Signed-off-by: Zang Ruochen <zangruochen@loongson.cn> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gcompat: Upgrade to 1.1.0 releaseKhem Raj2023-10-162-63/+3
| | | | | | | | | | | | | | | | | | | | | | | License-Update: Updated copyright years and contibutors [1] Brings following changes * b7bfe0b Update documentation for 1.1 release * f0de9c6 CHANGELOG: Add pthread section * 36f21a6 pthread: add pthread_mutexattr_[get|set]kind_np * f23fb58 stdio: Hook fopen(3) to intercept /proc/self/exe * 158f2b5 Update CHANGELOG for 1.1 * 4a4c840 fix path-searching for execvp * 9dbbddc sysctl: Add __getauxval alias * fbdd06c misc: add __libc_single_threaded * f727ab7 locale: also override __newlocale/__duplocale * 244110e random_r: fix null dereference when passed uninitialized buf [1] https://git.adelielinux.org/adelie/gcompat/-/commit/b7bfe0b08c52fdc72e0c1d9d4dcb2129f1642bd6#0398ccd0f49298b10a3d76a47800d2ebecd49859 (From OE-Core rev: 6f123655c71992d75746e662a6b757de4a57cce7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* gcompat: Add fcntl64 wrapperKhem Raj2023-10-162-0/+45
| | | | | | | | | Needed by pvr mesa drivers (From OE-Core rev: e6efe08c5aa419db5c865a14116d137ff37db221) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl-legacy-error: Add recipeKhem Raj2023-09-262-0/+86
| | | | | | | | | | | This adds glibc error() API implementation which is needed by few packages still. (From OE-Core rev: c3f0f00a8dcc76ece298cf4debf1ca71f930ec57) 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>
* bsd-headers: Define __CONCAT and __STRINGKhem Raj2023-09-261-0/+8
| | | | | | | | | Sync with other musl distros (From OE-Core rev: 0796d65369737ddf530a04ae534e81022c1ba005) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to latestKhem Raj2023-09-261-6/+2
| | | | | | | | | | | | | | | | | Brings following bug fixes * 79bdacff glob: fix wrong return code when aborting before any matches * 7291c6c6 statvfs: allocate spare for f_type * 39e43f08 math: fix ld80 powl(x,huge) and powl(LDBL_MAX,small) * 6d101027 math: fix ld80 acoshl(x) for x < 0 Drop MIRRORS and switch to etalabs.net for git fetch URI original repo is not working correcting with git Fetcher (From OE-Core rev: bb14f1dee4547726ab66e20d535d58563029d67f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libc-test: Run as non-root userKhem Raj2023-09-113-27/+35
| | | | | | | | | | | | | | | | Some of tests impose rlimit on it before running which wont be imposed when running as root user. Fixes src/regression/pthread_atfork-errno-clobber.c:23: (pid = fork()) == -1 failed: fork succeeded despite rlimit src/regression/pthread_atfork-errno-clobber.c:23: (pid = fork()) == -1 failed: fork succeeded despite rlimit FAIL src/regression/pthread_atfork-errno-clobber-static.exe [status 1] (From OE-Core rev: 585bf4b780a8ad60ba2b33cede4f0092ff61ddfc) 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>
* libc-test: Depend on musl-staticdevKhem Raj2023-09-091-0/+1
| | | | | | | | | | It builds statically linked tests during ptest run and therefore needs libc.a (From OE-Core rev: 88904b5186f4904b5c11870fc6fdf392c5b5fcee) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes/classes/scripts: Drop SRCPV usage in OE-CoreRichard Purdie2023-08-244-4/+4
| | | | | | | | Now that SRCPV isn't needed we can simplify things in a few places... (From OE-Core rev: 843f82a246a535c353e08072f252d1dc78217872) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to tip of trunkKhem Raj2023-08-041-2/+4
| | | | | | | | | | | | | | | | | | | Brings following changes * 83b858f8 fix rejection of dns responses with pointers past 512 byte offset * a4ecaf89 dns stub resolver: increase buffer size to handle chained CNAMEs * 40834f6c printf core: fix gratuitous integer formatting buffer size * 3a23cd06 all printf variants: fix argument type handling for %c and %lc * fa4a8abd fix public clone function to be safe and usable by applications * 0c277ff1 fix broken thread list unlocking after fork * 4653b987 mbrtowc: Fix wrong return value when n > UINT_MAX * b90841e2 configure: replace -Os with equivalent based on -O2 (From OE-Core rev: b6abcd4f01aec24393bce68a9806d94702c0d387) 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>
* musl: Guard fallocate64 with _LARGEFILE64_SOURCEKhem Raj2023-07-101-1/+1
| | | | | | | | | | | Gets this fix * 718f363b move fallocate64 declaration under _LARGEFILE64_SOURCE feature test (From OE-Core rev: 5ebc2f8e4f21f5af67fb1d2d61f6c5d75f2c44e2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Correct SRC_URIPeter Kjellerstedt2023-05-251-1/+1
| | | | | | | | | | | | When the protocol used to fetch the Git repository was changed from "git" to "https" in commit 139102a73d (recipes: Default to https git protocol where possible), the URI was not updated to match. (From OE-Core rev: 0434a5ae168f737741e66a7fe1e30a8703b8ce16) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to 1.2.4 releaseKhem Raj2023-05-091-2/+2
| | | | | | | | | | | | | | Brings the following changes * f5f55d65 release 1.2.4 (From OE-Core rev: 9f2fe39d92816343347bd08f55cd4aca98e8a209) (From OE-Core rev: a3de74f00812fa342d4dc69a857994fa10728635) 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-052-2/+2
| | | | | | | | | | 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>
* musl: Update to latest masterKhem Raj2023-05-031-1/+1
| | | | | | | | | | | | | | | | | | Brings the following changes * b928c723 fix return value of wmemcmp for extreme wchar_t values * 4724793f fix wide printf numbered argument buffer overflow * c1b42c4a wait4: fix missing rusage on x32 due to wrong success condition * 9b12982d semtimedop: fix timespec kernel ABI mismatch for 32-bit timeouts on x32 * 6d322159 getopt: fix null pointer arithmetic ub * 35e98311 nftw: fix use of uninitialized struct stat * 7c410472 fix inadvertently static local var in dynlink get_lfs64 * 77327ed0 dns: check length field in tcp response message (From OE-Core rev: 07ed616f776dd09cdadd323dfc8572491bab5aa3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl-locales: Add Canadian French (fr_CA) locale supportKhem Raj2023-04-141-1/+4
| | | | | | | | (From OE-Core rev: 5531b272527323488aa0c9f7b17eff085e800e78) 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>
* meta/recipes: ensure all recipes have a SUMMARYAlexander Kanavin2023-04-131-1/+1
| | | | | | | | | | | DESCRIPTION is optional for now; writing good component descriptions is not easy (but appreciated). (From OE-Core rev: 9ce4f9248db3db70732d886a18ea355f321bd49d) 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>
* musl: Update to latest trunkKhem Raj2023-04-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings these changes * 1d5750b9 fix swprintf handling of nul character in output * 0e523480 in printf, use ferror macro rather than directly inspecting flags bit * 868c9643 remove wide printf dependency on ugly hack in vfprintf * 3a051769 fix (normal, narrow) printf erroneously processing %n after output errors * 0440ed69 fix wide printf continuation after output or encoding errors * d055e6a4 fix wide printf forms ignoring width for %lc format specifier * b6811019 poll: fix misuse of timespec type on 32-bit archs without poll syscall * 8949da7a select: fix 64-bit timeout truncation on pre-time64 kernels * 3281047c dup3: don't set FD_CLOEXEC on failure on kernels without dup3 syscall * c99b7daa fix dup3 ignoring all flags but O_CLOEXEC on archs with SYS_dup2 syscall * fb7fb5e4 fix pipe2 silently ignoring unknown flags on old kernels * b1dfb734 getservbyport_r: fix wrong result if getnameinfo fails with EAI_OVERFLOW * 595416b1 getservbyport_r: fix out-of-bounds buffer read * 1a708ece getifaddrs: fix UB via taking address of null pointer union dereference * c499c108 accept4: don't fall back to accept if we got unknown flags * 523d9b96 fix potential read past end of buffer in getnameinfo host name lookup * d0b7f976 dns: fix workaround for systems defaulting to ipv6-only sockets * bec42ef3 dns: handle early eof in tcp fallback * 9b132e55 prevent CNAME/PTR parsing from reading data past the response end * 12590c8b fix out-of-bounds reads in __dns_parse * bc695a5a fix incorrect unit for CPU_SETSIZE macro (From OE-Core rev: bb591e83e3d203d60d59a36f1ff0b2ce437dc7a2) 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>
* musl: Update to tip of trunkKhem Raj2023-02-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This brings in following changes * 7d756e1c (upstream/master, origin/master) dns: prefer monotonic clock for timeouts * 07616721 fix return value of wcs{,n}cmp for extreme wchar_t values * 35fdfe62 math: fix undefined shift in logf * 7e13e5ae inet_pton: fix uninitialized memory use for IPv4-mapped IPv6 addresses * 7e6da7ac hsearch: fix null pointer arithmetic UB * f79b973d increase sendmsg internal buffer to support SCM_MAX_FD * 0ab97350 mq_notify: block all (application) signals in the worker thread * 711673ee mq_notify: join worker thread before returning in error path * 8c0c9c69 mq_notify: rework to fix use-after-close/double-close bugs * fde6891e mq_notify: use semaphore instead of barrier to sync args consumption * c3cd04fa fix pthread_detach inadvertently acting as cancellation point in race case * 115149c0 powerpc-sf longjmp clobbering of val argument * 5763f003 riscv64: add vfork * 269d1938 fix wrong sigaction syscall ABI on mips*, or1k, microblaze, riscv64 * ea3b40a3 fix integer overflow in WIFSTOPPED macro * f897461d fix debugger tracking of shared libraries on mips with PIE main program * a4b0a665 expose memmem under baseline POSIX feature profile * 9532ae13 use libc-internal malloc for pthread_atfork * 7d358599 prevent invalid reads of nl_arg in printf_core * c5f4b2df elf.h: add ELFCOMPRESS_ZSTD * 159d1f6c semaphores: fix missed wakes from ABA bug in waiter count logic (From OE-Core rev: 7379412a2ce7fe24943c858755f058dc2a15a081) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl-obstack: Update to 1.2.3Khem Raj2023-01-201-3/+3
| | | | | | | | | | Switch to void-linux github handle, void-linux is the upstream anyway this brings (From OE-Core rev: af810235ffb8e9553cf5e807ed3b88ed6575d211) 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>
* musl: Update to latest on tip of trunkKhem Raj2023-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Brings following changes * f47a8cdd ldso: fix invalid early references to extern-linkage libc.page_size * 377218cb pthread_atfork: fix return value on malloc failure * 29e43191 fix double-processing of DT_RELR relocations in ldso relocating itself * b50eb8c3 fix strverscmp comparison of digit sequence with non-digits * ad5dcd39 fix async thread cancellation stack alignment * 8f925945 fix return value of gethostby{name[2],addr} with no result but no error * 63402be2 clean up dns_parse_callback * 0a7b4323 dns response handling: don't treat too many addresses as an error * 41603c77 dns response handling: ignore presence of wrong-type RRs * cf76df0e fix missing synchronization of pthread TSD keys with MT-fork * 5ff3eea9 fgets: avoid arithmetic overflow when n==INT_MIN is passed * d8f35e29 fix AS-safety of close when aio is in use and fd map is expanded * 26c76a90 fix use of uninitialized dummy_fut in aio_suspend * aebd6a36 fix potential deadlock between multithreaded fork and aio * d64148a8 fix potential unsynchronized access to killlock state at thread exit * 36b72cd6 fix potential deadlock in dlerror buffer handling at thread exit * 833a4691 configure: disable TBAA optimization because most compilers are buggy * e6e82132 disable MADV_FREE usage in mallocng * 25e6fee2 remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE * 246f1c81 remove LFS64 symbol aliases; replace with dynamic linker remapping * dec8f0a4 dns query core: detect udp truncation at recv time * 8c408937 getaddrinfo dns lookup: use larger answer buffer to handle long CNAMEs * 759bf785 arpa/nameser.h: update RR types list * 51d4669f dns: implement tcp fallback in __res_msend query core * e2e95176 res_send: use a temp buffer if caller's buffer is under 512 bytes * c87d75f2 adapt res_msend DNS query core for working with multiple sockets * 85050ac5 getaddrinfo: add EAI_NODATA error code to distinguish NODATA vs NxDomain (From OE-Core rev: 3b27f6356a3bf0138da0c3dcd87aa8e4a93ae56b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* libc-test: add libc testsuite for muslChase Qi2022-11-112-0/+79
| | | | | | | | | | | | libc-test is a collection of unit test to measure the correctness and robustness of a C/POSIX standard library implementation. It is developed as part of the musl project. (From OE-Core rev: 4a94cdc7e841ebe583b0e6935fc50d233c8c310e) Signed-off-by: Chase Qi <chase.qi@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Upgrade to latest masterKhem Raj2022-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Following changes are part of this SRCREV uprev * dc9285ad fix error cases in gethostbyaddr_r * f9827fc7 remove impossible error case from gethostbyname2_r * f081d533 fix return value of gethostnbyname[2]_r on result not found * 1e7fb12f dns: treat names rejected by res_mkquery as nonexistent rather than error * 001c1afb res_mkquery: error out on consecutive final dots in name * 3ad3fa96 fix thread leak on timer_create(SIGEV_THREAD) failure * bf14ef19 re-enable vdso clock_gettime on arm (32-bit) with workaround * 6f3ead0a process DT_RELR relocations in ldso-startup/static-pie * 25085c85 fix fwprintf missing output to open_wmemstream FILEs * a636fd63 dns: fail if ipv6 is disabled and resolv.conf has only v6 nameserves * 996b6154 use kernel-provided AT_MINSIGSTKSZ for sysconf(_SC_[MIN]SIGSTKSZ) * 25340a93 add sysconf keys/values for signal stack size * d8fddb96 fix fallback when ipv6 is disabled but resolv.conf has v6 nameserves * d4f987e4 epoll_create: fail with EINVAL if size is non-positive * 2e5fff43 use alt signal stack when present for implementation-internal signals * 379b1821 ldso: make exit condition clearer in fixup_rpath (From OE-Core rev: 7a62aad4c32e227a8f5a2365dfb6217efb1f5b70) 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>
* gcompat: Add __getauxval wrapper needed on aarch64Khem Raj2022-09-222-2/+64
| | | | | | | | | | | | Update SRCREV to bring in few bug fixes Install a .so symlink which could be used during linking install libdir to create if not existing (From OE-Core rev: bac2c95f6331deafd3e07c927ba00a202db9a12b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl: Update to tipKhem Raj2022-08-211-1/+1
| | | | | | | | | | | | | | | brings in these fixes * 37e18b7b freopen: reset stream orientation (byte/wide) and encoding rule * bf992585 ldso: process RELR only for non-FDPIC archs * d32dadd6 ldso: support DT_RELR relative relocation format * 2404d9d6 use syscall_arg_t and __scc macro for arguments to __alt_socketcall (From OE-Core rev: 68a6ad83cde6024fd5bff5adb55c11f8c771edbf) 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>
* musl: Upgrade to latest tip of trunkKhem Raj2022-08-163-13/+27
| | | | | | | | | | | | | | | | | | | | | | | | Rebase existing patches Brings in following changes * 46d1c780 fix strings.h feature test macro usage due to missing features.h * baaf257f fix ESRCH error handling for clock_getcpuclockid * 4f48da00 aarch64: add vfork * 7d568410 fix mishandling of errno in getaddrinfo AI_ADDRCONFIG logic * d16d7b10 early stage ldso: remove symbolic references via error handling function * 63c67053 in early stage ldso before __dls2b, call mprotect with __syscall * a23a3da2 avoid limited space of random temp file names if clock resolution is low * 41002798 remove random filename obfuscation that leaks ASLR information * 6c858d6f ensure distinct query id for parallel A and AAAA queries in resolver * 8974ef21 mntent: fix potential mishandling of extremely long lines * 751bee0e mntent: fix parsing lines with optional fields * dcb31f6b fix constraint violation in qsort wrapper around qsort_r (From OE-Core rev: e76b76f371d3158b70ae9d3a44b6d2ab6ba8db34) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake.conf/recipes: Introduce add DEV_PKG_DEPENDENCY to change ↵Richard Purdie2022-06-282-2/+2
| | | | | | | | | | | | 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. (From OE-Core rev: a5b381c0f45c590a762647a9956a8f41e2e2315e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl-obstack: upgrade 1.1 -> 1.2wangmy2022-06-171-2/+2
| | | | | | | | | | | | | Changelog: ========= Use obstack.c and obstack.h from gcc-10.2.0 libiberty. Add AC_CONFIG_HEADERS to configure.ac and make ./bootstrap.sh create config.h.in. (From OE-Core rev: a34986755a57b6467e78eb91042bb46f588b6856) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* musl-locales: Switch SRC_URI to new locationKhem Raj2022-05-201-6/+15
| | | | | | | | | | | | | | | Original repository has been less maintained and thusly adelie linux community has picked up the package and started to maintain it also applied long standing bug fixes. Now we use new fork by Adélie Linux, which includes more supported locales. (From OE-Core rev: b6c1e37ed20f636f4f3cdfcef204ea4c072dde58) 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>