Created attachment 712092 [details] app-crypt/hashcat-6.2.1.ebuild: compile with built-in unrar (USE_SYSTEM_UNRAR=0) Upstream commit https://github.com/hashcat/hashcat/commit/3cc828ce0adba00c3f3d11fb62494c10bea099f9 introduced -m 23700/23800 (RAR3-p cracking) before releasing v6.2.0. app-crypt/hashcat-6.2.1.ebuild currently pulls app-arch/unrar and compiles with USE_SYSTEM_UNRAR=1, but there's no trace of hc_decompress_rar in app-arch/unrar-6.0.5 nor in unrar-6.0.6. Just running the following after installing hashcat-6.2.1 or hashcat-9999 gives an error: $ hashcat --help hashcat (v6.2.1) starting... /usr/share/hashcat/modules/module_23800.so: undefined symbol: hc_decompress_rar Segmentation fault To solve the problem compile with the built-in unrar (USE_SYSTEM_UNRAR=0). diff /emerge/portage/app-crypt/hashcat/hashcat-6.2.1.ebuild hashcat-6.2.1.ebuild 23d22 < app-arch/unrar 69c68 < USE_SYSTEM_UNRAR=1 \ --- > USE_SYSTEM_UNRAR=0 \ 102c101 < USE_SYSTEM_UNRAR=1 \ --- > USE_SYSTEM_UNRAR=0 \
Created attachment 712095 [details] app-crypt/hashcat-9999.ebuild: compile with built-in unrar (USE_SYSTEM_UNRAR=0) Compile app-crypt/hashcat-9999 with the built-in unrar.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0179cbdaf16fc35f9b1ace3bf48b14014c615a18 commit 0179cbdaf16fc35f9b1ace3bf48b14014c615a18 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-05-29 07:01:20 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-05-29 07:02:03 +0000 app-crypt/hashcat: use bundled unrar for now Unreleased changes upstream. Closes: https://bugs.gentoo.org/792720 Signed-off-by: Sam James <sam@gentoo.org> app-crypt/hashcat/{hashcat-6.2.1.ebuild => hashcat-6.2.1-r1.ebuild} | 3 ++- app-crypt/hashcat/hashcat-9999.ebuild | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
hashcat-6.2.1-r1 successfully compiled with USE_SYSTEM_UNRAR=1 with unrar-6.0.7
This patch for #803395 allow to use unrar as system library at src_compile phase: https://bugs.gentoo.org/attachment.cgi?id=725950&action=edit
hashcat compiled with unrar-6.0.7, but segfaults at start.