Skip to content

fix(libabigail): strip scanner-flagged PR30329 sqlite debuginfo fixtures from upstream tarball#17394

Open
anphel31 wants to merge 1 commit into
4.0from
anphel/signing-fix-libabigail
Open

fix(libabigail): strip scanner-flagged PR30329 sqlite debuginfo fixtures from upstream tarball#17394
anphel31 wants to merge 1 commit into
4.0from
anphel/signing-fix-libabigail

Conversation

@anphel31
Copy link
Copy Markdown
Member

@anphel31 anphel31 commented May 22, 2026

Summary

Remove tests/data/test-abidiff-exit/PR30329/ (a libabigail abidiff regression-test fixture set built around a pair of stripped sqlite3 shared libraries plus their separated debuginfo and dwz-multifile components) from the upstream libabigail-2.9.tar.xz (Source0). Our scan tooling flags both libsqlite3.so.0.8.6.debug files inside the fixture as packer_high_entropy:eod and rejects the SRPM.

The fixture is exercised by two hard-coded InOutSpec entries in tests/test-abidiff-exit.cc that run as part of %check (make check check-self-compare), so the repacked tarball produced by modify_source.sh also patches those two entries out of the in_out_specs[] array. The rest of the testsuite is untouched and continues to pass in-chroot.

Validation

  • Test build
  • GPG test signing confirmed

@anphel31 anphel31 marked this pull request as ready for review May 22, 2026 03:00
Copilot AI review requested due to automatic review settings May 22, 2026 03:00
Copy link
Copy Markdown
Contributor

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 pull request updates the libabigail component to avoid SRPM anti-malware scan failures by replacing upstream Source0 with a deterministically repacked tarball that removes the scanner-flagged PR30329 sqlite debuginfo fixtures and adjusts the corresponding test driver so %check continues to pass.

Changes:

  • Introduces a dedicated libabigail component definition that replaces upstream Source0 with a modified tarball hosted in lookaside storage (replace-upstream = true).
  • Adds a deterministic modify_source.sh script to strip tests/data/test-abidiff-exit/PR30329/ and patch tests/test-abidiff-exit.cc accordingly.
  • Updates rendered artifacts and metadata (Fedora sources SHA512, rendered spec Release, and component lock fingerprint) to match the modified source.

Reviewed changes

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

Show a summary per file
File Description
specs/l/libabigail/sources Updates the SHA512 for libabigail-2.9.tar.xz to the repacked tarball.
specs/l/libabigail/libabigail.spec Bumps Release to reflect the source change/rebuild.
locks/libabigail.lock Updates input-fingerprint for the component config change.
base/comps/libabigail/modify_source.sh Adds deterministic strip-and-repack script that removes the PR30329 fixture and patches the test driver.
base/comps/libabigail/libabigail.comp.toml Adds per-component config to replace upstream Source0 with the repacked tarball + rationale.
base/comps/components.toml Removes libabigail from the “unmodified Fedora imports” inline list (now customized via dedicated comp file).

Comment thread base/comps/libabigail/modify_source.sh Outdated
Comment thread base/comps/libabigail/modify_source.sh Outdated
Comment thread base/comps/libabigail/modify_source.sh Outdated
Comment thread base/comps/libabigail/modify_source.sh Outdated
Comment thread base/comps/libabigail/modify_source.sh
…res from upstream tarball

Remove tests/data/test-abidiff-exit/PR30329/ (a libabigail abidiff regression-test fixture set built around a pair of stripped sqlite3 shared libraries plus their separated debuginfo and dwz-multifile components) from the upstream libabigail-2.9.tar.xz (Source0). Our scan tooling flags both libsqlite3.so.0.8.6.debug files inside the fixture as packer_high_entropy:eod and rejects the SRPM.

The fixture is exercised by two hard-coded InOutSpec entries in tests/test-abidiff-exit.cc that run as part of %check (make check check-self-compare), so the repacked tarball produced by modify_source.sh also patches those two entries out of the in_out_specs[] array. The rest of the testsuite is untouched and continues to pass in-chroot.
@anphel31 anphel31 force-pushed the anphel/signing-fix-libabigail branch from a16ddb3 to fd96e6e Compare May 22, 2026 11:24
@anphel31 anphel31 requested a review from christopherco May 22, 2026 11:44
# no internal `{` / `}` (verified by inspection of upstream 2.9). Outside
# the array we touch nothing, which avoids accidentally eating function
# bodies, struct initializers in other code, etc.
ARRAY_DECL = b"InOutSpec in_out_specs[] ="
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I had a similar chat about this with @PawelWMS; we should figure out how to shift this toward legit .patch files that we carry next to the spec rather than making these changes when we transform the tarballs.

The only transformation that we should be making to tarballs via these scripts right now is file removal.

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.

4 participants