From bc5b49f1264f425fa395372c0383ae753a9399a1 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sat, 26 Feb 2022 19:41:11 +0100 Subject: sci-visualization/gr: Fix build with musl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/832836 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas K. Hüttel --- sci-visualization/gr/files/gr-0.53.0-musl.patch | 29 +++++++++++++++++++++++++ sci-visualization/gr/gr-0.53.0.ebuild | 6 ++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 sci-visualization/gr/files/gr-0.53.0-musl.patch diff --git a/sci-visualization/gr/files/gr-0.53.0-musl.patch b/sci-visualization/gr/files/gr-0.53.0-musl.patch new file mode 100644 index 000000000000..c5f0519341f6 --- /dev/null +++ b/sci-visualization/gr/files/gr-0.53.0-musl.patch @@ -0,0 +1,29 @@ +From 205a70fdbd69d7877994e7aea5cec6eab79236b2 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= +Date: Sat, 26 Feb 2022 19:38:20 +0100 +Subject: [PATCH] Fix build with musl libc +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Andreas K. Hüttel +--- + lib/gks/io.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/gks/io.c b/lib/gks/io.c +index 669dd81f..50fde2c4 100644 +--- a/lib/gks/io.c ++++ b/lib/gks/io.c +@@ -11,7 +11,7 @@ + #include + #endif + +-#if defined(cray) || defined(__SVR4) || defined(_WIN32) ++#if defined(cray) || defined(__SVR4) || defined(_WIN32) || defined(__MUSL__) + #include + #else + #include +-- +2.34.1 + diff --git a/sci-visualization/gr/gr-0.53.0.ebuild b/sci-visualization/gr/gr-0.53.0.ebuild index dbdaaca1611b..c46b776f0a07 100644 --- a/sci-visualization/gr/gr-0.53.0.ebuild +++ b/sci-visualization/gr/gr-0.53.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2019-2021 Gentoo Authors +# Copyright 2019-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -34,6 +34,10 @@ DEPEND=" RDEPEND="${DEPEND}" BDEPEND="" +PATCHES=( + "${FILESDIR}/${P}-musl.patch" +) + src_configure() { use cairo || mycmakeargs+=( -DCAIRO_LIBRARY= ) use postscript || mycmakeargs+=( -DGS_LIBRARY= ) -- cgit v1.2.3-65-gdbad