This is an automated email from the ASF dual-hosted git repository.

dbecker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit 2a03499c61b91f60129340c50d7e63f9c6263ef8
Author: Laszlo Gaal <[email protected]>
AuthorDate: Tue Oct 15 21:42:50 2024 +0200

    IMPALA-13458: Fix installing curl on Red Hat variants for dockerised tests
    
    Red Hat 8 and 9 as well as their variants (e.g. Rocky Linux) preinstall
    the curl-minimal package as a prerequisite for their package manager.
    Unfortunately this conflicts with the installation of the full-blown
    curl package when the Impala daemon Docker images are built during a
    dockerised test run. The failure is caused by the two packages having
    slightly different version numbers.
    
    Fix this the same way as in bootstrap_system.sh: add the --allowerasing
    flag to the yum command line to let yum/DNF substitute the full curl
    version for the preinstalled curl-minimal package.
    
    Tested by executing dockerised tests on Rocky Linux 9.2
    
    Change-Id: I30fa0f13a77ef2a939a1b754014a78c171443c71
    Reviewed-on: http://gerrit.cloudera.org:8080/21944
    Reviewed-by: Impala Public Jenkins <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 docker/install_os_packages.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docker/install_os_packages.sh b/docker/install_os_packages.sh
index c8c419aba..4422fd579 100755
--- a/docker/install_os_packages.sh
+++ b/docker/install_os_packages.sh
@@ -187,7 +187,11 @@ elif [[ $DISTRIBUTION == Redhat ]]; then
 
   if [[ $INSTALL_DEBUG_TOOLS == full ]]; then
     echo "Installing full debug tools"
-    wrap yum install -y --disableplugin=subscription-manager \
+    # Redhat 8 and 9 come with curl-minimal preinstalled, which conflicts with 
the
+    # full curl package. Add --allowerasing to the yum command to allow package
+    # replacement.
+
+    wrap yum install -y --disableplugin=subscription-manager --allowerasing \
         bind-utils \
         curl \
         iproute \

Reply via email to