summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2022-02-26 19:41:11 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2022-02-26 19:41:11 +0100
commitbc5b49f1264f425fa395372c0383ae753a9399a1 (patch)
tree56f9ed96dc4f66f2a6afa25c27b1799f40b68e20 /sci-visualization/gr
parentapp-text/xournalpp: QA fixes (diff)
downloadgentoo-bc5b49f1264f425fa395372c0383ae753a9399a1.tar.gz
gentoo-bc5b49f1264f425fa395372c0383ae753a9399a1.tar.bz2
gentoo-bc5b49f1264f425fa395372c0383ae753a9399a1.zip
sci-visualization/gr: Fix build with musl
Closes: https://bugs.gentoo.org/832836 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'sci-visualization/gr')
-rw-r--r--sci-visualization/gr/files/gr-0.53.0-musl.patch29
-rw-r--r--sci-visualization/gr/gr-0.53.0.ebuild6
2 files changed, 34 insertions, 1 deletions
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?= <dilfridge@gentoo.org>
+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 <dilfridge@gentoo.org>
+---
+ 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 <io.h>
+ #endif
+
+-#if defined(cray) || defined(__SVR4) || defined(_WIN32)
++#if defined(cray) || defined(__SVR4) || defined(_WIN32) || defined(__MUSL__)
+ #include <fcntl.h>
+ #else
+ #include <sys/file.h>
+--
+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= )