See the tracker bug. if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then This is going to fail hard with empty RV or >1 value in RV.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=646a3fcc850dcbf34cf11198f1445d1aaf2b43ae commit 646a3fcc850dcbf34cf11198f1445d1aaf2b43ae Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2021-07-09 23:25:06 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2021-07-09 23:26:06 +0000 dev-vcs/gitolite-gentoo: migrate to GLEP 81 Closes: https://bugs.gentoo.org/589468 Closes: https://bugs.gentoo.org/781566 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> .../gitolite-gentoo-2.3.1-r2.ebuild | 69 ++++++++++++++ .../gitolite-gentoo-3.6.6.1-r2.ebuild | 106 +++++++++++++++++++++ 2 files changed, 175 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56e531d27c15620166c918874701fe37c553d523 commit 56e531d27c15620166c918874701fe37c553d523 Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2021-07-09 23:14:11 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2021-07-09 23:17:54 +0000 dev-vcs/gitolite: migrate to GLEP 81 Closes: https://bugs.gentoo.org/781566 Closes: https://bugs.gentoo.org/589468 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> dev-vcs/gitolite/gitolite-2.3.1-r2.ebuild | 65 +++++++++++++++++++ dev-vcs/gitolite/gitolite-3.6.11-r1.ebuild | 100 +++++++++++++++++++++++++++++ 2 files changed, 165 insertions(+)