Skip to content

Commit

Permalink
ci: reconfigure Packit for RHEL 10
Browse files Browse the repository at this point in the history
rhel-only

Related: RHEL-36636
  • Loading branch information
jamacku committed May 20, 2024
1 parent a555b5d commit 2af2283
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .packit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ actions:
- "bash -ec 'git describe --tags --abbrev=0 | cut -b 2-'"

post-upstream-clone:
# Use the Fedora Rawhide specfile
- "git clone https://src.fedoraproject.org/rpms/systemd .packit_rpm --depth=1"
# Use the CentOS Stream 10 specfile
- "git clone -b c10s https://gitlab.com/redhat/centos-stream/rpms/systemd.git .packit_rpm --depth=1"
# Drop the "sources" file so rebase-helper doesn't think we're a dist-git
- "rm -fv .packit_rpm/sources"
# Drop backported patches from the specfile, but keep the downstream-only ones
# - Patch(0000-0499): backported patches from upstream
# - Patch0500-9999: downstream-only patches
- "sed -ri '/^Patch(0[0-4]?[0-9]{0,2})?\\:.+\\.patch/d' .packit_rpm/systemd.spec"
# Drop all patches, since they're already included in the tarball
- "sed -ri '/^Patch[0-9]+:/d' .packit_rpm/systemd.spec"
# Build the RPM with --werror. Even though --werror doesn't work in all
# cases (see [0]), we can't use -Dc_args=/-Dcpp_args= here because of the
# RPM hardening macros, that use $CFLAGS/$CPPFLAGS (see [1]).
Expand All @@ -45,20 +43,12 @@ actions:
# until the change propagates to Rawhide's specfile
- "sed -ri '0,/^BuildRequires: .+$/s//&\\nBuildRequires: libarchive-devel\\nRequires: libarchive/' .packit_rpm/systemd.spec"

# Available targets can be listed via `copr-cli list-chroots`
jobs:
- job: copr_build
trigger: pull_request
targets:
- fedora-rawhide-aarch64
- fedora-rawhide-i386
- fedora-rawhide-ppc64le
- fedora-rawhide-s390x
- fedora-rawhide-x86_64

- job: tests
trigger: pull_request
fmf_url: https://src.fedoraproject.org/tests/systemd
fmf_ref: main
tmt_plan: ci
targets:
- fedora-rawhide-x86_64
- centos-stream-10-aarch64
- centos-stream-10-ppc64le
- centos-stream-10-s390x
- centos-stream-10-x86_64

0 comments on commit 2af2283

Please sign in to comment.