commit:     3caeb353ca95d8caf408b1f19c9cfbff98bc9203
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  6 09:09:15 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Apr  6 09:10:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3caeb353

dev-ml/ocaml_intrinsics: not building crc_stubs on ppc/riscv

Bug: https://bugs.gentoo.org/893612
Bug: https://bugs.gentoo.org/945079
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.15.2.ebuild | 9 ++++++++-
 dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.16.0.ebuild | 9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.15.2.ebuild 
b/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.15.2.ebuild
index 5935dfe6aa7d..92b66b7a02bf 100644
--- a/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.15.2.ebuild
+++ b/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.15.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -21,3 +21,10 @@ DEPEND="
        dev-ml/dune-configurator:=
 "
 RDEPEND="${DEPEND}"
+
+src_prepare() {
+       if use riscv || use ppc; then
+               sed -i -e 's: crc_stubs::' src/dune || die
+       fi
+       default
+}

diff --git a/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.16.0.ebuild 
b/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.16.0.ebuild
index 128c4fc27957..033746478059 100644
--- a/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.16.0.ebuild
+++ b/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.16.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -21,3 +21,10 @@ DEPEND="
        dev-ml/dune-configurator:=
 "
 RDEPEND="${DEPEND}"
+
+src_prepare() {
+       if use riscv || use ppc; then
+               sed -i -e 's: crc_stubs::' src/dune || die
+       fi
+       default
+}

Reply via email to