sys-apps/util-linux: Sync with Gentoo

It's from Gentoo commit ddb25922124a4e0b58e2a6b1b96b25b9aaf1657b.
This commit is contained in:
Flatcar Buildbot 2025-08-04 07:19:32 +00:00 committed by Krzesimir Nowak
parent 7f511da765
commit c150809c43
2 changed files with 12 additions and 1 deletions

View File

@ -353,6 +353,12 @@ multilib_src_configure() {
src_configure() {
append-lfs-flags
# Workaround for bug #961040 (gcc PR120006)
if tc-is-gcc && [[ $(gcc-major-version) == 15 && $(gcc-minor-version) -lt 2 ]] ; then
append-flags -fno-ipa-pta
fi
multilib-minimal_src_configure
}

View File

@ -6,7 +6,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
TMPFILES_OPTIONAL=1
inherit pam python-r1 meson-multilib tmpfiles toolchain-funcs
inherit flag-o-matic pam python-r1 meson-multilib tmpfiles toolchain-funcs
MY_PV="${PV/_/-}"
MY_P="${PN}-${MY_PV}"
@ -128,6 +128,11 @@ src_unpack() {
src_prepare() {
default
# Workaround for bug #961040 (gcc PR120006)
if tc-is-gcc && [[ $(gcc-major-version) == 15 && $(gcc-minor-version) -lt 2 ]] ; then
append-flags -fno-ipa-pta
fi
if use test ; then
# Known-failing tests
local known_failing_tests=(