Bug 1241737

Summary: [Patch] Use %__libsymlink_path instead of %__libsymlink_exclude_path
Product: [Fedora] Fedora Reporter: Sandro Mani <manisandro>
Component: redhat-rpm-configAssignee: Florian Festi <ffesti>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ffesti, jonathan
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: 2015-07-15 08:53:50 UTC 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:    
Bug Blocks: 1238428    
Attachments:
Description Flags
Patch none

Description Sandro Mani 2015-07-10 00:48:33 UTC
Created attachment 1050485 [details]
Patch

Description of problem:
For the F23 Change "RPM MPI Requires Provides" [1] the chosen strategy is to use a dependency generator hook to extend the requires/provides generated by elfdeps for mpi binaries. Two default dependency triggers need to be prevented from being run for files in %{_prefix}/lib(64)?/(openmpi|mpich), namely

fileattrs/elf.attr
fileattrs/libsymlink.attr


elf.attr can be blocked by adding to mpi.attr:

%__elf_exclude_path ^%{_prefix}/lib(64)?/(openmpi|mpich)/.*$


Currently this cannot be done for libsymlink.attr however because it already defines an exclude_path:

%__libsymlink_exclude_path      ^.*[[:digit:]]$

To allow mpi.attr to block the libsymlink triggers, I'd like to propose replacing the %__libsymlink_exclude_path with

%__libsymlink_path   ^.*\.so$
%__libsymlink_flags magic_and_path

Patch attached.


[1] https://fedoraproject.org/wiki/Changes/RpmMPIReqProv


Version-Release number of selected component (if applicable):
redhat-rpm-config-34-1.fc23.noarch

Comment 1 Florian Festi 2015-07-15 08:53:50 UTC
Added to redhat-rpm-config-35-1.fc24

Comment 2 Sandro Mani 2015-07-15 11:48:48 UTC
Thank you. Could you build this also for F23? The RpmMPIReqProv feature is targeting that release.

Comment 3 Florian Festi 2015-07-15 12:54:05 UTC
Build as redhat-rpm-config-35-1.fc23

Comment 4 Sandro Mani 2015-07-15 14:59:46 UTC
Many thanks