From 85c2effd89f2fc83be3a1a7e178c73908976e167 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 13 Sep 2018 15:39:44 +0200 Subject: osmo-depcheck: script to verify PKG_CHECK_MODULES This script verifies that Osomcom programs really build with the dependency versions they claim to support in configure.ac. In order to do that, it clones the dependency repositories if they don't exist already, and checks out the minimum version tag. This happens recursively for their dependencies as well. See 'osmo-depcheck.py -h' for the full usage instructions. There's also a new jenkins job in jobs/osmocom-depcheck.yml. Change-Id: I8f495dbe030775f66ac125e60ded95c5d7660b65 Relates: OS#2642 --- scripts/osmo-depcheck/config.py | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 scripts/osmo-depcheck/config.py (limited to 'scripts/osmo-depcheck/config.py') diff --git a/scripts/osmo-depcheck/config.py b/scripts/osmo-depcheck/config.py new file mode 100644 index 0000000..3e993bf --- /dev/null +++ b/scripts/osmo-depcheck/config.py @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright 2018 sysmocom - s.f.m.c. GmbH + +# Where to clone sources from (with trailing slash) +git_url_prefix = "git://git.osmocom.org/" + +# Default projects to build when none are specified on the command line +projects = ("osmo-bts", + "osmo-pcu", + "osmo-hlr", + "osmo-mgw", + "osmo-msc", + "osmo-sgsn", + "osmo-ggsn") + +# Libraries coming from Osmocom repositories (glob patterns) +# All other libraries (e.g. libsystemd) are ignored by this script, even if +# they are mentioned with PKG_CHECK_MODULES in configure.ac. +relevant_library_patterns = ("libasn1c", + "libgtp", + "libosmo*") + + +# Library locations in the git repositories +# Libraries that have the same name as the git repository don't need to be +# listed here. Left: repository name, right: libraries +repos = {"libosmocore": ("libosmocodec", + "libosmocoding", + "libosmoctrl", + "libosmogb", + "libosmogsm", + "libosmosim", + "libosmovty"), + "libosmo-abis": ("libosmoabis", + "libosmotrau"), + "libosmo-sccp": ("libosmo-mtp", + "libosmo-sigtran", + "libosmo-xua"), + "osmo-ggsn": ("libgtp"), + "osmo-hlr": ("libosmo-gsup-client"), + "osmo-iuh": ("libosmo-ranap"), + "osmo-mgw": ("libosmo-mgcp-client", + "libosmo-legacy-mgcp")} -- cgit v1.2.3