build: drop ABI version from metadata
Preparation for supporting dynamic ABI versions that depend on the runtime configuration. Read the suffix from the staging dir pkginfo version files. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -249,7 +249,6 @@ sub parse_package_metadata($) {
|
||||
/^Build-Types:\s*(.+)\s*$/ and $src->{buildtypes} = [ split /\s+/, $1 ];
|
||||
next unless $pkg;
|
||||
/^Version: \s*(.+)\s*$/ and $pkg->{version} = $1;
|
||||
/^ABIVersion: \s*(.+)\s*$/ and $pkg->{abiversion} = $1;
|
||||
/^Title: \s*(.+)\s*$/ and $pkg->{title} = $1;
|
||||
/^Menu: \s*(.+)\s*$/ and $pkg->{menu} = $1;
|
||||
/^Submenu: \s*(.+)\s*$/ and $pkg->{submenu} = $1;
|
||||
|
||||
@@ -532,21 +532,6 @@ sub gen_package_auxiliary() {
|
||||
if ($pkg->{name} && $pkg->{repository}) {
|
||||
print "Package/$name/subdir = $pkg->{repository}\n";
|
||||
}
|
||||
if ($pkg->{name} && defined($pkg->{abiversion}) && length($pkg->{abiversion})) {
|
||||
my $abiv;
|
||||
|
||||
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";
|
||||
$abiv = "$1$2$3";
|
||||
}
|
||||
else {
|
||||
$abiv = $pkg->{abiversion};
|
||||
}
|
||||
|
||||
foreach my $n (@{$pkg->{provides}}) {
|
||||
print "Package/$n/abiversion = $abiv\n";
|
||||
}
|
||||
}
|
||||
my %depends;
|
||||
foreach my $dep (@{$pkg->{depends} || []}) {
|
||||
if ($dep =~ m!^\+?(?:[^:]+:)?([^@]+)$!) {
|
||||
|
||||
Reference in New Issue
Block a user