Commit 6582be1d authored by Natanael Copa's avatar Natanael Copa

abuild: pull only in needed dependencies for -dev packages

ref #4109
parent c70dbf84
......@@ -1020,7 +1020,6 @@ trace_apk_deps() {
# symlink targets
for i in $(sort -u "$dir"/.symlinks-needs 2>/dev/null); do
msg " added $i (symlink target)"
autodeps="$autodeps $i"
done
......@@ -1146,7 +1145,8 @@ scan_symlink_targets() {
while read symlink target; do
if [ -e "${symlink%/*}"/"$target" ]; then
local d="${symfile%/.symlinks}"
echo "$name" >> "$d"/.symlinks-needs
echo "$name=$pkgver-r$pkgrel" \
>> "$d"/.symlinks-needs
fi
done < "$symfile"
done
......@@ -1344,13 +1344,9 @@ dbg() {
# predefined splitfunc dev
default_dev() {
local i= j=
depends="$pkgname=$pkgver-r$pkgrel $depends_dev"
depends=""
pkgdesc="$pkgdesc (development files)"
for i in $origsubpackages; do
[ "${i%:*}" = "$subpkgname" ] || depends="$depends ${i%:*}=$pkgver-r$pkgrel"
done
cd "$pkgdir" || return 0
local libdirs=usr/
[ -d lib/ ] && libdirs="lib/ $libdirs"
......
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