[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2024-05-11 Thread Sam James
commit: e1dc8d2c571ce6401c299aaff3da8b6a6e1603e0
Author: Sam James  gentoo  org>
AuthorDate: Sat May 11 19:08:08 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sat May 11 19:08:08 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1dc8d2c

dev-util/rizin: Stabilize 0.7.1-r1 amd64, #931769

Signed-off-by: Sam James  gentoo.org>

 dev-util/rizin/rizin-0.7.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.7.1-r1.ebuild 
b/dev-util/rizin/rizin-0.7.1-r1.ebuild
index 13d65081e186..c213792fb694 100644
--- a/dev-util/rizin/rizin-0.7.1-r1.ebuild
+++ b/dev-util/rizin/rizin-0.7.1-r1.ebuild
@@ -19,7 +19,7 @@ S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~x86"
 IUSE="test"
 
 # Need to audit licenses of the binaries used for testing



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2024-04-21 Thread John Helmert III
commit: 95388fc2f9a30c7e57f72315929602c61faf0abe
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Apr 21 23:32:05 2024 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Apr 21 23:33:19 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95388fc2

dev-util/rizin: fixup VariableOrderWrong

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/rizin-0.6.3-r1.ebuild | 5 ++---
 dev-util/rizin/rizin-0.7.1-r1.ebuild | 5 ++---
 dev-util/rizin/rizin-0.7.3.ebuild| 5 ++---
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/dev-util/rizin/rizin-0.6.3-r1.ebuild 
b/dev-util/rizin/rizin-0.6.3-r1.ebuild
index 4f402e6fed56..49186f6b9d14 100644
--- a/dev-util/rizin/rizin-0.6.3-r1.ebuild
+++ b/dev-util/rizin/rizin-0.6.3-r1.ebuild
@@ -15,10 +15,11 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="amd64 ~arm64 ~x86"
+S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"
+KEYWORDS="amd64 ~arm64 ~x86"
 IUSE="test"
 
 # Need to audit licenses of the binaries used for testing
@@ -45,8 +46,6 @@ PATCHES=(
"${FILESDIR}/${PN}-0.5.2-find-tree-sitter-parser.patch"
 )
 
-S="${WORKDIR}/${PN}-v${PV}"
-
 src_prepare() {
default
 

diff --git a/dev-util/rizin/rizin-0.7.1-r1.ebuild 
b/dev-util/rizin/rizin-0.7.1-r1.ebuild
index 549798343329..13d65081e186 100644
--- a/dev-util/rizin/rizin-0.7.1-r1.ebuild
+++ b/dev-util/rizin/rizin-0.7.1-r1.ebuild
@@ -15,10 +15,11 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
+S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~x86"
 IUSE="test"
 
 # Need to audit licenses of the binaries used for testing
@@ -46,8 +47,6 @@ PATCHES=(
"${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
 )
 
-S="${WORKDIR}/${PN}-v${PV}"
-
 src_prepare() {
default
 

diff --git a/dev-util/rizin/rizin-0.7.3.ebuild 
b/dev-util/rizin/rizin-0.7.3.ebuild
index 0ec214767a5e..7e7a1b76d7c5 100644
--- a/dev-util/rizin/rizin-0.7.3.ebuild
+++ b/dev-util/rizin/rizin-0.7.3.ebuild
@@ -15,10 +15,11 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
+S="${WORKDIR}/${PN}-v${PV}"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~x86"
 IUSE="test"
 
 # Need to audit licenses of the binaries used for testing
@@ -46,8 +47,6 @@ PATCHES=(
"${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
 )
 
-S="${WORKDIR}/${PN}-v${PV}"
-
 src_prepare() {
default
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2024-04-21 Thread John Helmert III
commit: ed0358f6ec265827af84cdb3640b3e81cce21102
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Apr 21 23:23:38 2024 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Apr 21 23:33:18 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed0358f6

dev-util/rizin: add 0.7.3

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |   1 +
 dev-util/rizin/rizin-0.7.3.ebuild | 100 ++
 2 files changed, 101 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 2bfe3632e358..6e5aa0656eb4 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,4 +1,5 @@
 DIST rizin-src-v0.6.3.tar.xz 15411052 BLAKE2B 
4ddde26dc2541917e1d16f38339bf1467b2148524a1365d739c417857ee856ecb7fbc9210a0f3b562a429c962e31f637bb88a0c0817f42a59868ed3093b0e902
 SHA512 
031ae1c5b43237d55b3e48d825d4bd9cda16a4a84a47464eb1745a02265a1412e2864345595c0dca7f8ea0cb348fe9760ea424556ff6b915ac8014a7f410b03c
 DIST rizin-src-v0.7.1.tar.xz 18941692 BLAKE2B 
d0384a272e5e8274c970dd9253d84204e8bc026de05ec63fe0252cb6fc9eaee9729bbf03ef3dba100c6e55c58e4a81f7755d7ecb15ee041aa9bfb4c53d30
 SHA512 
e59b6fd748e551f10169da9a04f7c04ffb017182d3eb5856467df3b167c6d9b387d0faccdb0cd97ee7321ac71179eb7d9a28fa954f34dc028ea8e4259211eac7
+DIST rizin-src-v0.7.3.tar.xz 18604220 BLAKE2B 
9bbfbd8cf86839dcfdc30beb12d4472abf68e7d8c81561f6124b4d8ac781242bbbe8b62e06d2873928830d2524203c18ab1c17fa35855ac2d344af7649b64b3c
 SHA512 
bad89888b2cb1ce1227ce629ff1209f18d1afb9da55685f0ea4ead7dd1b4dfbf8ed72c173048b2ee47362a10d5e20a6c34e09d0bbaa210f3873073c10ebc4dc1
 DIST rizin-testbins-1203a9a2f51e32337c8434d9f4f7c4543552e271.tar.gz 185572487 
BLAKE2B 
b274a58bebe0123bd8ab7b18a4e88833e7de53133d8f640d00b9efa953cf8ef766582acd5a0f65750ebb273be70d5cc1daf9b700cd6b9bfd4d464cf59ab735ba
 SHA512 
47e8993bea5d7805acb46c1c4e034524fe47d2b0b2471af00d3255f3e853430617658cd6b1f8a4706a748704a52646ec43495f0d4e80f16bce4aaf34e29539a4
 DIST rizin-testbins-903588ed69d7717069955322b31dad5e666b338a.tar.gz 181644100 
BLAKE2B 
ea491bea61a6d17fa2727e1b08b810be2bb99d05cf2afa4e97dc440a69a4fd376a39c25c6e86e9e2d499732b55e7c75e5eef39adef84f571e48d147e410d04e5
 SHA512 
fffef043d76440976e02e2b890138f57df849f507c0a7a48bd97b421fc1683e73696c50b6daddf906a53685eccfd7346e25881d3d498417e4e55b97ef56b8317

diff --git a/dev-util/rizin/rizin-0.7.3.ebuild 
b/dev-util/rizin/rizin-0.7.3.ebuild
new file mode 100644
index ..0ec214767a5e
--- /dev/null
+++ b/dev-util/rizin/rizin-0.7.3.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="1203a9a2f51e32337c8434d9f4f7c4543552e271"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="test? ( fetch ) !test? ( test )"
+
+# TODO: unbundle dev-libs/blake3
+RDEPEND="
+   app-arch/lz4:0=
+   app-arch/xz-utils
+   app-arch/zstd:=
+   >=dev-libs/capstone-5:0=
+   dev-libs/libmspack
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   dev-libs/libpcre2:0=
+   >=dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-apps/file
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   # https://github.com/rizinorg/rizin/issues/3459
+   sed -ie '/dyld_chained_ptr_arm64e_auth/d' test/unit/test_bin_mach0.c || 
die
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_libmspack=enabled
+   -Duse_sys_libzip=enabled
+   -Duse_sys_libzstd=enabled
+   -Duse_sys_lz4=enabled
+   -Duse_sys_lzma=enabled
+   -Duse_sys_magic=enabled
+ 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2024-04-15 Thread Matthew Smith
commit: b6b6cb3362d335e01aa19fd63ca2a79d07e25038
Author: Matthew Smith  gentoo  org>
AuthorDate: Mon Apr 15 07:13:55 2024 +
Commit: Matthew Smith  gentoo  org>
CommitDate: Mon Apr 15 07:25:20 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6b6cb33

dev-util/rizin: dev-libs/tree-sitter subslot

Signed-off-by: Matthew Smith  gentoo.org>

 dev-util/rizin/{rizin-0.6.3.ebuild => rizin-0.6.3-r1.ebuild} | 4 ++--
 dev-util/rizin/{rizin-0.7.1.ebuild => rizin-0.7.1-r1.ebuild} | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-util/rizin/rizin-0.6.3.ebuild 
b/dev-util/rizin/rizin-0.6.3-r1.ebuild
similarity index 97%
rename from dev-util/rizin/rizin-0.6.3.ebuild
rename to dev-util/rizin/rizin-0.6.3-r1.ebuild
index 80c181364210..4f402e6fed56 100644
--- a/dev-util/rizin/rizin-0.6.3.ebuild
+++ b/dev-util/rizin/rizin-0.6.3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -32,7 +32,7 @@ RDEPEND="
dev-libs/libmspack
dev-libs/libzip:0=
dev-libs/openssl:0=
-   >=dev-libs/tree-sitter-0.19.0
+   >=dev-libs/tree-sitter-0.19.0:=
dev-libs/xxhash
sys-apps/file
sys-libs/zlib:0=

diff --git a/dev-util/rizin/rizin-0.7.1.ebuild 
b/dev-util/rizin/rizin-0.7.1-r1.ebuild
similarity index 98%
rename from dev-util/rizin/rizin-0.7.1.ebuild
rename to dev-util/rizin/rizin-0.7.1-r1.ebuild
index 0ec214767a5e..549798343329 100644
--- a/dev-util/rizin/rizin-0.7.1.ebuild
+++ b/dev-util/rizin/rizin-0.7.1-r1.ebuild
@@ -34,7 +34,7 @@ RDEPEND="
dev-libs/libzip:0=
dev-libs/openssl:0=
dev-libs/libpcre2:0=
-   >=dev-libs/tree-sitter-0.19.0
+   >=dev-libs/tree-sitter-0.19.0:=
dev-libs/xxhash
sys-apps/file
sys-libs/zlib:0=



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2024-03-03 Thread John Helmert III
commit: e353611ab45ea96bb7289e1bb31dd2c40fea54e7
Author: John Helmert III  gentoo  org>
AuthorDate: Mon Mar  4 04:56:59 2024 +
Commit: John Helmert III  gentoo  org>
CommitDate: Mon Mar  4 05:21:27 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e353611a

dev-util/rizin: add 0.7.1

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |   2 +
 dev-util/rizin/rizin-0.7.1.ebuild | 100 ++
 2 files changed, 102 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 1d6bbfad14ab..655cb62f0692 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,3 +1,5 @@
 DIST rizin-src-v0.6.2.tar.xz 15409072 BLAKE2B 
9e90b07b5a3a5196e68e7c283dcfa214449e9cf1099c90b80a4e3712997bd6f28d5682de01c6f2b6ccafa749e74a4a9a8f7e6e0a313e926779394322a52b14ff
 SHA512 
2b75ebd1c94dd560bb48ffaf8cb56d765ceafd00a3a878f0ae8802a51f398202c501db4c2ec2caefa89a770d4e674743ff5b56fd21f06bf99d9bac4753580dce
 DIST rizin-src-v0.6.3.tar.xz 15411052 BLAKE2B 
4ddde26dc2541917e1d16f38339bf1467b2148524a1365d739c417857ee856ecb7fbc9210a0f3b562a429c962e31f637bb88a0c0817f42a59868ed3093b0e902
 SHA512 
031ae1c5b43237d55b3e48d825d4bd9cda16a4a84a47464eb1745a02265a1412e2864345595c0dca7f8ea0cb348fe9760ea424556ff6b915ac8014a7f410b03c
+DIST rizin-src-v0.7.1.tar.xz 18941692 BLAKE2B 
d0384a272e5e8274c970dd9253d84204e8bc026de05ec63fe0252cb6fc9eaee9729bbf03ef3dba100c6e55c58e4a81f7755d7ecb15ee041aa9bfb4c53d30
 SHA512 
e59b6fd748e551f10169da9a04f7c04ffb017182d3eb5856467df3b167c6d9b387d0faccdb0cd97ee7321ac71179eb7d9a28fa954f34dc028ea8e4259211eac7
+DIST rizin-testbins-1203a9a2f51e32337c8434d9f4f7c4543552e271.tar.gz 185572487 
BLAKE2B 
b274a58bebe0123bd8ab7b18a4e88833e7de53133d8f640d00b9efa953cf8ef766582acd5a0f65750ebb273be70d5cc1daf9b700cd6b9bfd4d464cf59ab735ba
 SHA512 
47e8993bea5d7805acb46c1c4e034524fe47d2b0b2471af00d3255f3e853430617658cd6b1f8a4706a748704a52646ec43495f0d4e80f16bce4aaf34e29539a4
 DIST rizin-testbins-903588ed69d7717069955322b31dad5e666b338a.tar.gz 181644100 
BLAKE2B 
ea491bea61a6d17fa2727e1b08b810be2bb99d05cf2afa4e97dc440a69a4fd376a39c25c6e86e9e2d499732b55e7c75e5eef39adef84f571e48d147e410d04e5
 SHA512 
fffef043d76440976e02e2b890138f57df849f507c0a7a48bd97b421fc1683e73696c50b6daddf906a53685eccfd7346e25881d3d498417e4e55b97ef56b8317

diff --git a/dev-util/rizin/rizin-0.7.1.ebuild 
b/dev-util/rizin/rizin-0.7.1.ebuild
new file mode 100644
index ..0ec214767a5e
--- /dev/null
+++ b/dev-util/rizin/rizin-0.7.1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="1203a9a2f51e32337c8434d9f4f7c4543552e271"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="test? ( fetch ) !test? ( test )"
+
+# TODO: unbundle dev-libs/blake3
+RDEPEND="
+   app-arch/lz4:0=
+   app-arch/xz-utils
+   app-arch/zstd:=
+   >=dev-libs/capstone-5:0=
+   dev-libs/libmspack
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   dev-libs/libpcre2:0=
+   >=dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-apps/file
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   # https://github.com/rizinorg/rizin/issues/3459
+   sed -ie '/dyld_chained_ptr_arm64e_auth/d' test/unit/test_bin_mach0.c || 
die
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_libmspack=enabled
+   -Duse_sys_libzip=enabled
+   -Duse_sys_libzstd=enabled
+   -Duse_sys_lz4=enabled
+   -Duse_sys_lzma=enabled
+   -Duse_sys_magic=enabled
+ 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2024-03-03 Thread John Helmert III
commit: 37c61166141438c3b86cc797705781e5668b9859
Author: John Helmert III  gentoo  org>
AuthorDate: Mon Mar  4 05:16:40 2024 +
Commit: John Helmert III  gentoo  org>
CommitDate: Mon Mar  4 05:21:28 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37c61166

dev-util/rizin: drop 0.6.2

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |  1 -
 dev-util/rizin/rizin-0.6.2.ebuild | 98 ---
 2 files changed, 99 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 655cb62f0692..2bfe3632e358 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,4 +1,3 @@
-DIST rizin-src-v0.6.2.tar.xz 15409072 BLAKE2B 
9e90b07b5a3a5196e68e7c283dcfa214449e9cf1099c90b80a4e3712997bd6f28d5682de01c6f2b6ccafa749e74a4a9a8f7e6e0a313e926779394322a52b14ff
 SHA512 
2b75ebd1c94dd560bb48ffaf8cb56d765ceafd00a3a878f0ae8802a51f398202c501db4c2ec2caefa89a770d4e674743ff5b56fd21f06bf99d9bac4753580dce
 DIST rizin-src-v0.6.3.tar.xz 15411052 BLAKE2B 
4ddde26dc2541917e1d16f38339bf1467b2148524a1365d739c417857ee856ecb7fbc9210a0f3b562a429c962e31f637bb88a0c0817f42a59868ed3093b0e902
 SHA512 
031ae1c5b43237d55b3e48d825d4bd9cda16a4a84a47464eb1745a02265a1412e2864345595c0dca7f8ea0cb348fe9760ea424556ff6b915ac8014a7f410b03c
 DIST rizin-src-v0.7.1.tar.xz 18941692 BLAKE2B 
d0384a272e5e8274c970dd9253d84204e8bc026de05ec63fe0252cb6fc9eaee9729bbf03ef3dba100c6e55c58e4a81f7755d7ecb15ee041aa9bfb4c53d30
 SHA512 
e59b6fd748e551f10169da9a04f7c04ffb017182d3eb5856467df3b167c6d9b387d0faccdb0cd97ee7321ac71179eb7d9a28fa954f34dc028ea8e4259211eac7
 DIST rizin-testbins-1203a9a2f51e32337c8434d9f4f7c4543552e271.tar.gz 185572487 
BLAKE2B 
b274a58bebe0123bd8ab7b18a4e88833e7de53133d8f640d00b9efa953cf8ef766582acd5a0f65750ebb273be70d5cc1daf9b700cd6b9bfd4d464cf59ab735ba
 SHA512 
47e8993bea5d7805acb46c1c4e034524fe47d2b0b2471af00d3255f3e853430617658cd6b1f8a4706a748704a52646ec43495f0d4e80f16bce4aaf34e29539a4

diff --git a/dev-util/rizin/rizin-0.6.2.ebuild 
b/dev-util/rizin/rizin-0.6.2.ebuild
deleted file mode 100644
index 80c181364210..
--- a/dev-util/rizin/rizin-0.6.2.ebuild
+++ /dev/null
@@ -1,98 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..11} )
-
-# This is the commit that the CI for the release commit used
-BINS_COMMIT="903588ed69d7717069955322b31dad5e666b338a"
-
-inherit meson python-any-r1
-
-DESCRIPTION="reverse engineering framework for binary analysis"
-HOMEPAGE="https://rizin.re/;
-
-SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
-   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="amd64 ~arm64 ~x86"
-
-LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0/${PV}"
-IUSE="test"
-
-# Need to audit licenses of the binaries used for testing
-RESTRICT="test? ( fetch ) !test? ( test )"
-
-# TODO: unbundle dev-libs/blake3
-RDEPEND="
-   app-arch/lz4:0=
-   app-arch/xz-utils
-   >=dev-libs/capstone-5:0=
-   dev-libs/libmspack
-   dev-libs/libzip:0=
-   dev-libs/openssl:0=
-   >=dev-libs/tree-sitter-0.19.0
-   dev-libs/xxhash
-   sys-apps/file
-   sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-BDEPEND="${PYTHON_DEPS}"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
-   "${FILESDIR}/${PN}-0.5.2-find-tree-sitter-parser.patch"
-)
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-src_prepare() {
-   default
-
-   local py_to_mangle=(
-   librz/core/cmd_descs/cmd_descs_generate.py
-   sys/clang-format.py
-   test/fuzz/scripts/fuzz_rz_asm.py
-   test/scripts/gdbserver.py
-   )
-
-   python_fix_shebang "${py_to_mangle[@]}"
-
-   # https://github.com/rizinorg/rizin/issues/3459
-   sed -ie '/dyld_chained_ptr_arm64e_auth/d' test/unit/test_bin_mach0.c || 
die
-
-   if use test; then
-   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
-   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
-   fi
-}
-
-src_configure() {
-   local emesonargs=(
-   -Dcli=enabled
-   -Duse_sys_capstone=enabled
-   -Duse_sys_libmspack=enabled
-   -Duse_sys_libzip=enabled
-   -Duse_sys_lz4=enabled
-   -Duse_sys_lzma=enabled
-   -Duse_sys_magic=enabled
-   # https://github.com/rizinorg/rizin/issues/3841
-   # -Duse_sys_openssl=enabled
-   -Duse_sys_tree_sitter=enabled
-   -Duse_sys_xxhash=enabled
-   -Duse_sys_zlib=enabled
-
-   $(meson_use test enable_tests)
-   $(meson_use test enable_rz_test)
-   )
-   meson_src_configure
-}
-
-src_test() {
-   # 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-12-14 Thread Sam James
commit: 8876b64ff05e5742f14243d7da4735e7c6cf55ec
Author: Sam James  gentoo  org>
AuthorDate: Fri Dec 15 07:36:11 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Dec 15 07:36:11 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8876b64f

dev-util/rizin: Stabilize 0.6.3 amd64, #919940

Signed-off-by: Sam James  gentoo.org>

 dev-util/rizin/rizin-0.6.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.6.3.ebuild 
b/dev-util/rizin/rizin-0.6.3.ebuild
index 6061d10b5c4a..80c181364210 100644
--- a/dev-util/rizin/rizin-0.6.3.ebuild
+++ b/dev-util/rizin/rizin-0.6.3.ebuild
@@ -15,7 +15,7 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~x86"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-10-25 Thread John Helmert III
commit: 4bbd89117de0e8ffad04af46b170b2225ed6cb47
Author: John Helmert III  gentoo  org>
AuthorDate: Wed Oct 25 18:15:50 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Wed Oct 25 18:15:50 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bbd8911

dev-util/rizin: add 0.6.3

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |  1 +
 dev-util/rizin/rizin-0.6.3.ebuild | 98 +++
 2 files changed, 99 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 11a47a0cdde8..1d6bbfad14ab 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,2 +1,3 @@
 DIST rizin-src-v0.6.2.tar.xz 15409072 BLAKE2B 
9e90b07b5a3a5196e68e7c283dcfa214449e9cf1099c90b80a4e3712997bd6f28d5682de01c6f2b6ccafa749e74a4a9a8f7e6e0a313e926779394322a52b14ff
 SHA512 
2b75ebd1c94dd560bb48ffaf8cb56d765ceafd00a3a878f0ae8802a51f398202c501db4c2ec2caefa89a770d4e674743ff5b56fd21f06bf99d9bac4753580dce
+DIST rizin-src-v0.6.3.tar.xz 15411052 BLAKE2B 
4ddde26dc2541917e1d16f38339bf1467b2148524a1365d739c417857ee856ecb7fbc9210a0f3b562a429c962e31f637bb88a0c0817f42a59868ed3093b0e902
 SHA512 
031ae1c5b43237d55b3e48d825d4bd9cda16a4a84a47464eb1745a02265a1412e2864345595c0dca7f8ea0cb348fe9760ea424556ff6b915ac8014a7f410b03c
 DIST rizin-testbins-903588ed69d7717069955322b31dad5e666b338a.tar.gz 181644100 
BLAKE2B 
ea491bea61a6d17fa2727e1b08b810be2bb99d05cf2afa4e97dc440a69a4fd376a39c25c6e86e9e2d499732b55e7c75e5eef39adef84f571e48d147e410d04e5
 SHA512 
fffef043d76440976e02e2b890138f57df849f507c0a7a48bd97b421fc1683e73696c50b6daddf906a53685eccfd7346e25881d3d498417e4e55b97ef56b8317

diff --git a/dev-util/rizin/rizin-0.6.3.ebuild 
b/dev-util/rizin/rizin-0.6.3.ebuild
new file mode 100644
index ..6061d10b5c4a
--- /dev/null
+++ b/dev-util/rizin/rizin-0.6.3.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="903588ed69d7717069955322b31dad5e666b338a"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="test? ( fetch ) !test? ( test )"
+
+# TODO: unbundle dev-libs/blake3
+RDEPEND="
+   app-arch/lz4:0=
+   app-arch/xz-utils
+   >=dev-libs/capstone-5:0=
+   dev-libs/libmspack
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   >=dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-apps/file
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
+   "${FILESDIR}/${PN}-0.5.2-find-tree-sitter-parser.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   # https://github.com/rizinorg/rizin/issues/3459
+   sed -ie '/dyld_chained_ptr_arm64e_auth/d' test/unit/test_bin_mach0.c || 
die
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_libmspack=enabled
+   -Duse_sys_libzip=enabled
+   -Duse_sys_lz4=enabled
+   -Duse_sys_lzma=enabled
+   -Duse_sys_magic=enabled
+   # https://github.com/rizinorg/rizin/issues/3841
+   # -Duse_sys_openssl=enabled
+   -Duse_sys_tree_sitter=enabled
+   -Duse_sys_xxhash=enabled
+   -Duse_sys_zlib=enabled
+
+   $(meson_use test enable_tests)
+   $(meson_use test enable_rz_test)
+   )
+   meson_src_configure
+}
+
+src_test() {
+   # We can select running either unit or integration tests, or all of
+   # them by not passing --suite. According to upstream, integration
+   # tests are more fragile and unit tests are sufficient for testing
+   # packaging, so only run those.
+   meson_src_test --suite unit
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-09-24 Thread John Helmert III
commit: 7ed1eca8367b81a777ad2c47f49e17e071890018
Author: John Helmert III  gentoo  org>
AuthorDate: Mon Sep 25 04:48:01 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Mon Sep 25 04:49:21 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ed1eca8

dev-util/rizin: stabilize 0.6.2 for amd64

Bug: https://bugs.gentoo.org/914338
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/rizin-0.6.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.6.2.ebuild 
b/dev-util/rizin/rizin-0.6.2.ebuild
index 6061d10b5c4a..80c181364210 100644
--- a/dev-util/rizin/rizin-0.6.2.ebuild
+++ b/dev-util/rizin/rizin-0.6.2.ebuild
@@ -15,7 +15,7 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~x86"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-09-10 Thread John Helmert III
commit: 7ad4125ae70e9d2162c4295f4acac761d8434257
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Sun Sep 10 17:44:59 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Sep 10 18:03:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ad4125a

dev-util/rizin: add 0.6.1

Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |  2 +
 dev-util/rizin/rizin-0.6.1.ebuild | 97 +++
 2 files changed, 99 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index f068b6f62e8c..47d7dc4fea32 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,4 +1,6 @@
 DIST rizin-src-v0.5.1.tar.xz 11770688 BLAKE2B 
31369497d5aa425aa6030ce404baa5d4a10ef2453a93f9b2c9f7d47135b5ffbc61618ef7e743acef3939bca2838a94637b7a1794ff44998608aee3f988301483
 SHA512 
c856112651bec91bb6e9f5580f60e3168f02a9f194bf567186a66398c162f59953ca8c3bf43441315356ca6ef077b7c56e4150e2dd8a79d4d08c5f789c549596
 DIST rizin-src-v0.5.2.tar.xz 11779644 BLAKE2B 
d74c02c1f58d099a0047a7a528b7e182980901bc1bf2722aef259e03ddf9af908c3ebcde4f1268fcbd07125a21f064259601a54c6b8413e19f6b85c95113cf3d
 SHA512 
2fbd3873c7725d4fa1dee53d685c4a5d372013f300cd19dd92752b82987f049a4eba77b4d4ae33b576678714752147355ac486951949a35275cc3fdc5447a351
+DIST rizin-src-v0.6.1.tar.xz 15397540 BLAKE2B 
d641279505be2f58b1874d431922066e09affef20e18025c0d3781dbe1fad8f12db53335464ad645344daa25a0ed61fa842fa96bcca6c4832b359b424b5f09a3
 SHA512 
56ed3c9f7e4e689dfc27461b5a2de9cc6d14fec2e4cc17af6a011975fbecd4f2ec44e8dd26f0ce8f99a448b75514f6083177acfd073182bbdf921bc264fa9561
 DIST rizin-testbins-0264ae4ee5bd606ec6c6a539255eeb57ce2c82c2.tar.gz 179281553 
BLAKE2B 
b86278589da2f8e5859b0f4b16e2667a6e7477c9a889158da5a2c1a1b6e29af4798d56a22dd4c3e23aec1908e7b444ca999502e73f8d8ccf4e0bf2a969380564
 SHA512 
ae11b6da5cb995f8f1cc996a7b772234b3e7e7c2b0695d0b223657ba839c82dbbcb390600aeb0d16c7c61a5037ba9d0739df79efd730c1b96392cfc1e6f6613d
 DIST rizin-testbins-d66f95359fe830514267f446975374752201c3f1.tar.gz 179428523 
BLAKE2B 
9d18c2f49460e26809bc526eab9d7bfed15d3fb3f94b22d327f9981547130f82107259f2942e098834cd8ad755e8eadb4b8459a10070105ec116b16fbac19fe3
 SHA512 
cdeefc6e4103e99c4581a45475c2326505f8003c80a158a78be32b27dfa65fe42a80bbf25ffc47c1f8abdd50faba0fb073a7236395ab67eafb0202695877c4ba
+DIST rizin-testbins-e959eb18182724809b78ad94cb7a9cdfbc5e3a6f.tar.gz 181638434 
BLAKE2B 
87c853d5e8b892cc5487bc4b2b7a09bd68292d0dc15eeb94f00aa12c3cdea2b4f3e147e62fc2de1beeeaec941b85981843310bd981f8679993db9473e638db31
 SHA512 
55bd5c2e91856e16318c3e342302f1e6dc9bb8059dbd5aee6f1643f08fe710e32ab91f084fdfce1746a9fbc1dcdfb55b01135b4de74bca6c5b99c7a06bf46ae6

diff --git a/dev-util/rizin/rizin-0.6.1.ebuild 
b/dev-util/rizin/rizin-0.6.1.ebuild
new file mode 100644
index ..5df5dce6965d
--- /dev/null
+++ b/dev-util/rizin/rizin-0.6.1.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="e959eb18182724809b78ad94cb7a9cdfbc5e3a6f"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="test? ( fetch ) !test? ( test )"
+
+# TODO: unbundle dev-libs/blake3
+RDEPEND="
+   app-arch/lz4:0=
+   app-arch/xz-utils
+   >=dev-libs/capstone-5:0=
+   dev-libs/libmspack
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   >=dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-apps/file
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
+   "${FILESDIR}/${PN}-0.5.2-find-tree-sitter-parser.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   # https://github.com/rizinorg/rizin/issues/3459
+   sed -ie '/dyld_chained_ptr_arm64e_auth/d' test/unit/test_bin_mach0.c || 
die
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-09-10 Thread John Helmert III
commit: 4c26f4210350b8ecd4d6369284a7416eb0e1b644
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Sep 10 17:45:38 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Sep 10 18:03:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c26f421

dev-util/rizin: temporarily disable system openssl

There's an upstream bug around using openssl's code paths for the md4
hash tests. Disabling system openssl use makes rizin use its own code
paths rather than a bundled openssl.

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/rizin-0.6.1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.6.1.ebuild 
b/dev-util/rizin/rizin-0.6.1.ebuild
index 5c2f92105259..c487f6213887 100644
--- a/dev-util/rizin/rizin-0.6.1.ebuild
+++ b/dev-util/rizin/rizin-0.6.1.ebuild
@@ -77,7 +77,8 @@ src_configure() {
-Duse_sys_lz4=enabled
-Duse_sys_lzma=enabled
-Duse_sys_magic=enabled
-   -Duse_sys_openssl=enabled
+   # https://github.com/rizinorg/rizin/issues/3841
+   # -Duse_sys_openssl=enabled
-Duse_sys_tree_sitter=enabled
-Duse_sys_xxhash=enabled
-Duse_sys_zlib=enabled



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-09-10 Thread John Helmert III
commit: f2cee4e88141419da9816f23f70196140a57c233
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Sep 10 17:45:29 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Sep 10 18:03:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2cee4e8

dev-util/rizin: disable py3.12

See the discussion in bug #911418.

Bug: https://bugs.gentoo.org/911418
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/rizin-0.6.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.6.1.ebuild 
b/dev-util/rizin/rizin-0.6.1.ebuild
index 5df5dce6965d..5c2f92105259 100644
--- a/dev-util/rizin/rizin-0.6.1.ebuild
+++ b/dev-util/rizin/rizin-0.6.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..11} )
 
 # This is the commit that the CI for the release commit used
 BINS_COMMIT="e959eb18182724809b78ad94cb7a9cdfbc5e3a6f"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/, dev-util/rizin/files/

2023-08-30 Thread Sam James
commit: 7fdc1251b7205263da7b5360aee17a5c5f82f7c5
Author: Sam James  gentoo  org>
AuthorDate: Thu Aug 31 04:19:31 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug 31 04:19:31 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fdc1251

dev-util/rizin: fix build w/ >=tree-sitter-0.20.8-r1

>=tree-sitter-0.20.8-r1 doesn't install parser.h anymore because it may be
mismatched with the version used to build the parser. Use one bundled with
rizin-shell-parser instead.

This should propagate into rizin-shell-parser when they regenerate
with a newer tree-sitter release (once one is made).

See also:
* https://github.com/tree-sitter/tree-sitter/pull/2573
* https://github.com/tree-sitter/tree-sitter/pull/2574

Bug: https://bugs.gentoo.org/912716
Closes: https://bugs.gentoo.org/913343
Signed-off-by: Sam James  gentoo.org>

 .../rizin-0.5.2-find-tree-sitter-parser.patch  | 33 ++
 dev-util/rizin/rizin-0.5.2.ebuild  |  1 +
 2 files changed, 34 insertions(+)

diff --git a/dev-util/rizin/files/rizin-0.5.2-find-tree-sitter-parser.patch 
b/dev-util/rizin/files/rizin-0.5.2-find-tree-sitter-parser.patch
new file mode 100644
index ..27811e9930ee
--- /dev/null
+++ b/dev-util/rizin/files/rizin-0.5.2-find-tree-sitter-parser.patch
@@ -0,0 +1,33 @@
+https://bugs.gentoo.org/913343
+
+>=tree-sitter-0.20.8-r1 doesn't install parser.h anymore because it may be
+mismatched with the version used to build the parser. Use one bundled with
+rizin-shell-parser instead.
+
+This should propagate into rizin-shell-parser when they regenerate
+with a newer tree-sitter release (once one is made).
+
+See also:
+* https://bugs.gentoo.org/912716
+* https://bugs.gentoo.org/913343
+* https://github.com/tree-sitter/tree-sitter/pull/2573
+* https://github.com/tree-sitter/tree-sitter/pull/2574
+--- a/subprojects/rizin-shell-parser/src/parser.c
 b/subprojects/rizin-shell-parser/src/parser.c
+@@ -1,4 +1,4 @@
+-#include 
++#include "tree_sitter/parser.h"
+ 
+ #if defined(__GNUC__) || defined(__clang__)
+ #pragma GCC diagnostic push
+--- a/subprojects/rizin-shell-parser/src/scanner.c
 b/subprojects/rizin-shell-parser/src/scanner.c
+@@ -1,7 +1,7 @@
+ // SPDX-FileCopyrightText: 2020 ret2libc 
+ // SPDX-License-Identifier: LGPL-3.0-only
+ 
+-#include 
++#include "tree_sitter/parser.h"
+ #include 
+ #include 
+ #include 

diff --git a/dev-util/rizin/rizin-0.5.2.ebuild 
b/dev-util/rizin/rizin-0.5.2.ebuild
index 9d91882992da..3a1e1579d4fb 100644
--- a/dev-util/rizin/rizin-0.5.2.ebuild
+++ b/dev-util/rizin/rizin-0.5.2.ebuild
@@ -41,6 +41,7 @@ BDEPEND="${PYTHON_DEPS}"
 
 PATCHES=(
"${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
+   "${FILESDIR}/${PN}-0.5.2-find-tree-sitter-parser.patch"
 )
 
 S="${WORKDIR}/${PN}-v${PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-08-30 Thread Sam James
commit: 061677a848a4acbdc35b1d55dca4ed6ebe739157
Author: Sam James  gentoo  org>
AuthorDate: Thu Aug 31 04:20:25 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug 31 04:20:25 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=061677a8

dev-util/rizin: add note to unbundle dev-libs/blake3

It was recently added to the tree but no meson option exists for it yet.

Signed-off-by: Sam James  gentoo.org>

 dev-util/rizin/rizin-0.5.2.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-util/rizin/rizin-0.5.2.ebuild 
b/dev-util/rizin/rizin-0.5.2.ebuild
index 3a1e1579d4fb..4efb83b695d7 100644
--- a/dev-util/rizin/rizin-0.5.2.ebuild
+++ b/dev-util/rizin/rizin-0.5.2.ebuild
@@ -24,6 +24,7 @@ IUSE="test"
 # Need to audit licenses of the binaries used for testing
 RESTRICT="test? ( fetch ) !test? ( test )"
 
+# TODO: unbundle dev-libs/blake3
 RDEPEND="
app-arch/lz4:0=
app-arch/xz-utils



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-08-30 Thread Sam James
commit: 2702a9b7ab1856a037677227cfab9e9c74ff1ffb
Author: Sam James  gentoo  org>
AuthorDate: Thu Aug 31 04:20:56 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug 31 04:20:56 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2702a9b7

dev-util/rizin: disable py3.9

Signed-off-by: Sam James  gentoo.org>

 dev-util/rizin/rizin-0.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.5.2.ebuild 
b/dev-util/rizin/rizin-0.5.2.ebuild
index 4efb83b695d7..70326a2a22c7 100644
--- a/dev-util/rizin/rizin-0.5.2.ebuild
+++ b/dev-util/rizin/rizin-0.5.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..11} )
 
 # This is the commit that the CI for the release commit used
 BINS_COMMIT="d66f95359fe830514267f446975374752201c3f1"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-04-30 Thread John Helmert III
commit: a397ddbb32e337e014f551a80a13310ca070b2f7
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Apr 30 23:34:03 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Apr 30 23:34:50 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a397ddbb

dev-util/rizin: drop 0.4.1

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |  2 -
 dev-util/rizin/rizin-0.4.1.ebuild | 94 ---
 2 files changed, 96 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 08b725c3d8c3..f068b6f62e8c 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,6 +1,4 @@
-DIST rizin-src-v0.4.1.tar.xz 11453808 BLAKE2B 
dcae21320e2533904d9a337d4fb9cc9a450439753106dc5c341e3ca7c788f0a44034340eb0dfe3fad4f1d8a7ebe873720d42d70ce343e8c7b953d4d148a38da2
 SHA512 
565358e11fd4db44ec7f8c25313a1cfc726c38a17afcb699c3fc2af520242fb343ea4a267f0a8e35bdc08e9a765a6a17ec7b8eaba9f9ad9ef5a7dcfe01c7354c
 DIST rizin-src-v0.5.1.tar.xz 11770688 BLAKE2B 
31369497d5aa425aa6030ce404baa5d4a10ef2453a93f9b2c9f7d47135b5ffbc61618ef7e743acef3939bca2838a94637b7a1794ff44998608aee3f988301483
 SHA512 
c856112651bec91bb6e9f5580f60e3168f02a9f194bf567186a66398c162f59953ca8c3bf43441315356ca6ef077b7c56e4150e2dd8a79d4d08c5f789c549596
 DIST rizin-src-v0.5.2.tar.xz 11779644 BLAKE2B 
d74c02c1f58d099a0047a7a528b7e182980901bc1bf2722aef259e03ddf9af908c3ebcde4f1268fcbd07125a21f064259601a54c6b8413e19f6b85c95113cf3d
 SHA512 
2fbd3873c7725d4fa1dee53d685c4a5d372013f300cd19dd92752b82987f049a4eba77b4d4ae33b576678714752147355ac486951949a35275cc3fdc5447a351
 DIST rizin-testbins-0264ae4ee5bd606ec6c6a539255eeb57ce2c82c2.tar.gz 179281553 
BLAKE2B 
b86278589da2f8e5859b0f4b16e2667a6e7477c9a889158da5a2c1a1b6e29af4798d56a22dd4c3e23aec1908e7b444ca999502e73f8d8ccf4e0bf2a969380564
 SHA512 
ae11b6da5cb995f8f1cc996a7b772234b3e7e7c2b0695d0b223657ba839c82dbbcb390600aeb0d16c7c61a5037ba9d0739df79efd730c1b96392cfc1e6f6613d
-DIST rizin-testbins-aef7f7b714a696f382f55b8cbbf94c5b69518de3.tar.gz 178497762 
BLAKE2B 
8c82a537a58e65d35bd8b309311c4377b5996ff4b650fc6cff4cf347e04fbe4b2ec0e88f03ff43572c8e99675186b05b393b7da070a60ab107c3cca829d2544b
 SHA512 
2745b58646963c28a45b46e8e709845c355863e61cf796aeb3d2e617f1bf2f9916a4b106cd08f48b1ef6e36f7f38624b5977dcd62c921124b0a1122b7220baa8
 DIST rizin-testbins-d66f95359fe830514267f446975374752201c3f1.tar.gz 179428523 
BLAKE2B 
9d18c2f49460e26809bc526eab9d7bfed15d3fb3f94b22d327f9981547130f82107259f2942e098834cd8ad755e8eadb4b8459a10070105ec116b16fbac19fe3
 SHA512 
cdeefc6e4103e99c4581a45475c2326505f8003c80a158a78be32b27dfa65fe42a80bbf25ffc47c1f8abdd50faba0fb073a7236395ab67eafb0202695877c4ba

diff --git a/dev-util/rizin/rizin-0.4.1.ebuild 
b/dev-util/rizin/rizin-0.4.1.ebuild
deleted file mode 100644
index 26707156eddb..
--- a/dev-util/rizin/rizin-0.4.1.ebuild
+++ /dev/null
@@ -1,94 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..11} )
-
-# This is the commit that the CI for the release commit used
-BINS_COMMIT="aef7f7b714a696f382f55b8cbbf94c5b69518de3"
-
-inherit meson python-any-r1
-
-DESCRIPTION="reverse engineering framework for binary analysis"
-HOMEPAGE="https://rizin.re/;
-
-SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
-   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="amd64 ~arm64 ~x86"
-
-LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0/${PV}"
-IUSE="test"
-
-# Need to audit licenses of the binaries used for testing
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   sys-apps/file
-   app-arch/lz4:0=
-   dev-libs/capstone:0=
-   dev-libs/libuv:0=
-   dev-libs/libzip:0=
-   dev-libs/openssl:0=
-   >=dev-libs/tree-sitter-0.19.0
-   dev-libs/xxhash
-   sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-BDEPEND="${PYTHON_DEPS}"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
-)
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-src_prepare() {
-   default
-
-   local py_to_mangle=(
-   librz/core/cmd_descs/cmd_descs_generate.py
-   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
-   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
-   subprojects/lz4-1.9.3/tests/test-lz4-list.py
-   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
-   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
-   sys/clang-format.py
-   test/fuzz/scripts/fuzz_rz_asm.py
-   test/scripts/gdbserver.py
-   )
-
-   python_fix_shebang "${py_to_mangle[@]}"
-
-   if use test; then
-   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
-   cp -r 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-04-30 Thread John Helmert III
commit: e3d826e0a2ec5950dd9f690cd384b46bcffc5e1c
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Apr 30 23:32:29 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Apr 30 23:34:50 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3d826e0

dev-util/rizin: stabilize 0.5.2 for amd64

Bug: https://bugs.gentoo.org/904413
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/rizin-0.5.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.5.2.ebuild 
b/dev-util/rizin/rizin-0.5.2.ebuild
index db47e015c5df..9d91882992da 100644
--- a/dev-util/rizin/rizin-0.5.2.ebuild
+++ b/dev-util/rizin/rizin-0.5.2.ebuild
@@ -15,7 +15,7 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~x86"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-04-19 Thread Sam James
commit: f3ca5b1e848b03ca59155651ff4f924e6c258240
Author: Sam James  gentoo  org>
AuthorDate: Wed Apr 19 06:06:32 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Apr 19 06:06:49 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3ca5b1e

dev-util/rizin: Stabilize 0.5.1 amd64, #904542

Signed-off-by: Sam James  gentoo.org>

 dev-util/rizin/rizin-0.5.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.5.1.ebuild 
b/dev-util/rizin/rizin-0.5.1.ebuild
index 122296d19b05..b236c67f527b 100644
--- a/dev-util/rizin/rizin-0.5.1.ebuild
+++ b/dev-util/rizin/rizin-0.5.1.ebuild
@@ -15,7 +15,7 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~x86"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-04-16 Thread John Helmert III
commit: 2218db506d4083a0a6a91f37ceab5057f4a93f4b
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Apr 16 18:08:31 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Apr 16 18:42:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2218db50

dev-util/rizin: add 0.5.2 without broken tests

Bug: https://bugs.gentoo.org/904413
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |  2 +
 dev-util/rizin/rizin-0.5.2.ebuild | 95 +++
 2 files changed, 97 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 518a6ae49d4c..08b725c3d8c3 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,4 +1,6 @@
 DIST rizin-src-v0.4.1.tar.xz 11453808 BLAKE2B 
dcae21320e2533904d9a337d4fb9cc9a450439753106dc5c341e3ca7c788f0a44034340eb0dfe3fad4f1d8a7ebe873720d42d70ce343e8c7b953d4d148a38da2
 SHA512 
565358e11fd4db44ec7f8c25313a1cfc726c38a17afcb699c3fc2af520242fb343ea4a267f0a8e35bdc08e9a765a6a17ec7b8eaba9f9ad9ef5a7dcfe01c7354c
 DIST rizin-src-v0.5.1.tar.xz 11770688 BLAKE2B 
31369497d5aa425aa6030ce404baa5d4a10ef2453a93f9b2c9f7d47135b5ffbc61618ef7e743acef3939bca2838a94637b7a1794ff44998608aee3f988301483
 SHA512 
c856112651bec91bb6e9f5580f60e3168f02a9f194bf567186a66398c162f59953ca8c3bf43441315356ca6ef077b7c56e4150e2dd8a79d4d08c5f789c549596
+DIST rizin-src-v0.5.2.tar.xz 11779644 BLAKE2B 
d74c02c1f58d099a0047a7a528b7e182980901bc1bf2722aef259e03ddf9af908c3ebcde4f1268fcbd07125a21f064259601a54c6b8413e19f6b85c95113cf3d
 SHA512 
2fbd3873c7725d4fa1dee53d685c4a5d372013f300cd19dd92752b82987f049a4eba77b4d4ae33b576678714752147355ac486951949a35275cc3fdc5447a351
 DIST rizin-testbins-0264ae4ee5bd606ec6c6a539255eeb57ce2c82c2.tar.gz 179281553 
BLAKE2B 
b86278589da2f8e5859b0f4b16e2667a6e7477c9a889158da5a2c1a1b6e29af4798d56a22dd4c3e23aec1908e7b444ca999502e73f8d8ccf4e0bf2a969380564
 SHA512 
ae11b6da5cb995f8f1cc996a7b772234b3e7e7c2b0695d0b223657ba839c82dbbcb390600aeb0d16c7c61a5037ba9d0739df79efd730c1b96392cfc1e6f6613d
 DIST rizin-testbins-aef7f7b714a696f382f55b8cbbf94c5b69518de3.tar.gz 178497762 
BLAKE2B 
8c82a537a58e65d35bd8b309311c4377b5996ff4b650fc6cff4cf347e04fbe4b2ec0e88f03ff43572c8e99675186b05b393b7da070a60ab107c3cca829d2544b
 SHA512 
2745b58646963c28a45b46e8e709845c355863e61cf796aeb3d2e617f1bf2f9916a4b106cd08f48b1ef6e36f7f38624b5977dcd62c921124b0a1122b7220baa8
+DIST rizin-testbins-d66f95359fe830514267f446975374752201c3f1.tar.gz 179428523 
BLAKE2B 
9d18c2f49460e26809bc526eab9d7bfed15d3fb3f94b22d327f9981547130f82107259f2942e098834cd8ad755e8eadb4b8459a10070105ec116b16fbac19fe3
 SHA512 
cdeefc6e4103e99c4581a45475c2326505f8003c80a158a78be32b27dfa65fe42a80bbf25ffc47c1f8abdd50faba0fb073a7236395ab67eafb0202695877c4ba

diff --git a/dev-util/rizin/rizin-0.5.2.ebuild 
b/dev-util/rizin/rizin-0.5.2.ebuild
new file mode 100644
index ..db47e015c5df
--- /dev/null
+++ b/dev-util/rizin/rizin-0.5.2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="d66f95359fe830514267f446975374752201c3f1"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="test? ( fetch ) !test? ( test )"
+
+RDEPEND="
+   app-arch/lz4:0=
+   app-arch/xz-utils
+   dev-libs/capstone:0=
+   dev-libs/libmspack
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   >=dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-apps/file
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   # https://github.com/rizinorg/rizin/issues/3459
+   sed -ie '/dyld_chained_ptr_arm64e_auth/d' test/unit/test_bin_mach0.c || 
die
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/, dev-util/rizin/files/

2023-02-21 Thread John Helmert III
commit: 9184c6dd6297775f6e1f6b81da9325eb5cc71056
Author: John Helmert III  gentoo  org>
AuthorDate: Wed Feb 22 01:05:11 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Wed Feb 22 01:05:52 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9184c6dd

dev-util/rizin: add 0.5.1, drop 0.5.0-r1

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest|  2 +-
 .../files/rizin-0.5.0-capstone-include-path.patch  | 52 --
 .../{rizin-0.5.0-r1.ebuild => rizin-0.5.1.ebuild}  |  1 -
 3 files changed, 1 insertion(+), 54 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 3507cb8b84c3..518a6ae49d4c 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,4 +1,4 @@
 DIST rizin-src-v0.4.1.tar.xz 11453808 BLAKE2B 
dcae21320e2533904d9a337d4fb9cc9a450439753106dc5c341e3ca7c788f0a44034340eb0dfe3fad4f1d8a7ebe873720d42d70ce343e8c7b953d4d148a38da2
 SHA512 
565358e11fd4db44ec7f8c25313a1cfc726c38a17afcb699c3fc2af520242fb343ea4a267f0a8e35bdc08e9a765a6a17ec7b8eaba9f9ad9ef5a7dcfe01c7354c
-DIST rizin-src-v0.5.0.tar.xz 11774892 BLAKE2B 
ae64f2b14829eaedeff2e4ef9986778e311edddff7aac7b9a05a84d09015e13e67725e170d79f1f6bc85933726631ad76df2986e5c8fa64f3387418099296c2f
 SHA512 
690a3220b808d41bcf56752556233d0d0b68b458c767441ce74f35358b2b4fa5e46a483a220d635e53bd287a0e10d16e5c141ba5cb916b984683f42eef10fcff
+DIST rizin-src-v0.5.1.tar.xz 11770688 BLAKE2B 
31369497d5aa425aa6030ce404baa5d4a10ef2453a93f9b2c9f7d47135b5ffbc61618ef7e743acef3939bca2838a94637b7a1794ff44998608aee3f988301483
 SHA512 
c856112651bec91bb6e9f5580f60e3168f02a9f194bf567186a66398c162f59953ca8c3bf43441315356ca6ef077b7c56e4150e2dd8a79d4d08c5f789c549596
 DIST rizin-testbins-0264ae4ee5bd606ec6c6a539255eeb57ce2c82c2.tar.gz 179281553 
BLAKE2B 
b86278589da2f8e5859b0f4b16e2667a6e7477c9a889158da5a2c1a1b6e29af4798d56a22dd4c3e23aec1908e7b444ca999502e73f8d8ccf4e0bf2a969380564
 SHA512 
ae11b6da5cb995f8f1cc996a7b772234b3e7e7c2b0695d0b223657ba839c82dbbcb390600aeb0d16c7c61a5037ba9d0739df79efd730c1b96392cfc1e6f6613d
 DIST rizin-testbins-aef7f7b714a696f382f55b8cbbf94c5b69518de3.tar.gz 178497762 
BLAKE2B 
8c82a537a58e65d35bd8b309311c4377b5996ff4b650fc6cff4cf347e04fbe4b2ec0e88f03ff43572c8e99675186b05b393b7da070a60ab107c3cca829d2544b
 SHA512 
2745b58646963c28a45b46e8e709845c355863e61cf796aeb3d2e617f1bf2f9916a4b106cd08f48b1ef6e36f7f38624b5977dcd62c921124b0a1122b7220baa8

diff --git a/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch 
b/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch
deleted file mode 100644
index 485a131cf483..
--- a/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-Upstreamed at: https://github.com/rizinorg/rizin/pull/3380
-
-commit e1a65044139443c43a14c8304d095d9d6cddae56
-Author: John Helmert III 
-Date:   Sat Feb 18 18:22:42 2023 -0600
-
-fix capstone include paths
-
-capstone include paths were adjusted in
-2b8104bc5e763ed841d6dbffacbeaf02e86b8421, and this wasn't picked up in
-the "PPC uplifting" commit, leading to a build failure with system
-capstone.
-
-Also fix the path of the ppc.h include, which seems to mistakenly use
-capstone's ppc.h when building with bundled capstone.
-
-Fixes: b46e7bd4f2 ("PPC uplifting to RzIL (#2823)")
-Signed-off-by: John Helmert III 
-
-diff --git a/librz/analysis/arch/ppc/ppc_il.h 
b/librz/analysis/arch/ppc/ppc_il.h
-index ee91eb050b..7871414cef 100644
 a/librz/analysis/arch/ppc/ppc_il.h
-+++ b/librz/analysis/arch/ppc/ppc_il.h
-@@ -9,7 +9,7 @@
- #include 
- #include 
- #include 
--#include 
-+#include 
- 
- #define PPC_BYTE  8
- #define PPC_HWORD 16
-diff --git a/librz/analysis/arch/ppc/ppc_il_ops.c 
b/librz/analysis/arch/ppc/ppc_il_ops.c
-index f7a2261093..31a730c009 100644
 a/librz/analysis/arch/ppc/ppc_il_ops.c
-+++ b/librz/analysis/arch/ppc/ppc_il_ops.c
-@@ -1,13 +1,13 @@
- // SPDX-FileCopyrightText: 2022 Rot127 
- // SPDX-License-Identifier: LGPL-3.0-only
- 
--#include "ppc.h"
-+#include "opcode/ppc.h"
- #include "ppc_il.h"
- #include "ppc_analysis.h"
- #include "rz_types_base.h"
- #include 
- #include 
--#include 
-+#include 
- #include 
- 
- static RzILOpEffect *load_op(RZ_BORROW csh handle, RZ_BORROW cs_insn *insn, 
const cs_mode mode) {

diff --git a/dev-util/rizin/rizin-0.5.0-r1.ebuild 
b/dev-util/rizin/rizin-0.5.1.ebuild
similarity index 97%
rename from dev-util/rizin/rizin-0.5.0-r1.ebuild
rename to dev-util/rizin/rizin-0.5.1.ebuild
index 7144a4dcffb4..122296d19b05 100644
--- a/dev-util/rizin/rizin-0.5.0-r1.ebuild
+++ b/dev-util/rizin/rizin-0.5.1.ebuild
@@ -41,7 +41,6 @@ BDEPEND="${PYTHON_DEPS}"
 
 PATCHES=(
"${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
-   "${FILESDIR}/${PN}-0.5.0-capstone-include-path.patch"
 )
 
 S="${WORKDIR}/${PN}-v${PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-02-19 Thread John Helmert III
commit: eb99c47fd51e71b5a4ddaf6cffa2b55e69e3e802
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Feb 19 16:44:18 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Feb 19 16:45:01 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb99c47f

dev-util/rizin: fix dependencies

Closes: https://bugs.gentoo.org/895378
Signed-off-by: John Helmert III  gentoo.org>

 .../rizin/{rizin-0.5.0.ebuild => rizin-0.5.0-r1.ebuild} | 13 -
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/dev-util/rizin/rizin-0.5.0.ebuild 
b/dev-util/rizin/rizin-0.5.0-r1.ebuild
similarity index 95%
rename from dev-util/rizin/rizin-0.5.0.ebuild
rename to dev-util/rizin/rizin-0.5.0-r1.ebuild
index 5bb4702d4c90..7144a4dcffb4 100644
--- a/dev-util/rizin/rizin-0.5.0.ebuild
+++ b/dev-util/rizin/rizin-0.5.0-r1.ebuild
@@ -25,14 +25,15 @@ IUSE="test"
 RESTRICT="test? ( fetch ) !test? ( test )"
 
 RDEPEND="
-   sys-apps/file
app-arch/lz4:0=
+   app-arch/xz-utils
dev-libs/capstone:0=
-   dev-libs/libuv:0=
+   dev-libs/libmspack
dev-libs/libzip:0=
dev-libs/openssl:0=
>=dev-libs/tree-sitter-0.19.0
dev-libs/xxhash
+   sys-apps/file
sys-libs/zlib:0=
 "
 DEPEND="${RDEPEND}"
@@ -67,13 +68,15 @@ src_configure() {
local emesonargs=(
-Dcli=enabled
-Duse_sys_capstone=enabled
-   -Duse_sys_magic=enabled
+   -Duse_sys_libmspack=enabled
-Duse_sys_libzip=enabled
-   -Duse_sys_zlib=enabled
-Duse_sys_lz4=enabled
-   -Duse_sys_xxhash=enabled
+   -Duse_sys_lzma=enabled
+   -Duse_sys_magic=enabled
-Duse_sys_openssl=enabled
-Duse_sys_tree_sitter=enabled
+   -Duse_sys_xxhash=enabled
+   -Duse_sys_zlib=enabled
 
$(meson_use test enable_tests)
$(meson_use test enable_rz_test)



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2023-02-18 Thread John Helmert III
commit: 518e078d14bed66819f979d2012bff69a838c205
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Feb 19 00:52:12 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Feb 19 00:57:56 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=518e078d

dev-util/rizin: add a workaround for portage display issue

Bug: https://bugs.gentoo.org/830763
Thanks-To: Maciej Barć  gentoo.org>
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/rizin-0.4.1.ebuild | 4 ++--
 dev-util/rizin/rizin-0.5.0.ebuild | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-util/rizin/rizin-0.4.1.ebuild 
b/dev-util/rizin/rizin-0.4.1.ebuild
index 1fcd320b67bf..26707156eddb 100644
--- a/dev-util/rizin/rizin-0.4.1.ebuild
+++ b/dev-util/rizin/rizin-0.4.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -22,7 +22,7 @@ SLOT="0/${PV}"
 IUSE="test"
 
 # Need to audit licenses of the binaries used for testing
-RESTRICT="fetch !test? ( test )"
+RESTRICT="!test? ( test )"
 
 RDEPEND="
sys-apps/file

diff --git a/dev-util/rizin/rizin-0.5.0.ebuild 
b/dev-util/rizin/rizin-0.5.0.ebuild
index 7b26e28e6034..5bb4702d4c90 100644
--- a/dev-util/rizin/rizin-0.5.0.ebuild
+++ b/dev-util/rizin/rizin-0.5.0.ebuild
@@ -22,7 +22,7 @@ SLOT="0/${PV}"
 IUSE="test"
 
 # Need to audit licenses of the binaries used for testing
-RESTRICT="!test? ( test )"
+RESTRICT="test? ( fetch ) !test? ( test )"
 
 RDEPEND="
sys-apps/file



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/, dev-util/rizin/files/

2023-02-18 Thread John Helmert III
commit: 6c7380c8caebd3b4d7533c65384773fa8e57d6e4
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Feb 19 00:51:46 2023 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Feb 19 00:57:56 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c7380c8

dev-util/rizin: add 0.5.0

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest|  2 +
 .../files/rizin-0.5.0-capstone-include-path.patch  | 52 +
 dev-util/rizin/rizin-0.5.0.ebuild  | 90 ++
 3 files changed, 144 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index aaaf7a30d602..3507cb8b84c3 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,2 +1,4 @@
 DIST rizin-src-v0.4.1.tar.xz 11453808 BLAKE2B 
dcae21320e2533904d9a337d4fb9cc9a450439753106dc5c341e3ca7c788f0a44034340eb0dfe3fad4f1d8a7ebe873720d42d70ce343e8c7b953d4d148a38da2
 SHA512 
565358e11fd4db44ec7f8c25313a1cfc726c38a17afcb699c3fc2af520242fb343ea4a267f0a8e35bdc08e9a765a6a17ec7b8eaba9f9ad9ef5a7dcfe01c7354c
+DIST rizin-src-v0.5.0.tar.xz 11774892 BLAKE2B 
ae64f2b14829eaedeff2e4ef9986778e311edddff7aac7b9a05a84d09015e13e67725e170d79f1f6bc85933726631ad76df2986e5c8fa64f3387418099296c2f
 SHA512 
690a3220b808d41bcf56752556233d0d0b68b458c767441ce74f35358b2b4fa5e46a483a220d635e53bd287a0e10d16e5c141ba5cb916b984683f42eef10fcff
+DIST rizin-testbins-0264ae4ee5bd606ec6c6a539255eeb57ce2c82c2.tar.gz 179281553 
BLAKE2B 
b86278589da2f8e5859b0f4b16e2667a6e7477c9a889158da5a2c1a1b6e29af4798d56a22dd4c3e23aec1908e7b444ca999502e73f8d8ccf4e0bf2a969380564
 SHA512 
ae11b6da5cb995f8f1cc996a7b772234b3e7e7c2b0695d0b223657ba839c82dbbcb390600aeb0d16c7c61a5037ba9d0739df79efd730c1b96392cfc1e6f6613d
 DIST rizin-testbins-aef7f7b714a696f382f55b8cbbf94c5b69518de3.tar.gz 178497762 
BLAKE2B 
8c82a537a58e65d35bd8b309311c4377b5996ff4b650fc6cff4cf347e04fbe4b2ec0e88f03ff43572c8e99675186b05b393b7da070a60ab107c3cca829d2544b
 SHA512 
2745b58646963c28a45b46e8e709845c355863e61cf796aeb3d2e617f1bf2f9916a4b106cd08f48b1ef6e36f7f38624b5977dcd62c921124b0a1122b7220baa8

diff --git a/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch 
b/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch
new file mode 100644
index ..485a131cf483
--- /dev/null
+++ b/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch
@@ -0,0 +1,52 @@
+Upstreamed at: https://github.com/rizinorg/rizin/pull/3380
+
+commit e1a65044139443c43a14c8304d095d9d6cddae56
+Author: John Helmert III 
+Date:   Sat Feb 18 18:22:42 2023 -0600
+
+fix capstone include paths
+
+capstone include paths were adjusted in
+2b8104bc5e763ed841d6dbffacbeaf02e86b8421, and this wasn't picked up in
+the "PPC uplifting" commit, leading to a build failure with system
+capstone.
+
+Also fix the path of the ppc.h include, which seems to mistakenly use
+capstone's ppc.h when building with bundled capstone.
+
+Fixes: b46e7bd4f2 ("PPC uplifting to RzIL (#2823)")
+Signed-off-by: John Helmert III 
+
+diff --git a/librz/analysis/arch/ppc/ppc_il.h 
b/librz/analysis/arch/ppc/ppc_il.h
+index ee91eb050b..7871414cef 100644
+--- a/librz/analysis/arch/ppc/ppc_il.h
 b/librz/analysis/arch/ppc/ppc_il.h
+@@ -9,7 +9,7 @@
+ #include 
+ #include 
+ #include 
+-#include 
++#include 
+ 
+ #define PPC_BYTE  8
+ #define PPC_HWORD 16
+diff --git a/librz/analysis/arch/ppc/ppc_il_ops.c 
b/librz/analysis/arch/ppc/ppc_il_ops.c
+index f7a2261093..31a730c009 100644
+--- a/librz/analysis/arch/ppc/ppc_il_ops.c
 b/librz/analysis/arch/ppc/ppc_il_ops.c
+@@ -1,13 +1,13 @@
+ // SPDX-FileCopyrightText: 2022 Rot127 
+ // SPDX-License-Identifier: LGPL-3.0-only
+ 
+-#include "ppc.h"
++#include "opcode/ppc.h"
+ #include "ppc_il.h"
+ #include "ppc_analysis.h"
+ #include "rz_types_base.h"
+ #include 
+ #include 
+-#include 
++#include 
+ #include 
+ 
+ static RzILOpEffect *load_op(RZ_BORROW csh handle, RZ_BORROW cs_insn *insn, 
const cs_mode mode) {

diff --git a/dev-util/rizin/rizin-0.5.0.ebuild 
b/dev-util/rizin/rizin-0.5.0.ebuild
new file mode 100644
index ..7b26e28e6034
--- /dev/null
+++ b/dev-util/rizin/rizin-0.5.0.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="0264ae4ee5bd606ec6c6a539255eeb57ce2c82c2"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2022-10-29 Thread Sam James
commit: 28c85a62f443946871d8f87d8b4c5c46558dee62
Author: Sam James  gentoo  org>
AuthorDate: Sat Oct 29 21:23:36 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Oct 29 21:23:36 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28c85a62

dev-util/rizin: add github upstream metadata

Signed-off-by: Sam James  gentoo.org>

 dev-util/rizin/metadata.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-util/rizin/metadata.xml b/dev-util/rizin/metadata.xml
index d59234f9f101..a6336f279fa5 100644
--- a/dev-util/rizin/metadata.xml
+++ b/dev-util/rizin/metadata.xml
@@ -9,4 +9,7 @@
s...@gentoo.org
Sam James

+   
+   rizinorg/rizin
+   
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/, dev-util/rizin/files/

2022-09-18 Thread John Helmert III
commit: afc498940ea5697bf841f7f8e052be6ec4768396
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Sep 18 21:40:45 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Sep 18 21:42:57 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afc49894

dev-util/rizin: drop 0.4.0-r1

Bug: https://bugs.gentoo.org/861524
Bug: https://bugs.gentoo.org/868999
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest |  2 -
 dev-util/rizin/files/rizin-0.4.0-capstone.patch | 22 --
 dev-util/rizin/rizin-0.4.0-r1.ebuild| 95 -
 3 files changed, 119 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index de010726dcf3..aaaf7a30d602 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,4 +1,2 @@
-DIST rizin-src-v0.4.0.tar.xz 11432232 BLAKE2B 
095ca9d317296afca9514a70f208e9aa87fc426e6b7e41163f64d5a1192a4d9ccd8ece9c4f13a24fc973668dece625fa13ad75542695a66c542fe2f0d9e66733
 SHA512 
9d576bee48e5ceae46b4e309c53e01b82edf89a95046f576e1c38fefa73353d6d1f04e6d444332324387d4e115bc87659a358629f7277a41dfef44c82364547b
 DIST rizin-src-v0.4.1.tar.xz 11453808 BLAKE2B 
dcae21320e2533904d9a337d4fb9cc9a450439753106dc5c341e3ca7c788f0a44034340eb0dfe3fad4f1d8a7ebe873720d42d70ce343e8c7b953d4d148a38da2
 SHA512 
565358e11fd4db44ec7f8c25313a1cfc726c38a17afcb699c3fc2af520242fb343ea4a267f0a8e35bdc08e9a765a6a17ec7b8eaba9f9ad9ef5a7dcfe01c7354c
-DIST rizin-testbins-64a6f26369bf5893ecc20cb8984a5ad506ef8566.tar.gz 172591261 
BLAKE2B 
e78843fd95ac0406f66490b7253206e77787fc65780bc7c6a67d26aa9618a6f85803a88724ad424a7bdeeb20d95ebf9314e582029ac778d7d4de4f207ff54aad
 SHA512 
ada4a3faad94553f0f2802419ba604177bb66d332b1a351effd485d65bd8365abb36d736486bbd0bcbc0da584ad4a2edaa7aa3cb62fa12811282c2e0afecb950
 DIST rizin-testbins-aef7f7b714a696f382f55b8cbbf94c5b69518de3.tar.gz 178497762 
BLAKE2B 
8c82a537a58e65d35bd8b309311c4377b5996ff4b650fc6cff4cf347e04fbe4b2ec0e88f03ff43572c8e99675186b05b393b7da070a60ab107c3cca829d2544b
 SHA512 
2745b58646963c28a45b46e8e709845c355863e61cf796aeb3d2e617f1bf2f9916a4b106cd08f48b1ef6e36f7f38624b5977dcd62c921124b0a1122b7220baa8

diff --git a/dev-util/rizin/files/rizin-0.4.0-capstone.patch 
b/dev-util/rizin/files/rizin-0.4.0-capstone.patch
deleted file mode 100644
index 4132e97095f6..
--- a/dev-util/rizin/files/rizin-0.4.0-capstone.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-From 2b8104bc5e763ed841d6dbffacbeaf02e86b8421 Mon Sep 17 00:00:00 2001
-From: Mario Haustein 
-Date: Thu, 7 Jul 2022 07:50:10 +0200
-Subject: [PATCH] Fix capstone include directory
-

- librz/analysis/arch/arm/arm_il64.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/librz/analysis/arch/arm/arm_il64.c 
b/librz/analysis/arch/arm/arm_il64.c
-index 2e9da10aece..6b552596c9e 100644
 a/librz/analysis/arch/arm/arm_il64.c
-+++ b/librz/analysis/arch/arm/arm_il64.c
-@@ -2,7 +2,7 @@
- // SPDX-License-Identifier: LGPL-3.0-only
- 
- #include 
--#include 
-+#include 
- 
- #include "arm_cs.h"
- 

diff --git a/dev-util/rizin/rizin-0.4.0-r1.ebuild 
b/dev-util/rizin/rizin-0.4.0-r1.ebuild
deleted file mode 100644
index f1ecf6fdcb2b..
--- a/dev-util/rizin/rizin-0.4.0-r1.ebuild
+++ /dev/null
@@ -1,95 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..11} )
-
-# This is the commit that the CI for the release commit used
-BINS_COMMIT="64a6f26369bf5893ecc20cb8984a5ad506ef8566"
-
-inherit meson python-any-r1
-
-DESCRIPTION="reverse engineering framework for binary analysis"
-HOMEPAGE="https://rizin.re/;
-
-SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
-   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="amd64 ~arm64 ~x86"
-
-LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0/${PV}"
-IUSE="test"
-
-# Need to audit licenses of the binaries used for testing
-RESTRICT="fetch !test? ( test )"
-
-RDEPEND="
-   sys-apps/file
-   app-arch/lz4:0=
-   dev-libs/capstone:0=
-   dev-libs/libuv:0=
-   dev-libs/libzip:0=
-   dev-libs/openssl:0=
-   >=dev-libs/tree-sitter-0.19.0
-   dev-libs/xxhash
-   sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-BDEPEND="${PYTHON_DEPS}"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
-   "${FILESDIR}/${P}-capstone.patch"
-)
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-src_prepare() {
-   default
-
-   local py_to_mangle=(
-   librz/core/cmd_descs/cmd_descs_generate.py
-   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
-   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
-   subprojects/lz4-1.9.3/tests/test-lz4-list.py
-   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
-  

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2022-09-10 Thread John Helmert III
commit: c1e0726a3bb3579ce4d2e555707a41906967719c
Author: John Helmert III  gentoo  org>
AuthorDate: Sat Sep 10 15:29:16 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sat Sep 10 15:29:33 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1e0726a

dev-util/rizin: add 0.4.1

Bug: https://bugs.gentoo.org/868999
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |  2 +
 dev-util/rizin/rizin-0.4.1.ebuild | 94 +++
 2 files changed, 96 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 4904a831c03e..de010726dcf3 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,2 +1,4 @@
 DIST rizin-src-v0.4.0.tar.xz 11432232 BLAKE2B 
095ca9d317296afca9514a70f208e9aa87fc426e6b7e41163f64d5a1192a4d9ccd8ece9c4f13a24fc973668dece625fa13ad75542695a66c542fe2f0d9e66733
 SHA512 
9d576bee48e5ceae46b4e309c53e01b82edf89a95046f576e1c38fefa73353d6d1f04e6d444332324387d4e115bc87659a358629f7277a41dfef44c82364547b
+DIST rizin-src-v0.4.1.tar.xz 11453808 BLAKE2B 
dcae21320e2533904d9a337d4fb9cc9a450439753106dc5c341e3ca7c788f0a44034340eb0dfe3fad4f1d8a7ebe873720d42d70ce343e8c7b953d4d148a38da2
 SHA512 
565358e11fd4db44ec7f8c25313a1cfc726c38a17afcb699c3fc2af520242fb343ea4a267f0a8e35bdc08e9a765a6a17ec7b8eaba9f9ad9ef5a7dcfe01c7354c
 DIST rizin-testbins-64a6f26369bf5893ecc20cb8984a5ad506ef8566.tar.gz 172591261 
BLAKE2B 
e78843fd95ac0406f66490b7253206e77787fc65780bc7c6a67d26aa9618a6f85803a88724ad424a7bdeeb20d95ebf9314e582029ac778d7d4de4f207ff54aad
 SHA512 
ada4a3faad94553f0f2802419ba604177bb66d332b1a351effd485d65bd8365abb36d736486bbd0bcbc0da584ad4a2edaa7aa3cb62fa12811282c2e0afecb950
+DIST rizin-testbins-aef7f7b714a696f382f55b8cbbf94c5b69518de3.tar.gz 178497762 
BLAKE2B 
8c82a537a58e65d35bd8b309311c4377b5996ff4b650fc6cff4cf347e04fbe4b2ec0e88f03ff43572c8e99675186b05b393b7da070a60ab107c3cca829d2544b
 SHA512 
2745b58646963c28a45b46e8e709845c355863e61cf796aeb3d2e617f1bf2f9916a4b106cd08f48b1ef6e36f7f38624b5977dcd62c921124b0a1122b7220baa8

diff --git a/dev-util/rizin/rizin-0.4.1.ebuild 
b/dev-util/rizin/rizin-0.4.1.ebuild
new file mode 100644
index ..1fcd320b67bf
--- /dev/null
+++ b/dev-util/rizin/rizin-0.4.1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="aef7f7b714a696f382f55b8cbbf94c5b69518de3"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="fetch !test? ( test )"
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   dev-libs/capstone:0=
+   dev-libs/libuv:0=
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   >=dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
+   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
+   subprojects/lz4-1.9.3/tests/test-lz4-list.py
+   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
+   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_magic=enabled
+   -Duse_sys_libzip=enabled
+   -Duse_sys_zlib=enabled
+   -Duse_sys_lz4=enabled
+   -Duse_sys_xxhash=enabled
+   -Duse_sys_openssl=enabled
+   -Duse_sys_tree_sitter=enabled
+
+   $(meson_use test enable_tests)
+   $(meson_use test enable_rz_test)
+   )
+   meson_src_configure
+}
+
+src_test() {
+   # We can select 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2022-09-09 Thread John Helmert III
commit: 95bb11d87e5a453ed06a4570c7281a4aa781a85d
Author: John Helmert III  gentoo  org>
AuthorDate: Fri Sep  9 16:26:40 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Fri Sep  9 17:22:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95bb11d8

dev-util/rizin: stabilize 0.4.0-r1 for amd64

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/rizin-0.4.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.4.0-r1.ebuild 
b/dev-util/rizin/rizin-0.4.0-r1.ebuild
index b298dce57be7..f1ecf6fdcb2b 100644
--- a/dev-util/rizin/rizin-0.4.0-r1.ebuild
+++ b/dev-util/rizin/rizin-0.4.0-r1.ebuild
@@ -15,7 +15,7 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~x86"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2022-09-09 Thread John Helmert III
commit: 0aa3628907fb7d42a13e60a98fa75e3bdee9d743
Author: John Helmert III  gentoo  org>
AuthorDate: Fri Sep  9 16:27:14 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Fri Sep  9 17:22:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0aa36289

dev-util/rizin: drop 0.4.0

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/rizin-0.4.0.ebuild | 94 ---
 1 file changed, 94 deletions(-)

diff --git a/dev-util/rizin/rizin-0.4.0.ebuild 
b/dev-util/rizin/rizin-0.4.0.ebuild
deleted file mode 100644
index 5f19fe3d4b47..
--- a/dev-util/rizin/rizin-0.4.0.ebuild
+++ /dev/null
@@ -1,94 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..11} )
-
-# This is the commit that the CI for the release commit used
-BINS_COMMIT="64a6f26369bf5893ecc20cb8984a5ad506ef8566"
-
-inherit meson python-any-r1
-
-DESCRIPTION="reverse engineering framework for binary analysis"
-HOMEPAGE="https://rizin.re/;
-
-SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
-   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="amd64 ~arm64 ~x86"
-
-LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0/${PV}"
-IUSE="test"
-
-# Need to audit licenses of the binaries used for testing
-RESTRICT="fetch !test? ( test )"
-
-RDEPEND="
-   sys-apps/file
-   app-arch/lz4:0=
-   =dev-libs/tree-sitter-0.19.0
-   dev-libs/xxhash
-   sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-BDEPEND="${PYTHON_DEPS}"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
-)
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-src_prepare() {
-   default
-
-   local py_to_mangle=(
-   librz/core/cmd_descs/cmd_descs_generate.py
-   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
-   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
-   subprojects/lz4-1.9.3/tests/test-lz4-list.py
-   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
-   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
-   sys/clang-format.py
-   test/fuzz/scripts/fuzz_rz_asm.py
-   test/scripts/gdbserver.py
-   )
-
-   python_fix_shebang "${py_to_mangle[@]}"
-
-   if use test; then
-   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
-   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
-   fi
-}
-
-src_configure() {
-   local emesonargs=(
-   -Dcli=enabled
-   -Duse_sys_capstone=enabled
-   -Duse_sys_magic=enabled
-   -Duse_sys_libzip=enabled
-   -Duse_sys_zlib=enabled
-   -Duse_sys_lz4=enabled
-   -Duse_sys_xxhash=enabled
-   -Duse_sys_openssl=enabled
-   -Duse_sys_tree_sitter=enabled
-
-   $(meson_use test enable_tests)
-   $(meson_use test enable_rz_test)
-   )
-   meson_src_configure
-}
-
-src_test() {
-   # We can select running either unit or integration tests, or all of
-   # them by not passing --suite. According to upstream, integration
-   # tests are more fragile and unit tests are sufficient for testing
-   # packaging, so only run those.
-   meson_src_test --suite unit
-}



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/files/

2022-07-17 Thread John Helmert III
commit: d7469bb8e7cff7cc1fe8c330dd0d9b58339bc6b1
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Fri Jul 15 18:29:46 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Jul 17 16:09:54 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7469bb8

dev-util/rizin: remove unused patches

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/26421
Signed-off-by: John Helmert III  gentoo.org>

 .../rizin/files/rizin-0.3.0-typedb-prefix.patch| 132 -
 .../files/rizin-0.3.2-never-rebuild-parser.patch   |  36 --
 2 files changed, 168 deletions(-)

diff --git a/dev-util/rizin/files/rizin-0.3.0-typedb-prefix.patch 
b/dev-util/rizin/files/rizin-0.3.0-typedb-prefix.patch
deleted file mode 100644
index dfb86447df71..
--- a/dev-util/rizin/files/rizin-0.3.0-typedb-prefix.patch
+++ /dev/null
@@ -1,132 +0,0 @@
-https://github.com/rizinorg/rizin/issues/1789
-
-Signed-off-by: Florian Märkl 
-
-diff --git a/test/unit/test_serialize_analysis.c 
b/test/unit/test_serialize_analysis.c
-index 51092c067..0d714ba90 100644
 a/test/unit/test_serialize_analysis.c
-+++ b/test/unit/test_serialize_analysis.c
-@@ -546,7 +546,10 @@ Sdb *vars_ref_db() {
- }
- 
- bool test_analysis_var_save() {
--  const char *dir_prefix = rz_sys_prefix(NULL);
-+  const char *dir_prefix = getenv("RZ_PREFIX");
-+  if (!dir_prefix) {
-+  dir_prefix = rz_sys_prefix(NULL);
-+  }
-   RzAnalysis *analysis = rz_analysis_new();
-   rz_analysis_use(analysis, "x86");
-   rz_analysis_set_bits(analysis, 64);
-diff --git a/test/unit/test_type.c b/test/unit/test_type.c
-index d8a3d9c5f..3956a800b 100644
 a/test/unit/test_type.c
-+++ b/test/unit/test_type.c
-@@ -379,7 +379,10 @@ static bool test_enum_types(void) {
-   RzTypeDB *typedb = rz_type_db_new();
-   mu_assert_notnull(typedb, "Couldn't create new RzTypeDB");
-   mu_assert_notnull(typedb->types, "Couldn't create new types hashtable");
--  const char *dir_prefix = rz_sys_prefix(NULL);
-+  const char *dir_prefix = getenv("RZ_PREFIX");
-+  if (!dir_prefix) {
-+  dir_prefix = rz_sys_prefix(NULL);
-+  }
-   rz_type_db_init(typedb, dir_prefix, "x86", 64, "linux");
- 
-   char *error_msg = NULL;
-@@ -417,7 +420,10 @@ static bool test_const_types(void) {
-   RzTypeDB *typedb = rz_type_db_new();
-   mu_assert_notnull(typedb, "Couldn't create new RzTypeDB");
-   mu_assert_notnull(typedb->types, "Couldn't create new types hashtable");
--  const char *dir_prefix = rz_sys_prefix(NULL);
-+  const char *dir_prefix = getenv("RZ_PREFIX");
-+  if (!dir_prefix) {
-+  dir_prefix = rz_sys_prefix(NULL);
-+  }
-   rz_type_db_init(typedb, dir_prefix, "x86", 64, "linux");
- 
-   char *error_msg = NULL;
-@@ -469,7 +475,10 @@ static bool test_type_as_string(void) {
-   RzTypeDB *typedb = rz_type_db_new();
-   mu_assert_notnull(typedb, "Couldn't create new RzTypeDB");
-   mu_assert_notnull(typedb->types, "Couldn't create new types hashtable");
--  const char *dir_prefix = rz_sys_prefix(NULL);
-+  const char *dir_prefix = getenv("RZ_PREFIX");
-+  if (!dir_prefix) {
-+  dir_prefix = rz_sys_prefix(NULL);
-+  }
-   rz_type_db_init(typedb, dir_prefix, "x86", 64, "linux");
- 
-   char *error_msg = NULL;
-@@ -516,7 +525,10 @@ static bool test_array_types(void) {
-   RzTypeDB *typedb = rz_type_db_new();
-   mu_assert_notnull(typedb, "Couldn't create new RzTypeDB");
-   mu_assert_notnull(typedb->types, "Couldn't create new types hashtable");
--  const char *dir_prefix = rz_sys_prefix(NULL);
-+  const char *dir_prefix = getenv("RZ_PREFIX");
-+  if (!dir_prefix) {
-+  dir_prefix = rz_sys_prefix(NULL);
-+  }
-   rz_type_db_init(typedb, dir_prefix, "x86", 64, "linux");
- 
-   char *error_msg = NULL;
-@@ -569,7 +581,10 @@ static bool test_struct_func_types(void) {
-   RzTypeDB *typedb = rz_type_db_new();
-   mu_assert_notnull(typedb, "Couldn't create new RzTypeDB");
-   mu_assert_notnull(typedb->types, "Couldn't create new types hashtable");
--  const char *dir_prefix = rz_sys_prefix(NULL);
-+  const char *dir_prefix = getenv("RZ_PREFIX");
-+  if (!dir_prefix) {
-+  dir_prefix = rz_sys_prefix(NULL);
-+  }
-   rz_type_db_init(typedb, dir_prefix, "x86", 64, "linux");
- 
-   char *error_msg = NULL;
-@@ -659,7 +674,10 @@ static bool test_struct_array_types(void) {
-   RzTypeDB *typedb = rz_type_db_new();
-   mu_assert_notnull(typedb, "Couldn't create new RzTypeDB");
-   mu_assert_notnull(typedb->types, "Couldn't create new types hashtable");
--  const char *dir_prefix = rz_sys_prefix(NULL);
-+  const char *dir_prefix = getenv("RZ_PREFIX");
-+  if (!dir_prefix) {
-+ 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/, dev-util/rizin/files/

2022-07-08 Thread John Helmert III
commit: fd6ebb9e30ebe13d67386165e6b91ca18b4d6781
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Thu Jul  7 06:03:17 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Fri Jul  8 19:01:41 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd6ebb9e

dev-util/rizin: remove version constraint for capstone dependency

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/26255
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/files/rizin-0.4.0-capstone.patch | 22 ++
 dev-util/rizin/rizin-0.4.0-r1.ebuild| 95 +
 2 files changed, 117 insertions(+)

diff --git a/dev-util/rizin/files/rizin-0.4.0-capstone.patch 
b/dev-util/rizin/files/rizin-0.4.0-capstone.patch
new file mode 100644
index ..4132e97095f6
--- /dev/null
+++ b/dev-util/rizin/files/rizin-0.4.0-capstone.patch
@@ -0,0 +1,22 @@
+From 2b8104bc5e763ed841d6dbffacbeaf02e86b8421 Mon Sep 17 00:00:00 2001
+From: Mario Haustein 
+Date: Thu, 7 Jul 2022 07:50:10 +0200
+Subject: [PATCH] Fix capstone include directory
+
+---
+ librz/analysis/arch/arm/arm_il64.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/librz/analysis/arch/arm/arm_il64.c 
b/librz/analysis/arch/arm/arm_il64.c
+index 2e9da10aece..6b552596c9e 100644
+--- a/librz/analysis/arch/arm/arm_il64.c
 b/librz/analysis/arch/arm/arm_il64.c
+@@ -2,7 +2,7 @@
+ // SPDX-License-Identifier: LGPL-3.0-only
+ 
+ #include 
+-#include 
++#include 
+ 
+ #include "arm_cs.h"
+ 

diff --git a/dev-util/rizin/rizin-0.4.0-r1.ebuild 
b/dev-util/rizin/rizin-0.4.0-r1.ebuild
new file mode 100644
index ..b298dce57be7
--- /dev/null
+++ b/dev-util/rizin/rizin-0.4.0-r1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="64a6f26369bf5893ecc20cb8984a5ad506ef8566"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="fetch !test? ( test )"
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   dev-libs/capstone:0=
+   dev-libs/libuv:0=
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   >=dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch"
+   "${FILESDIR}/${P}-capstone.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
+   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
+   subprojects/lz4-1.9.3/tests/test-lz4-list.py
+   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
+   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_magic=enabled
+   -Duse_sys_libzip=enabled
+   -Duse_sys_zlib=enabled
+   -Duse_sys_lz4=enabled
+   -Duse_sys_xxhash=enabled
+   -Duse_sys_openssl=enabled
+   -Duse_sys_tree_sitter=enabled
+
+   $(meson_use test enable_tests)
+   $(meson_use test enable_rz_test)
+   )
+   meson_src_configure
+}
+
+src_test() {
+   # We can select running either unit or integration tests, or all of
+   # them by not passing --suite. According to upstream, integration
+   # tests are more fragile and unit tests are sufficient for testing
+   # packaging, so only run those.
+   meson_src_test --suite unit
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2022-07-04 Thread John Helmert III
commit: fd3f25f53be1a5dc7d81cdf498a0128b52eaf2c2
Author: John Helmert III  gentoo  org>
AuthorDate: Mon Jul  4 20:00:06 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Mon Jul  4 20:01:22 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd3f25f5

dev-util/rizin: drop 0.3.4, 0.3.4-r1

Bug: https://bugs.gentoo.org/836002
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest  |   2 -
 dev-util/rizin/rizin-0.3.4-r1.ebuild | 103 ---
 dev-util/rizin/rizin-0.3.4.ebuild| 103 ---
 3 files changed, 208 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 39d5687e41c8..4904a831c03e 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,4 +1,2 @@
-DIST rizin-src-v0.3.4.tar.xz 10411432 BLAKE2B 
99745f069e6bd72aec6a6f335f3aa0ccc46ebf186b1dc0aaf32b4f95d2be4bb49e8d3d976a72978c22fce82d896e70bf8403568e100b73898731045ef06a2ad5
 SHA512 
cda35afe8c031f3207c055ed31d7f76a46b7addd04cead0f5aadf0733b66f4dd953ca16f054b47da7921d4726d6ea1250436012954a9755c1cd524a8fd0d670c
 DIST rizin-src-v0.4.0.tar.xz 11432232 BLAKE2B 
095ca9d317296afca9514a70f208e9aa87fc426e6b7e41163f64d5a1192a4d9ccd8ece9c4f13a24fc973668dece625fa13ad75542695a66c542fe2f0d9e66733
 SHA512 
9d576bee48e5ceae46b4e309c53e01b82edf89a95046f576e1c38fefa73353d6d1f04e6d444332324387d4e115bc87659a358629f7277a41dfef44c82364547b
 DIST rizin-testbins-64a6f26369bf5893ecc20cb8984a5ad506ef8566.tar.gz 172591261 
BLAKE2B 
e78843fd95ac0406f66490b7253206e77787fc65780bc7c6a67d26aa9618a6f85803a88724ad424a7bdeeb20d95ebf9314e582029ac778d7d4de4f207ff54aad
 SHA512 
ada4a3faad94553f0f2802419ba604177bb66d332b1a351effd485d65bd8365abb36d736486bbd0bcbc0da584ad4a2edaa7aa3cb62fa12811282c2e0afecb950
-DIST rizin-testbins-aa6a88dcdfaad54335e3935c16ce21a124ff861d.tar.gz 127254454 
BLAKE2B 
e7a4536be7169abd197c2128e103b8d669fbb7532ce265b27da3ce347b1aa58c8a96c95d85cf7700f66a44c041a0575175de3a0e176a0d31c490f7ccfb2f6d6b
 SHA512 
20cf299e5324793f07f8a2fdcfa3d66c3a418f09bfc6a272e35ab31d4a64408bf91532ae431098dede1a2d0ad0b1c02433304c514816d98dc068f6c0528a4099

diff --git a/dev-util/rizin/rizin-0.3.4-r1.ebuild 
b/dev-util/rizin/rizin-0.3.4-r1.ebuild
deleted file mode 100644
index cc3e0fb5efbd..
--- a/dev-util/rizin/rizin-0.3.4-r1.ebuild
+++ /dev/null
@@ -1,103 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{8..10} )
-
-# This is the commit that the CI for the release commit used
-BINS_COMMIT="aa6a88dcdfaad54335e3935c16ce21a124ff861d"
-
-inherit meson python-any-r1
-
-DESCRIPTION="reverse engineering framework for binary analysis"
-HOMEPAGE="https://rizin.re/;
-
-SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
-   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
-
-LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0/${PV}"
-IUSE="test"
-
-# Need to audit licenses of the binaries used for testing
-RESTRICT="fetch !test? ( test )"
-
-RDEPEND="
-   sys-apps/file
-   app-arch/lz4:0=
-   =dev-libs/tree-sitter-0.19.0
-   dev-libs/xxhash
-   sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-BDEPEND="${PYTHON_DEPS}"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-0.3.0-typedb-prefix.patch"
-   "${FILESDIR}/${PN}-0.3.2-never-rebuild-parser.patch"
-)
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-src_prepare() {
-   default
-
-   local py_to_mangle=(
-   librz/core/cmd_descs/cmd_descs_generate.py
-   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
-   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
-   subprojects/lz4-1.9.3/tests/test-lz4-list.py
-   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
-   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
-   sys/clang-format.py
-   test/fuzz/scripts/fuzz_rz_asm.py
-   test/scripts/gdbserver.py
-   )
-
-   python_fix_shebang "${py_to_mangle[@]}"
-
-   if use test; then
-   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
-   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
-   fi
-}
-
-src_configure() {
-   local emesonargs=(
-   -Dcli=enabled
-   -Duse_sys_capstone=enabled
-   -Duse_sys_magic=enabled
-   -Duse_sys_libzip=enabled
-   -Duse_sys_zlib=enabled
-   -Duse_sys_lz4=enabled
-   -Duse_sys_xxhash=enabled
-   -Duse_sys_openssl=enabled
-   -Duse_sys_tree_sitter=enabled
-
-   $(meson_use test enable_tests)
-   $(meson_use test enable_rz_test)
-   )
-   

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/, dev-util/rizin/files/

2022-07-04 Thread John Helmert III
commit: de8b82fad57e57633c0d3e4c666e4c8b916501cc
Author: John Helmert III  gentoo  org>
AuthorDate: Mon Jul  4 19:08:01 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Mon Jul  4 20:01:06 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de8b82fa

dev-util/rizin: add 0.4.0, enable py3.11

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest|  2 +
 .../files/rizin-0.4.0-never-rebuild-parser.patch   | 38 +
 dev-util/rizin/rizin-0.4.0.ebuild  | 94 ++
 3 files changed, 134 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index c38b64e65193..39d5687e41c8 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,2 +1,4 @@
 DIST rizin-src-v0.3.4.tar.xz 10411432 BLAKE2B 
99745f069e6bd72aec6a6f335f3aa0ccc46ebf186b1dc0aaf32b4f95d2be4bb49e8d3d976a72978c22fce82d896e70bf8403568e100b73898731045ef06a2ad5
 SHA512 
cda35afe8c031f3207c055ed31d7f76a46b7addd04cead0f5aadf0733b66f4dd953ca16f054b47da7921d4726d6ea1250436012954a9755c1cd524a8fd0d670c
+DIST rizin-src-v0.4.0.tar.xz 11432232 BLAKE2B 
095ca9d317296afca9514a70f208e9aa87fc426e6b7e41163f64d5a1192a4d9ccd8ece9c4f13a24fc973668dece625fa13ad75542695a66c542fe2f0d9e66733
 SHA512 
9d576bee48e5ceae46b4e309c53e01b82edf89a95046f576e1c38fefa73353d6d1f04e6d444332324387d4e115bc87659a358629f7277a41dfef44c82364547b
+DIST rizin-testbins-64a6f26369bf5893ecc20cb8984a5ad506ef8566.tar.gz 172591261 
BLAKE2B 
e78843fd95ac0406f66490b7253206e77787fc65780bc7c6a67d26aa9618a6f85803a88724ad424a7bdeeb20d95ebf9314e582029ac778d7d4de4f207ff54aad
 SHA512 
ada4a3faad94553f0f2802419ba604177bb66d332b1a351effd485d65bd8365abb36d736486bbd0bcbc0da584ad4a2edaa7aa3cb62fa12811282c2e0afecb950
 DIST rizin-testbins-aa6a88dcdfaad54335e3935c16ce21a124ff861d.tar.gz 127254454 
BLAKE2B 
e7a4536be7169abd197c2128e103b8d669fbb7532ce265b27da3ce347b1aa58c8a96c95d85cf7700f66a44c041a0575175de3a0e176a0d31c490f7ccfb2f6d6b
 SHA512 
20cf299e5324793f07f8a2fdcfa3d66c3a418f09bfc6a272e35ab31d4a64408bf91532ae431098dede1a2d0ad0b1c02433304c514816d98dc068f6c0528a4099

diff --git a/dev-util/rizin/files/rizin-0.4.0-never-rebuild-parser.patch 
b/dev-util/rizin/files/rizin-0.4.0-never-rebuild-parser.patch
new file mode 100644
index ..0e6e95c09318
--- /dev/null
+++ b/dev-util/rizin/files/rizin-0.4.0-never-rebuild-parser.patch
@@ -0,0 +1,38 @@
+commit 7af437dbedaaa478b579d19133b6711923b037d8
+Author: John Helmert III 
+Date:   Mon Jul 4 12:44:43 2022 -0500
+
+subprojects/rizin-shell-parser/src: Never rebuild parser.c
+
+This requires dev-libs/tree-sitter[ts-cli] and net-libs/nodejs, both
+of which would be heavy new dependencies. However, these are only
+needed to rebuild the already-existing tree-sitter parser, which
+doesn't do much for us (if anything) since it already exists. In this
+case, it's better to just reduce fragility by unconditionally
+disabling this.
+
+Newly forward-ported from the 0.3.2 version.
+
+Bug: https://bugs.gentoo.org/830068
+Signed-off-by: John Helmert III 
+
+diff --git a/subprojects/rizin-shell-parser/src/meson.build 
b/subprojects/rizin-shell-parser/src/meson.build
+index ae31896a98..14324daba0 100644
+--- a/subprojects/rizin-shell-parser/src/meson.build
 b/subprojects/rizin-shell-parser/src/meson.build
+@@ -1,14 +1,4 @@
+-tree_sitter_bin = find_program('tree-sitter', required: false)
+-node_bin = find_program('node', required: false)
+-if tree_sitter_bin.found() and node_bin.found() and 
tree_sitter_dep.type_name() != 'internal'
+-  parser_c = custom_target('parser_src_c',
+-command: [tree_sitter_wrap_py, tree_sitter_bin, '@OUTDIR@/..', '@INPUT@'],
+-input: [grammar_js],
+-output: 'parser.c',
+-  )
+-else
+-  parser_c = files('parser.c')
+-endif
++parser_c = files('parser.c')
+ 
+ shell_parser_files = [files('scanner.c'), parser_c]
+ shell_parser_inc = [include_directories('tree_sitter')]

diff --git a/dev-util/rizin/rizin-0.4.0.ebuild 
b/dev-util/rizin/rizin-0.4.0.ebuild
new file mode 100644
index ..7602de44178a
--- /dev/null
+++ b/dev-util/rizin/rizin-0.4.0.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="64a6f26369bf5893ecc20cb8984a5ad506ef8566"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2022-07-04 Thread John Helmert III
commit: da3042f37243689df0970cdad468e05387da141c
Author: John Helmert III  gentoo  org>
AuthorDate: Mon Jul  4 19:57:11 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Mon Jul  4 20:01:12 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da3042f3

dev-util/rizin: stabilize 0.4.0 for amd64

Bug: https://bugs.gentoo.org/836002
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/rizin-0.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.4.0.ebuild 
b/dev-util/rizin/rizin-0.4.0.ebuild
index 7602de44178a..5f19fe3d4b47 100644
--- a/dev-util/rizin/rizin-0.4.0.ebuild
+++ b/dev-util/rizin/rizin-0.4.0.ebuild
@@ -15,7 +15,7 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~x86"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2022-05-10 Thread Sam James
commit: 1ad7d6ae49a3522c71c69e999fd317f2eb147724
Author: Mario Haustein  hrz  tu-chemnitz  de>
AuthorDate: Tue May 10 21:33:40 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed May 11 02:10:59 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ad7d6ae

dev-util/rizin: restrict to Capstone 4

Code doesn't build yet with Capstone 5.

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Mario Haustein  hrz.tu-chemnitz.de>
Signed-off-by: Sam James  gentoo.org>

 dev-util/rizin/rizin-0.3.4-r1.ebuild | 103 +++
 1 file changed, 103 insertions(+)

diff --git a/dev-util/rizin/rizin-0.3.4-r1.ebuild 
b/dev-util/rizin/rizin-0.3.4-r1.ebuild
new file mode 100644
index ..cc3e0fb5efbd
--- /dev/null
+++ b/dev-util/rizin/rizin-0.3.4-r1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="aa6a88dcdfaad54335e3935c16ce21a124ff861d"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="fetch !test? ( test )"
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   =dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.3.0-typedb-prefix.patch"
+   "${FILESDIR}/${PN}-0.3.2-never-rebuild-parser.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
+   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
+   subprojects/lz4-1.9.3/tests/test-lz4-list.py
+   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
+   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_magic=enabled
+   -Duse_sys_libzip=enabled
+   -Duse_sys_zlib=enabled
+   -Duse_sys_lz4=enabled
+   -Duse_sys_xxhash=enabled
+   -Duse_sys_openssl=enabled
+   -Duse_sys_tree_sitter=enabled
+
+   $(meson_use test enable_tests)
+   $(meson_use test enable_rz_test)
+   )
+   meson_src_configure
+}
+
+src_test() {
+   # Rizin uses data files that it expects to be installed on the
+   # system. To hack around this, we create a tree of what it expects
+   # in ${T}, and patch the tests to support a prefix from the
+   # environment. https://github.com/rizinorg/rizin/issues/1789
+   mkdir -p "${T}/usr/share/${PN}/${PV}" || die
+   ln -sf "${BUILD_DIR}/librz/analysis/d" 
"${T}/usr/share/${PN}/${PV}/types" || die
+   ln -sf "${BUILD_DIR}/librz/syscall/d" 
"${T}/usr/share/${PN}/${PV}/syscall" || die
+   ln -sf "${BUILD_DIR}/librz/asm/d" "${T}/usr/share/${PN}/${PV}/opcodes" 
|| die
+   # https://github.com/rizinorg/rizin/issues/1797
+   ln -sf "${BUILD_DIR}/librz/flag/d" "${T}/usr/share/${PN}/${PV}/flag" || 
die
+   export RZ_PREFIX="${T}/usr"
+
+   meson_src_test
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2022-03-01 Thread John Helmert III
commit: 8c3ad822685b61a7515613849225993ddc47c27d
Author: John Helmert III  gentoo  org>
AuthorDate: Wed Mar  2 02:41:27 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Wed Mar  2 02:43:41 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c3ad822

dev-util/rizin: stabilize 0.3.4 for amd64

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/rizin-0.3.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.3.4.ebuild 
b/dev-util/rizin/rizin-0.3.4.ebuild
index 4c4e3500887e..27d41f85b946 100644
--- a/dev-util/rizin/rizin-0.3.4.ebuild
+++ b/dev-util/rizin/rizin-0.3.4.ebuild
@@ -15,7 +15,7 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 ~x86"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0/${PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2022-01-09 Thread John Helmert III
commit: cd5e6576a7852a0436a0ce47aa26b8345f145a99
Author: John Helmert III  gentoo  org>
AuthorDate: Mon Jan 10 06:02:46 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Mon Jan 10 06:10:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd5e6576

dev-util/rizin: add 0.3.4

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |   1 +
 dev-util/rizin/rizin-0.3.4.ebuild | 103 ++
 2 files changed, 104 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 73cb41299bc5..8a3a8efbb804 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,5 +1,6 @@
 DIST rizin-src-v0.3.1.tar.xz 64089580 BLAKE2B 
04f7e3cfa20a787f47af90c78405f295b346cc0c7d81164ff01bc6a69df526f3f9112ab4cb62092297ae2dda1fa738a2e7feff35e0f1b7f3e7467a8c6e4d1a1e
 SHA512 
743f8f2c9ddb045f39147de9ad971d47f1a26bfcc233f41c12c64ade5e31c992104cf3f93c44c5035142b554779e895224b68f839cd87a59aaf344b4ec88d5fe
 DIST rizin-src-v0.3.2.tar.xz 64170200 BLAKE2B 
fe11317e4acc1a803323f42fd4c2c6435a2fe4032581ed509f37f7221ec53e0afac04ebe8cb9da693ac283b61c0a70e135007d635c4c5010519a5c7e7cfa19cf
 SHA512 
c472770ee1b156d42a98d4641f365e2255f16489b2223b117c8b88dcac0d72065d1fd7eedad70046188231889e492bafb7b8462987c68311143f14808eaab1cc
 DIST rizin-src-v0.3.3.tar.xz 10409328 BLAKE2B 
4d62ecbcabf960a0f8363ff5f8cc75911bb52ca15d7e7d0a6a78e754910d9607264086e8b0c28cd1423525b650443ab99a090624c8d2b7a376fbc8f71baa03b0
 SHA512 
4aca0a06be80434b61a92479588c92d32598b8eebb24a82acbc7e6c7b26fdde638b8dfa5b66afbd6cd369329f9514594595bab9314de92b8b2580d129543882d
+DIST rizin-src-v0.3.4.tar.xz 10411432 BLAKE2B 
99745f069e6bd72aec6a6f335f3aa0ccc46ebf186b1dc0aaf32b4f95d2be4bb49e8d3d976a72978c22fce82d896e70bf8403568e100b73898731045ef06a2ad5
 SHA512 
cda35afe8c031f3207c055ed31d7f76a46b7addd04cead0f5aadf0733b66f4dd953ca16f054b47da7921d4726d6ea1250436012954a9755c1cd524a8fd0d670c
 DIST rizin-testbins-aa6a88dcdfaad54335e3935c16ce21a124ff861d.tar.gz 127254454 
BLAKE2B 
e7a4536be7169abd197c2128e103b8d669fbb7532ce265b27da3ce347b1aa58c8a96c95d85cf7700f66a44c041a0575175de3a0e176a0d31c490f7ccfb2f6d6b
 SHA512 
20cf299e5324793f07f8a2fdcfa3d66c3a418f09bfc6a272e35ab31d4a64408bf91532ae431098dede1a2d0ad0b1c02433304c514816d98dc068f6c0528a4099
 DIST rizin-testbins-d66fa0feaf3b1ecdad261ca17542f1d5d0b101cc.tar.gz 126773703 
BLAKE2B 
f5eaeb7e99e9091b6ca043dd50d03143950adc06b75b5834886d96d6280207c0bea73101a5f9e06c38ba60c0d4cff82dbf1f00364f7d87fe183c0687b06d1904
 SHA512 
0a017954017c8d57133d51b441411a50aa9ed062c0cc61e1561951fdf0703f5244230cda377885199e9e35dca6780d8582a445ac92286b63ef2ac784777ec0c4

diff --git a/dev-util/rizin/rizin-0.3.4.ebuild 
b/dev-util/rizin/rizin-0.3.4.ebuild
new file mode 100644
index ..b4bfee6c1042
--- /dev/null
+++ b/dev-util/rizin/rizin-0.3.4.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=(python3_{8,9,10})
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="aa6a88dcdfaad54335e3935c16ce21a124ff861d"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="fetch !test? ( test )"
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   dev-libs/capstone:0=
+   dev-libs/libuv:0=
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   >=dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.3.0-typedb-prefix.patch"
+   "${FILESDIR}/${PN}-0.3.2-never-rebuild-parser.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
+   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
+   subprojects/lz4-1.9.3/tests/test-lz4-list.py
+   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
+   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/, dev-util/rizin/files/

2022-01-09 Thread John Helmert III
commit: 14f82ad59e58ea7ac361ef0a19547c0d58fdd93b
Author: John Helmert III  gentoo  org>
AuthorDate: Mon Jan 10 06:07:40 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Mon Jan 10 06:10:27 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14f82ad5

dev-util/rizin: drop 0.3.1-r2, 0.3.2, 0.3.3

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest|   4 -
 .../rizin/files/rizin-0.3.1-CVE-2021-43814.patch   |  90 --
 dev-util/rizin/rizin-0.3.1-r2.ebuild   | 103 -
 dev-util/rizin/rizin-0.3.2.ebuild  | 103 -
 dev-util/rizin/rizin-0.3.3.ebuild  | 103 -
 5 files changed, 403 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 8a3a8efbb804..c38b64e65193 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,6 +1,2 @@
-DIST rizin-src-v0.3.1.tar.xz 64089580 BLAKE2B 
04f7e3cfa20a787f47af90c78405f295b346cc0c7d81164ff01bc6a69df526f3f9112ab4cb62092297ae2dda1fa738a2e7feff35e0f1b7f3e7467a8c6e4d1a1e
 SHA512 
743f8f2c9ddb045f39147de9ad971d47f1a26bfcc233f41c12c64ade5e31c992104cf3f93c44c5035142b554779e895224b68f839cd87a59aaf344b4ec88d5fe
-DIST rizin-src-v0.3.2.tar.xz 64170200 BLAKE2B 
fe11317e4acc1a803323f42fd4c2c6435a2fe4032581ed509f37f7221ec53e0afac04ebe8cb9da693ac283b61c0a70e135007d635c4c5010519a5c7e7cfa19cf
 SHA512 
c472770ee1b156d42a98d4641f365e2255f16489b2223b117c8b88dcac0d72065d1fd7eedad70046188231889e492bafb7b8462987c68311143f14808eaab1cc
-DIST rizin-src-v0.3.3.tar.xz 10409328 BLAKE2B 
4d62ecbcabf960a0f8363ff5f8cc75911bb52ca15d7e7d0a6a78e754910d9607264086e8b0c28cd1423525b650443ab99a090624c8d2b7a376fbc8f71baa03b0
 SHA512 
4aca0a06be80434b61a92479588c92d32598b8eebb24a82acbc7e6c7b26fdde638b8dfa5b66afbd6cd369329f9514594595bab9314de92b8b2580d129543882d
 DIST rizin-src-v0.3.4.tar.xz 10411432 BLAKE2B 
99745f069e6bd72aec6a6f335f3aa0ccc46ebf186b1dc0aaf32b4f95d2be4bb49e8d3d976a72978c22fce82d896e70bf8403568e100b73898731045ef06a2ad5
 SHA512 
cda35afe8c031f3207c055ed31d7f76a46b7addd04cead0f5aadf0733b66f4dd953ca16f054b47da7921d4726d6ea1250436012954a9755c1cd524a8fd0d670c
 DIST rizin-testbins-aa6a88dcdfaad54335e3935c16ce21a124ff861d.tar.gz 127254454 
BLAKE2B 
e7a4536be7169abd197c2128e103b8d669fbb7532ce265b27da3ce347b1aa58c8a96c95d85cf7700f66a44c041a0575175de3a0e176a0d31c490f7ccfb2f6d6b
 SHA512 
20cf299e5324793f07f8a2fdcfa3d66c3a418f09bfc6a272e35ab31d4a64408bf91532ae431098dede1a2d0ad0b1c02433304c514816d98dc068f6c0528a4099
-DIST rizin-testbins-d66fa0feaf3b1ecdad261ca17542f1d5d0b101cc.tar.gz 126773703 
BLAKE2B 
f5eaeb7e99e9091b6ca043dd50d03143950adc06b75b5834886d96d6280207c0bea73101a5f9e06c38ba60c0d4cff82dbf1f00364f7d87fe183c0687b06d1904
 SHA512 
0a017954017c8d57133d51b441411a50aa9ed062c0cc61e1561951fdf0703f5244230cda377885199e9e35dca6780d8582a445ac92286b63ef2ac784777ec0c4

diff --git a/dev-util/rizin/files/rizin-0.3.1-CVE-2021-43814.patch 
b/dev-util/rizin/files/rizin-0.3.1-CVE-2021-43814.patch
deleted file mode 100644
index f7c511b5a0cf..
--- a/dev-util/rizin/files/rizin-0.3.1-CVE-2021-43814.patch
+++ /dev/null
@@ -1,90 +0,0 @@
-From aa6917772d2f32e5a7daab25a46c72df0b5ea406 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Florian=20M=C3=A4rkl?= 
-Date: Fri, 10 Dec 2021 15:43:12 +0100
-Subject: [PATCH] Fix oob write for dwarf with abbrev with count 0 (Fix #2083)
- (#2086)
-

- librz/bin/dwarf.c | 40 ++-
- test/db/formats/elf/crash |  8 
- 2 files changed, 31 insertions(+), 17 deletions(-)
-
-diff --git a/librz/bin/dwarf.c b/librz/bin/dwarf.c
-index 1ed1d3517c2..23dd1f9f0b1 100644
 a/librz/bin/dwarf.c
-+++ b/librz/bin/dwarf.c
-@@ -1220,9 +1220,13 @@ static int init_die(RzBinDwarfDie *die, ut64 abbr_code, 
ut64 attr_count) {
-   if (!die) {
-   return -1;
-   }
--  die->attr_values = calloc(sizeof(RzBinDwarfAttrValue), attr_count);
--  if (!die->attr_values) {
--  return -1;
-+  if (attr_count) {
-+  die->attr_values = calloc(sizeof(RzBinDwarfAttrValue), 
attr_count);
-+  if (!die->attr_values) {
-+  return -1;
-+  }
-+  } else {
-+  die->attr_values = NULL;
-   }
-   die->abbrev_code = abbr_code;
-   die->capacity = attr_count;
-@@ -1726,25 +1730,27 @@ static const ut8 *parse_die(const ut8 *buf, const ut8 
*buf_end, RzBinDwarfDebugI
-   size_t i;
-   const char *comp_dir = NULL;
-   ut64 line_info_offset = UT64_MAX;
--  for (i = 0; i < abbrev->count - 1; i++) {
--  memset(>attr_values[i], 0, sizeof(die->attr_values[i]));
-+  if (abbrev->count) {
-+  for (i = 0; i < abbrev->count - 1; i++) {
-+  memset(>attr_values[i], 0, 
sizeof(die->attr_values[i]));
- 
--  buf = parse_attr_value(buf, buf_end - buf, >defs[i],
-- 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2022-01-08 Thread John Helmert III
commit: dc6ae58d187a25ea563eeff144bee39acf099cb7
Author: John Helmert III  gentoo  org>
AuthorDate: Sat Jan  8 23:18:36 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Jan  9 07:39:04 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc6ae58d

dev-util/rizin: add 0.3.3

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |   2 +
 dev-util/rizin/rizin-0.3.3.ebuild | 103 ++
 2 files changed, 105 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index fe5e33e3c58b..73cb41299bc5 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,3 +1,5 @@
 DIST rizin-src-v0.3.1.tar.xz 64089580 BLAKE2B 
04f7e3cfa20a787f47af90c78405f295b346cc0c7d81164ff01bc6a69df526f3f9112ab4cb62092297ae2dda1fa738a2e7feff35e0f1b7f3e7467a8c6e4d1a1e
 SHA512 
743f8f2c9ddb045f39147de9ad971d47f1a26bfcc233f41c12c64ade5e31c992104cf3f93c44c5035142b554779e895224b68f839cd87a59aaf344b4ec88d5fe
 DIST rizin-src-v0.3.2.tar.xz 64170200 BLAKE2B 
fe11317e4acc1a803323f42fd4c2c6435a2fe4032581ed509f37f7221ec53e0afac04ebe8cb9da693ac283b61c0a70e135007d635c4c5010519a5c7e7cfa19cf
 SHA512 
c472770ee1b156d42a98d4641f365e2255f16489b2223b117c8b88dcac0d72065d1fd7eedad70046188231889e492bafb7b8462987c68311143f14808eaab1cc
+DIST rizin-src-v0.3.3.tar.xz 10409328 BLAKE2B 
4d62ecbcabf960a0f8363ff5f8cc75911bb52ca15d7e7d0a6a78e754910d9607264086e8b0c28cd1423525b650443ab99a090624c8d2b7a376fbc8f71baa03b0
 SHA512 
4aca0a06be80434b61a92479588c92d32598b8eebb24a82acbc7e6c7b26fdde638b8dfa5b66afbd6cd369329f9514594595bab9314de92b8b2580d129543882d
+DIST rizin-testbins-aa6a88dcdfaad54335e3935c16ce21a124ff861d.tar.gz 127254454 
BLAKE2B 
e7a4536be7169abd197c2128e103b8d669fbb7532ce265b27da3ce347b1aa58c8a96c95d85cf7700f66a44c041a0575175de3a0e176a0d31c490f7ccfb2f6d6b
 SHA512 
20cf299e5324793f07f8a2fdcfa3d66c3a418f09bfc6a272e35ab31d4a64408bf91532ae431098dede1a2d0ad0b1c02433304c514816d98dc068f6c0528a4099
 DIST rizin-testbins-d66fa0feaf3b1ecdad261ca17542f1d5d0b101cc.tar.gz 126773703 
BLAKE2B 
f5eaeb7e99e9091b6ca043dd50d03143950adc06b75b5834886d96d6280207c0bea73101a5f9e06c38ba60c0d4cff82dbf1f00364f7d87fe183c0687b06d1904
 SHA512 
0a017954017c8d57133d51b441411a50aa9ed062c0cc61e1561951fdf0703f5244230cda377885199e9e35dca6780d8582a445ac92286b63ef2ac784777ec0c4

diff --git a/dev-util/rizin/rizin-0.3.3.ebuild 
b/dev-util/rizin/rizin-0.3.3.ebuild
new file mode 100644
index ..b4bfee6c1042
--- /dev/null
+++ b/dev-util/rizin/rizin-0.3.3.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=(python3_{8,9,10})
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="aa6a88dcdfaad54335e3935c16ce21a124ff861d"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0/${PV}"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="fetch !test? ( test )"
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   dev-libs/capstone:0=
+   dev-libs/libuv:0=
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   >=dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.3.0-typedb-prefix.patch"
+   "${FILESDIR}/${PN}-0.3.2-never-rebuild-parser.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
+   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
+   subprojects/lz4-1.9.3/tests/test-lz4-list.py
+   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
+   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_magic=enabled
+   -Duse_sys_libzip=enabled
+   -Duse_sys_zlib=enabled
+ 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/files/

2022-01-06 Thread John Helmert III
commit: 9a38a626c1bf80bfb75ad3023eece52402f572a7
Author: John Helmert III  gentoo  org>
AuthorDate: Thu Jan  6 19:09:28 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Thu Jan  6 19:09:57 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a38a626

dev-util/rizin: fix patch's commit email

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/files/rizin-0.3.2-never-rebuild-parser.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/files/rizin-0.3.2-never-rebuild-parser.patch 
b/dev-util/rizin/files/rizin-0.3.2-never-rebuild-parser.patch
index 5231da0c7eaf..0f5586c0023d 100644
--- a/dev-util/rizin/files/rizin-0.3.2-never-rebuild-parser.patch
+++ b/dev-util/rizin/files/rizin-0.3.2-never-rebuild-parser.patch
@@ -1,5 +1,5 @@
 commit 9bcfa2a6d3eaa5df00ae728c44811faf08effbd3
-Author: John Helmert III 
+Author: John Helmert III 
 Date:   Thu Jan 6 11:12:58 2022 -0600
 
 shlr/rizin-shell-parser/src: Never rebuild parser.c



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/files/, dev-util/rizin/

2022-01-06 Thread John Helmert III
commit: c177d1212996d8cf74d5fc8b1b613fdb1dd4e7c9
Author: John Helmert III  gentoo  org>
AuthorDate: Thu Jan  6 18:52:29 2022 +
Commit: John Helmert III  gentoo  org>
CommitDate: Thu Jan  6 19:07:27 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c177d121

dev-util/rizin: workaround build failure with tree-sitter[-ts-cli] and nodejs

Closes: https://bugs.gentoo.org/830068
Signed-off-by: John Helmert III  gentoo.org>

 .../files/rizin-0.3.2-never-rebuild-parser.patch   | 36 ++
 dev-util/rizin/rizin-0.3.2.ebuild  |  3 +-
 2 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/dev-util/rizin/files/rizin-0.3.2-never-rebuild-parser.patch 
b/dev-util/rizin/files/rizin-0.3.2-never-rebuild-parser.patch
new file mode 100644
index ..5231da0c7eaf
--- /dev/null
+++ b/dev-util/rizin/files/rizin-0.3.2-never-rebuild-parser.patch
@@ -0,0 +1,36 @@
+commit 9bcfa2a6d3eaa5df00ae728c44811faf08effbd3
+Author: John Helmert III 
+Date:   Thu Jan 6 11:12:58 2022 -0600
+
+shlr/rizin-shell-parser/src: Never rebuild parser.c
+
+This requires dev-libs/tree-sitter[ts-cli] and net-libs/nodejs, both
+of which would be heavy new dependencies. However, these are only
+needed to rebuild the already-existing tree-sitter parser, which
+doesn't do much for us (if anything) since it already exists. In this
+case, it's better to just reduce fragility by unconditionally
+disabling this.
+
+Bug: https://bugs.gentoo.org/830068
+Signed-off-by: John Helmert III 
+
+diff --git a/shlr/rizin-shell-parser/src/meson.build 
b/shlr/rizin-shell-parser/src/meson.build
+index 0171183ae0..81dcc13b33 100644
+--- a/shlr/rizin-shell-parser/src/meson.build
 b/shlr/rizin-shell-parser/src/meson.build
+@@ -1,14 +1,4 @@
+-tree_sitter_bin = find_program('tree-sitter', required: false)
+-node_bin = find_program('node', required: false)
+-if tree_sitter_bin.found() and node_bin.found() and 
tree_sitter_dep.type_name() != 'internal'
+-  parser_c = custom_target('parser_src_c',
+-command: [tree_sitter_wrap_py, tree_sitter_bin, '@OUTDIR@/..', '@INPUT@'],
+-input: [grammar_js],
+-output: 'parser.c',
+-  )
+-else
+-  parser_c = files('parser.c')
+-endif
++parser_c = files('parser.c')
+ 
+ shell_parser_files = [files('scanner.c'), parser_c]
+ shell_parser_inc = [platform_inc, include_directories('tree_sitter')]

diff --git a/dev-util/rizin/rizin-0.3.2.ebuild 
b/dev-util/rizin/rizin-0.3.2.ebuild
index be6e33690c5a..f0f118bdd3dc 100644
--- a/dev-util/rizin/rizin-0.3.2.ebuild
+++ b/dev-util/rizin/rizin-0.3.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -40,6 +40,7 @@ BDEPEND="${PYTHON_DEPS}"
 
 PATCHES=(
"${FILESDIR}/${PN}-0.3.0-typedb-prefix.patch"
+   "${FILESDIR}/${PN}-0.3.2-never-rebuild-parser.patch"
 )
 
 S="${WORKDIR}/${PN}-v${PV}"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/files/, dev-util/rizin/

2021-12-31 Thread John Helmert III
commit: 3e8928e8264ae4783d97f77700a0f747b31d4bab
Author: John Helmert III  gentoo  org>
AuthorDate: Fri Dec 31 11:52:41 2021 +
Commit: John Helmert III  gentoo  org>
CommitDate: Fri Dec 31 22:13:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e8928e8

dev-util/rizin: drop 0.3.0, 0.3.1-r1

Bug: https://bugs.gentoo.org/829129
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest|   1 -
 dev-util/rizin/files/rizin-0.3.0-md4-openssl.patch | 100 
 dev-util/rizin/rizin-0.3.0.ebuild  | 103 -
 dev-util/rizin/rizin-0.3.1-r1.ebuild   | 102 
 4 files changed, 306 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index c6d198b9cfd0..fe5e33e3c58b 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,4 +1,3 @@
-DIST rizin-src-v0.3.0.tar.xz 64097204 BLAKE2B 
308037ce60ec6523f337580221ea265c912ff92032fc5e1c2ab37430eae5a16cc2e8efa74447a79735c7814a35d3b08e5fc2f548612a1553c5edc2f314d22df5
 SHA512 
68f71e612bd4df90c79ebd4cb26c3e09bb370ccd9e51f574f2687f940b3934d9bf417108f3f7e678cabc6ddba7402e0420aab569c24316e07b2b56ed33153ed3
 DIST rizin-src-v0.3.1.tar.xz 64089580 BLAKE2B 
04f7e3cfa20a787f47af90c78405f295b346cc0c7d81164ff01bc6a69df526f3f9112ab4cb62092297ae2dda1fa738a2e7feff35e0f1b7f3e7467a8c6e4d1a1e
 SHA512 
743f8f2c9ddb045f39147de9ad971d47f1a26bfcc233f41c12c64ade5e31c992104cf3f93c44c5035142b554779e895224b68f839cd87a59aaf344b4ec88d5fe
 DIST rizin-src-v0.3.2.tar.xz 64170200 BLAKE2B 
fe11317e4acc1a803323f42fd4c2c6435a2fe4032581ed509f37f7221ec53e0afac04ebe8cb9da693ac283b61c0a70e135007d635c4c5010519a5c7e7cfa19cf
 SHA512 
c472770ee1b156d42a98d4641f365e2255f16489b2223b117c8b88dcac0d72065d1fd7eedad70046188231889e492bafb7b8462987c68311143f14808eaab1cc
 DIST rizin-testbins-d66fa0feaf3b1ecdad261ca17542f1d5d0b101cc.tar.gz 126773703 
BLAKE2B 
f5eaeb7e99e9091b6ca043dd50d03143950adc06b75b5834886d96d6280207c0bea73101a5f9e06c38ba60c0d4cff82dbf1f00364f7d87fe183c0687b06d1904
 SHA512 
0a017954017c8d57133d51b441411a50aa9ed062c0cc61e1561951fdf0703f5244230cda377885199e9e35dca6780d8582a445ac92286b63ef2ac784777ec0c4

diff --git a/dev-util/rizin/files/rizin-0.3.0-md4-openssl.patch 
b/dev-util/rizin/files/rizin-0.3.0-md4-openssl.patch
deleted file mode 100644
index d2c3135d1c72..
--- a/dev-util/rizin/files/rizin-0.3.0-md4-openssl.patch
+++ /dev/null
@@ -1,100 +0,0 @@
-From 6a1edf5fb6967d57d1dcc8cf21ea3a6bbdf8a5b8 Mon Sep 17 00:00:00 2001
-From: wargio 
-Date: Sat, 2 Oct 2021 22:36:32 +0200
-Subject: [PATCH 1/2] Fix nullptr due missing small_block method when openssl
- is used.
-

- librz/hash/algorithms/openssl_common.h | 42 ++
- 1 file changed, 42 insertions(+)
-
-diff --git a/librz/hash/algorithms/openssl_common.h 
b/librz/hash/algorithms/openssl_common.h
-index b29a1ae1221..e2399cff68d 100644
 a/librz/hash/algorithms/openssl_common.h
-+++ b/librz/hash/algorithms/openssl_common.h
-@@ -76,6 +76,46 @@ EVP_sha512
-   return true; \
-   }
- 
-+#define rz_openssl_plugin_small_block(pluginname, evpmd) \
-+  static bool openssl_plugin_##pluginname##_small_block(const ut8 *data, 
ut64 size, ut8 **digest, RzMsgDigestSize *digest_size) { \
-+  rz_return_val_if_fail(data &, false); \
-+  const EVP_MD *evp_md = evpmd(); \
-+  if (!evp_md) { \
-+  return false; \
-+  } \
-+  RzMsgDigestSize dgst_size = EVP_MD_size(evp_md); \
-+  ut8 *dgst = malloc(dgst_size); \
-+  if (!dgst) { \
-+  return false; \
-+  } \
-+  EVP_MD_CTX *context = EVP_MD_CTX_new(); \
-+  if (!context) { \
-+  free(dgst); \
-+  return false; \
-+  } \
-+  if (EVP_DigestInit_ex(context, evp_md, NULL) != 1) { \
-+  EVP_MD_CTX_free(context); \
-+  free(dgst); \
-+  return false; \
-+  } \
-+  if (EVP_DigestUpdate(context, data, size) != 1) { \
-+  EVP_MD_CTX_free(context); \
-+  free(dgst); \
-+  return false; \
-+  } \
-+  if (EVP_DigestFinal_ex(context, dgst, NULL) != 1) { \
-+  EVP_MD_CTX_free(context); \
-+  free(dgst); \
-+  return false; \
-+  } \
-+  *digest = dgst; \
-+  if (digest_size) { \
-+  *digest_size = dgst_size; \
-+  } \
-+  EVP_MD_CTX_free(context); \
-+  return true; \
-+  }
-+
- #define rz_openssl_plugin_define_msg_digest(pluginname, evpmd, canhmac) \
-   rz_openssl_plugin_context_new(pluginname); \
-   rz_openssl_plugin_context_free(pluginname); 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/, dev-util/rizin/files/

2021-12-13 Thread John Helmert III
commit: 166222145e93b3e5bf1e1978fff2d00553585e1a
Author: John Helmert III  gentoo  org>
AuthorDate: Tue Dec 14 01:07:07 2021 +
Commit: John Helmert III  gentoo  org>
CommitDate: Tue Dec 14 01:08:26 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16622214

dev-util/rizin: add patch for CVE-2021-43814

Bug: https://bugs.gentoo.org/829129
Signed-off-by: John Helmert III  gentoo.org>

 .../rizin/files/rizin-0.3.1-CVE-2021-43814.patch   |  90 ++
 dev-util/rizin/rizin-0.3.1-r2.ebuild   | 103 +
 2 files changed, 193 insertions(+)

diff --git a/dev-util/rizin/files/rizin-0.3.1-CVE-2021-43814.patch 
b/dev-util/rizin/files/rizin-0.3.1-CVE-2021-43814.patch
new file mode 100644
index ..f7c511b5a0cf
--- /dev/null
+++ b/dev-util/rizin/files/rizin-0.3.1-CVE-2021-43814.patch
@@ -0,0 +1,90 @@
+From aa6917772d2f32e5a7daab25a46c72df0b5ea406 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Florian=20M=C3=A4rkl?= 
+Date: Fri, 10 Dec 2021 15:43:12 +0100
+Subject: [PATCH] Fix oob write for dwarf with abbrev with count 0 (Fix #2083)
+ (#2086)
+
+---
+ librz/bin/dwarf.c | 40 ++-
+ test/db/formats/elf/crash |  8 
+ 2 files changed, 31 insertions(+), 17 deletions(-)
+
+diff --git a/librz/bin/dwarf.c b/librz/bin/dwarf.c
+index 1ed1d3517c2..23dd1f9f0b1 100644
+--- a/librz/bin/dwarf.c
 b/librz/bin/dwarf.c
+@@ -1220,9 +1220,13 @@ static int init_die(RzBinDwarfDie *die, ut64 abbr_code, 
ut64 attr_count) {
+   if (!die) {
+   return -1;
+   }
+-  die->attr_values = calloc(sizeof(RzBinDwarfAttrValue), attr_count);
+-  if (!die->attr_values) {
+-  return -1;
++  if (attr_count) {
++  die->attr_values = calloc(sizeof(RzBinDwarfAttrValue), 
attr_count);
++  if (!die->attr_values) {
++  return -1;
++  }
++  } else {
++  die->attr_values = NULL;
+   }
+   die->abbrev_code = abbr_code;
+   die->capacity = attr_count;
+@@ -1726,25 +1730,27 @@ static const ut8 *parse_die(const ut8 *buf, const ut8 
*buf_end, RzBinDwarfDebugI
+   size_t i;
+   const char *comp_dir = NULL;
+   ut64 line_info_offset = UT64_MAX;
+-  for (i = 0; i < abbrev->count - 1; i++) {
+-  memset(>attr_values[i], 0, sizeof(die->attr_values[i]));
++  if (abbrev->count) {
++  for (i = 0; i < abbrev->count - 1; i++) {
++  memset(>attr_values[i], 0, 
sizeof(die->attr_values[i]));
+ 
+-  buf = parse_attr_value(buf, buf_end - buf, >defs[i],
+-  >attr_values[i], hdr, debug_str, debug_str_len, 
big_endian);
++  buf = parse_attr_value(buf, buf_end - buf, 
>defs[i],
++  >attr_values[i], hdr, debug_str, 
debug_str_len, big_endian);
+ 
+-  RzBinDwarfAttrValue *attribute = >attr_values[i];
++  RzBinDwarfAttrValue *attribute = >attr_values[i];
+ 
+-  if (attribute->attr_name == DW_AT_comp_dir && 
(attribute->attr_form == DW_FORM_strp || attribute->attr_form == 
DW_FORM_string) && attribute->string.content) {
+-  comp_dir = attribute->string.content;
+-  }
+-  if (attribute->attr_name == DW_AT_stmt_list) {
+-  if (attribute->kind == DW_AT_KIND_CONSTANT) {
+-  line_info_offset = attribute->uconstant;
+-  } else if (attribute->kind == DW_AT_KIND_REFERENCE) {
+-  line_info_offset = attribute->reference;
++  if (attribute->attr_name == DW_AT_comp_dir && 
(attribute->attr_form == DW_FORM_strp || attribute->attr_form == 
DW_FORM_string) && attribute->string.content) {
++  comp_dir = attribute->string.content;
++  }
++  if (attribute->attr_name == DW_AT_stmt_list) {
++  if (attribute->kind == DW_AT_KIND_CONSTANT) {
++  line_info_offset = attribute->uconstant;
++  } else if (attribute->kind == 
DW_AT_KIND_REFERENCE) {
++  line_info_offset = attribute->reference;
++  }
+   }
++  die->count++;
+   }
+-  die->count++;
+   }
+ 
+   // If this is a compilation unit dir attribute, we want to cache it so 
the line info parsing
+diff --git a/test/db/formats/elf/crash b/test/db/formats/elf/crash
+index ea6c2c214bb..fb8a572bd56 100644
+--- a/test/db/formats/elf/crash
 b/test/db/formats/elf/crash
+@@ -25,3 +25,11 @@ nth vaddr bind type lib name
+ []
+ EOF
+ RUN
++
++NAME=ELF/Dwarf: abbrev empty
++FILE=bins/elf/dwarf_fuzzed_abbrev_empty
++CMDS=

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-11-20 Thread John Helmert III
commit: e0134cd8881a52bfd6e938fb1a32a1b12e323209
Author: John Helmert III  gentoo  org>
AuthorDate: Sat Nov 20 23:04:57 2021 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sat Nov 20 23:30:00 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0134cd8

dev-util/rizin: add subslot

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/{rizin-0.3.1.ebuild => rizin-0.3.1-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.3.1.ebuild 
b/dev-util/rizin/rizin-0.3.1-r1.ebuild
similarity index 99%
rename from dev-util/rizin/rizin-0.3.1.ebuild
rename to dev-util/rizin/rizin-0.3.1-r1.ebuild
index d21a2116b588..84113bbf4057 100644
--- a/dev-util/rizin/rizin-0.3.1.ebuild
+++ b/dev-util/rizin/rizin-0.3.1-r1.ebuild
@@ -18,7 +18,7 @@ 
SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v$
 KEYWORDS="~amd64 ~arm64 ~x86"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0"
+SLOT="0/${PV}"
 IUSE="test"
 
 # Need to audit licenses of the binaries used for testing



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-11-20 Thread John Helmert III
commit: daf5df5b140381d9de19e9763d638ac1798421c2
Author: John Helmert III  gentoo  org>
AuthorDate: Sat Nov 20 17:22:26 2021 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sat Nov 20 17:26:11 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=daf5df5b

dev-util/rizin: add 0.3.1

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |   1 +
 dev-util/rizin/rizin-0.3.1.ebuild | 102 ++
 2 files changed, 103 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 2820a9c4eb55..a20c8d129ca6 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1 +1,2 @@
 DIST rizin-src-v0.3.0.tar.xz 64097204 BLAKE2B 
308037ce60ec6523f337580221ea265c912ff92032fc5e1c2ab37430eae5a16cc2e8efa74447a79735c7814a35d3b08e5fc2f548612a1553c5edc2f314d22df5
 SHA512 
68f71e612bd4df90c79ebd4cb26c3e09bb370ccd9e51f574f2687f940b3934d9bf417108f3f7e678cabc6ddba7402e0420aab569c24316e07b2b56ed33153ed3
+DIST rizin-src-v0.3.1.tar.xz 64089580 BLAKE2B 
04f7e3cfa20a787f47af90c78405f295b346cc0c7d81164ff01bc6a69df526f3f9112ab4cb62092297ae2dda1fa738a2e7feff35e0f1b7f3e7467a8c6e4d1a1e
 SHA512 
743f8f2c9ddb045f39147de9ad971d47f1a26bfcc233f41c12c64ade5e31c992104cf3f93c44c5035142b554779e895224b68f839cd87a59aaf344b4ec88d5fe

diff --git a/dev-util/rizin/rizin-0.3.1.ebuild 
b/dev-util/rizin/rizin-0.3.1.ebuild
new file mode 100644
index ..d21a2116b588
--- /dev/null
+++ b/dev-util/rizin/rizin-0.3.1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=(python3_{8,9,10})
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="74b6e452b1a6abc571091efc32ec2a7d98a6"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz;
+   #test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0"
+IUSE="test"
+
+# Need to audit licenses of the binaries used for testing
+RESTRICT="test"
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   dev-libs/capstone:0=
+   dev-libs/libuv:0=
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   >=dev-libs/tree-sitter-0.19.0
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-0.3.0-typedb-prefix.patch"
+)
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
+   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
+   subprojects/lz4-1.9.3/tests/test-lz4-list.py
+   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
+   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   if use test; then
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" 
"${S}/test/bins" || die
+   cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_magic=enabled
+   -Duse_sys_libzip=enabled
+   -Duse_sys_zlib=enabled
+   -Duse_sys_lz4=enabled
+   -Duse_sys_xxhash=enabled
+   -Duse_sys_openssl=enabled
+   -Duse_sys_tree_sitter=enabled
+
+   $(meson_use test enable_tests)
+   $(meson_use test enable_rz_test)
+   )
+   meson_src_configure
+}
+
+src_test() {
+   # Rizin uses data files that it expects to be installed on the
+   # system. To hack around this, we create a tree of what it expects
+   # in ${T}, and patch the tests to support a prefix from the
+   # environment. https://github.com/rizinorg/rizin/issues/1789
+   mkdir -p "${T}/usr/share/${PN}/${PV}" || die
+   ln -sf "${BUILD_DIR}/librz/analysis/d" 
"${T}/usr/share/${PN}/${PV}/types" || die
+   ln -sf "${BUILD_DIR}/librz/syscall/d" 
"${T}/usr/share/${PN}/${PV}/syscall" || die
+   ln -sf "${BUILD_DIR}/librz/asm/d" "${T}/usr/share/${PN}/${PV}/opcodes" 
|| die
+   # https://github.com/rizinorg/rizin/issues/1797
+   ln -sf "${BUILD_DIR}/librz/flag/d" "${T}/usr/share/${PN}/${PV}/flag" || 
die
+   export RZ_PREFIX="${T}/usr"
+
+   meson_src_test

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/files/, dev-util/rizin/

2021-10-17 Thread John Helmert III
commit: 64ff47121444571971ac7092180f61cd07bbf58f
Author: John Helmert III  gentoo  org>
AuthorDate: Sun Oct 17 14:09:23 2021 +
Commit: John Helmert III  gentoo  org>
CommitDate: Sun Oct 17 16:08:09 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ff4712

dev-util/rizin: drop 0.2.1

Bug: https://bugs.gentoo.org/807067
Bug: https://bugs.gentoo.org/792357
Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest  |  2 -
 dev-util/rizin/files/rizin-0.2.1-no-rzpipe.patch | 14 
 dev-util/rizin/rizin-0.2.1.ebuild| 81 
 3 files changed, 97 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 1b95d38c2f3..2820a9c4eb5 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,3 +1 @@
-DIST rizin-src-v0.2.1.tar.xz 51439132 BLAKE2B 
3ce048c5e93afa43b33bb7c36e7f7a96734886a44a67339c18b36de84b6e3dd015aa49fd048815bc7cb26a39bd3c44ebd00227fdb0c3dc9d9f07ff2ff1f1948d
 SHA512 
4d0a68971a8fe1de3860f8ee18197606f59c22d4c24f3fcce691c73b45c8fe8c356a9b411604e9c3d4e5bb01f695b6ead32cdc217134eb4ddfec76867c16c327
 DIST rizin-src-v0.3.0.tar.xz 64097204 BLAKE2B 
308037ce60ec6523f337580221ea265c912ff92032fc5e1c2ab37430eae5a16cc2e8efa74447a79735c7814a35d3b08e5fc2f548612a1553c5edc2f314d22df5
 SHA512 
68f71e612bd4df90c79ebd4cb26c3e09bb370ccd9e51f574f2687f940b3934d9bf417108f3f7e678cabc6ddba7402e0420aab569c24316e07b2b56ed33153ed3
-DIST rizin-testbins-a80fd0d56d538d07a05ef01e29c8cb430a4f9d72.tar.gz 119214206 
BLAKE2B 
33916d466d77aaa0aeb6b221529a570a2bd2ad07b59b45967d75a84e3efbbc8ca3b8fff9cd88d61598b4e785ead2f8bc58eb7c1cb31007c27e497d80f36e4d2d
 SHA512 
9b01a63ff281ac19b427e715d669e6080c4afdfd777ae762c30537c59bd2cdc2865adc1b34ccb61430b172e54995375b48bb35fd88f098b6a9839e9f3669fde4

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
deleted file mode 100644
index 3e7a6cc70c1..000
--- a/dev-util/rizin/files/rizin-0.2.1-no-rzpipe.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-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
deleted file mode 100644
index 056670c878d..000
--- a/dev-util/rizin/rizin-0.2.1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=(python3_{6,7,8,9,10})
-
-# This is the commit that the CI for the release commit used
-BINS_COMMIT="a80fd0d56d538d07a05ef01e29c8cb430a4f9d72"
-
-inherit meson python-any-r1
-
-DESCRIPTION="reverse engineering framework for binary analysis"
-HOMEPAGE="https://rizin.re/;
-
-SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
-   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~arm64 ~x86"
-
-LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   sys-apps/file
-   app-arch/lz4:0=
-   dev-libs/capstone:0=
-   dev-libs/libuv:0=
-   dev-libs/libzip:0=
-   dev-libs/openssl:0=
-   >=dev-libs/tree-sitter-0.19.0
-   dev-libs/xxhash
-   sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-BDEPEND="${PYTHON_DEPS}"
-
-PATCHES=("${FILESDIR}"/${PN}-0.2.1-no-rzpipe.patch)
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-src_prepare() {
-   default
-
-   local py_to_mangle=(
-   librz/core/cmd_descs/cmd_descs_generate.py
-   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
-   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
-   subprojects/lz4-1.9.3/tests/test-lz4-list.py
-   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
-   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
-   sys/clang-format.py
-   test/fuzz/scripts/fuzz_rz_asm.py
-   test/scripts/gdbserver.py
-   )
-
-   python_fix_shebang "${py_to_mangle[@]}"
-
-   if use test; then
-   mv "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" 
|| die
-   fi
-}
-
-src_configure() {
-   local emesonargs=(
-   -Dcli=enabled
-   -Duse_sys_capstone=enabled
-   -Duse_sys_magic=enabled
-   -Duse_sys_libzip=enabled
-   -Duse_sys_zlib=enabled
-   -Duse_sys_lz4=enabled
- 

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/files/, dev-util/rizin/

2021-10-05 Thread John Helmert III
commit: 412eaec7e9d11870fb4b831213d93f422b6b613c
Author: John Helmert III  gentoo  org>
AuthorDate: Tue Oct  5 20:35:25 2021 +
Commit: John Helmert III  gentoo  org>
CommitDate: Tue Oct  5 20:40:06 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=412eaec7

dev-util/rizin: add 0.3.0

Note that tests are restricted due to uncertainty about the licenses
of the test binaries.

Bug: https://bugs.gentoo.org/792357
Bug: https://bugs.gentoo.org/807067

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest|   1 +
 dev-util/rizin/files/rizin-0.3.0-md4-openssl.patch | 100 
 .../rizin/files/rizin-0.3.0-typedb-prefix.patch| 132 +
 dev-util/rizin/rizin-0.3.0.ebuild  | 103 
 4 files changed, 336 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 1327734a460..1b95d38c2f3 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,2 +1,3 @@
 DIST rizin-src-v0.2.1.tar.xz 51439132 BLAKE2B 
3ce048c5e93afa43b33bb7c36e7f7a96734886a44a67339c18b36de84b6e3dd015aa49fd048815bc7cb26a39bd3c44ebd00227fdb0c3dc9d9f07ff2ff1f1948d
 SHA512 
4d0a68971a8fe1de3860f8ee18197606f59c22d4c24f3fcce691c73b45c8fe8c356a9b411604e9c3d4e5bb01f695b6ead32cdc217134eb4ddfec76867c16c327
+DIST rizin-src-v0.3.0.tar.xz 64097204 BLAKE2B 
308037ce60ec6523f337580221ea265c912ff92032fc5e1c2ab37430eae5a16cc2e8efa74447a79735c7814a35d3b08e5fc2f548612a1553c5edc2f314d22df5
 SHA512 
68f71e612bd4df90c79ebd4cb26c3e09bb370ccd9e51f574f2687f940b3934d9bf417108f3f7e678cabc6ddba7402e0420aab569c24316e07b2b56ed33153ed3
 DIST rizin-testbins-a80fd0d56d538d07a05ef01e29c8cb430a4f9d72.tar.gz 119214206 
BLAKE2B 
33916d466d77aaa0aeb6b221529a570a2bd2ad07b59b45967d75a84e3efbbc8ca3b8fff9cd88d61598b4e785ead2f8bc58eb7c1cb31007c27e497d80f36e4d2d
 SHA512 
9b01a63ff281ac19b427e715d669e6080c4afdfd777ae762c30537c59bd2cdc2865adc1b34ccb61430b172e54995375b48bb35fd88f098b6a9839e9f3669fde4

diff --git a/dev-util/rizin/files/rizin-0.3.0-md4-openssl.patch 
b/dev-util/rizin/files/rizin-0.3.0-md4-openssl.patch
new file mode 100644
index 000..d2c3135d1c7
--- /dev/null
+++ b/dev-util/rizin/files/rizin-0.3.0-md4-openssl.patch
@@ -0,0 +1,100 @@
+From 6a1edf5fb6967d57d1dcc8cf21ea3a6bbdf8a5b8 Mon Sep 17 00:00:00 2001
+From: wargio 
+Date: Sat, 2 Oct 2021 22:36:32 +0200
+Subject: [PATCH 1/2] Fix nullptr due missing small_block method when openssl
+ is used.
+
+---
+ librz/hash/algorithms/openssl_common.h | 42 ++
+ 1 file changed, 42 insertions(+)
+
+diff --git a/librz/hash/algorithms/openssl_common.h 
b/librz/hash/algorithms/openssl_common.h
+index b29a1ae1221..e2399cff68d 100644
+--- a/librz/hash/algorithms/openssl_common.h
 b/librz/hash/algorithms/openssl_common.h
+@@ -76,6 +76,46 @@ EVP_sha512
+   return true; \
+   }
+ 
++#define rz_openssl_plugin_small_block(pluginname, evpmd) \
++  static bool openssl_plugin_##pluginname##_small_block(const ut8 *data, 
ut64 size, ut8 **digest, RzMsgDigestSize *digest_size) { \
++  rz_return_val_if_fail(data &, false); \
++  const EVP_MD *evp_md = evpmd(); \
++  if (!evp_md) { \
++  return false; \
++  } \
++  RzMsgDigestSize dgst_size = EVP_MD_size(evp_md); \
++  ut8 *dgst = malloc(dgst_size); \
++  if (!dgst) { \
++  return false; \
++  } \
++  EVP_MD_CTX *context = EVP_MD_CTX_new(); \
++  if (!context) { \
++  free(dgst); \
++  return false; \
++  } \
++  if (EVP_DigestInit_ex(context, evp_md, NULL) != 1) { \
++  EVP_MD_CTX_free(context); \
++  free(dgst); \
++  return false; \
++  } \
++  if (EVP_DigestUpdate(context, data, size) != 1) { \
++  EVP_MD_CTX_free(context); \
++  free(dgst); \
++  return false; \
++  } \
++  if (EVP_DigestFinal_ex(context, dgst, NULL) != 1) { \
++  EVP_MD_CTX_free(context); \
++  free(dgst); \
++  return false; \
++  } \
++  *digest = dgst; \
++  if (digest_size) { \
++  *digest_size = dgst_size; \
++  } \
++  EVP_MD_CTX_free(context); \
++  return true; \
++  }
++
+ #define rz_openssl_plugin_define_msg_digest(pluginname, evpmd, canhmac) \
+   rz_openssl_plugin_context_new(pluginname); \
+   rz_openssl_plugin_context_free(pluginname); \
+@@ -84,6 +124,7 @@ EVP_sha512
+   rz_openssl_plugin_init(pluginname, evpmd); \
+   rz_openssl_plugin_update(pluginname); \
+   rz_openssl_plugin_final(pluginname); \
++  

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-09-08 Thread Sam James
commit: 496a72facd6de0512619ca0de535b1dfeb97430f
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep  9 04:21:29 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep  9 04:21:29 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=496a72fa

dev-util/rizin: Keyword 0.2.1 arm64, #807724

Signed-off-by: Sam James  gentoo.org>

 dev-util/rizin/rizin-0.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.2.1.ebuild 
b/dev-util/rizin/rizin-0.2.1.ebuild
index f8d2d2dd1bd..056670c878d 100644
--- a/dev-util/rizin/rizin-0.2.1.ebuild
+++ b/dev-util/rizin/rizin-0.2.1.ebuild
@@ -15,7 +15,7 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~arm64 ~x86"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-07-01 Thread Sergei Trofimovich
commit: c5011c943b2683e8dcfb88934de9fd3b9c1e8445
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Jul  2 05:58:09 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Jul  2 05:58:09 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5011c94

dev-util/rizin: drop myself from maintainers

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/metadata.xml | 4 
 1 file changed, 4 deletions(-)

diff --git a/dev-util/rizin/metadata.xml b/dev-util/rizin/metadata.xml
index 65f8f96f8fa..4269a4797e0 100644
--- a/dev-util/rizin/metadata.xml
+++ b/dev-util/rizin/metadata.xml
@@ -9,8 +9,4 @@
s...@gentoo.org
Sam James

-   
-   sly...@gentoo.org
-   Sergei Trofimovich
-   
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-06-10 Thread Sergei Trofimovich
commit: 8c11e8cec3170b4f8297bf930cc58b91d737e564
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Jun 10 17:50:57 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Jun 10 17:51:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c11e8ce

dev-util/rizin: specify lower bound of tree-sitter to be >=0.19.0

Issue: https://github.com/rizinorg/rizin/issues/1194
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/rizin-0.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.2.1.ebuild 
b/dev-util/rizin/rizin-0.2.1.ebuild
index 08ed3c5435e..f8d2d2dd1bd 100644
--- a/dev-util/rizin/rizin-0.2.1.ebuild
+++ b/dev-util/rizin/rizin-0.2.1.ebuild
@@ -29,7 +29,7 @@ RDEPEND="
dev-libs/libuv:0=
dev-libs/libzip:0=
dev-libs/openssl:0=
-   dev-libs/tree-sitter
+   >=dev-libs/tree-sitter-0.19.0
dev-libs/xxhash
sys-libs/zlib:0=
 "



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/files/, dev-util/rizin/

2021-06-04 Thread Sergei Trofimovich
commit: 5f37a5d8d047c32806eefc0d6da6a3101d03816d
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Jun  4 09:31:18 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Jun  4 09:31:26 2021 +
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  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 000..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() {



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-05-15 Thread Sergei Trofimovich
commit: 7cb953c60e9bc7a212876a32385dc20f555ced3a
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat May 15 13:43:51 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat May 15 13:58:34 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cb953c6

dev-util/rizin: allow python-3.10

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/rizin-0.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.2.1.ebuild 
b/dev-util/rizin/rizin-0.2.1.ebuild
index a07d3af1106..7f58bcca359 100644
--- a/dev-util/rizin/rizin-0.2.1.ebuild
+++ b/dev-util/rizin/rizin-0.2.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=(python3_{6,7,8,9})
+PYTHON_COMPAT=(python3_{6,7,8,9,10})
 
 # This is the commit that the CI for the release commit used
 BINS_COMMIT="a80fd0d56d538d07a05ef01e29c8cb430a4f9d72"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-05-01 Thread Sergei Trofimovich
commit: 6e96b68c6e6bb47a7aa88c17bb637ae94f8b08ff
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat May  1 20:15:44 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat May  1 20:44:22 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e96b68c

dev-util/rizin: drop old

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/Manifest  |  1 -
 dev-util/rizin/rizin-0.2.0-r1.ebuild | 85 
 2 files changed, 86 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 7b26b43c7e2..1327734a460 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,3 +1,2 @@
-DIST rizin-src-v0.2.0.tar.xz 51438288 BLAKE2B 
2db80b74cb1f40387e8d173fea19418d0a95be6a93acd5fb39da2fd51a0db6d77b20a7e8c551c461ce10ec2a39aa51958c238cd8dad7a357cd886804e87efa93
 SHA512 
d9522423110553e4b0ac80bfce6edd4b642a1df74e76b77ab23a7b13a37a37a3858ad294e14742a349265ed509345fb0277b910de6814eee3b970a6b9b344d12
 DIST rizin-src-v0.2.1.tar.xz 51439132 BLAKE2B 
3ce048c5e93afa43b33bb7c36e7f7a96734886a44a67339c18b36de84b6e3dd015aa49fd048815bc7cb26a39bd3c44ebd00227fdb0c3dc9d9f07ff2ff1f1948d
 SHA512 
4d0a68971a8fe1de3860f8ee18197606f59c22d4c24f3fcce691c73b45c8fe8c356a9b411604e9c3d4e5bb01f695b6ead32cdc217134eb4ddfec76867c16c327
 DIST rizin-testbins-a80fd0d56d538d07a05ef01e29c8cb430a4f9d72.tar.gz 119214206 
BLAKE2B 
33916d466d77aaa0aeb6b221529a570a2bd2ad07b59b45967d75a84e3efbbc8ca3b8fff9cd88d61598b4e785ead2f8bc58eb7c1cb31007c27e497d80f36e4d2d
 SHA512 
9b01a63ff281ac19b427e715d669e6080c4afdfd777ae762c30537c59bd2cdc2865adc1b34ccb61430b172e54995375b48bb35fd88f098b6a9839e9f3669fde4

diff --git a/dev-util/rizin/rizin-0.2.0-r1.ebuild 
b/dev-util/rizin/rizin-0.2.0-r1.ebuild
deleted file mode 100644
index dfac4e598d7..000
--- a/dev-util/rizin/rizin-0.2.0-r1.ebuild
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=(python3_{6,7,8,9})
-
-# This is the commit that the CI for the release commit used
-BINS_COMMIT="a80fd0d56d538d07a05ef01e29c8cb430a4f9d72"
-
-inherit meson python-any-r1
-
-DESCRIPTION="reverse engineering framework for binary analysis"
-HOMEPAGE="https://rizin.re/;
-
-SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
-   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   sys-apps/file
-   app-arch/lz4:0=
-   dev-libs/capstone:0=
-   dev-libs/libuv:0=
-   dev-libs/libzip:0=
-   dev-libs/openssl:0=
-   dev-libs/tree-sitter
-   dev-libs/xxhash
-   sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-BDEPEND="${PYTHON_DEPS}"
-
-S="${WORKDIR}/${PN}-v${PV}"
-
-src_prepare() {
-   default
-
-   # TODO: is there a better way to override it in meson?
-   # Maybe we can inject something to '[binaries]'
-   # https://bugs.gentoo.org/781827
-   sed "s/py3_exe = import('python').find_installation('python3')/py3_exe 
= import('python').find_installation('${EPYTHON}')/" \
-   -i subprojects/sdb/meson.build || die
-
-   local py_to_mangle=(
-   librz/core/cmd_descs/cmd_descs_generate.py
-   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
-   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
-   subprojects/lz4-1.9.3/tests/test-lz4-list.py
-   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
-   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
-   sys/clang-format.py
-   test/fuzz/scripts/fuzz_rz_asm.py
-   test/scripts/gdbserver.py
-   )
-
-   python_fix_shebang "${py_to_mangle[@]}"
-
-   if use test; then
-   mv "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" 
|| die
-   fi
-}
-
-src_configure() {
-   local emesonargs=(
-   -Dcli=enabled
-   -Duse_sys_capstone=enabled
-   -Duse_sys_magic=enabled
-   -Duse_sys_libzip=enabled
-   -Duse_sys_zlib=enabled
-   -Duse_sys_lz4=enabled
-   -Duse_sys_xxhash=enabled
-   -Duse_sys_openssl=enabled
-   -Duse_sys_tree_sitter=enabled
-
-   $(meson_use test enable_tests)
-   $(meson_use test enable_rz_test)
-   )
-   meson_src_configure
-}



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-04-24 Thread Sergei Trofimovich
commit: d4bbab696e574f9eca49e64b55fb5fe5ede582e1
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Apr 24 23:07:56 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Apr 24 23:11:34 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4bbab69

dev-util/rizin: bump up to 0.2.1

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/Manifest   |  1 +
 dev-util/rizin/rizin-0.2.1.ebuild | 79 +++
 2 files changed, 80 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 5084e0b8ad3..7b26b43c7e2 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,2 +1,3 @@
 DIST rizin-src-v0.2.0.tar.xz 51438288 BLAKE2B 
2db80b74cb1f40387e8d173fea19418d0a95be6a93acd5fb39da2fd51a0db6d77b20a7e8c551c461ce10ec2a39aa51958c238cd8dad7a357cd886804e87efa93
 SHA512 
d9522423110553e4b0ac80bfce6edd4b642a1df74e76b77ab23a7b13a37a37a3858ad294e14742a349265ed509345fb0277b910de6814eee3b970a6b9b344d12
+DIST rizin-src-v0.2.1.tar.xz 51439132 BLAKE2B 
3ce048c5e93afa43b33bb7c36e7f7a96734886a44a67339c18b36de84b6e3dd015aa49fd048815bc7cb26a39bd3c44ebd00227fdb0c3dc9d9f07ff2ff1f1948d
 SHA512 
4d0a68971a8fe1de3860f8ee18197606f59c22d4c24f3fcce691c73b45c8fe8c356a9b411604e9c3d4e5bb01f695b6ead32cdc217134eb4ddfec76867c16c327
 DIST rizin-testbins-a80fd0d56d538d07a05ef01e29c8cb430a4f9d72.tar.gz 119214206 
BLAKE2B 
33916d466d77aaa0aeb6b221529a570a2bd2ad07b59b45967d75a84e3efbbc8ca3b8fff9cd88d61598b4e785ead2f8bc58eb7c1cb31007c27e497d80f36e4d2d
 SHA512 
9b01a63ff281ac19b427e715d669e6080c4afdfd777ae762c30537c59bd2cdc2865adc1b34ccb61430b172e54995375b48bb35fd88f098b6a9839e9f3669fde4

diff --git a/dev-util/rizin/rizin-0.2.1.ebuild 
b/dev-util/rizin/rizin-0.2.1.ebuild
new file mode 100644
index 000..a07d3af1106
--- /dev/null
+++ b/dev-util/rizin/rizin-0.2.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=(python3_{6,7,8,9})
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="a80fd0d56d538d07a05ef01e29c8cb430a4f9d72"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   dev-libs/capstone:0=
+   dev-libs/libuv:0=
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   dev-libs/tree-sitter
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
+   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
+   subprojects/lz4-1.9.3/tests/test-lz4-list.py
+   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
+   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   if use test; then
+   mv "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" 
|| die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_magic=enabled
+   -Duse_sys_libzip=enabled
+   -Duse_sys_zlib=enabled
+   -Duse_sys_lz4=enabled
+   -Duse_sys_xxhash=enabled
+   -Duse_sys_openssl=enabled
+   -Duse_sys_tree_sitter=enabled
+
+   $(meson_use test enable_tests)
+   $(meson_use test enable_rz_test)
+   )
+   meson_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-04-24 Thread Sergei Trofimovich
commit: a87ff7b6f4ea4f78ec504aade37f74d51a684d7d
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Apr 24 12:29:07 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Apr 24 12:37:08 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a87ff7b6

dev-util/rizin: drop old

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/Manifest   |  2 --
 dev-util/rizin/rizin-0.1.2.ebuild | 60 -
 dev-util/rizin/rizin-0.2.0.ebuild | 62 ---
 3 files changed, 124 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 111ec54391b..5084e0b8ad3 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,4 +1,2 @@
-DIST rizin-src-0.1.2.tar.xz 5559560 BLAKE2B 
a9182ae49782c57c3c4d4028203cfb1aef5b743096f4749a0ba65fa80ee421a23c3eb8a4f413f06f51c909c763a9bb06cb058cd334b3f4b0711ff72ee93c0df6
 SHA512 
f52987af5d1cd9f88a699610dfbb8118b23c5ce205c530a7b0c7481b06ee95a8e4d0d66297ca34c18e0b9366c963ea3244f37d66a7fda0ec6ffaa084f2ae7568
 DIST rizin-src-v0.2.0.tar.xz 51438288 BLAKE2B 
2db80b74cb1f40387e8d173fea19418d0a95be6a93acd5fb39da2fd51a0db6d77b20a7e8c551c461ce10ec2a39aa51958c238cd8dad7a357cd886804e87efa93
 SHA512 
d9522423110553e4b0ac80bfce6edd4b642a1df74e76b77ab23a7b13a37a37a3858ad294e14742a349265ed509345fb0277b910de6814eee3b970a6b9b344d12
 DIST rizin-testbins-a80fd0d56d538d07a05ef01e29c8cb430a4f9d72.tar.gz 119214206 
BLAKE2B 
33916d466d77aaa0aeb6b221529a570a2bd2ad07b59b45967d75a84e3efbbc8ca3b8fff9cd88d61598b4e785ead2f8bc58eb7c1cb31007c27e497d80f36e4d2d
 SHA512 
9b01a63ff281ac19b427e715d669e6080c4afdfd777ae762c30537c59bd2cdc2865adc1b34ccb61430b172e54995375b48bb35fd88f098b6a9839e9f3669fde4
-DIST rizin-testbins-b7d6c0ec57eb1c14e970b8301f36cbac997ee695.tar.gz 116758002 
BLAKE2B 
f30412c8b749de7e71e71b472ce1237091e71fac15d08e6ab5a3bcd9b87fbf75e347427cb588d18b62376040061f90b9b78016db689e46e5b32d3fd2aac6f1bf
 SHA512 
94aca148dc2aaede66c63253717b3ee5f34b46dc8a634d7a3916786c97075c6eb9ee98af25c2af2778a601ade7cfb1d41ed3b11de36ddb74abc5f4eabef74ef3

diff --git a/dev-util/rizin/rizin-0.1.2.ebuild 
b/dev-util/rizin/rizin-0.1.2.ebuild
deleted file mode 100644
index 0bbd04ea7b6..000
--- a/dev-util/rizin/rizin-0.1.2.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-# This is the commit that the CI for the release commit used
-BINS_COMMIT="b7d6c0ec57eb1c14e970b8301f36cbac997ee695"
-
-inherit meson
-
-DESCRIPTION="reverse engineering framework for binary analysis"
-HOMEPAGE="https://rizin.re/;
-
-SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-${PV}.tar.xz
-   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   sys-apps/file
-   app-arch/lz4:0=
-   dev-libs/capstone:0=
-   dev-libs/libuv:0=
-   dev-libs/libzip:0=
-   dev-libs/openssl:0=
-   dev-libs/tree-sitter
-   dev-libs/xxhash
-   sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-
-src_prepare() {
-   default
-
-   if use test; then
-  mv "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" || die
-   fi
-}
-
-src_configure() {
-   local emesonargs=(
-   -Dcli=enabled
-   -Duse_sys_capstone=true
-   -Duse_sys_magic=true
-   -Duse_sys_zip=true
-   -Duse_sys_zlib=true
-   -Duse_sys_lz4=true
-   -Duse_sys_xxhash=true
-   -Duse_sys_openssl=true
-   -Duse_sys_tree_sitter=true
-
-   $(meson_use test enable_tests)
-   $(meson_use test enable_rz_test)
-   )
-   meson_src_configure
-}

diff --git a/dev-util/rizin/rizin-0.2.0.ebuild 
b/dev-util/rizin/rizin-0.2.0.ebuild
deleted file mode 100644
index 9f40b26731c..000
--- a/dev-util/rizin/rizin-0.2.0.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-# This is the commit that the CI for the release commit used
-BINS_COMMIT="a80fd0d56d538d07a05ef01e29c8cb430a4f9d72"
-
-inherit meson
-
-DESCRIPTION="reverse engineering framework for binary analysis"
-HOMEPAGE="https://rizin.re/;
-
-SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
-   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64 ~x86"
-
-LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-   sys-apps/file
-   app-arch/lz4:0=
-  

[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-04-09 Thread Sergei Trofimovich
commit: 2ad50c6aeac4014919dd9362ae703ceed70a406d
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Apr  9 09:58:07 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Apr  9 09:58:07 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ad50c6a

dev-util/rizin: attach bug # to a TODO entry

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/rizin-0.2.0-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-util/rizin/rizin-0.2.0-r1.ebuild 
b/dev-util/rizin/rizin-0.2.0-r1.ebuild
index 313278e8751..dfac4e598d7 100644
--- a/dev-util/rizin/rizin-0.2.0-r1.ebuild
+++ b/dev-util/rizin/rizin-0.2.0-r1.ebuild
@@ -43,6 +43,7 @@ src_prepare() {
 
# TODO: is there a better way to override it in meson?
# Maybe we can inject something to '[binaries]'
+   # https://bugs.gentoo.org/781827
sed "s/py3_exe = import('python').find_installation('python3')/py3_exe 
= import('python').find_installation('${EPYTHON}')/" \
-i subprojects/sdb/meson.build || die
 



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-04-09 Thread Sergei Trofimovich
commit: e64c97da5d53b1205efeba729fc9bd10546f25e8
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Apr  9 09:44:30 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Apr  9 09:52:45 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e64c97da

dev-util/rizin: use ${EPYTHON} instead of python3

Reported-by: Agostino Sarubbo
Closes: https://bugs.gentoo.org/781701
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/rizin-0.2.0-r1.ebuild | 84 
 1 file changed, 84 insertions(+)

diff --git a/dev-util/rizin/rizin-0.2.0-r1.ebuild 
b/dev-util/rizin/rizin-0.2.0-r1.ebuild
new file mode 100644
index 000..313278e8751
--- /dev/null
+++ b/dev-util/rizin/rizin-0.2.0-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=(python3_{6,7,8,9})
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="a80fd0d56d538d07a05ef01e29c8cb430a4f9d72"
+
+inherit meson python-any-r1
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   dev-libs/capstone:0=
+   dev-libs/libuv:0=
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   dev-libs/tree-sitter
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   # TODO: is there a better way to override it in meson?
+   # Maybe we can inject something to '[binaries]'
+   sed "s/py3_exe = import('python').find_installation('python3')/py3_exe 
= import('python').find_installation('${EPYTHON}')/" \
+   -i subprojects/sdb/meson.build || die
+
+   local py_to_mangle=(
+   librz/core/cmd_descs/cmd_descs_generate.py
+   
subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py
+   subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py
+   subprojects/lz4-1.9.3/tests/test-lz4-list.py
+   subprojects/lz4-1.9.3/tests/test-lz4-speed.py
+   subprojects/lz4-1.9.3/tests/test-lz4-versions.py
+   sys/clang-format.py
+   test/fuzz/scripts/fuzz_rz_asm.py
+   test/scripts/gdbserver.py
+   )
+
+   python_fix_shebang "${py_to_mangle[@]}"
+
+   if use test; then
+   mv "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" 
|| die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_magic=enabled
+   -Duse_sys_libzip=enabled
+   -Duse_sys_zlib=enabled
+   -Duse_sys_lz4=enabled
+   -Duse_sys_xxhash=enabled
+   -Duse_sys_openssl=enabled
+   -Duse_sys_tree_sitter=enabled
+
+   $(meson_use test enable_tests)
+   $(meson_use test enable_rz_test)
+   )
+   meson_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-04-08 Thread John Helmert III
commit: ad165ddd7724994ede904ab1105671cbddcca8e7
Author: John Helmert III  gentoo  org>
AuthorDate: Thu Apr  8 20:54:20 2021 +
Commit: John Helmert III  gentoo  org>
CommitDate: Thu Apr  8 20:54:20 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad165ddd

dev-util/rizin: add 0.2.0

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |  2 ++
 dev-util/rizin/rizin-0.2.0.ebuild | 62 +++
 2 files changed, 64 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 064bfdf41f7..111ec54391b 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,2 +1,4 @@
 DIST rizin-src-0.1.2.tar.xz 5559560 BLAKE2B 
a9182ae49782c57c3c4d4028203cfb1aef5b743096f4749a0ba65fa80ee421a23c3eb8a4f413f06f51c909c763a9bb06cb058cd334b3f4b0711ff72ee93c0df6
 SHA512 
f52987af5d1cd9f88a699610dfbb8118b23c5ce205c530a7b0c7481b06ee95a8e4d0d66297ca34c18e0b9366c963ea3244f37d66a7fda0ec6ffaa084f2ae7568
+DIST rizin-src-v0.2.0.tar.xz 51438288 BLAKE2B 
2db80b74cb1f40387e8d173fea19418d0a95be6a93acd5fb39da2fd51a0db6d77b20a7e8c551c461ce10ec2a39aa51958c238cd8dad7a357cd886804e87efa93
 SHA512 
d9522423110553e4b0ac80bfce6edd4b642a1df74e76b77ab23a7b13a37a37a3858ad294e14742a349265ed509345fb0277b910de6814eee3b970a6b9b344d12
+DIST rizin-testbins-a80fd0d56d538d07a05ef01e29c8cb430a4f9d72.tar.gz 119214206 
BLAKE2B 
33916d466d77aaa0aeb6b221529a570a2bd2ad07b59b45967d75a84e3efbbc8ca3b8fff9cd88d61598b4e785ead2f8bc58eb7c1cb31007c27e497d80f36e4d2d
 SHA512 
9b01a63ff281ac19b427e715d669e6080c4afdfd777ae762c30537c59bd2cdc2865adc1b34ccb61430b172e54995375b48bb35fd88f098b6a9839e9f3669fde4
 DIST rizin-testbins-b7d6c0ec57eb1c14e970b8301f36cbac997ee695.tar.gz 116758002 
BLAKE2B 
f30412c8b749de7e71e71b472ce1237091e71fac15d08e6ab5a3bcd9b87fbf75e347427cb588d18b62376040061f90b9b78016db689e46e5b32d3fd2aac6f1bf
 SHA512 
94aca148dc2aaede66c63253717b3ee5f34b46dc8a634d7a3916786c97075c6eb9ee98af25c2af2778a601ade7cfb1d41ed3b11de36ddb74abc5f4eabef74ef3

diff --git a/dev-util/rizin/rizin-0.2.0.ebuild 
b/dev-util/rizin/rizin-0.2.0.ebuild
new file mode 100644
index 000..9f40b26731c
--- /dev/null
+++ b/dev-util/rizin/rizin-0.2.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="a80fd0d56d538d07a05ef01e29c8cb430a4f9d72"
+
+inherit meson
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64 ~x86"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   dev-libs/capstone:0=
+   dev-libs/libuv:0=
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   dev-libs/tree-sitter
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+src_prepare() {
+   default
+
+   if use test; then
+  mv "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=enabled
+   -Duse_sys_magic=enabled
+   -Duse_sys_zip=enabled
+   -Duse_sys_zlib=enabled
+   -Duse_sys_lz4=enabled
+   -Duse_sys_xxhash=enabled
+   -Duse_sys_openssl=enabled
+   -Duse_sys_tree_sitter=enabled
+
+   $(meson_use test enable_tests)
+   $(meson_use test enable_rz_test)
+   )
+   meson_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-04-06 Thread Sergei Trofimovich
commit: a5be11875dd9a06756bb3a172167db6a5469b760
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Apr  6 19:03:18 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Apr  6 19:03:40 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5be1187

dev-util/rizin: keyworded 0.1.2 for x86

keyworded wrt bug #780492 (KEYWORDREQ)

Package-Manager: Portage-3.0.18, Repoman-3.0.3
RepoMan-Options: --include-arches="x86"
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/rizin-0.1.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/rizin/rizin-0.1.2.ebuild 
b/dev-util/rizin/rizin-0.1.2.ebuild
index d1ca78992fe..0bbd04ea7b6 100644
--- a/dev-util/rizin/rizin-0.1.2.ebuild
+++ b/dev-util/rizin/rizin-0.1.2.ebuild
@@ -13,7 +13,7 @@ HOMEPAGE="https://rizin.re/;
 
 
SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-${PV}.tar.xz
test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~x86"
 
 LICENSE="Apache-2.0 BSD LGPL-3 MIT"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-04-02 Thread Sergei Trofimovich
commit: f21e20f9d611accb92b710055924c665148707f0
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Apr  2 09:51:32 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Apr  2 09:53:59 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f21e20f9

dev-util/rizin: drop old

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/Manifest   |  1 -
 dev-util/rizin/rizin-0.1.1.ebuild | 51 ---
 2 files changed, 52 deletions(-)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 0f1272bae1b..064bfdf41f7 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1,3 +1,2 @@
-DIST rizin-src-0.1.1.tar.xz 5475164 BLAKE2B 
7646f07d462f0c7e9874fe29bf0b638f0d10756c2189e2811ee1711c6feb9b76e5c5e90574c084c568a8fbe204c8867e6bfad17f12567fa4a579924bdbda6932
 SHA512 
da3842e2b8534d1440aed547cf7a7ee351527d78883e7f989509b50cd99d3aebabb9307169a9a5cfcf6d82a8cf5ade5c653d2fdbf6b7d2052e46f049b1a4d035
 DIST rizin-src-0.1.2.tar.xz 5559560 BLAKE2B 
a9182ae49782c57c3c4d4028203cfb1aef5b743096f4749a0ba65fa80ee421a23c3eb8a4f413f06f51c909c763a9bb06cb058cd334b3f4b0711ff72ee93c0df6
 SHA512 
f52987af5d1cd9f88a699610dfbb8118b23c5ce205c530a7b0c7481b06ee95a8e4d0d66297ca34c18e0b9366c963ea3244f37d66a7fda0ec6ffaa084f2ae7568
 DIST rizin-testbins-b7d6c0ec57eb1c14e970b8301f36cbac997ee695.tar.gz 116758002 
BLAKE2B 
f30412c8b749de7e71e71b472ce1237091e71fac15d08e6ab5a3bcd9b87fbf75e347427cb588d18b62376040061f90b9b78016db689e46e5b32d3fd2aac6f1bf
 SHA512 
94aca148dc2aaede66c63253717b3ee5f34b46dc8a634d7a3916786c97075c6eb9ee98af25c2af2778a601ade7cfb1d41ed3b11de36ddb74abc5f4eabef74ef3

diff --git a/dev-util/rizin/rizin-0.1.1.ebuild 
b/dev-util/rizin/rizin-0.1.1.ebuild
deleted file mode 100644
index 95606c5515b..000
--- a/dev-util/rizin/rizin-0.1.1.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit meson
-
-DESCRIPTION="reverse engineering framework for binary analysis"
-HOMEPAGE="https://rizin.re/;
-
-SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-${PV}.tar.xz;
-KEYWORDS="~amd64"
-
-LICENSE="Apache-2.0 BSD LGPL-3 MIT"
-SLOT="0"
-IUSE="test"
-
-RESTRICT=test # TODO: find out why dwarf and other tests fail
-
-RDEPEND="
-   sys-apps/file
-   app-arch/lz4:0=
-   dev-libs/capstone:0=
-   dev-libs/libuv:0=
-   dev-libs/libzip:0=
-   dev-libs/openssl:0=
-   dev-libs/tree-sitter
-   dev-libs/xxhash
-   sys-libs/zlib:0=
-"
-DEPEND="${RDEPEND}"
-
-src_configure() {
-   local emesonargs=(
-   -Dcli=enabled
-   -Duse_sys_capstone=true
-   -Duse_sys_magic=true
-   -Duse_sys_zip=true
-   -Duse_sys_zlib=true
-   -Duse_sys_lz4=true
-   -Duse_sys_xxhash=true
-   -Duse_sys_openssl=true
-
-   # ::gentoo's tree-sitter SIGSEGVs rizin
-   -Duse_sys_tree_sitter=false
-
-   $(meson_use test enable_tests)
-   $(meson_use test enable_rz_test)
-   )
-   meson_src_configure
-}



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-03-31 Thread John Helmert III
commit: 1216ea4d1ffae3bb3a94c31f4b513150eb86576d
Author: John Helmert III  gentoo  org>
AuthorDate: Wed Mar 31 15:42:06 2021 +
Commit: John Helmert III  gentoo  org>
CommitDate: Wed Mar 31 15:42:50 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1216ea4d

dev-util/rizin: add 0.1.2

Fix tests, use system tree-sitter.

Signed-off-by: John Helmert III  gentoo.org>

 dev-util/rizin/Manifest   |  2 ++
 dev-util/rizin/rizin-0.1.2.ebuild | 60 +++
 2 files changed, 62 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
index 97ccecd84fd..0f1272bae1b 100644
--- a/dev-util/rizin/Manifest
+++ b/dev-util/rizin/Manifest
@@ -1 +1,3 @@
 DIST rizin-src-0.1.1.tar.xz 5475164 BLAKE2B 
7646f07d462f0c7e9874fe29bf0b638f0d10756c2189e2811ee1711c6feb9b76e5c5e90574c084c568a8fbe204c8867e6bfad17f12567fa4a579924bdbda6932
 SHA512 
da3842e2b8534d1440aed547cf7a7ee351527d78883e7f989509b50cd99d3aebabb9307169a9a5cfcf6d82a8cf5ade5c653d2fdbf6b7d2052e46f049b1a4d035
+DIST rizin-src-0.1.2.tar.xz 5559560 BLAKE2B 
a9182ae49782c57c3c4d4028203cfb1aef5b743096f4749a0ba65fa80ee421a23c3eb8a4f413f06f51c909c763a9bb06cb058cd334b3f4b0711ff72ee93c0df6
 SHA512 
f52987af5d1cd9f88a699610dfbb8118b23c5ce205c530a7b0c7481b06ee95a8e4d0d66297ca34c18e0b9366c963ea3244f37d66a7fda0ec6ffaa084f2ae7568
+DIST rizin-testbins-b7d6c0ec57eb1c14e970b8301f36cbac997ee695.tar.gz 116758002 
BLAKE2B 
f30412c8b749de7e71e71b472ce1237091e71fac15d08e6ab5a3bcd9b87fbf75e347427cb588d18b62376040061f90b9b78016db689e46e5b32d3fd2aac6f1bf
 SHA512 
94aca148dc2aaede66c63253717b3ee5f34b46dc8a634d7a3916786c97075c6eb9ee98af25c2af2778a601ade7cfb1d41ed3b11de36ddb74abc5f4eabef74ef3

diff --git a/dev-util/rizin/rizin-0.1.2.ebuild 
b/dev-util/rizin/rizin-0.1.2.ebuild
new file mode 100644
index 000..d1ca78992fe
--- /dev/null
+++ b/dev-util/rizin/rizin-0.1.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# This is the commit that the CI for the release commit used
+BINS_COMMIT="b7d6c0ec57eb1c14e970b8301f36cbac997ee695"
+
+inherit meson
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-${PV}.tar.xz
+   test? ( 
https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> 
rizin-testbins-${BINS_COMMIT}.tar.gz )"
+KEYWORDS="~amd64"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   dev-libs/capstone:0=
+   dev-libs/libuv:0=
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   dev-libs/tree-sitter
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+   default
+
+   if use test; then
+  mv "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" || die
+   fi
+}
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=true
+   -Duse_sys_magic=true
+   -Duse_sys_zip=true
+   -Duse_sys_zlib=true
+   -Duse_sys_lz4=true
+   -Duse_sys_xxhash=true
+   -Duse_sys_openssl=true
+   -Duse_sys_tree_sitter=true
+
+   $(meson_use test enable_tests)
+   $(meson_use test enable_rz_test)
+   )
+   meson_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/

2021-03-29 Thread Sergei Trofimovich
commit: c9353a5fa94c9ff0517f21810d2c1f8188b453c1
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Mon Mar 29 19:34:43 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Mar 29 19:35:03 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9353a5f

dev-util/rizin: new package, a relative of radare2

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-util/rizin/Manifest   |  1 +
 dev-util/rizin/metadata.xml   | 16 
 dev-util/rizin/rizin-0.1.1.ebuild | 51 +++
 3 files changed, 68 insertions(+)

diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest
new file mode 100644
index 000..97ccecd84fd
--- /dev/null
+++ b/dev-util/rizin/Manifest
@@ -0,0 +1 @@
+DIST rizin-src-0.1.1.tar.xz 5475164 BLAKE2B 
7646f07d462f0c7e9874fe29bf0b638f0d10756c2189e2811ee1711c6feb9b76e5c5e90574c084c568a8fbe204c8867e6bfad17f12567fa4a579924bdbda6932
 SHA512 
da3842e2b8534d1440aed547cf7a7ee351527d78883e7f989509b50cd99d3aebabb9307169a9a5cfcf6d82a8cf5ade5c653d2fdbf6b7d2052e46f049b1a4d035

diff --git a/dev-util/rizin/metadata.xml b/dev-util/rizin/metadata.xml
new file mode 100644
index 000..65f8f96f8fa
--- /dev/null
+++ b/dev-util/rizin/metadata.xml
@@ -0,0 +1,16 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   a...@gentoo.org
+   John Helmert III
+   
+   
+   s...@gentoo.org
+   Sam James
+   
+   
+   sly...@gentoo.org
+   Sergei Trofimovich
+   
+

diff --git a/dev-util/rizin/rizin-0.1.1.ebuild 
b/dev-util/rizin/rizin-0.1.1.ebuild
new file mode 100644
index 000..95606c5515b
--- /dev/null
+++ b/dev-util/rizin/rizin-0.1.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit meson
+
+DESCRIPTION="reverse engineering framework for binary analysis"
+HOMEPAGE="https://rizin.re/;
+
+SRC_URI="https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-${PV}.tar.xz;
+KEYWORDS="~amd64"
+
+LICENSE="Apache-2.0 BSD LGPL-3 MIT"
+SLOT="0"
+IUSE="test"
+
+RESTRICT=test # TODO: find out why dwarf and other tests fail
+
+RDEPEND="
+   sys-apps/file
+   app-arch/lz4:0=
+   dev-libs/capstone:0=
+   dev-libs/libuv:0=
+   dev-libs/libzip:0=
+   dev-libs/openssl:0=
+   dev-libs/tree-sitter
+   dev-libs/xxhash
+   sys-libs/zlib:0=
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+   local emesonargs=(
+   -Dcli=enabled
+   -Duse_sys_capstone=true
+   -Duse_sys_magic=true
+   -Duse_sys_zip=true
+   -Duse_sys_zlib=true
+   -Duse_sys_lz4=true
+   -Duse_sys_xxhash=true
+   -Duse_sys_openssl=true
+
+   # ::gentoo's tree-sitter SIGSEGVs rizin
+   -Duse_sys_tree_sitter=false
+
+   $(meson_use test enable_tests)
+   $(meson_use test enable_rz_test)
+   )
+   meson_src_configure
+}