From 82b295674fb4dfc0bfaba3a7cbaa48ff5423e6a1 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Sun, 13 Apr 2025 22:03:39 +0200 Subject: [PATCH] dev-ml/cinaps: fix test Bug: https://bugs.gentoo.org/905097 Signed-off-by: Alfredo Tupone --- ...aps-0.15.1-r1.ebuild => cinaps-0.15.1-r2.ebuild} | 12 +++++------- dev-ml/cinaps/files/cinaps-0.15.1-test.patch | 13 +++++++++++++ 2 files changed, 18 insertions(+), 7 deletions(-) rename dev-ml/cinaps/{cinaps-0.15.1-r1.ebuild => cinaps-0.15.1-r2.ebuild} (77%) create mode 100644 dev-ml/cinaps/files/cinaps-0.15.1-test.patch diff --git a/dev-ml/cinaps/cinaps-0.15.1-r1.ebuild b/dev-ml/cinaps/cinaps-0.15.1-r2.ebuild similarity index 77% rename from dev-ml/cinaps/cinaps-0.15.1-r1.ebuild rename to dev-ml/cinaps/cinaps-0.15.1-r2.ebuild index 6835b84aef60e..05c8aca5c7b55 100644 --- a/dev-ml/cinaps/cinaps-0.15.1-r1.ebuild +++ b/dev-ml/cinaps/cinaps-0.15.1-r2.ebuild @@ -1,7 +1,7 @@ -# Copyright 2020-2024 Gentoo Authors +# Copyright 2020-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit dune @@ -17,8 +17,6 @@ RESTRICT="!test? ( test )" DEPEND="dev-ml/re:=" RDEPEND="${DEPEND}" -BDEPEND=" - test? ( - dev-ml/ppx_jane:0/0.14.0 - ) -" +BDEPEND="test? ( dev-ml/ppx_jane )" + +PATCHES=( "${FILESDIR}"/${P}-test.patch ) diff --git a/dev-ml/cinaps/files/cinaps-0.15.1-test.patch b/dev-ml/cinaps/files/cinaps-0.15.1-test.patch new file mode 100644 index 0000000000000..d3b50c05d73e8 --- /dev/null +++ b/dev-ml/cinaps/files/cinaps-0.15.1-test.patch @@ -0,0 +1,13 @@ +--- a/test/dune 2025-04-13 21:58:20.175375148 +0200 ++++ b/test/dune 2025-04-13 21:58:28.498274736 +0200 +@@ -3,7 +3,7 @@ + + (executables (names test_staged_gen) (modules test_staged_gen) + (libraries cinaps.runtime) +- (preprocess (pps ppx_jane -allow-toplevel-expression))) ++ (preprocess (pps ppx_jane))) + + (alias (name runtest) (deps test_staged_gen.exe) +- (action (bash ./test_staged_gen.exe))) +\ No newline at end of file ++ (action (bash ./test_staged_gen.exe)))