Add support for '-Dstrip=true' and '--auto-features=disabled' in "arch-meson"
Description:
The current packaging wrapper for Arch Linux does not include support for the -Dstrip=true flag and the --auto-features=disabled option. These are often used to control build behavior and should be incorporated into the wrapper for better customization and control during the packaging process.
Additional info:
-
-Dstrip=true: Strips debugging symbols from the final package, reducing its size. -
--auto-features=disabled: Disables automatic enabling of features based on system configuration, giving the user more explicit control over the build features.
Package version(s):
- 1.9.1
Steps to reproduce:
- Modify the wrapper script to add
-Dstrip=trueand--auto-features=disabled. - Run the script with a typical package configuration to confirm the changes.
Example modified wrapper:
#!/bin/bash -ex
# Highly opinionated wrapper for Arch Linux packaging
exec meson setup \
--prefix /usr \
--libexecdir lib \
--sbindir bin \
--buildtype plain \
--auto-features disabled \ # Change here from enabled to disabled
--wrap-mode nodownload \
-D b_pie=true \
-D python.bytecompile=1 \
-D strip=true \ # Change here to add strip
"$@"
This update will provide more efficient builds with stripping enabled by default and more predictable feature management, particularly for users who require fine-grained control over their build features.