summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2022-05-21 10:12:23 +0200
committerKeri Harris <keri@gentoo.org>2022-05-21 10:12:39 +0200
commitc3698637e23ca9396bf1e924be07692701735411 (patch)
tree1cd95bacdae2006da79df1e678760ec86dee96be /dev-lang/cxprolog
parentdev-python/bibtexparser: Strip obsolete future dep (diff)
downloadgentoo-c3698637e23ca9396bf1e924be07692701735411.tar.gz
gentoo-c3698637e23ca9396bf1e924be07692701735411.tar.bz2
gentoo-c3698637e23ca9396bf1e924be07692701735411.zip
dev-lang/cxprolog: printf fixes for MUSL
Closes: https://bugs.gentoo.org/834101 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Keri Harris <keri@gentoo.org>
Diffstat (limited to 'dev-lang/cxprolog')
-rw-r--r--dev-lang/cxprolog/cxprolog-0.98.2.ebuild1
-rw-r--r--dev-lang/cxprolog/files/cxprolog-0.98.2-printf-musl.patch14
2 files changed, 15 insertions, 0 deletions
diff --git a/dev-lang/cxprolog/cxprolog-0.98.2.ebuild b/dev-lang/cxprolog/cxprolog-0.98.2.ebuild
index 24deb0a98e0e..494d1b7aef2b 100644
--- a/dev-lang/cxprolog/cxprolog-0.98.2.ebuild
+++ b/dev-lang/cxprolog/cxprolog-0.98.2.ebuild
@@ -32,6 +32,7 @@ S="${WORKDIR}"/${P}
src_prepare() {
eapply "${FILESDIR}"/${P}-portage.patch
+ eapply "${FILESDIR}"/${P}/printf-musl.patch
eapply "${FILESDIR}"/${P}-test-io.patch
eapply_user
diff --git a/dev-lang/cxprolog/files/cxprolog-0.98.2-printf-musl.patch b/dev-lang/cxprolog/files/cxprolog-0.98.2-printf-musl.patch
new file mode 100644
index 000000000000..f55595461a80
--- /dev/null
+++ b/dev-lang/cxprolog/files/cxprolog-0.98.2-printf-musl.patch
@@ -0,0 +1,14 @@
+--- cxprolog-0.98.2.orig/src/Number.c 2016-01-23 22:07:48.000000000 +0100
++++ cxprolog-0.98.2/src/Number.c 2022-05-21 10:03:54.275367970 +0200
+@@ -282,9 +282,9 @@
+ {
+ #if HAS_LONG_DOUBLE_OPS
+ if( precision > 0 )
+- return GStrFormat("%%.%dllg", precision) ;
++ return GStrFormat("%%.%dLg", precision) ;
+ else
+- return GStrFormat("%%.%dllf", -precision) ;
++ return GStrFormat("%%.%dLf", -precision) ;
+ #else
+ if( precision > 0 )
+ return GStrFormat("%%.%dlg", precision) ;