mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user