mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 09:20:04 +01:00
gitlab-ci: fix setup of debian:9 container
Debian:9 (stretch) is archived. We need to patch the sources.list for it to be usable. Although it's end of life, we are still interested, whether we are able to build with such old compiler. Fix the test.
This commit is contained in:
parent
ddcb396495
commit
d563b4e009
2 changed files with 11 additions and 2 deletions
|
|
@ -59,9 +59,9 @@ variables:
|
||||||
# ".default_tag".
|
# ".default_tag".
|
||||||
ALPINE_TAG: 'tag-d53edbf2ebdd'
|
ALPINE_TAG: 'tag-d53edbf2ebdd'
|
||||||
CENTOS_TAG: 'tag-c374af7add25'
|
CENTOS_TAG: 'tag-c374af7add25'
|
||||||
DEBIAN_TAG: 'tag-2ded62f40aeb'
|
DEBIAN_TAG: 'tag-33f59276e980'
|
||||||
FEDORA_TAG: 'tag-c374af7add25'
|
FEDORA_TAG: 'tag-c374af7add25'
|
||||||
UBUNTU_TAG: 'tag-2ded62f40aeb'
|
UBUNTU_TAG: 'tag-33f59276e980'
|
||||||
|
|
||||||
ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh'
|
ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh'
|
||||||
CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh'
|
CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh'
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,15 @@ set -ex
|
||||||
|
|
||||||
grep -q '^VERSION=.\(9 (stretch)\|18.04.[0-9]\+ LTS\)' /etc/os-release && IS_DEBIAN_9=1 || IS_DEBIAN_9=0
|
grep -q '^VERSION=.\(9 (stretch)\|18.04.[0-9]\+ LTS\)' /etc/os-release && IS_DEBIAN_9=1 || IS_DEBIAN_9=0
|
||||||
|
|
||||||
|
if [ $IS_DEBIAN_9 = 1 ]; then
|
||||||
|
cat > /etc/apt/sources.list <<EOF
|
||||||
|
deb http://archive.debian.org/debian/ stretch main non-free contrib
|
||||||
|
deb-src http://archive.debian.org/debian/ stretch main non-free contrib
|
||||||
|
deb http://archive.debian.org/debian-security/ stretch/updates main non-free contrib
|
||||||
|
deb-src http://archive.debian.org/debian-security/ stretch/updates main non-free contrib
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $IS_DEBIAN_9 = 1 ]; then
|
if [ $IS_DEBIAN_9 = 1 ]; then
|
||||||
# pam is hosted on this release to the point chfn doesn't work.
|
# pam is hosted on this release to the point chfn doesn't work.
|
||||||
# It's okay on Ubuntu 16.04 and 20.04 though, so keep this version specific.
|
# It's okay on Ubuntu 16.04 and 20.04 though, so keep this version specific.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue