install_deps: Avoid conflicts on Arch-based systems when gcc-multilib is installed
authorMai Lavelle <mai.lavelle@gmail.com>
Thu, 12 May 2016 22:17:14 +0000 (18:17 -0400)
committerMai Lavelle <mai.lavelle@gmail.com>
Thu, 12 May 2016 22:17:14 +0000 (18:17 -0400)
install_deps can fail due to conflict between gcc (referenced by base-devel) and
gcc-multilib if the latter is installed. This avoids the conflict by filtering
the contents of base-devel when needed.

Reviewers: mont29

Differential Revision: https://developer.blender.org/D1944

build_files/build_environment/install_deps.sh

index 6b9ac8f00fceba31d1b88c200f8e306a2eff1d55..b3d659313d4e436e7d47d911d7d6e5acb7e10e0c 100755 (executable)
@@ -3342,7 +3342,15 @@ install_ARCH() {
   OGG_DEV="libogg"
   THEORA_DEV="libtheora"
 
-  _packages="base-devel git cmake \
+  BASE_DEVEL="base-devel"
+
+  # Avoid conflicts when gcc-multilib is installed
+  pacman -Qi gcc-multilib &>/dev/null
+  if [ $? -eq 0 ]; then
+    BASE_DEVEL=`pacman -Sgq base-devel | sed -e 's/^gcc$/gcc-multilib/g' | paste -s -d' '`
+  fi
+
+  _packages="$BASE_DEVEL git cmake \
              libxi libxcursor libxrandr libxinerama glew libpng libtiff wget openal \
              $OPENJPEG_DEV $VORBIS_DEV $OGG_DEV $THEORA_DEV yasm sdl fftw intel-tbb \
              libxml2 yaml-cpp tinyxml python-requests jemalloc"