commit:     29fb2cfd5a2324050abfc2f3edccd2f930a326a6
Author:     Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx>
AuthorDate: Wed Jul 30 15:55:45 2025 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Wed Jul 30 20:07:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29fb2cfd

net-analyzer/testssl: fix RDEPEND

```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 <cfuga <AT> cfuga.mx>
Part-of: https://github.com/gentoo/gentoo/pull/42658
Closes: https://github.com/gentoo/gentoo/pull/42658
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 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 b6d287c0939c..138b19335120 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

Reply via email to