summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2022-01-23 19:33:31 +0100
committerAlfredo Tupone <tupone@gentoo.org>2022-01-23 19:33:31 +0100
commit9f1043a3774beb87a85f009445310609826534f8 (patch)
tree57bbea200b2078fd8dc3e0efb96e9e55894101a3 /dev-ml/ocaml-expat
parentnet-nds/gssproxy: add missing #include <string.h> (diff)
downloadgentoo-9f1043a3774beb87a85f009445310609826534f8.tar.gz
gentoo-9f1043a3774beb87a85f009445310609826534f8.tar.bz2
gentoo-9f1043a3774beb87a85f009445310609826534f8.zip
dev-ml/ocaml-expat: do not call cc directly
Closes: https://bugs.gentoo.org/719158 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml/ocaml-expat')
-rw-r--r--dev-ml/ocaml-expat/files/ocaml-expat-1.1.0-cc.patch11
-rw-r--r--dev-ml/ocaml-expat/ocaml-expat-1.1.0-r1.ebuild7
2 files changed, 16 insertions, 2 deletions
diff --git a/dev-ml/ocaml-expat/files/ocaml-expat-1.1.0-cc.patch b/dev-ml/ocaml-expat/files/ocaml-expat-1.1.0-cc.patch
new file mode 100644
index 000000000000..724d9935baac
--- /dev/null
+++ b/dev-ml/ocaml-expat/files/ocaml-expat-1.1.0-cc.patch
@@ -0,0 +1,11 @@
+--- a/Makefile 2022-01-23 19:29:56.516323939 +0100
++++ b/Makefile 2022-01-23 19:30:07.289143969 +0100
+@@ -41,7 +41,7 @@
+ allopt: $(OPT_TARGETS)
+
+ depend: *.c *.ml *.mli
+- gcc -I $(OCAMLDIR) -MM *.c > depend
++ $(CC) -I $(OCAMLDIR) -MM *.c > depend
+ $(OCAMLDEP) *.mli *.ml >> depend
+
+ ## Library creation
diff --git a/dev-ml/ocaml-expat/ocaml-expat-1.1.0-r1.ebuild b/dev-ml/ocaml-expat/ocaml-expat-1.1.0-r1.ebuild
index 43b3e2f07aed..d87cb78da864 100644
--- a/dev-ml/ocaml-expat/ocaml-expat-1.1.0-r1.ebuild
+++ b/dev-ml/ocaml-expat/ocaml-expat-1.1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -21,7 +21,10 @@ DEPEND="${RDEPEND}
SLOT="0/${PV}"
LICENSE="MIT"
KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
-PATCHES=( "${FILESDIR}/ounit2.patch" )
+PATCHES=(
+ "${FILESDIR}/ounit2.patch"
+ "${FILESDIR}/${P}-cc.patch"
+)
src_compile() {
emake depend