From: Lars Wendler Date: Thu, 18 Jul 2019 07:27:20 +0000 (+0200) Subject: db.eclass: Fixed version sort X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=43e83e8d56f14bde00be2994995c5191a7a5ca88;p=gentoo.git db.eclass: Fixed version sort Thanks-to: Daniel Robbins Closes: https://bugs.gentoo.org/690118 Signed-off-by: Lars Wendler --- diff --git a/eclass/db.eclass b/eclass/db.eclass index 5227601c456f..8de3a63ea8a7 100644 --- a/eclass/db.eclass +++ b/eclass/db.eclass @@ -30,7 +30,7 @@ db_fix_so() { # now rebuild all the correct ones for ext in so a; do for name in libdb libdb_{cxx,tcl,java,sql,stl}; do - target=`find . -maxdepth 1 -type f -name "${name}-*.${ext}" |sort -n |tail -n 1` + target=$(find . -maxdepth 1 -type f -name "${name}-*.${ext}" |sort -V |tail -n 1) [ -n "${target}" ] && ln -sf ${target//.\//} ${name}.${ext} done; done;