feat: add support for renamed package updates and ABI-breaking flags
- Introduced `real_name` field in `InstalledPackageRecord` and `PackageInfo` to handle renamed packages. - Added `abi_breaking` field to manage versioned shared libraries during renamed updates. - Updated database schema to include `real_name` and `abi_breaking` columns. - Enhanced package registration logic to support replacement of renamed packages while retaining specified files and directories. - Modified various functions and tests to accommodate the new fields and ensure backward compatibility. - Updated TOML serialization to include `real_name` and `abi_breaking` in package metadata.
This commit is contained in:
@@ -516,6 +516,18 @@ mod tests {
|
||||
assert!(args.iter().any(|a| a == "--bindir=/usr/bin"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_meson_setup_args_use_lib32_defaults() {
|
||||
let flags = BuildFlags {
|
||||
lib32_variant: true,
|
||||
..BuildFlags::default()
|
||||
};
|
||||
|
||||
let args = meson_setup_args(&flags, None, &[]);
|
||||
assert!(args.iter().any(|a| a == "--libdir=/usr/lib32"));
|
||||
assert!(args.iter().any(|a| a == "--libexecdir=/usr/lib32"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_meson_setup_args_include_linker_override() {
|
||||
let flags = BuildFlags {
|
||||
@@ -629,10 +641,12 @@ mod tests {
|
||||
let spec = PackageSpec {
|
||||
package: PackageInfo {
|
||||
name: "pkg".into(),
|
||||
real_name: None,
|
||||
version: "1.0".into(),
|
||||
revision: 1,
|
||||
description: "d".into(),
|
||||
homepage: "h".into(),
|
||||
abi_breaking: false,
|
||||
license: vec!["MIT".into()],
|
||||
},
|
||||
packages: Vec::new(),
|
||||
|
||||
Reference in New Issue
Block a user