Commit 4dfc5794 authored by Ariadne Conill's avatar Ariadne Conill

abuild: log command: providers

parent 83f37d00
......@@ -1004,6 +1004,19 @@ prepare_pkgconfig_provides() {
done
}
prepare_command_provides() {
local dir="${subpkgdir:-$pkgdir}"
options_has "!tracedeps" && return 0
cd "$dir" || return 1
for i in bin/* sbin/* usr/bin/* usr/sbin/*; do
if ! [ -x "$i" ]; then
continue
fi
local f=${i##*/}
echo $f >> "$controldir"/.provides-command
done
}
# check if dir has arch specific binaries
dir_has_arch_binaries() {
local dir="$1"
......@@ -1047,6 +1060,7 @@ prepare_package() {
&& prepare_trace_rpaths \
&& prepare_symlinks \
&& prepare_pkgconfig_provides \
&& prepare_command_provides \
|| return 1
archcheck
}
......@@ -1184,6 +1198,10 @@ trace_apk_deps() {
sed 's/^/provides = pc:/' "$dir"/.provides-pc | sort -u \
>> "$dir"/.PKGINFO
fi
if [ -f "$dir"/.provides-command ]; then
sed 's/^/provides = command:/' "$dir"/.provides-command | sort -u \
>> "$dir"/.PKGINFO
fi
[ -z "$autodeps" ] && return 0
for i in $autodeps; do
echo "depend = $i"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment