commit:     f388dddf6055334dfe5f2452612272324bea70d8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  2 05:14:30 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  2 05:23:36 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f388dddf

dev-ml/ppxlib: stop blocking dev-libs/nss[utils]

I should've poked at this a bit more at the time, but it is what
it is. Thanks to the reporter of this upstream, the ppxlib folks
realised/noticed it as an error and have dropped the colliding
'pp'.

It ended up not being supposed to be installed at all.

See: https://github.com/ocaml-ppx/ppxlib/issues/224
See: c87dfe922463070c8ec351fa4341d97a1ed56f8a
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{ppxlib-0.21.0-r1.ebuild => ppxlib-0.21.0-r2.ebuild}       | 10 ++++++++--
 .../{ppxlib-0.22.0-r1.ebuild => ppxlib-0.22.0-r2.ebuild}       | 10 ++++++++--
 .../ppxlib/{ppxlib-0.22.2.ebuild => ppxlib-0.22.2-r1.ebuild}   | 10 ++++++++--
 3 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/dev-ml/ppxlib/ppxlib-0.21.0-r1.ebuild 
b/dev-ml/ppxlib/ppxlib-0.21.0-r2.ebuild
similarity index 79%
rename from dev-ml/ppxlib/ppxlib-0.21.0-r1.ebuild
rename to dev-ml/ppxlib/ppxlib-0.21.0-r2.ebuild
index 4e0bb08cb7f..2f753797ef4 100644
--- a/dev-ml/ppxlib/ppxlib-0.21.0-r1.ebuild
+++ b/dev-ml/ppxlib/ppxlib-0.21.0-r2.ebuild
@@ -15,7 +15,6 @@ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 IUSE="+ocamlopt test"
 RESTRICT="!test? ( test )"
 
-# nss[utils] has /usr/bin/pp
 RDEPEND="
        >=dev-ml/base-0.11.0:=
        dev-ml/findlib:=
@@ -25,7 +24,6 @@ RDEPEND="
        dev-ml/stdlib-shims:=
        >=dev-ml/ppx_derivers-1.2.1:=
        >=dev-ml/stdio-0.11.0:=
-       !dev-libs/nss[utils]
 "
 DEPEND="${DEPEND}
        test? (
@@ -33,3 +31,11 @@ DEPEND="${DEPEND}
                dev-ml/re:=
        )
 "
+
+src_install() {
+       dune_src_install
+
+       # Clashes with dev-libs/nss[utils], accidentally installed upstream
+       # https://github.com/ocaml-ppx/ppxlib/issues/224
+       rm "${ED}"/usr/bin/pp || die
+}

diff --git a/dev-ml/ppxlib/ppxlib-0.22.0-r1.ebuild 
b/dev-ml/ppxlib/ppxlib-0.22.0-r2.ebuild
similarity index 80%
rename from dev-ml/ppxlib/ppxlib-0.22.0-r1.ebuild
rename to dev-ml/ppxlib/ppxlib-0.22.0-r2.ebuild
index 116ac1f1e0e..53471d4c632 100644
--- a/dev-ml/ppxlib/ppxlib-0.22.0-r1.ebuild
+++ b/dev-ml/ppxlib/ppxlib-0.22.0-r2.ebuild
@@ -15,14 +15,12 @@ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 IUSE="+ocamlopt test"
 RESTRICT="!test? ( test )"
 
-# nss[utils] has /usr/bin/pp
 RDEPEND="
        >=dev-ml/ocaml-compiler-libs-0.11.0:=
        >=dev-ml/ocaml-migrate-parsetree-2.1.0:=
        dev-ml/sexplib0:=
        dev-ml/stdlib-shims:=
        >=dev-ml/ppx_derivers-1.2.1:=
-       !dev-libs/nss[utils]
 "
 DEPEND="${DEPEND}
        test? (
@@ -34,3 +32,11 @@ DEPEND="${DEPEND}
        )
 "
 BDEPEND=">=dev-ml/dune-2.8"
+
+src_install() {
+       dune_src_install
+
+       # Clashes with dev-libs/nss[utils], accidentally installed upstream
+       # https://github.com/ocaml-ppx/ppxlib/issues/224
+       rm "${ED}"/usr/bin/pp || die
+}

diff --git a/dev-ml/ppxlib/ppxlib-0.22.2.ebuild 
b/dev-ml/ppxlib/ppxlib-0.22.2-r1.ebuild
similarity index 80%
rename from dev-ml/ppxlib/ppxlib-0.22.2.ebuild
rename to dev-ml/ppxlib/ppxlib-0.22.2-r1.ebuild
index bc486940ff7..2986d9beed3 100644
--- a/dev-ml/ppxlib/ppxlib-0.22.2.ebuild
+++ b/dev-ml/ppxlib/ppxlib-0.22.2-r1.ebuild
@@ -15,14 +15,12 @@ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 IUSE="+ocamlopt test"
 RESTRICT="!test? ( test )"
 
-# nss[utils] has /usr/bin/pp
 RDEPEND="
        >=dev-ml/ocaml-compiler-libs-0.11.0:=
        >=dev-ml/ocaml-migrate-parsetree-2.2.0:=
        dev-ml/sexplib0:=
        dev-ml/stdlib-shims:=
        >=dev-ml/ppx_derivers-1.2.1:=
-       !dev-libs/nss[utils]
 "
 DEPEND="${DEPEND}
        test? (
@@ -34,3 +32,11 @@ DEPEND="${DEPEND}
        )
 "
 BDEPEND=">=dev-ml/dune-2.8"
+
+src_install() {
+       dune_src_install
+
+       # Clashes with dev-libs/nss[utils], accidentally installed upstream
+       # https://github.com/ocaml-ppx/ppxlib/issues/224
+       rm "${ED}"/usr/bin/pp || die
+}

Reply via email to