Skip to content

SEPE-1058: Add patch file support and document SEPE fork#1

Merged
eschoeller merged 2 commits into
masterfrom
SEPE-1058_patch_file_support
Apr 8, 2026
Merged

SEPE-1058: Add patch file support and document SEPE fork#1
eschoeller merged 2 commits into
masterfrom
SEPE-1058_patch_file_support

Conversation

@eschoeller
Copy link
Copy Markdown

Summary

  • Copy *.patch files from the repo root into the rpmbuild SOURCES dir before invoking rpmbuild, so spec files can use standard Patch0:/Patch1:/... declarations instead of brittle inline sed substitutions in %prep. No-op if the repo has no patch files, so existing consumers are unaffected.
  • Document in the README that this is a SEPE fork of naveenrajm7/rpmbuild, list SEPE-specific modifications (AlmaLinux 8 adaptation and patch file support), and note that upstream is dormant so we intentionally do not track against it.

Motivation

We first hit the patch-file limitation while building merlin against naemon 1.5.1 (SEPE-1041) and worked around it with an inline sed in merlin.spec %prep. That works for one tiny substitution but doesn't scale — a second merlin patch (upstream PR ITRS-Group/monitor-merlin#175) is queued, and sed composition for multiple patches is fragile.

Test plan

  • PR builds/CI passes (if any CI is wired up on this repo)
  • Follow-up PR in `oit-sepe-naemon-build` successfully builds merlin using a `Patch0:` declaration instead of the current inline sed
  • cub-0.3.1 released with the patch-file-based merlin build

Copy any *.patch files from the repo root into rpmbuild SOURCES before
invoking rpmbuild, so spec files can use standard Patch0:/Patch1:/...
declarations instead of brittle inline sed substitutions in %prep. No-op
if the repo has no patch files, so existing consumers are unaffected.

Add a Fork Notice section to the README documenting that this is a
SEPE fork of naveenrajm7/rpmbuild, listing the SEPE-specific changes
(AlmaLinux 8 base image adaptation and the new patch file support),
and noting that upstream is dormant so we intentionally do not track
against it.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the RPM build GitHub Action to support RPM-style patch workflows by copying repository-root *.patch files into the rpmbuild SOURCES directory, and documents that this repository is a SEPE-maintained fork with SEPE-specific divergences from upstream.

Changes:

  • Copy *.patch files from /github/workspace into /github/home/rpmbuild/SOURCES/ prior to invoking rpmbuild.
  • Add a “SEPE Fork Notice” section describing the fork and listing SEPE-specific modifications.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/main.ts Adds patch-file copying into rpmbuild SOURCES so spec PatchN: declarations work.
README.md Documents the SEPE fork status and enumerates SEPE-specific changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main.ts Outdated
Comment thread README.md
- main.ts: pass argv array to exec.exec instead of shell-interpolated
  string for cp, and guard against non-file entries via fs.statSync.
  Safer for filenames with spaces or leading dashes.
- README.md: point example workflows at UCBoulder/oit-sepe-rpmbuild
  instead of upstream naveenrajm7/rpmbuild so users following the
  examples consume this fork. Also replace the multi-distribution note
  (el7/el8 variants) with a statement that this fork builds el8 only.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@eschoeller eschoeller marked this pull request as ready for review April 8, 2026 03:13
@eschoeller eschoeller merged commit fbfe7cb into master Apr 8, 2026
4 checks passed
@eschoeller eschoeller deleted the SEPE-1058_patch_file_support branch April 8, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants