Bug 738091

Summary: libgmpxx has unused direct shlib dependency on libm
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: gmpAssignee: Peter Schiffer <pschiffe>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: pschiffe
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-09 18:23:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Patch to fix unused direct dependency on libm none

Description Jerry James 2011-09-13 21:13:36 UTC
Created attachment 523011 [details]
Patch to fix unused direct dependency on libm

Description of problem:
$ rpmlint gmp
gmp.x86_64: W: spelling-error %description -l en_US fullwords -> full words, full-words, forewords
gmp.x86_64: W: unused-direct-shlib-dependency /usr/lib64/libgmpxx.so.4.1.2 /lib64/libm.so.6

I suspect that this unused direct shared library dependency is why some of my packages get the same warning, because they link against libgmpxx.  The cause is good old libtool, which thinks that EVERYTHING needs to be linked with -lm.  I am attaching one way of solving the problem.  Pardon my conversion of the perl invocation to sed; I understand sed quite well, and perl hardly at all.

Version-Release number of selected component (if applicable):
gmp-4.3.2-4.fc17.x86_64

How reproducible:
Always

Steps to Reproduce:
1. rpmlint gmp
2.
3.
  
Actual results:
Rpmlint reports an unused direct shared library dependency on libm.

Expected results:
No unused direct shared library dependencies.

Additional info:

Comment 1 Peter Schiffer 2011-11-09 18:23:36 UTC
fixed in:
gmp-5.0.2-3.fc17
https://koji.fedoraproject.org/koji/buildinfo?buildID=268643