Feature #2642


Jenkins job to verify PKG_CHECK_MODULES correctness

Added by laforge over 6 years ago. Updated over 5 years ago.

Target version:
Start date:
Due date:
% Done:


Spec Reference:


Right before tagging a new version of a given program (e.g. osmo-bts), we would want to have a manually-triggered jenkins job that verifies the correctness of our PKG_CHECK_MODULES statements.

So this jenkins job would have to scan/parse and find lines like

PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore  >= 0.10.0)

and then check-out the 0.10.0 tag of libosmocore, build and install that dependency and finally attempt to do a "make check" on the program we triggered the jenkins job for (osmo-bts in the example above).

The difficulties/challenges I see are:
  • ensure we start from a clean build system that has none of our libs installed
  • have a list of mappings between library name and git repository name so the git repo for a given project can be determied
  • find out a way to deal with the fact that we have one source repo libosmocore which installs libosmo{core,gsm,ctrl,vty,codec,coding}.
    • simply detect this and use the latest(newest) version required by them for checkout+build+install?
    • actually find a way how we can only do a "make install" of one of the libraries from libosmocore.git?
  • it's sad that we'd have to have jenkins jobs for each of our projects, which seems a bit like bloat. Maybe it could also simply be a script in osmo-ci.git that we manually execute in a well-defined build environment such as a docker container? This way we wouldn't need yet another dozen of jenkins jobs.


  • make it easy to change the git url (jenkins job and command line)
  • merge all CI jobs into one
  • allow specifying the git revision
  • adjust code to gerrit review from neels
  • add a project parameter (or similar) to the CI job (default: all projects)
  • update code in gerrit review
  • WARNING messages if another project asks for an older version
  • allow the job to be only triggered manually

Related issues

Related to OsmoTRX - Bug #3578: osmo-trx-uhd, osmo-trx-usrp1 lack a --version cmdline optionResolvedosmith09/20/2018

Related to osmo-sip-connector - Bug #3577: osmo-sip-connector lacks a --version cmdline optionResolvedosmith09/20/2018

Related to OsmoSGSN - Bug #3576: osmo-gtphub lacks a --version optionResolvedosmith09/20/2018


Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)