Skip to content

Commit

Permalink
Update various calls to mirrorlist.centos.org with vault.centos.org
Browse files Browse the repository at this point in the history
Mirrorlist has been deprecated following the EOL of Centos 7

Signed-off-by: Sophia Guo <[email protected]>
  • Loading branch information
sophia-guo committed Aug 16, 2024
1 parent 11a958e commit 5e7e11c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/system/reproducibleCompare/playlist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
<include>reproducible.mk</include>
<test>
<testCaseName>Rebuild_Same_JDK_Reproducibility_Test</testCaseName>
<command>docker container rm reproducibleCompare; \
<command>docker container rm -f reproducibleCompare; \
docker run -v "$(TEST_RESROOT):/home/jenkins/test" -w "/home/jenkins/" -v "$(TEST_JDK_HOME):/home/jenkins/jdkbinary/" --name reproducibleCompare centos:7 /bin/bash /home/jenkins/test/linux_repro_build_compare.sh $(SBOM_FILE) /home/jenkins/jdkbinary; \
$(TEST_STATUS); \
docker cp reproducibleCompare:/home/jenkins/reprotest.diff ./; \
docker cp reproducibleCompare:/home/jenkins/reproJDK.tar.gz ./; \
docker cp reproducibleCompare:/home/jenkins/SBOM.json ./; \
docker container rm reproducibleCompare
docker container rm -f reproducibleCompare
</command>
<levels>
<level>special</level>
Expand Down
8 changes: 8 additions & 0 deletions tooling/reproducible/linux_repro_build_compare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ isJdkDir=false
USING_DEVKIT="false"
installPrereqs() {
if test -r /etc/redhat-release; then
if [ "$(uname -m)" == "x86_64" ]; then
echo "Running on x64 architecture";
sed -i -e 's!#baseurl=http://mirror.centos.org/centos/\$releasever!baseurl=https://vault.centos.org/7.9.2009/!g' /etc/yum.repos.d/CentOS-Base.repo; \
else
echo "Running on non-x64 architecture";
sed -i 's|#baseurl=http://mirror.centos.org/altarch/\$releasever/|baseurl=http://vault.centos.org/altarch/7.9.2009/|' /etc/yum.repos.d/CentOS-Base.repo; \
fi

yum install -y gcc gcc-c++ make autoconf unzip zip alsa-lib-devel cups-devel libXtst-devel libXt-devel libXrender-devel libXrandr-devel libXi-devel
yum install -y file fontconfig fontconfig-devel systemtap-sdt-devel epel-release # Not included above ...
yum install -y git bzip2 xz openssl pigz which jq # pigz/which not strictly needed but help in final compression
Expand Down

0 comments on commit 5e7e11c

Please sign in to comment.