1 |
commit: c3698637e23ca9396bf1e924be07692701735411 |
2 |
Author: Keri Harris <keri <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 21 08:12:23 2022 +0000 |
4 |
Commit: Keri Harris <keri <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 21 08:12:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3698637 |
7 |
|
8 |
dev-lang/cxprolog: printf fixes for MUSL |
9 |
|
10 |
Closes: https://bugs.gentoo.org/834101 |
11 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
12 |
Signed-off-by: Keri Harris <keri <AT> gentoo.org> |
13 |
|
14 |
dev-lang/cxprolog/cxprolog-0.98.2.ebuild | 1 + |
15 |
dev-lang/cxprolog/files/cxprolog-0.98.2-printf-musl.patch | 14 ++++++++++++++ |
16 |
2 files changed, 15 insertions(+) |
17 |
|
18 |
diff --git a/dev-lang/cxprolog/cxprolog-0.98.2.ebuild b/dev-lang/cxprolog/cxprolog-0.98.2.ebuild |
19 |
index 24deb0a98e0e..494d1b7aef2b 100644 |
20 |
--- a/dev-lang/cxprolog/cxprolog-0.98.2.ebuild |
21 |
+++ b/dev-lang/cxprolog/cxprolog-0.98.2.ebuild |
22 |
@@ -32,6 +32,7 @@ S="${WORKDIR}"/${P} |
23 |
|
24 |
src_prepare() { |
25 |
eapply "${FILESDIR}"/${P}-portage.patch |
26 |
+ eapply "${FILESDIR}"/${P}/printf-musl.patch |
27 |
eapply "${FILESDIR}"/${P}-test-io.patch |
28 |
eapply_user |
29 |
|
30 |
|
31 |
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 |
32 |
new file mode 100644 |
33 |
index 000000000000..f55595461a80 |
34 |
--- /dev/null |
35 |
+++ b/dev-lang/cxprolog/files/cxprolog-0.98.2-printf-musl.patch |
36 |
@@ -0,0 +1,14 @@ |
37 |
+--- cxprolog-0.98.2.orig/src/Number.c 2016-01-23 22:07:48.000000000 +0100 |
38 |
++++ cxprolog-0.98.2/src/Number.c 2022-05-21 10:03:54.275367970 +0200 |
39 |
+@@ -282,9 +282,9 @@ |
40 |
+ { |
41 |
+ #if HAS_LONG_DOUBLE_OPS |
42 |
+ if( precision > 0 ) |
43 |
+- return GStrFormat("%%.%dllg", precision) ; |
44 |
++ return GStrFormat("%%.%dLg", precision) ; |
45 |
+ else |
46 |
+- return GStrFormat("%%.%dllf", -precision) ; |
47 |
++ return GStrFormat("%%.%dLf", -precision) ; |
48 |
+ #else |
49 |
+ if( precision > 0 ) |
50 |
+ return GStrFormat("%%.%dlg", precision) ; |