diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-01-18 12:43:06 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-01-19 14:32:01 +0100 |
commit | e3d5b384aa67c5562d59e8745fc6c48a9f2a997d (patch) | |
tree | 3aeaea3536e225f2a0986e1311ce07581fd78e80 /scripts/package-metadata.pl | |
parent | 2d9d57b9de230e1f397c1396f4fb7dfae34d3855 (diff) | |
download | upstream-e3d5b384aa67c5562d59e8745fc6c48a9f2a997d.tar.gz upstream-e3d5b384aa67c5562d59e8745fc6c48a9f2a997d.tar.bz2 upstream-e3d5b384aa67c5562d59e8745fc6c48a9f2a997d.zip |
build: expose ABI version in .packageauxvars
Subdequent commits need this information to resolve the ABI version when
computing binary ipk dependencies.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'scripts/package-metadata.pl')
-rwxr-xr-x | scripts/package-metadata.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/package-metadata.pl b/scripts/package-metadata.pl index b8c5de298a..b69ceb216a 100755 --- a/scripts/package-metadata.pl +++ b/scripts/package-metadata.pl @@ -516,6 +516,15 @@ sub gen_package_auxiliary() { if ($pkg->{name} && $pkg->{repository}) { print "Package/$name/subdir = $pkg->{repository}\n"; } + if ($pkg->{name} && defined($pkg->{abiversion})) { + if ($pkg->{abiversion} =~ m!^(\d{4})-(\d{2})-(\d{2})-[0-9a-f]{7,40}$!) { + print STDERR "WARNING: Reducing ABI version '$pkg->{abiversion}' of package '$name' to '$1$2$3'\n"; + print "Package/$name/abiversion = $1$2$3\n"; + } + elsif (length $pkg->{abiversion}) { + print "Package/$name/abiversion = $pkg->{abiversion}\n"; + } + } } } |