aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/common-obs.sh
AgeCommit message (Collapse)AuthorFilesLines
2021-03-02OBS: latest: fix code path to add new packageosmith/obs-latest-fixOliver Smith1-1/+1
Fix osmo_obs_add_rpm_spec() to not assume to be in the $oscdir. This caused the following error when being called from osmocom-latest-packages.sh in the code path for adding a new package: ls: cannot access 'osmo-gbproxy_*.tar.*': No such file or directory Related: OS#5051 Change-Id: I467e332b69accfabba53332fdb9cd785991855fc
2021-03-01OBS: don't amend distro specific patchOliver Smith1-1/+1
Make a separate commit for the distro specific patch, instead of using "git commit --amend". Otherwise, if HEAD was pointing to the latest tag before the amend, git-version-gen will use the previous tag instead of the latest one after the amend. Fixes: OS#5053 Change-Id: I67770a19ee60101df989f98673a22705ad50beed
2021-02-16OBS: nightly: use epoch from debian/changelogOliver Smith1-3/+14
If epoch is used in debian/changelog, prepend it to the version from git-version-gen. Also set the epoch in the spec file. For example, the version in debian/changelog may be 1:0.0.1. The epoch is 1, therefore a 0.0.1.18.b5d18 version from git-version-gen would turn into 1:0.0.1.18.b5d18. Setting epoch=1 is needed for osmo-gbproxy, so apt on debian 10 with the nightly Osmocom repository enabled does not try to install osmo-gbproxy 1.3.0 from the debian repositories instead of 0.0.1 from the Omsocom repository. Related: https://www.debian.org/doc/debian-policy/ch-controlfields.html#version Related: OS#4992 Change-Id: I3d63f040058340bdcf9075c03387798c5314be03
2021-01-18OBS: use _sourcedir to write rpmlintrcOliver Smith1-1/+1
Change-Id: I16e1b3fe297ab516ceff4742ff39633480f3720e
2021-01-18OBS: make rpmlint shlib-fixed-dependency non-fatalOliver Smith1-0/+15
Create a rpmlint config, which makes the shlib-fixed-dependency check non-fatal, as it caused builds for openSUSE_Leap_15.2 to fail. The check is supposed to warn about libraries depending on specific versions of other packages. However, for the nightly and next packages, this is exactly what we want to do to ensure that users will always upgrade all Osmocom packages to the builds from a specific day, and not mix them. Messages from the check: [ 307s] libosmocodec0.armv7hl: E: shlib-fixed-dependency (Badness: 440) osmocom-nightly = 1.0.0.202101181006 ... [ 307s] libosmovty4.armv7hl: E: shlib-fixed-dependency (Badness: 440) osmocom-nightly = 1.0.0.202101181006 [ 307s] Your shared library package requires a fixed version of another package. The [ 307s] intention of the Shared Library Policy is to allow parallel installation of [ 307s] multiple versions of the same shared library, hard dependencies likely make [ 307s] that impossible. Please remove this dependency and instead move it to the [ 307s] runtime uses of your library. [ 307s] [ 307s] (none): E: badness 3960 exceeds threshold 1000, aborting. Related: OS#4733 Related: https://en.opensuse.org/openSUSE:Packaging_checks#Disarming_Fatal_Errors Change-Id: I560b4adf80b5785d396a17afefa590559ad5ca5a
2021-01-15OBS: nightly: depend on dummy pkg of current dateOliver Smith1-1/+15
Make it impossible to mix nightly/next builds of different dates. Related: OS#4733 Change-Id: Ida8db8e6c91834c9d9e43694d9b4daea55a2f8f8
2021-01-15OBS: osmo_obs_add_rpm_spec: depend on conflict pkgOliver Smith1-2/+39
Related: OS#4733 Change-Id: I69bebdadaf89c2a6e5dd9a27161703a567882359
2021-01-15OBS: osmo_obs_add_rpm_spec: refactorOliver Smith1-6/+7
Rename $spec to $spec_in and add $spec to hold the destination path, to avoid constructing it multiple times below. Related: OS#4733 Change-Id: I4f3d4f8a8bc83ff22983e49f6a496dc8318b53cd
2021-01-15OBS: add_depend_deb: no self-dependenciesOliver Smith1-3/+13
Check if we are trying to make a package depend on itself, and skip in that case. This happens for the osmocom-nightly etc. metapackages, as they go through the same code path as regular packages. While at it, use proper variable names in the function. Add the new variable as second argument and not as third, because a fourth argument will be added with the dependency version, and because this order will be consistent with osmo_obs_add_rpm_spec() when it gets extended in a future commit. Fix the following warning: W: osmocom-nightly source: package-depends-on-itself osmocom-nightly depends Related: OS#4733 Change-Id: I439079c00259d73a18cb8617a3e76d05df5a7a35
2021-01-15OBS: rename osmo_obs_add_debian_dependencyOliver Smith1-1/+1
Change name to osmo_obs_add_depend_deb. I'll add a _rpm function in a future patch, and so we get consistent names. Related: OS#4733 Change-Id: Icf444b86df993184c9fe4db8d3e67ab4bb06bd47
2021-01-15OBS: move obs_prepare_conflict to own fileOliver Smith1-81/+1
Prepare to add another function that creates similar dummy packages for rpm (current version only works for deb). Related: OS#4733 Change-Id: I29a5f54fe3a09610cffa0eacb5f0ad99154612f7
2020-05-28OBS: support more than one conflicting packageOliver Smith1-6/+22
For the upcoming network:osmocom:next repository, it would be inconsistent to have the debian package conflict mechanism only support latest and nightly, even if the next repository is currently not built for debian. Change-Id: I2c07313fbbdffe5571e447059b08fe74c853cef0
2020-05-25OBS: add debian10 specific patch for limesuiteOliver Smith1-2/+31
Add a patch to replace libwxgtk3.0-dev with libwxgtk3.0-gtk3-dev in debian/control. Adjust OBS scripts to apply such patches from this repository if they exist here, and fall back to the project's repository (osmo-trx, osmo-gsm-manuals patches are there). Related: OS#4562 Change-Id: I8dfb60e999bf9f61e6cd11983dba033a4c6107ad
2020-05-25scripts/common-obs.sh: move osmo_obs_checkout_copyOliver Smith1-0/+41
Refactor checkout_copy_debian8_jessie from osmocom-latest-packages.sh and osmocom-nightly-packages.sh to take the distribution name as argument and merge both to osmo_obs_checkout_copy in common-obs.sh. Use debian8 as distribution name instead of debian8-jessie, so the distribution name matches the suffix of the patch file (build-for-debian8.patch). A follow-up commit will apply a debian10 specific patch with this new function. Related: OS#4562 Change-Id: I2b69571ebc08a920c9147ce544fa8a2e6d950e65
2020-05-22OBS: check required programs before startOliver Smith1-0/+13
osmocom-*-packages.sh take some time to execute and has quite a few programs that are not commonly installed. Check the required dependencies first, so it doesn't abort in the middle of the scripts if these are missing. I just ran into this with the new meson dependency. Change-Id: I46cf1aeedd61dbd4fc8fa3f24c60e29033339ead
2020-05-19OBS: add RPM spec filesOliver Smith1-0/+30
Use existing osmocom-*-packages.sh scripts to add RPM spec.in files. Set the same version, as in the debian .dsc files. Related: OS#4550 Change-Id: If93b9d95e4c18cf1c29594c0802cbffaea27101c
2019-06-17OBS: make nightly packages conflict with latestOliver Smith1-0/+79
Add conflicting dummy packages osmocom-nightly and osmocom-latest, and make all packages from each repository depend on the right one. As usually, the latest packages will only get changed when a new release appears. So the dependency will get introduced after tagging a new release. I have tested in an own OBS namespace, that everything works as expected. Related: OS#2640 Change-Id: I79c45e798c10a65443b9fb9ecb54393d1918608a