Skip to content

packaging: rename trident-acl-agent subpackage to trident-acl - #757

Merged
bfjelds (bfjelds) merged 4 commits into
mainfrom
user/bfjelds/rename-trident-acl-agent-subpackage
Aug 28, 2026
Merged

packaging: rename trident-acl-agent subpackage to trident-acl#757
bfjelds (bfjelds) merged 4 commits into
mainfrom
user/bfjelds/rename-trident-acl-agent-subpackage

Conversation

@bfjelds

Copy link
Copy Markdown
Member

Renames the RPM subpackage from trident-acl-agent to trident-acl in packaging/rpm/trident.spec. The underlying binary, systemd unit, and cargo crate names are unchanged; only the subpackage name/tags (%package, %description, %files, %post, %preun, %postun) are updated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 28, 2026 17:57
@bfjelds
bfjelds (bfjelds) requested a review from a team as a code owner August 28, 2026 17:57
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the RPM spec to rename the RPM subpackage from trident-acl-agent to trident-acl, while keeping the underlying binary (trident-acl-agent) and systemd unit unchanged.

Changes:

  • Renamed the RPM subpackage tags from acl-agent to acl (%package, %description, %files, %post, %preun, %postun).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packaging/rpm/trident.spec
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 28, 2026 18:01
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 3 out of 3 changed files in this pull request and generated no new comments.

Suppressed comments (1)

packaging/rpm/trident.spec:232

  • Renaming an RPM subpackage usually needs compatibility tags so upgrades from the old name work (and so dependencies on the old subpackage name don’t break). With only %package renamed, tdnf upgrade from trident-acl-agent may leave the old package installed or fail to pull in trident-acl.

Add Provides:/Obsoletes: for the previous subpackage name in the new %package acl section.

%package acl
Summary:        Trident ACL Components
Requires:       %{name} = %{version}-%{release}

Copilot AI review requested due to automatic review settings August 28, 2026 18:03
@bfjelds

Copy link
Copy Markdown
Member Author

/azp run [GITHUB]-trident-pr-e2e

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 3 out of 3 changed files in this pull request and generated no new comments.

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

scripts/extract-binary.sh:58

  • The extracted RPM is now trident-acl-*, but the script still copies it to a temp filename trident-acl-agent.rpm and runs rpm2cpio trident-acl-agent.rpm. This works, but the filename no longer matches the package being extracted, which makes the set -x logs and future maintenance confusing after the rename.

Rename the temp RPM filename (and rpm2cpio argument) to trident-acl.rpm, and update the comment to reference the trident-acl subpackage explicitly.

# Extract trident-acl-agent binary from the acl sub-package RPM
ACL_AGENT_RPM=$(find "$RPM_DIR" | grep -P "trident-acl-\d.*\.${DISTRO}\.${RPM_ARCH}\.rpm" | head -n 1 || true)
if [ -n "$ACL_AGENT_RPM" ]; then
  ACL_TMP_DIR=$(mktemp -d)
  cp "$ACL_AGENT_RPM" "$ACL_TMP_DIR/trident-acl-agent.rpm"

@bfjelds
bfjelds (bfjelds) merged commit 2a8736f into main Aug 28, 2026
100 checks passed
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.

3 participants