commit: 228410dfe66b2f9b6c738675c1ad5656d9235aed Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Sep 22 13:58:22 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Sep 22 13:58:22 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=228410df
dev-lang/swig: build with -fPIC, not -fpic This fixes tests on hppa, sparc. Closes: https://bugs.gentoo.org/900769 Closes: https://bugs.gentoo.org/935318 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-lang/swig/swig-4.2.1.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dev-lang/swig/swig-4.2.1.ebuild b/dev-lang/swig/swig-4.2.1.ebuild index 1375557b544c..114ecb465943 100644 --- a/dev-lang/swig/swig-4.2.1.ebuild +++ b/dev-lang/swig/swig-4.2.1.ebuild @@ -27,6 +27,17 @@ BDEPEND="virtual/pkgconfig" DOCS=( ANNOUNCE CHANGES CHANGES.current README TODO ) +PATCHES=( + "${FILESDIR}"/${P}-tests-fpic.patch +) + +src_prepare() { + default + + # Delete after 4.2.1 (bug #900769, bug #935318) + sed -i -e 's:fpic:fPIC:' configure.ac configure || die +} + src_configure() { # TODO: add USE for various langs? (https://bugs.gentoo.org/921504#c3) econf \
