]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: build the Fedora RPMs with -Werror
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 28 Jan 2021 21:27:18 +0000 (22:27 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 29 Jan 2021 02:02:54 +0000 (11:02 +0900)
.packit.yml

index 70f6b5ddc6da2f2410e220310608cc3aa2b907a6..0c3c17b9da96e25a0c7f0e05b41a2321d3ef5ff2 100644 (file)
@@ -11,7 +11,7 @@ synced_files:
 upstream_package_name: systemd
 downstream_package_name: systemd
 # `git describe` returns in systemd's case 'v245-xxx' which breaks RPM version
-# detection (that expects 245-xxxx'. Let's tweak the version string accordingly
+# detection (that expects 245-xxxx'). Let's tweak the version string accordingly
 upstream_tag_template: "v{version}"
 
 actions:
@@ -22,6 +22,8 @@ actions:
     # - Patch0000-0499: backported patches from upstream
     # - Patch0500-9999: downstream-only patches
     - "sed -ri '/^Patch0[0-4][0-9]{2}+\\:.+\\.patch/d' .packit_rpm/systemd.spec"
+    # Build the RPMs with -Werror to catch possible compiler warnings
+    - "sed -i 's/^%meson /%meson --werror /' .packit_rpm/systemd.spec"
 
 jobs:
 - job: copr_build