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

Bug 128678

Summary: net-nds/adtool-1.3 patch to work with --as-needed
Product: Gentoo Linux Reporter: Mike Auty (RETIRED) <ikelos>
Component: Current packagesAssignee: Christian Andreetta (RETIRED) <satya>
Status: RESOLVED FIXED    
Severity: minor CC: flameeyes
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: adtool-1.3-as-needed.patch
adtool-1.3-asneeded.patch

Description Mike Auty (RETIRED) gentoo-dev 2006-04-03 11:49:21 UTC
This patch adds -lldap after the libactive_directory.a library, so that it's dependencies are filled when using --as-needed.  I'm not sure if this is the best way to do this, so might be worth asking flameeyes to check it over to see if it looks ok.  Otherwise should be fine, don't forget the ebuild need eautomake to be run after applying the patch.

Patch to follow.
Comment 1 Mike Auty (RETIRED) gentoo-dev 2006-04-03 11:49:53 UTC
Created attachment 83827 [details, diff]
adtool-1.3-as-needed.patch
Comment 2 Christian Andreetta (RETIRED) gentoo-dev 2006-04-04 04:05:50 UTC
flameeyes, what do you think about this patch?
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-04 04:41:22 UTC
Created attachment 83874 [details, diff]
adtool-1.3-asneeded.patch

Hmm I think adtool is one of the strangests autotool user I ever seen...

The problem in this case is linking ordering, as the libraries are passed in LDFLAGS instead of LDADD... also, it's usually quicker to pass them per-target instead of global, so I've done the attached patch.

It will probably require a full eautoreconf tho, as the automake seems old to me.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-04 04:41:59 UTC
Christian, don't tell me you disabled mailing for attachments.. :P
Comment 5 Christian Andreetta (RETIRED) gentoo-dev 2006-04-04 04:54:30 UTC
(In reply to comment #4)
> Christian, don't tell me you disabled mailing for attachments.. :P

Oops! Fixed, thanks.
Anyway, I could swear it was my cat... :-D
Comment 6 Christian Andreetta (RETIRED) gentoo-dev 2006-04-04 07:33:53 UTC
in portage: thanks to both of you