commit: 4a389ce6b1a0dac2cad0c558b66cb8410e9a6999 Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> AuthorDate: Sun Dec 7 18:33:26 2025 +0000 Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> CommitDate: Sun Dec 7 21:36:08 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a389ce6
dev-libs/boost: mark as LTO-unsafe due to test fails smart_ptr and thread still fail despite other efforts, only with LTO. Closes: https://bugs.gentoo.org/956660 Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org> dev-libs/boost/boost-1.88.0-r1.ebuild | 8 +++++++- dev-libs/boost/boost-1.89.0.ebuild | 8 +++++++- dev-libs/boost/files/boost-1.89.0-dll-no-lto.patch | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dev-libs/boost/boost-1.88.0-r1.ebuild b/dev-libs/boost/boost-1.88.0-r1.ebuild index e4a073013cda..8e6519ff5c30 100644 --- a/dev-libs/boost/boost-1.88.0-r1.ebuild +++ b/dev-libs/boost/boost-1.88.0-r1.ebuild @@ -57,6 +57,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.88.0-range-any_iterator.patch "${FILESDIR}"/${PN}-1.88.0-system-crashing-test.patch "${FILESDIR}"/${PN}-1.88.0-yap-cstdint.patch + # https://github.com/boostorg/dll/issues/108 "${FILESDIR}"/${PN}-1.89.0-dll-no-lto.patch "${FILESDIR}"/${PN}-1.89.0-python-exclude-broken-tests.patch "${FILESDIR}"/${PN}-1.89.0-python-pickle.patch @@ -151,7 +152,12 @@ src_configure() { # https://bugs.gentoo.org/943975 # https://github.com/boostorg/quickbook/issues/27 # https://github.com/boostorg/spirit/issues/800 - use tools && filter-lto + # + # Tests also fail: + # https://bugs.gentoo.org/956660 + # https://github.com/boostorg/smart_ptr/issues/121 + # https://github.com/boostorg/thread/issues/415 + filter-lto lto-guarantee-fat diff --git a/dev-libs/boost/boost-1.89.0.ebuild b/dev-libs/boost/boost-1.89.0.ebuild index d70218e01b3c..a0daf51136c3 100644 --- a/dev-libs/boost/boost-1.89.0.ebuild +++ b/dev-libs/boost/boost-1.89.0.ebuild @@ -55,6 +55,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.88.0-range-any_iterator.patch "${FILESDIR}"/${PN}-1.88.0-system-crashing-test.patch "${FILESDIR}"/${PN}-1.88.0-yap-cstdint.patch + # https://github.com/boostorg/dll/issues/108 "${FILESDIR}"/${PN}-1.89.0-dll-no-lto.patch "${FILESDIR}"/${PN}-1.89.0-graph-remove-system-dependency.patch "${FILESDIR}"/${PN}-1.89.0-predef-include-path.patch @@ -152,7 +153,12 @@ src_configure() { # https://bugs.gentoo.org/943975 # https://github.com/boostorg/quickbook/issues/27 # https://github.com/boostorg/spirit/issues/800 - use tools && filter-lto + # + # Tests also fail: + # https://bugs.gentoo.org/956660 + # https://github.com/boostorg/smart_ptr/issues/121 + # https://github.com/boostorg/thread/issues/415 + filter-lto lto-guarantee-fat diff --git a/dev-libs/boost/files/boost-1.89.0-dll-no-lto.patch b/dev-libs/boost/files/boost-1.89.0-dll-no-lto.patch index a36e6680bfc8..cdbcf7606f34 100644 --- a/dev-libs/boost/files/boost-1.89.0-dll-no-lto.patch +++ b/dev-libs/boost/files/boost-1.89.0-dll-no-lto.patch @@ -1,6 +1,8 @@ Unconditionally disable LTO in case it's injected from the outside. LTO breaks the test as some symbols and sections are gone/rearranged. +https://github.com/boostorg/dll/issues/108 + --- a/libs/dll/test/Jamfile.v2 +++ a/libs/dll/test/Jamfile.v2 @@ -36,7 +36,7 @@ project
