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

Bug 132563

Summary: dev-java/commons-daemon: fix -Wl,--as-needed compilation
Product: Gentoo Linux Reporter: TGL <tom.gl>
Component: [OLD] DevelopmentAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://issues.apache.org/bugzilla/show_bug.cgi?id=39569
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: files/commons-daemon-1.0.1-as-needed.patch
commons-daemon-1.0.1-ebuild.patch

Description TGL 2006-05-07 06:57:41 UTC
commons-daemon-1.0.1 doesn't compile with LDFLAGS="-Wl,--as-needed", because it puts "-lfoo" directives in LDFLAGS instead of a separate variables. Hence the order of the arguments given to the linker is wrong, libs are skipped, and libservice has unresolved symbols.

The attached patch fixes that.
Comment 1 TGL 2006-05-07 06:58:22 UTC
Created attachment 86358 [details, diff]
files/commons-daemon-1.0.1-as-needed.patch
Comment 2 TGL 2006-05-07 06:58:41 UTC
Created attachment 86359 [details, diff]
commons-daemon-1.0.1-ebuild.patch
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2006-05-11 12:14:05 UTC
Have you also submitted these patches upstream? They should also be included there so that we are not stuck with maintaining them.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2006-05-12 06:02:05 UTC
Fix committed to Portage and reported upstream:
http://issues.apache.org/bugzilla/show_bug.cgi?id=39569