The attached patch adds musl support to config.site. I enjoy playing around with porting and running Gentoo on various bits of hardware I have around the house. Some of these machines relics (old Pentium i586), some of them are very powerful (quad-core ARM, dual PPC G4, dual-core MIPS). I have been toying with using the musl libc on the older machines. However, I need a separate config.site for musl as it has some pretty wild differences compared to glibc and putting them in the default 'linux' file doesn't make much sense. As I pin down further what are red herrings and what are actually necessary, I may follow this up with another patch adding my linux-musl and i386-linux-musl files. Reproducible: Always Steps to Reproduce: 1. # crossdev powerpc-apple-linux-gnu 2. # crossdev i586-pc-linux-musl 3. Try to emerge, say, sed on the musl one (or almost half of @system). It needs ac_use_included_regex=yes in the autoconf site include. But glibc does not need it. Actual Results: Packages such as procps, sed, coreutils won't merge on musl due to needing specific definitions in the autoconf site include. Expected Results: The ability to merge @system.
Created attachment 406212 [details, diff] Add musl libc support to config.site.
added here: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=8b1b79e02cc36bc6f2b5583db6aeea333fb8d59b thanks!
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=51dfd93c5122df670d2753070807e5a172727ded commit 51dfd93c5122df670d2753070807e5a172727ded Author: Sam James <sam@gentoo.org> AuthorDate: 2022-06-17 02:39:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-17 02:43:42 +0000 site: add linux-musl Follow-up to 8b1b79e02cc36bc6f2b5583db6aeea333fb8d59b. Sets ``` ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes ``` ... to sort out flex and a bunch of other packages, like procps. I was wondering why this never seemed to come up when doing cross for other "standard" targets which we know work and are used often; the answer is that we never had the -musl suffix CHOSTs covered. (e.g. linux-gnu already has this set.) Bug: https://bugs.gentoo.org/554032 Closes: https://bugs.gentoo.org/675368 Closes: https://bugs.gentoo.org/705800 See: 8b1b79e02cc36bc6f2b5583db6aeea333fb8d59b Signed-off-by: Sam James <sam@gentoo.org> wrappers/site/linux-musl | 4 ++++ 1 file changed, 4 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a1d005f7decdb50955cd653762f1b171a4e878e commit 8a1d005f7decdb50955cd653762f1b171a4e878e Author: Sam James <sam@gentoo.org> AuthorDate: 2022-06-17 18:34:17 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-17 18:44:02 +0000 sys-devel/crossdev: add 20220617 Bug: https://bugs.gentoo.org/675368 Bug: https://bugs.gentoo.org/554032 Bug: https://bugs.gentoo.org/705800 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/crossdev/Manifest | 1 + sys-devel/crossdev/crossdev-20220617.ebuild | 35 +++++++++++++++++++++++++++++ sys-devel/crossdev/crossdev-99999999.ebuild | 2 +- 3 files changed, 37 insertions(+), 1 deletion(-)