[Rpm-maint] [rpm-software-management/rpm] Make %optflags empty on noarch target (PR #2615)

Panu Matilainen notifications at github.com
Tue Aug 15 08:03:13 UTC 2023


As there hasn't been any optflags set for noarch, whatever flags from the current host end up there and even in the produced binary and source rpms. Which seems decidedly wrong for a noarch package, and hurts reproducibility of said packages for no good reason.

Inspired by this bug report which reveals that cmake use in otherwise noarch packages ends up on relying on %optflags being set up for the architecture we're running on:
https://bugzilla.redhat.com/show_bug.cgi?id=2231727
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/2615

-- Commit Summary --

  * Make %optflags empty on noarch target

-- File Changes --

    M rpmrc.in (2)
    M tests/rpmgeneral.at (17)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/2615.patch
https://github.com/rpm-software-management/rpm/pull/2615.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2615
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/2615 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230815/6d83a084/attachment.html>


More information about the Rpm-maint mailing list