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 17, 2024
1 parent a555b5d commit ce6ff51
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 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,6 +43,8 @@ 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`
# !FIXME: use RHEL10 targets once available
jobs:
- job: copr_build
trigger: pull_request
Expand All @@ -55,6 +55,7 @@ jobs:
- fedora-rawhide-s390x
- fedora-rawhide-x86_64

# TODO: Do we plan to use test job for RHEL10?
- job: tests
trigger: pull_request
fmf_url: https://src.fedoraproject.org/tests/systemd
Expand Down

0 comments on commit ce6ff51

Please sign in to comment.