From cdc60029ebd2a3544f7304060cd3f0d90c886868 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 18 Aug 2014 10:12:37 +0200 Subject: [PATCH] hooks/prepare-32bit: convert -devel pkgs to 32bit to have proper rdeps. --- common/hooks/post-install/06-prepare-32bit.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/hooks/post-install/06-prepare-32bit.sh b/common/hooks/post-install/06-prepare-32bit.sh index d40df44fac4..8dacfd4b5a9 100644 --- a/common/hooks/post-install/06-prepare-32bit.sh +++ b/common/hooks/post-install/06-prepare-32bit.sh @@ -99,6 +99,11 @@ hook() { else pkgv="$($XBPS_UHELPER_CMD getpkgdepversion ${f})" fi + # If dependency is a development pkg switch it to 32bit. + if [[ $pkgn =~ '-devel' ]]; then + printf "${pkgn}-32bit${pkgv} " >> ${destdir32}/rdeps + continue + fi # If dependency is noarch do not change it to 32bit. _arch=$($XBPS_QUERY_CMD -R --property=architecture "$f") if [ "${_arch}" = "noarch" ]; then