Skip to content

Commit

Permalink
add code for updating eessi overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroge committed Feb 8, 2024
1 parent 97373b1 commit 2cd0deb
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions scripts/update-pkgs-EESSI.IO-2023.06_2024-01-31.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,25 @@ list_installed_pkgs_pre_update=${mytmpdir}/installed-pkgs-pre-update.txt
echo "Collecting list of installed packages to ${list_installed_pkgs_pre_update}..."
qlist -IRv | sort | tee ${list_installed_pkgs_pre_update}

# update checkout of gentoo repository to sufficiently recent commit
# this is required because we pin to a specific commit when bootstrapping the compat layer
# see gentoo_git_commit in ansible/playbooks/roles/compatibility_layer/defaults/main.yml;
# update checkout of eessi overlay to sufficiently recent commit to include fix from https://github.com/EESSI/gentoo-overlay/pull/98
# https://github.com/EESSI/gentoo-overlay/commit/bf189508bf7510d8acf8ef089d4c7f03f6c512d1 (2024-01-29)
eessi_commit='bf189508bf7510d8acf8ef089d4c7f03f6c512d1'
echo "Updating $EPREFIX/var/db/repos/eessi to recent commit (${eessi_commit})..."
cd $EPREFIX/var/db/repos/eessi
time git fetch origin
echo "Checking out ${eessi_commit} in ${PWD}..."
time git checkout ${eessi_commit}
cd -

# update zlib due to https://security.gentoo.org/glsa/202401-18
# this has to be done before switching to a newer commit, as that one doesn't have this zlib version anymore,
# while the current commit does
# this has to be done before switching to a newer commit of the gentoo repository,
# as that one doesn't have this zlib version anymore, # while the current commit does
emerge --update --oneshot --verbose '=sys-libs/zlib-1.2.13-r2' # was sys-libs/zlib-1.2.13-r1

# update checkout of gentoo repository to sufficiently recent commit
# this is required because we pin to a specific commit when bootstrapping the compat layer
# see gentoo_git_commit in ansible/playbooks/roles/compatibility_layer/defaults/main.yml;

# https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac78a6d2a0ec2546a59ed98e00499ddd8343b13d (2024-01-31)
gentoo_commit='ac78a6d2a0ec2546a59ed98e00499ddd8343b13d'
echo "Updating $EPREFIX/var/db/repos/gentoo to recent commit (${gentoo_commit})..."
Expand Down

0 comments on commit 2cd0deb

Please sign in to comment.