From 19f3a64de828dae33d9f2688de10e3ad5e3f9cb4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 30 Mar 2014 13:07:33 +0200 Subject: [PATCH] hooks/post-install/06-prepare-32bit.sh: do not convert deps that don't have shlib-provides. --- common/hooks/post-install/06-prepare-32bit.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/hooks/post-install/06-prepare-32bit.sh b/common/hooks/post-install/06-prepare-32bit.sh index 21a18d8fa07..49985763b1a 100644 --- a/common/hooks/post-install/06-prepare-32bit.sh +++ b/common/hooks/post-install/06-prepare-32bit.sh @@ -97,6 +97,13 @@ hook() { printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps continue fi + # If dependency does not have "shlib-provides" do not + # change it to 32bit. + _shprovides="$($XBPS_QUERY_CMD -R --property=shlib-provides "$f")" + if [ -z "${_shprovides}" ]; then + printf "${pkgn}${pkgv} " >> ${destdir32}/rdeps + continue + fi printf "${pkgn}-32bit${pkgv} " >> $destdir32/rdeps done fi