commit:     9f1043a3774beb87a85f009445310609826534f8
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 23 18:33:31 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Jan 23 18:33:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f1043a3

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 <AT> gentoo.org>

 dev-ml/ocaml-expat/files/ocaml-expat-1.1.0-cc.patch | 11 +++++++++++
 dev-ml/ocaml-expat/ocaml-expat-1.1.0-r1.ebuild      |  7 +++++--
 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

Reply via email to