From: Iker Pedrosa Date: Mon, 14 Oct 2024 09:53:50 +0000 (+0200) Subject: CI: update Ubuntu repositories configuration X-Git-Tag: 4.17.0-rc1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99c4f445c7cf888afd6d329f325e031bc5c427ef;p=thirdparty%2Fshadow.git CI: update Ubuntu repositories configuration Recently Ubuntu updated its repositories configuration file from `/etc/apt/sources.list` to `/etc/apt/sources.list.d/ubuntu.source`. Thus, we need to update its location to be able to install all the package dependencies. In addition, the CI script was trying to uncomment the lines starting with `deb-src`, but there is none in the new configuration file format. Replace `Types: deb` by `Types: deb deb-src` at the beginning of the line instead. This commit merges all dependency installation scripts into a single workflow, which will be called from all sites that have to install dependencies. Link: https://linuxconfig.org/ubuntus-repository-configuration-ubuntu-sources-have-moved-to-etc-apt-sources-list-d-ubuntu-sources Closes: https://github.com/shadow-maint/shadow/issues/1088 Reported-by: Alejandro Colomar Signed-off-by: Iker Pedrosa --- diff --git a/.github/actions/install-dependencies/action.yml b/.github/actions/install-dependencies/action.yml index 59746d6c0..243f0b2c9 100644 --- a/.github/actions/install-dependencies/action.yml +++ b/.github/actions/install-dependencies/action.yml @@ -5,8 +5,13 @@ runs: steps: - shell: bash run: | - sudo apt-get update -y - sudo apt-get install -y ubuntu-dev-tools libbsd-dev - sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list - sudo apt-get update -y + sudo cat /etc/apt/sources.list.d/ubuntu.sources + sudo sed -i 's/^Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources + export DEBIAN_PRIORITY=critical + export DEBIAN_FRONTEND=noninteractive + # let's try to work around upgrade breakage in a pkg we don't care about + sudo apt-mark hold grub-efi-amd64-bin grub-efi-amd64-signed + sudo apt-get update + sudo apt-get -y dist-upgrade + sudo apt-get -y install ubuntu-dev-tools automake autopoint xsltproc gettext expect byacc libtool libbsd-dev pkgconf sudo apt-get -y build-dep shadow