summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2022-03-21 21:11:16 +0100
committerAlfredo Tupone <tupone@gentoo.org>2022-03-21 21:11:16 +0100
commit29def55eb56b225b57c39db5c967c77431d6411d (patch)
tree8c555dd0d8c3bd2657727cd4d4aa04551c9263af /dev-ml
parentmedia-libs/gmmlib: add 22.1.1 (diff)
downloadgentoo-29def55eb56b225b57c39db5c967c77431d6411d.tar.gz
gentoo-29def55eb56b225b57c39db5c967c77431d6411d.tar.bz2
gentoo-29def55eb56b225b57c39db5c967c77431d6411d.zip
dev-ml/curses: not calling cc directly
Closes: https://bugs.gentoo.org/835735 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/curses/curses-1.0.10.ebuild2
-rw-r--r--dev-ml/curses/files/curses-1.0.10-CC.patch11
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-ml/curses/curses-1.0.10.ebuild b/dev-ml/curses/curses-1.0.10.ebuild
index 5639cdd42574..e925252d6275 100644
--- a/dev-ml/curses/curses-1.0.10.ebuild
+++ b/dev-ml/curses/curses-1.0.10.ebuild
@@ -17,3 +17,5 @@ IUSE="+ocamlopt"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND="dev-ml/dune-configurator"
+
+PATCHES=( "${FILESDIR}"/${P}-CC.patch )
diff --git a/dev-ml/curses/files/curses-1.0.10-CC.patch b/dev-ml/curses/files/curses-1.0.10-CC.patch
new file mode 100644
index 000000000000..8acff01c5d9c
--- /dev/null
+++ b/dev-ml/curses/files/curses-1.0.10-CC.patch
@@ -0,0 +1,11 @@
+--- a/dune 2022-03-21 21:07:36.326440959 +0100
++++ b/dune 2022-03-21 21:07:46.650295407 +0100
+@@ -45,7 +45,7 @@
+ %{workspace_root}
+ (with-stdout-to
+ %{target}
+- (system "%{bin:gcc} -x c -E _curses.ml")))))
++ (system "%{cc} -x c -E _curses.ml")))))
+
+ (rule
+ (targets c_flags.sexp c_library_flags.sexp config.ml _config.h)