Skip to content

Commit

Permalink
apacheGH-37715: [Packaging][CentOS] Use default g++ on CentOS 9 Stream
Browse files Browse the repository at this point in the history
We can use default g++ by using shared LLVM library.
  • Loading branch information
kou committed Sep 14, 2023
1 parent 15a8ac3 commit d9ca2cc
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@
ARG FROM=quay.io/centos/centos:stream9
FROM ${FROM}

ENV SCL=gcc-toolset-12

ARG DEBUG

RUN \
quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \
dnf install -y ${quiet} epel-release && \
dnf install --enablerepo=crb -y ${quiet} \
${SCL} \
bison \
boost-devel \
brotli-devel \
Expand All @@ -46,7 +43,6 @@ RUN \
libarchive \
libzstd-devel \
llvm-devel \
llvm-static \
lz4-devel \
make \
ncurses-devel \
Expand All @@ -65,11 +61,3 @@ RUN \
vala \
zlib-devel && \
dnf clean ${quiet} all

# Workaround: We can remove this once redhat-rpm-config uses "annobin"
# not "gcc-annobin".
RUN \
sed \
-i \
-e 's/gcc-annobin/annobin/g' \
/usr/lib/rpm/redhat/redhat-annobin-select-gcc-built-plugin

0 comments on commit d9ca2cc

Please sign in to comment.