Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1286193

Summary: RFE: add multilib-fix helper
Product: [Fedora] Fedora Reporter: Pavel Raiskup <praiskup>
Component: redhat-rpm-configAssignee: Florian Festi <ffesti>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ffesti, hhorak, jonathan, praiskup, riehecky, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
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: 1344231    
Bug Blocks:    
Attachments:
Description Flags
Proposed fix. none

Description Pavel Raiskup 2015-11-27 12:26:47 UTC
Created attachment 1099680 [details]
Proposed fix.

Typically it might happen that upstream project installs architecture
dependent header files.  This however breaks parallel installation of 32/64
bit packages (when it it is desired).

Usual packaging solution is to replace the multilib-unclean file with
multilib-clean stub, while the original file is moved to unique
architecture-specific location.

This, however, used to be done on per-package basis.  Having this done on
central place like 'redhat-rpm-config' could save nontrivial amount of
packagers' work.
Also adding support for new architecture would require just rebuild of
dependent packages.

The proposed solution is to use this in %install phase:

  %ml_fix_c_header --file %{_includedir}/borken-header.h

Please consider attached patch.  As this is new %macro/script, there is no
risk to break existing package.

Comment 1 Pavel Raiskup 2015-11-27 12:45:51 UTC
Later (if this is accepted) this bug could be reused as a tracker for package
updates.  At least 'postgresql' (already uses this actually), mariadb,
unixODBC could start using this directly from redhat-rpm-config.

Comment 2 Pavel Raiskup 2016-05-10 08:40:02 UTC
Any chance this is going to be reviewed and then accepted/rejected?

Comment 4 Pavel Raiskup 2016-06-09 08:42:02 UTC
I was asked to have separate package for this, so we can depend on it
in redhat-rpm-config.

Comment 5 Vít Ondruch 2020-03-17 11:59:25 UTC
PR could probably help to move forward with this.

Comment 6 Pavel Raiskup 2020-03-17 14:21:02 UTC
Do you mean adding 'Requires: multilib-rpm-config' to redhat-rpm-config?