See the tracker bug. The plain [[ -z is good but... if [[ -z "${REPLACING_VERSIONS}" ]] || [[ ${REPLACING_VERSIONS} < 8.0 ]]; then This is going to cause unexpected behavior when REPLACING_VERSIONS has >1 value. Besides, < is lexicographical string comparison, so e.g. 10.0 < 8.0 will evaluate true.
PR submitted: https://github.com/gentoo/gentoo/pull/2001
commit 0b9e6c1961ce0578e0fb916fceb4054f34847602 (HEAD -> master, origin/master, origin/HEAD) Author: Thomas Deutschmann <whissi@whissi.de> AuthorDate: Tue Aug 2 15:09:07 2016 +0200 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: Wed Aug 3 10:17:25 2016 +0200 app-admin/rsyslog: Fix REPLACING_VERSIONS usage We no longer need this check because the previous major version was already removed in 2015. Gentoo-Bug: https://bugs.gentoo.org/589448 Package-Manager: portage-2.3.0 Closes: https://github.com/gentoo/gentoo/pull/2001 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> app-admin/rsyslog/rsyslog-8.16.0-r1.ebuild | 9 --------- app-admin/rsyslog/rsyslog-8.18.0.ebuild | 9 --------- app-admin/rsyslog/rsyslog-8.19.0.ebuild | 9 --------- 3 files changed, 27 deletions(-) Commited, thanks!