Skip to content

Commit

Permalink
Use GCC 11 to build Apache Traffic Server (#7716)
Browse files Browse the repository at this point in the history
* Use GCC 11 to build Apache Traffic Server

* Changelog entry
  • Loading branch information
zrhoffman authored Aug 15, 2023
1 parent 8f08779 commit ece83d2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- [#7621](https://github.com/apache/trafficcontrol/pull/7621) *Traffic Ops* Use ID token for OAuth authentication, not Access Token
- [#7694](https://github.com/apache/trafficcontrol/pull/7694) *t3c*, *Traffic Control Health Client* Upgrade to ATS 9.2
- [#7966](https://github.com/apache/trafficcontrol/pull/7696) *t3c* will no longer clear update flag when config failure occurs and will also give a cache config error msg on exit.
- [#7716](https://github.com/apache/trafficcontrol/pull/7716) *Apache Traffic Server* Use GCC 11 for building.

### Fixed
- [#4393](https://github.com/apache/trafficcontrol/issues/4393) *Traffic Ops* Fixed the error code and alert structure when TO is queried for a delivery service with no ssl keys.
Expand Down
7 changes: 3 additions & 4 deletions cache-config/testing/docker/trafficserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,16 @@ RUN if [[ ${OS_VERSION%%.*} -ge 8 ]]; then \
brotli \
brotli-devel \
curl \
gcc-toolset-9 \
gcc-toolset-9-runtime \
gcc-toolset-11 \
gcc-toolset-11-runtime \
geoip \
jansson \
jansson-devel \
libmaxminddb \
libmaxminddb-devel \
libuuid ); \
os_toolset="gcc-toolset-9"; \
else \
os_pkgs=(devtoolset-9); \
os_pkgs=(devtoolset-11); \
fi \
&& yum install -y \
${os_pkgs[*]} \
Expand Down
6 changes: 3 additions & 3 deletions cache-config/testing/docker/trafficserver/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ echo "Building a RPM for ATS version: $ATS_VERSION and OS version: $OS_VERSION"
# add the 'ats' user
id ats &>/dev/null || /usr/sbin/useradd -u 176 -r ats -s /sbin/nologin -d /

# setup the environment to use the devtoolset-9 tools.
# setup the environment to use the devtoolset-11 tools.
if [ "${OS_VERSION%%.*}" -le 7 ]; then
source scl_source enable devtoolset-9
source scl_source enable devtoolset-11
else
source scl_source enable gcc-toolset-9
source scl_source enable gcc-toolset-11
fi

cd /root
Expand Down
12 changes: 6 additions & 6 deletions traffic_server/_tsb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ RUN if [[ ${RHEL_VERSION%%.*} -ge 8 ]]; then \
brotli \
brotli-devel \
curl \
gcc-toolset-9 \
gcc-toolset-9-runtime \
gcc-toolset-11 \
gcc-toolset-11-runtime \
jansson \
jansson-devel \
libmaxminddb \
libmaxminddb-devel); \
os_toolset="gcc-toolset-9"; \
os_toolset="gcc-toolset-11"; \
else \
os_pkgs=(devtoolset-7); \
os_toolset="devtoolset-7"; \
os_pkgs=(devtoolset-11); \
os_toolset="devtoolset-11"; \
fi \
&& yum install -y \
${os_pkgs[*]} \
Expand Down Expand Up @@ -109,7 +109,7 @@ COPY trafficserver.spec /rpmbuilddir/SPECS/trafficserver.spec
COPY traffic_server_jemalloc /rpmbuilddir/SOURCES/traffic_server_jemalloc
RUN /usr/sbin/useradd -u 176 -r ats -s /sbin/nologin -d /
CMD if [[ ${RHEL_VERSION%%.*} -ge 8 ]]; then \
os_toolset=gcc-toolset-9; \
os_toolset=gcc-toolset-11; \
openssl_included='--without_openssl'; \
else \
os_toolset=devtoolset-7; \
Expand Down

0 comments on commit ece83d2

Please sign in to comment.