aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-05-30 13:45:55 +0200
committerOliver Smith <osmith@sysmocom.de>2023-05-30 14:01:51 +0200
commit5bc3e0587ac3b2fbb47913f3af4704f7d13a8a58 (patch)
tree0923f708f4deaef00c7d15bb0d3f73fe91875b80
parent818d29d9e8a0640b310bfb83aa2af70f15f7bcb7 (diff)
Fix failing Osmocom-release-manuals job
Add a workaround that upgrades the osmocom-nightly package before installing build dependencies for the given package. This is not very elegant, it would make more sense if the docker image we use here did not have the nightly Osmocom repository configured in the first place (as this job is about creating manuals for tagged releases). But the image is used by jenkins build verification too and I don't think it's a good use of time to change this right now. Fix for: + apt-get -y build-dep /build Note, using directory '/build' to get the build dependencies Reading package lists... Building dependency tree... Reading state information... Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: osmo-gsm-manuals-dev : Depends: osmocom-nightly (= 202305300026) but 202305290026 is to be installed Change-Id: If28a34d3e5b07216c5310b19623fcc42692f65c3
-rwxr-xr-xscripts/manuals/publish-manuals-for-tags.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/manuals/publish-manuals-for-tags.sh b/scripts/manuals/publish-manuals-for-tags.sh
index 99e117c..49a3d43 100755
--- a/scripts/manuals/publish-manuals-for-tags.sh
+++ b/scripts/manuals/publish-manuals-for-tags.sh
@@ -354,6 +354,12 @@ build_publish_manuals() {
sh -ex -c "
apt-get update
+ # The docker image has the nightly repository
+ # configured, in which packages can't be installed from
+ # different build dates. Upgrade osmocom-nightly first
+ # to prevent errors in apt-get build-dep below.
+ apt-get -y upgrade osmocom-nightly
+
# Install dependencies
case $repo in
*)