From ad3d1f862dc9174755304c5629a0f45a7df0a091 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 15 Apr 2020 13:29:44 +0200 Subject: [PATCH] xbps-src: show_pkg_build_depends: handle cross case. --- common/xbps-src/shutils/show.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/xbps-src/shutils/show.sh b/common/xbps-src/shutils/show.sh index ff4b94a1c81..0de843adb46 100644 --- a/common/xbps-src/shutils/show.sh +++ b/common/xbps-src/shutils/show.sh @@ -68,8 +68,10 @@ show_pkg_build_depends() { # build time deps for f in ${_deps}; do - # ignore dependency on itself - [[ $f == $sourcepkg ]] && continue + if [ -z "$CROSS_BUILD" ]; then + # ignore dependency on itself + [[ $f == $sourcepkg ]] && continue + fi if [ ! -f $XBPS_SRCPKGDIR/$f/template ]; then msg_error "$pkgver: dependency '$f' does not exist!\n" fi