aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-03-14 14:07:27 +0100
committerlaforge <laforge@osmocom.org>2023-03-22 09:30:53 +0000
commitb55b11d6716c73d59ef80fc786dd92aaee510eca (patch)
tree6cc5fe7e6d455fcd86876e8a5f70cd709774913a
parentd6eed85d4453c4c1a2a269b24de893d1b3709e56 (diff)
obs: build_binpkg: add ubuntu 22.04
Add it for debugging a build failure that we only saw on Ubuntu. Related: OS#5946 Change-Id: I4a927447d8f8b89411b93c563fbc6aa8d4998ffa
-rwxr-xr-xscripts/obs/build_binpkg.py2
-rw-r--r--scripts/obs/data/build_binpkg.Dockerfile8
-rw-r--r--scripts/obs/data/build_binpkg_manuals.Dockerfile2
-rw-r--r--scripts/obs/lib/config.py1
4 files changed, 10 insertions, 3 deletions
diff --git a/scripts/obs/build_binpkg.py b/scripts/obs/build_binpkg.py
index dcd6cdc..1ee9636 100755
--- a/scripts/obs/build_binpkg.py
+++ b/scripts/obs/build_binpkg.py
@@ -64,7 +64,7 @@ def main():
script_path = "data/build.sh"
- if not distro.startswith("debian:"):
+ if not distro.startswith("debian:") and not distro.startswith("ubuntu:"):
env["PACKAGEFORMAT"] = "rpm"
if args.docker:
diff --git a/scripts/obs/data/build_binpkg.Dockerfile b/scripts/obs/data/build_binpkg.Dockerfile
index 925680d..bd12562 100644
--- a/scripts/obs/data/build_binpkg.Dockerfile
+++ b/scripts/obs/data/build_binpkg.Dockerfile
@@ -16,7 +16,7 @@ RUN useradd --uid=${UID} -m user
# to regenerate the manuals database when installing build dependencies.
# SYS#5818: using almalinux:8 instead of centos:8
RUN case "$DISTRO" in \
- debian*) \
+ debian*|ubuntu*) \
echo "path-exclude=/usr/share/man/*" \
> /etc/dpkg/dpkg.cfg.d/exclude-man-pages && \
rm -rf /usr/share/man/ && \
@@ -59,6 +59,12 @@ RUN case "$DISTRO" in \
echo "deb https://downloads.osmocom.org/packages/osmocom:/master/Debian_11/ ./" \
> /etc/apt/sources.list.d/osmocom-master.list \
;; \
+ ubuntu:22.04) \
+ apt-key add /tmp/Release.key && \
+ rm /tmp/Release.key && \
+ echo "deb https://downloads.osmocom.org/packages/osmocom:/master/xUbuntu_22.04/ ./" \
+ > /etc/apt/sources.list.d/osmocom-master.list \
+ ;; \
almalinux:8) \
{ echo "[network_osmocom_master]"; \
echo "name=osmocom:master"; \
diff --git a/scripts/obs/data/build_binpkg_manuals.Dockerfile b/scripts/obs/data/build_binpkg_manuals.Dockerfile
index fd4c709..c2b1211 100644
--- a/scripts/obs/data/build_binpkg_manuals.Dockerfile
+++ b/scripts/obs/data/build_binpkg_manuals.Dockerfile
@@ -10,7 +10,7 @@ FROM ${DISTRO_FROM}
ARG DISTRO
RUN case "$DISTRO" in \
- debian*) \
+ debian*|ubuntu*) \
apt-get update && \
apt-get install -y --no-install-recommends \
osmo-gsm-manuals-dev \
diff --git a/scripts/obs/lib/config.py b/scripts/obs/lib/config.py
index 473916b..15e4d44 100644
--- a/scripts/obs/lib/config.py
+++ b/scripts/obs/lib/config.py
@@ -114,4 +114,5 @@ git_latest_tag_pattern_other = {
docker_distro_default = "debian:11"
docker_distro_other = [
"almalinux:8", # instead of centos:8 (SYS#5818)
+ "ubuntu:22.04",
]