See the tracker bug. if [[ -n "${REPLACING_VERSIONS}" && ${REPLACING_VERSIONS} < ${MY_MAJOR_RELEASE_NUMBER} ]]; then This doesn't account for RV having >1 value. Furthermore, < is lexicographical string comparison, so 10 < 5.
PR submitted: https://github.com/gentoo/gentoo/pull/2000
commit 54f3752b3fb9ded157bdc634cc40998750bca525 (HEAD) Author: Thomas Deutschmann <whissi@whissi.de> AuthorDate: Tue Aug 2 14:59:43 2016 +0200 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: Wed Aug 3 10:01:25 2016 +0200 net-firewall/shorewall: Fix REPLACING_VERSIONS usage Gentoo-Bug: https://bugs.gentoo.org/589482 Package-Manager: portage-2.3.0 Closes: https://github.com/gentoo/gentoo/pull/2000 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> net-firewall/shorewall/shorewall-5.0.10.ebuild | 40 ++++++++++++++----------- net-firewall/shorewall/shorewall-5.0.4.ebuild | 40 ++++++++++++++----------- net-firewall/shorewall/shorewall-5.0.7.2.ebuild | 40 ++++++++++++++----------- net-firewall/shorewall/shorewall-5.0.9.2.ebuild | 40 ++++++++++++++----------- 4 files changed, 92 insertions(+), 68 deletions(-) Commited, thanks!