ci: packit: enable -Werror

This commit is contained in:
Thomas Weißschuh 2023-01-07 13:58:17 +00:00
parent f36f3251c5
commit 6b23e2677d

View file

@ -31,6 +31,8 @@ actions:
- "sed -i '/^### Macros/a%define _with_check 1' .packit_rpm/util-linux.spec" - "sed -i '/^### Macros/a%define _with_check 1' .packit_rpm/util-linux.spec"
# Ignore unpackaged files # Ignore unpackaged files
- "sed -i '1 i%define _unpackaged_files_terminate_build 0' .packit_rpm/util-linux.spec" - "sed -i '1 i%define _unpackaged_files_terminate_build 0' .packit_rpm/util-linux.spec"
# Enable -Werror
- "sed -i 's/^%configure /%configure --enable-werror /' .packit_rpm/util-linux.spec"
create-archive: create-archive:
# We need to override the default create-archive action, since we need to tweak # We need to override the default create-archive action, since we need to tweak
# the resulting tarball and add a .tarball-version file to it, otherwise # the resulting tarball and add a .tarball-version file to it, otherwise