Bug 691380

Summary: Wrong entry @LIBSSL_LDFLAGS@ in libupsclient.pc pkgconfig file
Product: [Fedora] Fedora Reporter: Anton Guda <atu>
Component: nutAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: apevec, mhlavink
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-28 13:12:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 465729, 690558    

Description Anton Guda 2011-03-28 12:04:39 UTC
Description of problem:
Macro @LIBSSL_LDFLAGS@ in libupsclient.pc pkgconfig file is not converted to real linker flags (for example, ' -lssl -lcrypto -ldl -lz '). So, build of dependent packages (collectd) will fail.


Version-Release number of selected component (if applicable):
nut-2.6.0-3

How reproducible:
Always


Steps to Reproduce:
1. look at /usr/lib/pkgconfig/libupsclient.pc -- see macros
2. try to build collectd - failed
  
Actual results:
see above

Expected results:
macro is expanded to real linker flags, builds ok.


Additional info:
For now I made a workaround in spec file (install section):

pushd ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig
sed -i.orig -e 's/@LIBSSL_LDFLAGS@/ -lssl -lcrypto -ldl -lz /' libupsclient.pc 
rm *.orig
popd

I know, it's bad hack, as binded to one arch. But works for me.