abuild: depend on so: provides when available
and fall back to traditional so dependency tracing when not available also sort the deps
This commit is contained in:
parent
d02257f0c8
commit
3bd2388915
@ -889,9 +889,13 @@ trace_apk_deps() {
|
||||
if ! list_has "$found" $self_provided; then
|
||||
self_provided="$self_provided $found"
|
||||
fi
|
||||
else
|
||||
if $APK info --quiet --installed "so:$i"; then
|
||||
autodeps="$autodeps so:$i"
|
||||
else
|
||||
missing="$missing $i"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# find all packages that holds the so files
|
||||
@ -918,8 +922,8 @@ trace_apk_deps() {
|
||||
fi
|
||||
[ -z "$autodeps" ] && return 0
|
||||
for i in $autodeps; do
|
||||
echo "depend = $i" >> "$dir"/.PKGINFO
|
||||
done
|
||||
echo "depend = $i"
|
||||
done | sort -u >> "$dir"/.PKGINFO
|
||||
}
|
||||
|
||||
find_scanelf_paths() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user