aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/osmocom-latest-packages.sh
AgeCommit message (Collapse)AuthorFilesLines
2020-05-25OBS: add debian10 specific patch for limesuiteOliver Smith1-0/+2
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-18/+3
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: add --noservice to osc ci commandOliver Smith1-1/+1
Prevent the following error: ERROR: please install obs-service-format_spec_file or use the --noservice option Build step 'Execute shell' marked build as failure Related: https://jenkins.osmocom.org/jenkins/job/Osmocom_OBS_latest/976/console Change-Id: Ib2fbaace47b3c12462860419f19b01a5b4d192e8
2020-05-22OBS: check required programs before startOliver Smith1-5/+0
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-2/+4
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
2020-04-27disable osmo-uecups latest build; needs new libosmocore releaseHarald Welte1-1/+2
Change-Id: Ib2f5fcd7e7a5b05a1fef9f3cbac99c6f203e2baa
2020-04-24osmocom-*-packages.sh: fix osmo-uecupsHarald Welte1-0/+1
Change-Id: I359fe8f4fb94dc9b4b31e10f5cb9d0d4400a0e2a
2020-04-20add osmo-uecups to nightly + latest feedsHarald Welte1-0/+1
Change-Id: Ic7de1b4c6ce47093874fe373cac8a1f7e47ee179
2020-02-26osmocom-*-packages: Build neocon packageHarald Welte1-0/+2
Change-Id: Ie0243bf066d6bc369737b8d659d09e3871cae79d
2020-02-26osmocom-latest-packages: Allow non-osmocom git URL in checkout()Harald Welte1-11/+9
Change-Id: I33bbc47598cb2c31cdc4209cd2fe3e6f6dd67e7a
2020-02-24osmocom-nightly/latest: Build open5gsHarald Welte1-2/+16
This is unfortunately harder than expected. The problem is the use of meson external dependencies using 'wrap', specifically for freeDiameter. As a debian source package needs to include the entire source, the dpkg helpers are calling 'meson --wrap-mode=nodownload' at build time. This in turn requires us to download the freeDiameter after the git clone of open5gs. Unfortunately this creates a git checkout in a sub directory of the open5gs repo, which is not part of the git history. git-buildpackage hence generates a source tarball *without* freeDiameter. I tried very hard in several methods like * git commit subprojects/freeDiameter * adding subprojects/freeDiameter as git submodule unfortuantely none of them helped. In the end, I resorted to using 'dpkg-buildpackage' instead of 'git-buildpackage' (gbp), which then has other disadvantages, such as not being able to determine the output directory to which the .tar.* and .dsc files are written to. In the end, the solution implemented here is the only one I could make work. Change-Id: I6752288868e5ee1378c0776b1be9f06750017c41
2020-01-16OBS: clone from gerrit.osmocom.orgOliver Smith1-1/+2
Work around "garbage at end of loose object" errors that occasionally cause these jenkins jobs to fail. A few repositories are not hosted on gerrit, so they still get cloned from git.osmocom.org. However, having almost all repositories cloned from gerrit should improve the situation a lot. Related: OS#4083 Change-Id: Id8f08a1bc10d6c81be9ad44c60646e2ea9f6cf4e
2019-07-22OBS: print date/time before git clone and on errorOliver Smith1-1/+2
The OBS job clones a lot of repositories from git.osmocom.org every night, so it is a good candidate to reproduce the "garbage at end of loose object" error we are getting sporadically. Print exact timestamps, so we can check if there is anything related in the server logs, when this error happens again. Related: OS#4083 Change-Id: Ic9a6d3f0c2b8dad2661ede793c21307f1680a52e
2019-07-21latest-packages: Enable osmo-remsim as new libosmo-abis is taggedHarald Welte1-4/+2
Change-Id: Id1902f8b79357ac280767edba3698450f67b7c37
2019-06-17OBS: make nightly packages conflict with latestOliver Smith1-0/+10
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
2019-05-29OBS: build osmo-gsm-manuals-dev in latestOliver Smith1-1/+21
Enable in osmocom-latest-packages.sh. Check it out and create the source package for the latest release as usually, but also create a second version for debian 8 with adjusted dependencies (like in nightly [1]). [1] Change-Id: I3570599ede51b974d350064f44f77e360fafd8b0 Related: OS#3899 Change-Id: Ib7251cca9116151e473798879375cd5eb48ff3ad
2019-05-29OBS: latest: remove redundant checkout in build()Oliver Smith1-1/+0
Don't checkout a specific version in build(), this is already done in checkout(). Change-Id: I74290968fe25a6311da0de26ff675bbd687ba156
2019-05-11osmocom-latest-packages: Enable osmo-sysmonHarald Welte1-4/+2
Since libosmocore 1.1.0 and libosmo-netif 0.5.0 are released, we can address the TODO and build osmo-sysmon also in our latest feed. Change-Id: I48bd5aff2ae315b6f462facea70222eb2cdd2d58
2019-04-15OBS: build osmo-gsm-manuals-dev in nightlyOliver Smith1-1/+2
Enable in osmo-nightly-packages.sh, and add as coment in osmocom-nightly-packages.sh for now (needs a tagged release first). Related: OS#3899 Depends: I7edb5093e5b58eb3b0f7af2376476db4026db735 (osmo-gsm-manuals.git) Change-Id: Ideeae4f7846fa5626fe2c1f5a77e07a3c6e626fe
2019-04-12nightly-packages: Move some code and rename some vars to look similar to ↵Pau Espin Pedrol1-0/+1
latest-packages Change-Id: I177bb7fb75e293ef665e95363a38c6b4f8e49c13
2019-04-03osmocom-nightly-packages: build osmo-remsimHarald Welte1-0/+4
As of Change-Id Id5044b1835190edc948952d207a5196a18669eb1, osmo-remsim contains Debian packaging information and hence we can build it as part of our nightly feeds. We're not yet enabling 'latest' builds as we need to wait for the next libosmo-abis release for that (requires the IPA keepalive FSM). Change-Id: Ic367dc95f46cece4bd769061af860fd82b4bd2e9
2019-03-22scripts: Enable osmo-sysmon debian package OBS buildPau Espin Pedrol1-0/+4
Change-Id: I638c58be1ddf5e7fcf5a51de532ae8c4c06dcdbb
2019-01-26osmocom-*-packages: clone via https:// not via unencrypted git://Harald Welte1-1/+1
Change-Id: Ibfb52cbac93451ba402edb6b59350620954b0d81
2019-01-26latest-packages: Add libosmo-dspHarald Welte1-0/+2
Now that libosmo-dsp has a 0.4.0 tag that includes debian packaging information, we can add it to the latest feed. Change-Id: Ic082a4ad6b8582dfe44df5bdaafa525e52da7246
2018-10-05osmocom-latest-packages.sh: Refactor to support building limesuitePau Espin Pedrol1-57/+112
This way the latest script is a lot more similar to the nightly one, and easier to maintain and expand with new features. checkout and build steps are split because once we have a new osmo-trx release, we'll need the create_osmo_trx_debian8_jessie trick to build it. In the future we can do further steps to have a common function lib between latest and nightly scripts. Change-Id: I786c6f4ad4b4e43d1692c1588d2ad2194d0b25a4
2018-08-26osmocom-latest-packages: Add simtrace2Harald Welte1-0/+1
Change-Id: I9e6b01f465470f77c58268979d3608afe2005b1c
2018-08-08osmocom-latest-packages: Fix libusrp and other non-osmocom buildsHarald Welte1-4/+9
We're using the build() function not only to build osmocom projects requiring a .tarball-version file, but also other projects such as libusrp. Let's make the related git-buildpackage arguments conditional to whether or not a .tarball-version file exists at all. Change-Id: I0683cff036a240b1b819f91fbd230d5f9211074c
2018-08-06osmocom-latest-packages: Add .tar.xz for new packagesHarald Welte1-0/+1
If a new package is uploaded to OBS, prior to this change, only the .dsc file is uploaded, not the actual .tar.xz containing the source code. Let's fix that. Change-Id: Id1c9e6d112781004238a516b24dd446af0beb95a
2018-08-06osmocom packages: Ensure PACKAGE_VERSION is set correctlyHarald Welte1-1/+4
At the "autorecon -fi" stage, Osmocom programs either need the .git directory peresent, or a .tarball-version file in order to determine the exact source code version. Normally, "make dist" exists exactly for this purpose: It runs git-version-gen and saves the result to .tarball-version, and we then include this file in the .tar.gz we generate. However, as the nightly paackaging scripts use git-buildpackage, it bypasses the "make dist" logic and hence we need to 1) manually generate the .tarball-version file 2) copy it over to the directory specified as --git-export-dir This way, the .tarball-version is inside the tar.xz generated by gbp, and autoreconf then has something to use as PACKAGE_VERSION. This commit fixes "UNKNOWN-dirty" in .pc files of libraries, as well as in "show version" commands on the vty. Closes: OS#3449 Change-Id: I76e3713f0b01a6110091ff90e8e53aa79533c374
2018-06-04Revert "osmocom-latest-packages: Also accept "v" in front of version tags"Harald Welte1-1/+1
This reverts commit 5b2bb86e8ada837732f06bb4a77779cdbca73496. While it was intended to enable automatic "latest" builds from rtl-sdr, it breaks builds e.g. of libosmo-abis, where we have both (new) tags without 'v' and old tags with 'v', and now the older 'v' tags win due to lexicographical sorting :( Change-Id: I1c8d2ab18e389a8c2c41082d997f101d72c3acc0
2018-06-03osmocom-latest-packages: diable rtl-sdr and osmo-fl2k againHarald Welte1-2/+3
we cannot yet build "latest" for them, as they don't have any tagged versions yet which include the /debian directory. Change-Id: Ia5708508d918fd71eb05393e39b93859b943d623
2018-06-03osmocom-latest-packages: Also accept "v" in front of version tagsHarald Welte1-1/+1
Some projects (notably rtl-sdr) use "v" in front of their version tags in the git history. Let's make sure we also recognize those. Change-Id: I20f9896cc7844a6ddec7ba63bc9a77f548082e2a
2018-06-03osmocom latest+nightly packages: Add osmo-fl2kHarald Welte1-0/+1
Now that osmo-fl2k has debian packaging information included, we can easily build it as part of the "latest" and "nightly" feeds. Change-Id: Ie2429df14ad51aadb55b4a7d8f6cfcb45c5c6e70
2018-06-03osmocom latest+nightly packages: Add rtl-sdrHarald Welte1-0/+1
Now that rtl-sdr has debian packaging information included, we can easily build it as part of the "latest" and "nightly" feeds. Change-Id: Idc6afb523e71ed977401d707895844bad6247f8b
2018-04-26scripts: osmocom-*-packages.sh: Build libusrpPau Espin Pedrol1-0/+1
Depends on: I5ff1d76f533b9ac68ab3f2c70ead6b66f4413b4f Change-Id: Ic742db854b8a3aba6ddc85ffb41fc6f4697c572d
2018-03-07osmocom-latest-packages.sh: Catch latest tags outside master branchPau Espin Pedrol1-1/+1
Some projects, like osmo-trx, may have tags created in a non-master branch. Let's catch those too. Tested with several osmocom repositories. The ones showing different behaviour are osmo-trx (expected) and other repositories which have wrong or no tags and are anyway not used since there's no OBS build for them. Old cmdline is left of ==, new is right: artwork: ( == ) asn1c: ( == ) docker-playground: (debian-jessie-buildslave-0.1.0 == ) layer1-api: (superfemto_v3.8.1 == ) libasn1c: (0.9.28 == 0.9.28) libgtpnl: (1.1.0 == 1.1.0) libosmo-abis: (0.4.0 == 0.4.0) libosmocore: (0.10.2 == 0.10.2) libosmo-netif: (0.1.1 == 0.1.1) libosmo-sccp: (0.8.1 == 0.8.1) libsmpp34: (1.12.0 == 1.12.0) meta-telephony: ( == ) mncc-python: ( == ) octphy-2g-headers: (OCTSDR-OPENBSC-02.09.00-B1121 == ) openbsc: (1.0.0 == 1.0.0) osmo-bsc: (1.1.2 == 1.1.2) osmo-bts: (0.7.0 == 0.7.0) osmo-ci: ( == ) osmocom-bb: (osmocon_v0.0.0 == ) osmo-ggsn: (1.1.0 == 1.1.0) osmo-gsm-manuals: ( == v1) osmo-gsm-tester: ( == 0.1) osmo-gsm-tester-conf: ( == ) osmo-gsm-tester-sysmocom: ( == ) osmo-hlr: (0.1.0 == 0.1.0) osmo-iuh: (0.2.0 == 0.2.0) osmo-mgw: (1.2.0 == 1.2.0) osmo-msc: (1.1.2 == 1.1.2) osmo-pcu: (0.4.0 == 0.4.0) osmo-python-tests: ( == ) osmo-sgsn: (1.2.0 == 1.2.0) osmo-sip-connector: (1.1.0 == 1.1.0) osmo-trx: (0.2.0 == 0.3.0) pysim: ( == ) python-smpplib: ( == ) Change-Id: I3b521a194f0ae9fdfa358423e66f30c1316c23e8
2017-12-14add libgtpnl also to 'latest', not just to 'nightly'Harald Welte1-0/+1
Change-Id: Ifd9b3c6e98d890f135356648ef3f9a62c07dcf94
2017-12-07osmocom-nightly/latest: check if osc is installedAlexander Couzens1-0/+5
Change-Id: I10ce91eab415c19bb811fbb2fd617d5ce2b58d41
2017-12-06osmocom-nightly/latest: document which debian packages are requiredAlexander Couzens1-0/+3
Change-Id: If127d0e852ea8e321461d6aa709621167a0a8ecb
2017-11-21osmocom-latest-packages: only publish source tar balls if a new tag was createdAlexander Couzens1-9/+27
OBS should only be updated if there is a new tag. Change-Id: Ife10c9819e5971b001c5be9d313781eb3fd19e23
2017-11-21osmocom-latest-packages: fix shellcheck warningsAlexander Couzens1-13/+13
Change-Id: I1733658ce9b3de595b6087a58da0cb8c8bcf928f
2017-11-21osmocom-latest-packages: introduce $TOP dir variableAlexander Couzens1-6/+8
Using a $TOP variable makes directory paths more clear to understandable. Path now expressed starting from the TOP dir instead of using ../../../foo Change-Id: I7a87532a3232fbcfb5f676588991dbc59a34f739
2017-11-21osmocom-latest-packages: set -e: exit on any failureAlexander Couzens1-1/+1
Change-Id: I8dbf32a731d01b6eba933b8af22500c5edd1502d
2017-10-28Add osmocom-latest-packages.sh script for network:osmocom:latestHarald Welte1-0/+62
Change-Id: I8b036e57d8a5f4e08081c9641bbef50fead0c52a