From 29fb2cfd5a2324050abfc2f3edccd2f930a326a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Oth=C3=B3n=20Mart=C3=ADnez=20Vera?= Date: Wed, 30 Jul 2025 09:55:45 -0600 Subject: [PATCH] net-analyzer/testssl: fix RDEPEND MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ```testssl.sh``` is a bash script, and the fixed dependencies matches with the used command line tools. bash-3.2 is the minimum requirement. [ ${BASH_VERSINFO[0]} -le 3 ] && [ ${BASH_VERSINFO[1]} -le 1 ] && printf "\n\033[1;35m Minimum requirement is bash 3.2. You have $BASH_VERSION \033[m\n\n" >&2 && exit $ERR_BASH The following deps are taken from this function: check_base_requirements() { local binary='' local whitelist=' hexdump grep awk sed ' for binary in 'hexdump' 'dd' 'grep' 'awk' 'tr' 'sed' 'wc' 'date' 'cat' 'ps' 'kill' 'head' 'tail' 'dirname'; do if ! type -p "${binary}" &> /dev/null; then fatal "You need to install ${binary} for this program to work" $ERR_RESOURCE * app-alternatives/awk: it's compatible with any awk version, it has workarounds for gawk * sys-apps/coreutils - uses: - /usr/bin/cat - /usr/bin/date - /usr/bin/dd - /usr/bin/dirname - /usr/bin/head - /usr/bin/tail - /usr/bin/tr - /usr/bin/tty - /usr/bin/wc * sys-apps/grep - uses: - /bin/grep * sys-apps/sed - not included in RDEPEND, always available thanks to PMS * sys-apps/util-linux - uses: - /usr/bin/hexdump * sys-libs/ncurses - it doesn't link with any library (slot not needed), uses: - /usr/bin/tput * sys-process/procps - uses: - /bin/kill - /bin/ps Signed-off-by: Cristian Othón Martínez Vera Part-of: https://github.com/gentoo/gentoo/pull/42658 Closes: https://github.com/gentoo/gentoo/pull/42658 Signed-off-by: Petr Vaněk --- net-analyzer/testssl/testssl-3.0.10.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net-analyzer/testssl/testssl-3.0.10.ebuild b/net-analyzer/testssl/testssl-3.0.10.ebuild index b6d287c0939c0..138b19335120b 100644 --- a/net-analyzer/testssl/testssl-3.0.10.ebuild +++ b/net-analyzer/testssl/testssl-3.0.10.ebuild @@ -17,9 +17,12 @@ KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" IUSE="bundled-openssl kerberos" RDEPEND=" - app-shells/bash[net] + app-alternatives/awk + >=app-shells/bash-3.2[net] + sys-apps/coreutils + sys-apps/grep sys-apps/util-linux - sys-libs/ncurses:0 + sys-libs/ncurses sys-process/procps || ( net-dns/bind