Subject: pkg/24352: buildlink3 problem on Darwin
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <danw@NetBSD.org>
List: netbsd-bugs
Date: 02/08/2004 00:01:27
>Number: 24352
>Category: pkg
>Synopsis: buildlink3 problem on Darwin
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 08 00:02:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Dan Winship
>Release: current pkgsrc
>Organization:
>Environment:
Darwin frotz.local 7.2.0 Darwin Kernel Version 7.2.0: Thu Dec 11 16:20:23 PST 2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC Power Macintosh powerpc
>Description:
The transform.sed that gets generated on darwin includes the "no-rpath"
rule, but it doesn't have any effect.
The problem is that no-rpath only strips things that match
"-Wl,-R/.*" (roughly), but by the time that part of the sed script runs,
the argument has been turned into
"-Wl,-R_bUiLdLiNk_SoMeThInG_oR_oThEr", so it doesn't match.
>How-To-Repeat:
You should be able to verify this by setting _USE_RPATH=no on your
favorite platform , and noting that it has no effect. If that doesn't work,
then "try building gimp on Darwin and note that it dies in gtk's
configure script because it can't link the glib test program because
the -Wl,-R that gets patched into glib-config isn't getting stripped out"
>Fix:
Move the _USE_RPATH=no check earlier in the _BLNK_TRANSFORM
section of bsd.buildlink3.mk. (I moved it to the very beginning. I'm not
sure how early it needs to be, but probably not that early.)
Alternatively, change the no-rpath rule in gen-transform.sh to strip
out the -Wl,-R_bUiLdLiNk... form too.
>Release-Note:
>Audit-Trail:
>Unformatted: