summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* sys-libs/glibc: Needs binutils 2.27 to build nowAndreas K. Hüttel2020-09-051-2/+2
| | | | | Package-Manager: Portage-3.0.4, Repoman-2.3.23 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* sys-libs/glibc: Add rv32 linker locationsAndreas K. Hüttel2020-09-021-0/+2
| | | | | Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* sys-libs/glibc: disable submachine detection on ppc32Sergei Trofimovich2020-08-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default glibc does not enable multiarch on powerpc-unknown-linux-gnu targets. Bug triggers only when CFLAGS value enables power4 or above (like, CFLAGS=-mcpu=7450). multiarch does not work on ppc with cache-block not equal to 128 bytes and breaks memset implementations. There 'dcbz' instruction is used for optimization to zero out cache-block with zeros at a time. memset implementation assumes cache-block=128. G4 hardware and qemu-ppc both have cache-block=32. This means memset() zero-initializes only 32 of each 128-byte block including .sbss and .bss sections. This breaks glibc's locks and many other things. The change disables submachine detection for ppc32 in Gentoo until glibc is fixed upstream. Reported-by: Daniel Gurney Bug: https://sourceware.org/PR26522 Closes:https://bugs.gentoo.org/737996 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: revert "disable multiarch on ppc32"Sergei Trofimovich2020-08-231-5/+0
| | | | | | | | | | | | Disabling multiarch is not enough as static -mcpu= selection will still attempt to close best fit implementation (as opposed to refault C-based implementation). And these still don't work. This reverts commit 3e3d3f661fa3df6911db31e7496951aa23497389. Bug: https://bugs.gentoo.org/737996 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: disable multiarch on ppc32Sergei Trofimovich2020-08-231-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default glibc does not enable multiarch on powerpc-unknown-linux-gnu targets. Bug triggers only when CFLAGS= enables power4 or above (like, CFLAGS=-mcpu=7450). multiarch does not work on ppc with cache-block not equal to 128 bytes and breaks memset implementations. There 'dcbz' instruction is used for optimization to zero out cache-block with zeros at a time. memset implementation assumes cache-block=128. G4 hardware and qemu-ppc both have cache-block=32. This means memset() zero-initializes only 32 of each 128-byte block including .sbss and .bss sections. This breaks glibc's locks and many other things. The change disables multiarch for pps32 in Gentoo until glibc is fixed upstream. Reported-by: Daniel Gurney Bug: https://sourceware.org/PR26522 Closes:https://bugs.gentoo.org/737996 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: reenable stack protection on powerpc-*Sergei Trofimovich2020-08-231-8/+0
| | | | | Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: Bump locale-gen versionAndreas K. Hüttel2020-07-271-1/+1
| | | | | Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* sys-libs/glibc: drop -fcommon on ia64 (fixed in code)Sergei Trofimovich2020-07-181-6/+0
| | | | | | | | | Glibc patchset now contains 0100-Fix-miscompilation-on-ia64-s-gcc-10.patch to workaround invalid relocation on ia64. Bug: https://bugs.gentoo.org/723268 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: drop DEPEND="!<sys-devel/bison-2.7" blockerSergei Trofimovich2020-06-281-1/+0
| | | | | Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: Restore keywordsAndreas K. Hüttel2020-06-101-1/+1
| | | | | Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* sys-libs/glibc: always use NM and READELF for default ABISergei Trofimovich2020-06-091-2/+11
| | | | | | | | | | | | | | sys-devel/binutils-config[-native-symlinks] exposed a bug of not using 'readelf' / 'nm' if used ABI is not default. Breakage mahifested as ./configure failure for glibc[static-pie] for non-default ABIs. The fix uses NM and READELF from default ABI (specified by CTARGET). While at it set CC in early compile test checks. Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: revert "use -mno-sdata, not -fcommon, bug #723268"Sergei Trofimovich2020-05-161-2/+1
| | | | | | | | | | | | | | | | | | The underying linker failure cause is not just an overflow but a functional difference in '_dl_sysinfo_break' symbol linkage. '_dl_sysinfo_break' is defined as a function in assembly but declared as a global 'common' variable. Making it non-common actually breaks sysinfo handler which is expected to be called without function descriptor indirection. As sysonfo handler is called before rtld processed it's own relocations. Let's revert back to -fcommon until we have better glibc fix. This reverts commit 8ec720b67f38952a4b9c6054c6d8ef0fc79d0343. Bug: https://bugs.gentoo.org/723268 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: use -mno-sdata, not -fcommon, bug #723268Sergei Trofimovich2020-05-161-1/+2
| | | | | | | | | | | | | | -fcommon generated PLT references and added double memory dereference. -mno-sdata is slightly more efficient as it still sees globals to be module local varilables and uses GPREL64 (instead of PLT indirection) and uses single memory dereference. Bug: https://bugs.gentoo.org/723268 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: avoid GPREL overflow on ia64, bug #723268Sergei Trofimovich2020-05-161-0/+6
| | | | | | | | | | | | | | | -fno-common had unintended side-effect to optimise more accesses to global variables as module-local via GPREL22 relocations. Unfortunately glibc is large enough to overflow GPREL22 offset. Let's add a -fcommon workaround back to pessimize code slightly that refers module-local globals. We'll need an equivalen of -fPIC to do it consistently. Bug: https://bugs.gentoo.org/723268 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: In git version, pull patches directly from git tooAndreas K. Hüttel2020-05-141-13/+24
| | | | | Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* sys-libs/glibc: Use etc files from FILESDIR instead of patchsetAndreas K. Hüttel2020-05-121-6/+7
| | | | | Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* sys-libs/glibc: Use externally packaged locale-genAndreas K. Hüttel2020-05-121-1/+13
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* sys-libs/glibc: disable flaky tst-stack4, bug #719674Sergei Trofimovich2020-05-031-0/+5
| | | | | | | | | | | | tst-stack4 exposes known race condition in glibc (https://sourceware.org/PR19329). Let's disable this test until it's fixed upstream. Reported-by: Sam James Bug: https://bugs.gentoo.org/719674 Bug: https://sourceware.org/PR19329 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: add a reference to disable support testSergei Trofimovich2020-05-021-0/+1
| | | | | | Bug: https://sourceware.org/PR25909 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: disable tst-pkey and tst-support_descriptors testsSergei Trofimovich2020-05-021-0/+4
| | | | | | | | tst-pkey did not hande -ENOSPC-as-unsupported untli glibc-2.31. tst-support_descriptors is yet to be reported upstream. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: Block too-old openssh in 2.31 and later, bug 708224Andreas K. Hüttel2020-04-231-0/+3
| | | | | | Bug: https://bugs.gentoo.org/708224 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* sys-libs/glibc: set correct cross-CC for sparc32Sergei Trofimovich2020-04-021-1/+1
| | | | | | | | | | | | | Commit "sys-libs/glibc: Drop SPARC CHOST mangling" exposed a old bug where we were setting CC=${CTARGET_OPT}. But we don't have ${CTARGET_OPT}-gcc or anything else and thus fallback to 'gcc' happens. Always use CC=${CTARGET}. Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: drop devpts mount checks, bug #704780Sergei Trofimovich2020-03-281-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | USE=-suid is a defaut for a while. The check made sense when transition from USE=suid -> USE=-suid was happening. Should not be needed nowadays. The check fails in private-users containers where devpts is mounted as a private group: # systemd-nspawn --private-users=65536 -D amd64-stable-glibc-2.30 Selected user namespace base 65536 and range 65536 amd64-stable-glibc-2.30 # fgrep pts /proc/mounts devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=65541,mode=620,ptmxmode=666 0 0 PTYs still work in that setup. I guess due to ptmxmode=666 broad permissions. Let's drop the old check and allow more pts configurations. Reported-by: Kai Krakow Closes: https://bugs.gentoo.org/704780 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: Drop SPARC CHOST manglingMatt Turner2020-03-251-56/+6
| | | | | | | | | | | | | | | | | | Before "multiarch" support in glibc, picking a different CHOST would select which optimized paths were built. Multiarch support was added in glibc commit 3afd5a3b5556 (sparc: Add multiarch support for memset/bzero/memcpy.) in 2010 before glibc-2.12. Before glibc-2.30 glibc dropped support for SPARC v7 in commit 5d9b7b9fa734 (Remove 32 bit sparc v7 support) and in the process cleaned up some configuration logic that accepted a wide variety of (now unused CHOST values), thus causing the build to fail for us when we select a now unknown CHOST. Simply drop this logic, since it shouldn't be needed for any glibc since 2.11. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* sys-libs/glibc: Update test whitelistAndreas K. Huettel2020-03-221-2/+0
| | | | | Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>
* sys-libs/glibc: Require up-to-date libidn2Andreas K. Huettel2020-03-221-2/+2
| | | | | Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>
* sys-libs/glibc: Disable sandbox in test phase, it breaks too muchAndreas K. Huettel2020-03-221-16/+4
| | | | | | | Acked by Sergei (slyfox) Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>
* sys-libs/glibc: add XFAIL mechanism to 9999Andreas K. Huettel2020-03-221-1/+32
| | | | | Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>
* sys-libs/glibc: Use https:// again for git repository.Arfrever Frehtes Taifersar Arahesis2020-03-161-2/+1
| | | | | | Reverts: 3e796f4abbb89a6edc99b54688f666ec11219ea2 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: switch -fstack-protector-all to -strong, bug #712356Sergei Trofimovich2020-03-151-1/+5
| | | | | | | | | | | | | | | | | | --enable-stack-protector=all adds protection to functions that don't have a chance to corrupt stack. On top of that glibc's own tests fail on static IFUNC resolver. Let's use -fstack-protector-strong which matches Gentoo's gcc default. Should fix at least the following test failures: FAIL: elf/ifuncmain9picstatic FAIL: elf/ifuncmain9static Reported-by: Toralf Förster Bug: https://bugs.gentoo.org/712356 Bug: https://sourceware.org/PR25680 Package-Manager: Portage-2.3.94, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: disable container tests, bug #712356Sergei Trofimovich2020-03-151-1/+5
| | | | | | | | | | | | | | | | | | | | | | | sandbox is not very compatible with filesystem unshare(). It can't check if mkdir(/proc) is a safe operation under unshare/chroot. Let's disable container tests. One day we can enable them if not running under sandbox. Shoul deal with the following test failures: FAIL: elf/tst-dlopen-self-container FAIL: elf/tst-dlopen-tlsmodid-container FAIL: elf/tst-ifunc-fault-bindnow FAIL: elf/tst-ifunc-fault-lazy FAIL: elf/tst-ldconfig-bad-aux-cache FAIL: elf/tst-ldconfig-ld_so_conf-update FAIL: elf/tst-pldd Reported-by: Toralf Förster Bug: https://bugs.gentoo.org/712356 Package-Manager: Portage-2.3.94, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: refresh live patchsetSergei Trofimovich2020-03-141-1/+1
| | | | | Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: drop outdated '!<sys-devel/make-4' blockerSergei Trofimovich2020-03-141-1/+0
| | | | | Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: add USE=static-pie to install rcrt1.oSergei Trofimovich2020-03-141-1/+2
| | | | | | | | | | | | | | | To add support for gcc's -static-pie flag glibc needs to provide a few runtile files like rcrt1.o. Let's install those when requested. Noticed when looked at static-pie failures in bug #712356. The change should not fix test failures, but will provide a way to easily sanity-check static-pie health with minimal test. Bug: https://bugs.gentoo.org/712356 Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: fix live ebuild linkSergei Trofimovich2020-03-101-1/+2
| | | | | | | https:// scema is not supported by sourceware's git. Use git:// instead. Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: add locale-gen call loggingSergei Trofimovich2020-02-161-1/+3
| | | | | Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* */*: Clean PYTHON_COMPAT of obsolete implsMichał Górny2020-01-051-2/+2
| | | | | Closes: https://github.com/gentoo/gentoo/pull/14246 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* sys-libs/glibc: allow python-3.8Sergei Trofimovich2019-12-281-1/+1
| | | | | | | Reported-by: Perfect Gentleman Closes: https://bugs.gentoo.org/702964 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: cross-*: pass EPREFIX to --with-headersBenda Xu2019-12-251-2/+2
| | | | | | | | | | | This is a follow up of ea4cbdc9159c0ebbd29d4062bbb314393a8cc32f. Otherwise when building cross toolchain on Gentoo Prefix, configure cannot find the needed linux-headers. Bug: https://bugs.gentoo.org/642604 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
* sys-libs/glibc: drop usr-ldscriptMike Gilbert2019-12-101-1/+1
| | | | | | | This was a false-positive when greping for gen_usr_ldscript. Fixes: 713eee8ef99085e417f4e2f4ba7d8dad9ba8c90d Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* sys-libs/glibc: add explicit 'gd' dependencySergei Trofimovich2019-12-021-0/+1
| | | | | | Closes: https://bugs.gentoo.org/701726 Package-Manager: Portage-2.3.80, Repoman-2.3.19 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: drop -c (--force) flag from localedefSergei Trofimovich2019-11-211-1/+1
| | | | | | | | | | | | As found out in https://sourceware.org/PR25195 -c/--force makes 'localedef' to ignore all errors. The change drops -c flag and relies on clean run. Reported-by: Chris Slycord Bug: https://bugs.gentoo.org/697908 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: mangle bad -march= only for ABI=x86Sergei Trofimovich2019-11-171-3/+2
| | | | | | | | | | | | | | | | | | Normally setup_target_flags() attempts to guard against too conservative (or missing) -march= value by chacking if sync primitives can be compiled. If it can't be compiled glibc assumes -march= value to be too low. Unfortunately, test always runs against 32-bit ABI without checking if current ABI is actually 32-bit. This causes the test mis-fire on USE=-multilib ARCH=amd64 systems. Sweep workaround under ABI=x86 case. Reported-by: Klaus Kusche Closes: https://bugs.gentoo.org/700232 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: expose errors in sync primitives checksSergei Trofimovich2019-11-161-3/+3
| | | | | | | | | | | In bug #700232 CFLAGS_x86 mis-detects unsupported sync primitives. That triggers accidental -march=* filter-out. This change should expose actual built failure. Bug: https://bugs.gentoo.org/700232 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: apply 'introduce USE=+crypt' to live ebuildSergei Trofimovich2019-11-161-1/+2
| | | | | Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: add RESTRICT="!test? ( test )"Sergei Trofimovich2019-11-101-0/+2
| | | | | Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: drop outdated sys-apps/portage blockerSergei Trofimovich2019-11-101-1/+0
| | | | | Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: drop outdated sys-apps/sandboxSergei Trofimovich2019-11-101-1/+0
| | | | | Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: drop outdated sys-kernel/ps3-sources blockerSergei Trofimovich2019-11-101-1/+0
| | | | | Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sys-libs/glibc: drop outdated sys-libs/nss-dbSergei Trofimovich2019-11-101-1/+0
| | | | | Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>