summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-10-20 14:53:34 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-10-20 14:53:34 +0000
commit4dfc57946e7f1c97da41da64ec44d31d55fbfe3e (patch)
tree73d868f0a2c44fe823d64d635ce816c7e29159e2
parent83f37d007657a8befb2d165ab7760b74d99d20d6 (diff)
downloadabuild-4dfc57946e7f1c97da41da64ec44d31d55fbfe3e.tar.bz2
abuild-4dfc57946e7f1c97da41da64ec44d31d55fbfe3e.tar.xz
abuild: log command: providers
-rw-r--r--abuild.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index 7f9818b..41b465d 100644
--- a/abuild.in
+++ b/abuild.in
@@ -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"