Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 246860

Summary: app-backup/kdar: fails with forced --as-needed
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: MATSUU Takuto (RETIRED) <matsuu>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: Build log
Patch for to work with --as-needed

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-15 13:48:56 UTC
I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out for details).

Check the attached build log.

Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-15 13:49:12 UTC
Created attachment 171808 [details]
Build log
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-11-15 13:49:25 UTC
Created attachment 171809 [details]
Comment 3 Kevin Pyle 2009-02-14 02:20:12 UTC
Created attachment 181944 [details, diff]
Patch for to work with --as-needed

I am not a KDE user, so I cannot compile test this patch, but it should lead the way.  I initially patched, but it seems that may not be regenerated from, so you may need to rebase this patch onto  It applies correctly, albeit with some line offsets.

The original problem, which this patch corrects, is that LDFLAGS was used to pass the libraries that the script test programs were meant to detect.  This patch moves the library to LIBS, which configure scripts specify later in the link line.  This also simplifies logic, since a successful link can simply leave the -ldar in $LIBS, and an unsuccessful link is fatal.
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2009-02-22 17:00:11 UTC
Thanks Kevin, applied to kdar-2.1.0-r1.