Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1984679

Summary: Backport fix to remove arch-specific info from %_vpath_builddir macro
Product: Red Hat Enterprise Linux 9 Reporter: Neal Gompa <ngompa13>
Component: redhat-rpm-configAssignee: Michal Domonkos <mdomonko>
Status: CLOSED ERRATA QA Contact: Jan Blazek <jblazek>
Severity: unspecified Docs Contact:
Priority: high    
Version: CentOS StreamCC: bstinson, dmarchan, fleitner, fweimer, jwboyer, mdomonko, tredaelli
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-rpm-config-190-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 13:35:55 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2012289, 2024994    
Deadline: 2022-01-10   

Description Neal Gompa 2021-07-21 20:33:24 UTC
Description of problem:
The %_vpath_builddir macro currently is set to %_target_platform, which varies across architectures. This adds needless pain for build reproducibility when tools like Doxygen wind up embedded build paths into content metadata, causing noarch doc subpackages of archful packages to fail their payload comparisons.

This was fixed in redhat-rpm-config in Fedora by changing %_vpath_builddir to not include archful information: https://src.fedoraproject.org/rpms/redhat-rpm-config/c/e0cfcc0fc76a7642faabb25c5e348d6a1314ace2

Please make this change in RHEL 9 as well.

Comment 1 Neal Gompa 2021-07-21 20:36:03 UTC
Merge request proposed: https://gitlab.com/redhat/centos-stream/rpms/redhat-rpm-config/-/merge_requests/6

Comment 2 Florian Weimer 2021-07-30 14:13:43 UTC
Do we still plan to make this change?

Some fallout has been reported on the Fedora devel list: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/4BBDYVATUZ55P4KQRRQKAQJPKPK7BAQH/

If we plan to make this change, I recommend a test mass rebuild to see its impact on buildability across the distribution.

Comment 3 Neal Gompa 2021-07-30 14:28:15 UTC
(In reply to Florian Weimer from comment #2)
> Do we still plan to make this change?
> 
> Some fallout has been reported on the Fedora devel list:
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/
> message/4BBDYVATUZ55P4KQRRQKAQJPKPK7BAQH/
> 
> If we plan to make this change, I recommend a test mass rebuild to see its
> impact on buildability across the distribution.

You don't even need to go that far, just check for things using CMake or Meson that *also* try to use %_target_platform macro instead of %_vpath_builddir. Substituting one for the other is correct regardless of this change.

Comment 4 Michal Domonkos 2021-07-30 14:51:42 UTC
Or just download the whole archive of .specs and do a grep? :)

Which makes me wonder - do we have something akin to https://src.fedoraproject.org/repo/rpm-specs-latest.tar.xz, but for RHEL/CentOS?

Comment 5 Timothy Redaelli 2021-11-22 11:41:19 UTC
This is blocking us to do newer dpdk builds, since dpdk uses sphinx and the generated html files are different across different architectures (dpdk-docs is, of course, noarch).

Comment 6 Neal Gompa 2021-12-02 13:52:47 UTC
(In reply to Timothy Redaelli from comment #5)
> This is blocking us to do newer dpdk builds, since dpdk uses sphinx and the
> generated html files are different across different architectures (dpdk-docs
> is, of course, noarch).

Sphinx and Doxygen are what drove me over the edge to fix this in Fedora and RHEL in the first place. :)

Comment 16 errata-xmlrpc 2022-05-17 13:35:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: redhat-rpm-config), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2544