Skip to content
Snippets Groups Projects
Verified Commit 5a6a8da6 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

Merge branch 'createlinks-weird-paths' into 'master'

dbscripts: fix createlinks for binaries in non-standard locations

See merge request !758
parents 7d7e5fc3 69292fcb
No related branches found
No related tags found
1 merge request!758dbscripts: fix createlinks for binaries in non-standard locations
Pipeline #79445 passed
......@@ -44,6 +44,8 @@ for repo in ${repos[@]}; do
echo "$repo/$arch: $pkgname"
mkdir -p ${tmppkgdir}/pkg
bsdtar -xof $pkg -C ${tmppkgdir}/pkg --include={opt,{,usr/}{lib{,32},{s,}bin}}'/*' 2>/dev/null
# Also unpack files symlinked from the above paths
find -L pkg -xtype l -exec readlink -m {} + | sed "s;${tmppkgdir}/pkg/;;" | xargs -i bsdtar -xof "$pkg" -C "${tmppkgdir}/pkg" "{}"
find "${tmppkgdir}/pkg" -type f -exec readelf -d {} + 2>/dev/null | sed -nr 's/.*Shared library: \[(.*)\].*/\1/p' | sort -u > "${tmppkgdir}/links"
rm -rf ${tmppkgdir}/pkg
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment