forked from kiss-community/kiss
kiss: fix dependency issue with make depends
This commit is contained in:
parent
2d913c45a8
commit
d267e2106e
13
kiss
13
kiss
@ -426,9 +426,6 @@ pkg_depends() {
|
||||
die "Circular dependency detected $1 <> ${4##* }"
|
||||
esac
|
||||
|
||||
# Skip traversing over depends files of make dependencies which exist
|
||||
# in the binary cache.
|
||||
if [ "$5" != "make" ] || { [ "$5" = "make" ] && ! pkg_cache "$1"; }; then
|
||||
pkg_find "$1"
|
||||
|
||||
! [ -e "$repo_dir/depends" ] ||
|
||||
@ -439,11 +436,11 @@ pkg_depends() {
|
||||
|
||||
pkg_depends "$dep" '' "$3" "$4 $1" "$dep_type"
|
||||
done < "$repo_dir/depends" || :
|
||||
fi
|
||||
|
||||
# After child dependencies are added to the list,
|
||||
# add the package which depends on them.
|
||||
[ "$2" = explicit ] || deps="$deps $1"
|
||||
# Add parent to dependencies list.
|
||||
if [ "$2" != expl ] || { [ "$5" = make ] && ! pkg_cache "$1"; }; then
|
||||
deps="$deps $1"
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
@ -679,7 +676,7 @@ pkg_build() {
|
||||
#
|
||||
# This also resolves all dependencies and stores the result in '$deps'.
|
||||
for pkg do
|
||||
pkg_depends "$pkg" explicit filter
|
||||
pkg_depends "$pkg" expl filter
|
||||
explicit="$explicit $pkg "
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user