summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* sys-libs/musl: sync liveSam James2024-07-081-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: add 1.2.5Sam James2024-03-011-11/+13
| | | | | | | | Unkeyworded for testing. While at it, some minor style tweaks. Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: fix comment typoSam James2024-01-011-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: use https for git cloneMichael Mair-Keimberger2023-12-171-1/+1
| | | | | | | | | | | | | git:// is unencrypted and could be used by an attacker (mitm) to insert malicious code, see also [1]. I think especially for such a critical system package like musl it's better to use the more secure https variant. git:// runs on port 9418 which is also less likely open behind a firewall. [1] git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols [sam: I think musl only recently started to support this when they changed httpds in the last week.] Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/34319 Signed-off-by: Sam James <sam@gentoo.org>
* Remove BROOT from VERIFY_SIG_OPENPGP_KEY_PATHMike Gilbert2023-10-311-1/+1
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* sys-libs/musl: Support LLVM/Clang crossdevAlfred Persson Forsberg2023-08-221-26/+14
| | | | | | | | | | | This replaces inline code with functions from crossdev.eclass. Now also supports LLVM/Clang crossdev because the eclass handles that automatically. Thanks wikky for help! Signed-off-by: Alfred Persson Forsberg <cat@catcream.org> Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: Reapply filter-ltoIan Jordan2023-05-091-1/+1
| | | | | | | | | | As strip-flags no longer removes -flto then a filter-lto is now required to prevent bug 877343 from reopening, like has already been applied to sys-libs/glibc. Closes: https://bugs.gentoo.org/877343 Closes: https://github.com/gentoo/gentoo/pull/30942 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: use dosym8 -r for /usr/bin/ldd symlinkMike Gilbert2023-04-031-4/+4
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* sys-libs/musl: quote EPREFIXMike Gilbert2023-04-031-3/+3
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* sys-libs/musl: fix ld-musl.so symlink with merged-usrMike Gilbert2023-04-031-7/+11
| | | | | | | | | To create a symlink relative to /lib/ld-musl.so, we must know if ${ROOT} will have /lib symlinked to /usr/lib. We rely on the split-usr USE flag to determine this. Closes: https://bugs.gentoo.org/903703 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* sys-libs/musl: Create /etc/ld.so.conf.d directory like glibc doesJames Le Cuirot2023-02-051-0/+8
| | | | | | | | | | | | | | Given that musl has long added an `include` directive for this directory to ld.so.conf, we believe not creating the directory was an accidental omission. gcc-config has special code to handle the case where it doesn't exist, but eselect modules like blas do not, and subsequently break. I have tested this, and both gcc-config and eselect-blas now behave as expected. There is no migration to do. The tools simply start using the directory once it is available. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* sys-libs/musl: always install libssp_nonshared.aSam James2023-01-291-1/+7
| | | | | | | | Needed to avoid SSP hacks for cross (if we don't install it, we have to deal with conditionally patching GCC). Bug: https://bugs.gentoo.org/862831 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: strip-flagsIan Jordan2022-12-291-1/+1
| | | | | | | | | | Found reports of systemwide issues when Musl is compiled with -Ofast so this is intended to at least save some users from one issue using Ofast systemwide. Thanks-to: Krusin Signed-off-by: Ian Jordan <immoloism@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/28884 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: RDEPEND -> PDEPEND for libxcryptSam James2022-11-081-4/+2
| | | | | | | | | | Anything actually linking against libcrypt should depend on the virtual anyway, and this means we can have libxcrypt properly depend on virtual/libc (which is needed to ensure it can be installed first). Bug: https://bugs.gentoo.org/877567 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: Filter LTOIan Jordan2022-10-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | After discussing my bug with dalias on #musl I was informed that LTO has a negative impact on Musl so fixing the issue I highlight rather than filtering wouldn't be the desired outcome for the user. This will also help crossdev users as a bonus as -flto applies to the crosstoolchain and can be hard to spot at first. Chat log to comfirm: immolo: I ran into the -flto issue while testing musl built with lto and the only thing I can find on it was a workaround in 2015. immolo: My question though is it even worth having lto enabled on musl in the first place as every distro just seems to filter it so there must be a reason dalias: not only is it not worth it. it's negative value dalias: makes musl larger and slower dalias: if you wanted libc.a to get LTO'd into static programs, that might have some value dalias: but LTO on libc.so is worse than worthless Closes: https://bugs.gentoo.org/877343 Thanks-to: dalias Signed-off-by: Ian Jordan <immoloism@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/27824 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: drop libcrypt.a too for USE=-cryptSam James2022-09-191-1/+2
| | | | | | | | While musl doesn't split out libcrypt.so, it does apparently for libcrypt.a. Closes: https://bugs.gentoo.org/871726 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: set QA_PRESTRIPPED for crtn.oSam James2022-09-141-3/+9
| | | | | | | | | | | | | | | | vapier's comment is really it: ""' > crt files are often hand written assembly, and for the init/fini ones, > barely any code at all. so they tend not to have anything useful to add > debugging wise, if the tools even support it in the first place. > > not really worth trying to add debugging info to really any of the crt > files. we should figure out how to suppress the warning for them. or > ignore it. """ Closes: https://bugs.gentoo.org/830213 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: tweak libxcrypt logic for crossSam James2022-09-121-4/+8
| | | | | | | | | We want crypt on by default for this as sys-libs/libxcrypt isn't (yet?) built as part as crossdev. Also, elide the blockers when in cross-*, as it doesn't make sense to block the normal CBUILD libxcrypt at all there when we're installing into /usr/${CHOST} anyway. Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: fix libxcrypt depSam James2022-09-111-1/+4
| | | | | | | We only need libxcrypt when we DON'T install crypt.h Bug: https://bugs.gentoo.org/867991 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: add USE=crypt for libxcrypt supportSam James2022-09-101-1/+9
| | | | | | | | | | | | | | | | | | | | | | | Add USE=crypt to allow enabling/disabling crypt.h installation (to allow sys-libs/libxcrypt[system] usage). Many things are starting to want functions from libxcrypt itself (additional functions and algorithms). musl isn't removing crypt.h (and the relevant functions from its libc), unlike glibc, but we need to allow disabling the installation of crypt.h to allow libxcrypt[system] usage (which provides crypt.h & libcrypt.so instead, with more functionality). This brings musl in line with the changes we made for glibc a while ago. The situation with glibc is a bit different because the migration is mandatory there, while we're just strongly recommending it for musl because sys-libs/libxcrypt[-system] causes headaches (see linked PAM bug for an example, but I've also hit a similar issue with Python yesterday). Bug: https://bugs.gentoo.org/867991 Bug: https://bugs.gentoo.org/699422 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: fix ROOT check in pkg_postinstSam James2022-04-231-1/+1
| | | | | | With EAPI 7+, ROOT and others will be blank (not /). Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: disable verify-sig for cross-compile for nowSam James2022-04-071-1/+2
| | | | | | I get an IPC error on verification in cross. Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: add verify-sigSam James2022-04-071-8/+24
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: Keyword ~riscvAndreas K. Hüttel2022-02-261-1/+1
| | | | | | | Tested with crossdev and a qemu-user lp64d chroot Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* sys-libs/musl: Support Gentoo prefixEsteve Varela Colominas2022-02-201-24/+20
| | | | | | | | | Added necessary framework to get this libc to run properly under a prefix. Closes: https://bugs.gentoo.org/833192 Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/24169 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: use ebuild-like Bash style in ldconfigSam James2021-11-191-1/+1
| | | | | | Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/22984 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: additional ROOT fixes for ldconfigSam James2021-11-191-1/+1
| | | | | | | | | | Move around some declarations so we get sensible default values but only perform the sanity checks _after_ we parse command line arguments to take into account e.g. -r (root). Bug: https://bugs.gentoo.org/666246 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: sync live ebuildSam James2021-11-181-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: use ${ED} not ${D} in sysroot hackSam James2021-11-151-2/+2
| | | | | | | | Need to ensure the rest of the ebuild is Prefix ready anyway but there's no reason to make it worse with stuff we recently added, so let's use ${ED} there. Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: create relative symlink to libc.so if existing one failsSam James2021-11-101-2/+18
| | | | | | | | | | | | | | The build system seems to create an absolute symlink to libc.so on the host which may not exist. If it doesn't (to avoid being disruptive, we could do this unconditionally), create a new one relative within ${D} to facilitate SYSROOT installs. I've hit this a few times when using crossdev but finally dug into it a bit more. Bug: https://bugs.gentoo.org/732482 Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: fix HOMEPAGEBertrand Jacquin2021-06-061-1/+1
| | | | | | | | | | | As per http://www.musl-libc.org/, "musl has moved to a new domain: musl.libc.org" Bug: https://bugs.gentoo.org/794484 Signed-off-by: Bertrand Jacquin <bertrand@jacquin.bzh> Package-Manager: Portage-3.0.18, Repoman-3.0.2 Closes: https://github.com/gentoo/gentoo/pull/21138 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/musl: eutils--, multilib--Sam James2021-04-211-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* sys-libs/musl: unbreak cross-compilesJory Pratt2021-02-161-2/+1
| | | | | Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Jory Pratt <anarchy@gentoo.org>
* sys-libs/musl: install libssp_nonshared via dolib.aJory Pratt2021-02-141-0/+2
| | | | | Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Jory Pratt <anarchy@gentoo.org>
* sys-libs/musl: add support for static libssp_nonsharedJory Pratt2021-02-141-0/+3
| | | | | Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Jory Pratt <anarchy@gentoo.org>
* sys-libs/musl: grab getent.c from Alpine LinuxMike Gilbert2021-01-211-2/+2
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* sys-libs/musl: update getent to support 'shadow' databaseMike Gilbert2021-01-201-11/+22
| | | | | Closes: https://bugs.gentoo.org/764755 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* sys-libs/musl: prefix sysroot, bug #755071Fabian Groffen2021-01-031-2/+2
| | | | | | Closes: https://bugs.gentoo.org/755071 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* sys-libs/musl: use CFLAGS,CPPFLAGS,LDFLAGS, bug #595950Sergei Trofimovich2020-05-251-4/+7
| | | | | | | Reported-by: Laine Gholson Closes: https://bugs.gentoo.org/595950 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/musl: extract $(ARCH)$(SUBARCH) from config.makSergei Trofimovich2020-05-201-1/+5
| | | | | | | | | Closes: https://bugs.gentoo.org/642612 Closes: https://bugs.gentoo.org/645626 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Jory Pratt <anarchy@gentoo.org>
* sys-libs/musl: drop 'telinit U' callSergei Trofimovich2020-02-021-3/+1
| | | | | | Bug: https://bugs.gentoo.org/642784 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* */*: [QA] Remove redundant `|| die` guardsDavid Seifert2019-12-111-1/+1
| | | | | | | | | | | | * Since all ebuilds in the tree are EAPI>=4, `|| die` on builtin commands is redundant and dead code. Closes: https://github.com/gentoo/gentoo/pull/13940 Reviewed-by: Ulrich Müller <ulm@gentoo.org> Reviewed-by: Michał Górny <mgorny@gentoo.org> Reviewed-by: Andreas K. Hüttel <dilfridge@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
* Revert "sys-libs/musl: back out of b94c385"Anthony G. Basile2019-09-071-0/+6
| | | | | | This reverts commit d3b662a5b4d652def877bc1ee55086182ee1c7c6. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* sys-libs/musl: back out of b94c385Anthony G. Basile2019-09-031-6/+0
| | | | | Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* sys-libs/musl: fix leaking of host cflags into cross-muslstefson2019-09-031-0/+6
| | | | | | | Closes: https://bugs.gentoo.org/667126 Signed-off-by: Steffen Kuhn <nielson2@yandex.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* sys-libs/musl: drop back to EAPI=6Anthony G. Basile2019-01-271-1/+1
| | | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
* sys-libs/musl: version bump to 1.1.21Anthony G. Basile2019-01-271-2/+2
| | | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
* sys-libs/musl: keyword ~arm64Anthony G. Basile2018-08-021-1/+1
| | | | Package-Manager: Portage-2.3.40, Repoman-2.3.9
* sys-libs/musl: Migrate CROSSCOMPILE_OPTS=headers-only -> USE=headers-onlySergei Trofimovich2018-01-071-3/+3
| | | | | | | | | | | | | | | | | CROSSCOMPILE_OPTS is a USE_EXPAND of a single item: headers-only. Convert it to a global USE flag instead. Mechanical ebuild rename done as: $ sed -e 's@crosscompile_opts_headers-only@headers-only@g' \ -i $(git grep -l headers-only) 'headers-only' flag is used by crossdev to bootstrap stage1 compiler before libc is available. crossdev switched to USE=headers-only in =sys-devel/crossdev-20171230. Bug: https://bugs.gentoo.org/642712 Package-Manager: Portage-2.3.19, Repoman-2.3.6
* Revert "sys-libs/musl: prefixify build"Anthony G. Basile2018-01-011-2/+2
| | | | | | This reverts commit 0fcf2e327095c1329a4044950cadfda036db8245. More testing is required before we commit to this.