Bug 1830473

Summary: libprelude-config --libs lists unneeded libs
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: libpreludeAssignee: Thomas Andrejak <thomas.andrejak>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 33CC: mail, thomas.andrejak, tscherf, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ibprelude-5.2.0-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-26 02:48:24 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:

Description Orion Poplawski 2020-05-02 04:33:43 UTC
Description of problem:

$ libprelude-config --libs
-L/usr/lib64 -lprelude -lgnutls -lltdl -ldl -pthread

None of the other libraries other than -lprelude are required to for users of libprelude to link to and should be removed.  Otherwise users are forced to BR gnutls-devel as well.  The -L/usr/lib64 is unneeded as well.

Version-Release number of selected component (if applicable):
libprelude-5.1.1-4.fc32.x86_64

Comment 1 Orion Poplawski 2020-05-02 04:37:49 UTC
This is also a problem in EPEL8 where I first ran into it and it's affecting clamav builds.

Comment 2 Ben Cotton 2020-08-11 15:30:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 3 Orion Poplawski 2020-09-18 14:27:43 UTC
Still an issue.  I'm hoping to push a fix for this soon.

Comment 4 Thomas Andrejak 2020-09-18 14:35:09 UTC
Hello

Can you explain why gnutls ltdl dl and pthread are not needed ?

Regards

Thomas

Comment 5 Orion Poplawski 2020-09-18 14:50:16 UTC
Because with dynamic linking libprelude is already linked to them.  They are only needed for static linking.

Comment 6 Orion Poplawski 2020-09-19 02:01:52 UTC
I've filed https://src.fedoraproject.org/rpms/libprelude/pull-request/1 to fix this.

Is 5.2.0 going to be pushed to stable releases?

Comment 7 Thomas Andrejak 2020-09-19 07:19:07 UTC
Hello

Yes, 5.2 will go to stable.

I have to check if there is no side effet to remove this

Comment 8 Orion Poplawski 2021-01-26 02:42:03 UTC
Ping?

Comment 9 Orion Poplawski 2021-01-26 02:48:24 UTC
Looks like this was applied.  Thanks.

Comment 10 Thomas Andrejak 2021-01-26 08:25:58 UTC
Hello

Yes I forgot to tell you

Regards