From: | Sam James <sam@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] repo/gentoo:master commit in: dev-ml/opam-installer/ |
Date: | Sat, 06 Nov 2021 03:40:21 |
Message-Id: | 1636169989.c44d34624a40c83f5e775678e4f080b604326a99.sam@gentoo |
1 | commit: c44d34624a40c83f5e775678e4f080b604326a99 |
2 | Author: Sam James <sam <AT> gentoo <DOT> org> |
3 | AuthorDate: Sat Nov 6 03:39:49 2021 +0000 |
4 | Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 | CommitDate: Sat Nov 6 03:39:49 2021 +0000 |
6 | URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c44d3462 |
7 | |
8 | dev-ml/opam-installer: fix 2.0.10 |
9 | |
10 | Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 | |
12 | dev-ml/opam-installer/opam-installer-2.0.10.ebuild | 16 +++++++++++----- |
13 | 1 file changed, 11 insertions(+), 5 deletions(-) |
14 | |
15 | diff --git a/dev-ml/opam-installer/opam-installer-2.0.10.ebuild b/dev-ml/opam-installer/opam-installer-2.0.10.ebuild |
16 | index 1ea426a6380..a2b88905a29 100644 |
17 | --- a/dev-ml/opam-installer/opam-installer-2.0.10.ebuild |
18 | +++ b/dev-ml/opam-installer/opam-installer-2.0.10.ebuild |
19 | @@ -6,21 +6,20 @@ EAPI=7 |
20 | # We are opam |
21 | OPAM_INSTALLER_DEP=" " |
22 | OPAM_SKIP_VALIDATION=yes |
23 | -inherit dune |
24 | +inherit opam |
25 | |
26 | DESCRIPTION="Core installer for opam packages" |
27 | HOMEPAGE="https://opam.ocaml.org/ https://github.com/ocaml/opam" |
28 | SRC_URI="https://github.com/ocaml/opam/releases/download/${PV}/opam-full-${PV}.tar.gz" |
29 | -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/dev-ml/opam/opam-2.1.0-dose3-6.patch.xz" |
30 | S="${WORKDIR}/opam-full-${PV/_/-}" |
31 | -OPAM_INSTALLER="${S}/_build/install/default/bin/opam-installer" |
32 | +OPAM_INSTALLER="${S}/opam-installer" |
33 | |
34 | LICENSE="LGPL-2.1" |
35 | SLOT="0/${PV}" |
36 | KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
37 | -IUSE="+ocamlopt" |
38 | |
39 | -PATCHES=( "${WORKDIR}"/opam-2.1.0-dose3-6.patch ) |
40 | +# Cherry-picked from https://deb.debian.org/debian/pool/main/o/opam/opam_2.0.8-1.debian.tar.xz |
41 | +PATCHES=( "${FILESDIR}/debian-Port-to-Dose3-6.0.1.patch" ) |
42 | |
43 | RDEPEND=" |
44 | >=dev-lang/ocaml-4.02.3 |
45 | @@ -38,3 +37,10 @@ src_configure() { |
46 | --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
47 | --mandir="${EPREFIX}/usr/share/man" |
48 | } |
49 | + |
50 | +src_compile() { |
51 | + sed -e 's/DUNE = .*$/DUNE = /' -i Makefile.config |
52 | + #passing -jX to the dune build leads to errors |
53 | + #see: https://github.com/ocaml/opam/issues/3585 |
54 | + emake DUNE_PROMOTE_ARG="" -j1 |
55 | +} |