diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-05-14 23:30:49 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-05-17 04:55:25 +0100 |
commit | 3e2a234b2bf548497b0d3b5828fdb4f3820fa97d (patch) | |
tree | b10bff08fe7f0ad883ee15d4ea25bc6e8922f9e2 | |
parent | dev-lang/xsb: update EAPI 7 -> 8 (diff) | |
download | gentoo-3e2a234b2bf548497b0d3b5828fdb4f3820fa97d.tar.gz gentoo-3e2a234b2bf548497b0d3b5828fdb4f3820fa97d.tar.bz2 gentoo-3e2a234b2bf548497b0d3b5828fdb4f3820fa97d.zip |
dev-lang/xsb: fix modern C error in configure script misdetecting features
Closes: https://bugs.gentoo.org/870970
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | dev-lang/xsb/files/0001-modern-C-fix-for-implicit-int.patch | 25 | ||||
-rw-r--r-- | dev-lang/xsb/xsb-4.0.0-r1.ebuild | 7 |
2 files changed, 31 insertions, 1 deletions
diff --git a/dev-lang/xsb/files/0001-modern-C-fix-for-implicit-int.patch b/dev-lang/xsb/files/0001-modern-C-fix-for-implicit-int.patch new file mode 100644 index 000000000000..d70019db4b5f --- /dev/null +++ b/dev-lang/xsb/files/0001-modern-C-fix-for-implicit-int.patch @@ -0,0 +1,25 @@ +From 3dd24018e4f5c48c382588dd9d8da5b80056a55b Mon Sep 17 00:00:00 2001 +From: Eli Schwartz <eschwartz93@gmail.com> +Date: Thu, 14 Mar 2024 20:28:31 -0400 +Subject: [PATCH] modern C fix for implicit-int + +--- + build/configure.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/build/configure.in b/build/configure.in +index d51bfeb..6999565 100644 +--- a/build/configure.in ++++ b/build/configure.in +@@ -1346,7 +1346,7 @@ LDFLAGS="-Wl,-export-dynamic" + AC_MSG_CHECKING([whether loader understands -Wl,-export-dynamic]) + # Ideally we should use AC_LINK_IFELSE instead of the obsolete AC_TRY_LINK + #AC_TRY_LINK([],[], __export_dynamic=yes, __export_dynamic=no) +-AC_LINK_IFELSE([AC_LANG_SOURCE([[main(){return 0;}]])], __export_dynamic=yes, __export_dynamic=no) ++AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(){return 0;}]])], __export_dynamic=yes, __export_dynamic=no) + AC_MSG_RESULT($__export_dynamic) + LDFLAGS=$TEMP_LDFLAGS + ####### End of test for -export-dynamic option of ld +-- +2.43.2 + diff --git a/dev-lang/xsb/xsb-4.0.0-r1.ebuild b/dev-lang/xsb/xsb-4.0.0-r1.ebuild index dc1d1b901037..8f2f14bad5ff 100644 --- a/dev-lang/xsb/xsb-4.0.0-r1.ebuild +++ b/dev-lang/xsb/xsb-4.0.0-r1.ebuild @@ -30,7 +30,12 @@ DEPEND="${RDEPEND}" S="${WORKDIR}"/XSB -PATCHES=( "${WORKDIR}/${PV}" ) +PATCHES=( + "${WORKDIR}/${PV}" + # https://bugs.gentoo.org/870970 + # https://sourceforge.net/p/xsb/bugs/265/ + "${FILESDIR}"/0001-modern-C-fix-for-implicit-int.patch +) src_prepare() { default |