nealrichardson commented on a change in pull request #8932:
URL: https://github.com/apache/arrow/pull/8932#discussion_r545999854



##########
File path: ci/scripts/r_docker_configure.sh
##########
@@ -39,6 +39,19 @@ if [ "$RHUB_PLATFORM" = "linux-x86_64-fedora-clang" ]; then
   rm -rf $(${R_BIN} RHOME)/etc/Makeconf.bak
 fi
 
+# Special hacking to try to reproduce quirks on centos using non-default build
+# tooling.
+if [[ "$DEVTOOLSET_VERSION" -gt 0 ]]; then
+  if [ "`which dnf`" ]; then
+    dnf install -y centos-release-scl
+    dnf install -y "devtoolset-$DEVTOOLSET_VERSION"
+  else
+    yum install -y centos-release-scl
+    yum install -y "devtoolset-$DEVTOOLSET_VERSION"
+  fi
+  echo "source scl_source enable devtoolset-$DEVTOOLSET_VERSION" >> /etc/bashrc

Review comment:
       Maybe you can add `DEVTOOLSET_VERSION` to `environment` in 
docker-compose.yml and then (conditionally) `scl_source enable 
devtoolset-$DEVTOOLSET_VERSION"` in `r_test.sh`, rather than try to rely on 
bash profiles.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to