From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/plplot/files/, sci-libs/plplot/
Date: Fri, 14 Apr 2023 04:00:56 +0000 (UTC) [thread overview]
Message-ID: <1681444795.b244a654356443f6fad7f6bb717305d02b853ef4.sam@gentoo> (raw)
commit: b244a654356443f6fad7f6bb717305d02b853ef4
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 14 03:45:37 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 14 03:59:55 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b244a654
sci-libs/plplot: fix configure w/ clang 16
Closes: https://bugs.gentoo.org/898258
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../plplot/files/plplot-5.15.0-configure-clang16.patch | 18 ++++++++++++++++++
...ot-5.15.0-r104.ebuild => plplot-5.15.0-r105.ebuild} | 1 +
2 files changed, 19 insertions(+)
diff --git a/sci-libs/plplot/files/plplot-5.15.0-configure-clang16.patch b/sci-libs/plplot/files/plplot-5.15.0-configure-clang16.patch
new file mode 100644
index 000000000000..1f72da24ffb0
--- /dev/null
+++ b/sci-libs/plplot/files/plplot-5.15.0-configure-clang16.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/898258
+https://sourceforge.net/p/plplot/patches/37/
+
+Avoid implicitly declaring exit. Future compilers will not support
+implicit function declarations, so this cmake probe will always fail.
+
+--- a/cmake/modules/TestForHighBitCharacters.c
++++ b/cmake/modules/TestForHighBitCharacters.c
+@@ -17,6 +17,6 @@ int
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i))
+- exit(1);
+- exit (0);
++ return 1;
++ return 0;
+ }
+
diff --git a/sci-libs/plplot/plplot-5.15.0-r104.ebuild b/sci-libs/plplot/plplot-5.15.0-r105.ebuild
similarity index 99%
rename from sci-libs/plplot/plplot-5.15.0-r104.ebuild
rename to sci-libs/plplot/plplot-5.15.0-r105.ebuild
index a36423a145f2..0f4ce8cab531 100644
--- a/sci-libs/plplot/plplot-5.15.0-r104.ebuild
+++ b/sci-libs/plplot/plplot-5.15.0-r105.ebuild
@@ -113,6 +113,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-5.15.0-ocaml.patch
"${FILESDIR}"/${PN}-5.12.0-safe-string.patch
"${FILESDIR}"/${PN}-5.15.0-QPainterPath-include.patch
+ "${FILESDIR}"/${PN}-5.15.0-configure-clang16.patch
)
pkg_setup() {
next reply other threads:[~2023-04-14 4:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-14 4:00 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-10 1:43 [gentoo-commits] repo/gentoo:master commit in: sci-libs/plplot/files/, sci-libs/plplot/ Sam James
2020-01-16 7:03 Michał Górny
2018-01-22 0:42 Andreas Sturmlechner
2017-07-09 21:03 David Seifert
2017-02-18 19:10 David Seifert
2016-11-25 18:57 Pacho Ramos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1681444795.b244a654356443f6fad7f6bb717305d02b853ef4.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox