See the tracker bug. if [[ $(get_version_component_range 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then This is going to fail hard when RV is empty or has >1 value.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d18f8f70b9d8d712a7a71b78091b407a9dd5bb92 commit d18f8f70b9d8d712a7a71b78091b407a9dd5bb92 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-07 02:20:12 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-07 02:21:17 +0000 sys-apps/man-db: fix use of REPLACING_VERSIONS Closes: https://bugs.gentoo.org/589514 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/man-db/man-db-2.10.0.ebuild | 19 ++++++++++++++----- sys-apps/man-db/man-db-9999.ebuild | 19 ++++++++++++++----- 2 files changed, 28 insertions(+), 10 deletions(-)