commit:     9709c3e5dd9a4fe6d398f8c1cfbf48b649efd440
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  9 03:58:21 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Sep 10 01:04:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9709c3e5

sci-mathematics/twelf: mark as LTO-unsafe

Per the contributing guideline:

> Twelf, the software, is not under active development, and changes to
> the code of Twelf are unlikely to be accepted unless you’re working with
> Twelf’s original authors, Frank Pfenning and Carsten Schürmann.

Getting this fixed is unlikely to happen, so all that's left is
filtering.

Closes: https://bugs.gentoo.org/863266
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 sci-mathematics/twelf/twelf-1.7.1-r2.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sci-mathematics/twelf/twelf-1.7.1-r2.ebuild 
b/sci-mathematics/twelf/twelf-1.7.1-r2.ebuild
index 9e6c45a37143..1fc16b00baa4 100644
--- a/sci-mathematics/twelf/twelf-1.7.1-r2.ebuild
+++ b/sci-mathematics/twelf/twelf-1.7.1-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI="8"
 
-inherit elisp-common
+inherit elisp-common flag-o-matic
 
 MY_PN="${PN}-src"
 MY_P="${MY_PN}-${PV}"
@@ -59,6 +59,12 @@ src_prepare() {
 }
 
 src_compile() {
+       # relocation R_X86_64_32 against hidden symbol `globalCPointer' can not 
be used when making a PIE object
+       # https://bugs.gentoo.org/863266
+       #
+       # The software is unmaintained and disables bug reports.
+       filter-lto
+
        emake mlton CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} -fno-PIE"
        if use emacs ; then
                pushd "${S}/emacs" || die "Could change directory to emacs"

Reply via email to