db.eclass: Fixed version sort

Thanks-to: Daniel Robbins <drobbins@funtoo.org>
Closes: https://bugs.gentoo.org/690118
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Lars Wendler
2019-07-18 09:27:20 +02:00
parent e18f359916
commit 43e83e8d56

View File

@@ -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;