commit:     5f37a5d8d047c32806eefc0d6da6a3101d03816d
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  4 09:31:18 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Jun  4 09:31:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f37a5d8

dev-util/rizin: disable rzpipe test

The test relies on `rizin` presence in PATH. This means test run fails
on first install attempt of rizin. Let's disable test test until it's
sorted out upstream.

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 dev-util/rizin/files/rizin-0.2.1-no-rzpipe.patch | 14 ++++++++++++++
 dev-util/rizin/rizin-0.2.1.ebuild                |  2 ++
 2 files changed, 16 insertions(+)

diff --git a/dev-util/rizin/files/rizin-0.2.1-no-rzpipe.patch 
b/dev-util/rizin/files/rizin-0.2.1-no-rzpipe.patch
new file mode 100644
index 00000000000..3e7a6cc70c1
--- /dev/null
+++ b/dev-util/rizin/files/rizin-0.2.1-no-rzpipe.patch
@@ -0,0 +1,14 @@
+https://github.com/rizinorg/rizin/issues/1192
+--- a/test/unit/test_rzpipe.c
++++ b/test/unit/test_rzpipe.c
+@@ -30,7 +30,9 @@ static bool test_rzpipe_404(void) {
+ }
+ 
+ static int all_tests() {
+-      mu_run_test(test_rzpipe);
++      // Disabled in Genoo, relies on `rizin` binary in $PATH:
++      //   https://github.com/rizinorg/rizin/issues/1192
++      //mu_run_test(test_rzpipe);
+       mu_run_test(test_rzpipe_404);
+       return tests_passed != tests_run;
+ }

diff --git a/dev-util/rizin/rizin-0.2.1.ebuild 
b/dev-util/rizin/rizin-0.2.1.ebuild
index 7f58bcca359..08ed3c5435e 100644
--- a/dev-util/rizin/rizin-0.2.1.ebuild
+++ b/dev-util/rizin/rizin-0.2.1.ebuild
@@ -36,6 +36,8 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="${PYTHON_DEPS}"
 
+PATCHES=("${FILESDIR}"/${PN}-0.2.1-no-rzpipe.patch)
+
 S="${WORKDIR}/${PN}-v${PV}"
 
 src_prepare() {

Reply via email to