summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-07-18 09:27:20 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-07-18 09:52:00 +0200
commit43e83e8d56f14bde00be2994995c5191a7a5ca88 (patch)
tree57a94e77c83b6a37c78f5444189dd43badeaf1d7 /eclass/db.eclass
parentapp-misc/lcd4linux: fix mysql dependencies (diff)
downloadgentoo-43e83e8d56f14bde00be2994995c5191a7a5ca88.tar.gz
gentoo-43e83e8d56f14bde00be2994995c5191a7a5ca88.tar.bz2
gentoo-43e83e8d56f14bde00be2994995c5191a7a5ca88.zip
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>
Diffstat (limited to 'eclass/db.eclass')
-rw-r--r--eclass/db.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/db.eclass b/eclass/db.eclass
index 5227601c456..8de3a63ea8a 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;