aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/osmo-depcheck/config.py
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2018-09-13 15:39:44 +0200
committerOliver Smith <osmith@sysmocom.de>2018-09-20 16:28:00 +0200
commit85c2effd89f2fc83be3a1a7e178c73908976e167 (patch)
tree2d944e8e27056c0f8d8dd03627a5cc52c53e9c37 /scripts/osmo-depcheck/config.py
parent7fab6f54122babe0d29510d96603846f4e8eb3a0 (diff)
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
Diffstat (limited to 'scripts/osmo-depcheck/config.py')
-rw-r--r--scripts/osmo-depcheck/config.py43
1 files changed, 43 insertions, 0 deletions
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 <info@sysmocom.de>
+
+# 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")}