Bug 691380 - Wrong entry @LIBSSL_LDFLAGS@ in libupsclient.pc pkgconfig file
Summary: Wrong entry @LIBSSL_LDFLAGS@ in libupsclient.pc pkgconfig file
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nut
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 465729 690558
TreeView+ depends on / blocked
 
Reported: 2011-03-28 12:04 UTC by Anton Guda
Modified: 2011-04-19 18:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-28 13:12:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.