diff options
author | 2023-04-14 04:45:37 +0100 | |
---|---|---|
committer | 2023-04-14 04:59:55 +0100 | |
commit | b244a654356443f6fad7f6bb717305d02b853ef4 (patch) | |
tree | 2923ee93f7c98a1b06d311ae935cfc1a71f8337c /sci-libs | |
parent | dev-python/pikepdf: Bump to 7.2.0 (diff) | |
download | gentoo-b244a654356443f6fad7f6bb717305d02b853ef4.tar.gz gentoo-b244a654356443f6fad7f6bb717305d02b853ef4.tar.bz2 gentoo-b244a654356443f6fad7f6bb717305d02b853ef4.zip |
sci-libs/plplot: fix configure w/ clang 16
Closes: https://bugs.gentoo.org/898258
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/plplot/files/plplot-5.15.0-configure-clang16.patch | 18 | ||||
-rw-r--r-- | sci-libs/plplot/plplot-5.15.0-r105.ebuild (renamed from sci-libs/plplot/plplot-5.15.0-r104.ebuild) | 1 |
2 files changed, 19 insertions, 0 deletions
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 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() { |