NetBSD Problem Report #27702

From www@www.netbsd.org  Sat Oct 30 15:02:19 2004
Return-Path: <www@www.netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 67A0625237D; Sat, 30 Oct 2004 15:02:19 +0000 (UTC)
Message-Id: <20041030150219.67A0625237D@narn.netbsd.org>
Date: Sat, 30 Oct 2004 15:02:19 +0000 (UTC)
From: georg.schwarz@freenet.de
Reply-To: georg.schwarz@freenet.de
To: gnats-bugs@gnats.NetBSD.org
Subject: buildlink can mangle path for dynamic libraries (IRIX 5)
X-Send-Pr-Version: www-1.0

>Number:         27702
>Category:       pkg
>Synopsis:       buildlink can mangle path for dynamic libraries (IRIX 5)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jlam
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 30 15:03:00 +0000 2004
>Closed-Date:    Wed Jun 08 05:58:16 +0000 2005
>Last-Modified:  Wed Jun 08 05:58:16 +0000 2005
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
IRIX 5 uses, among others, -Wl,-rpath -Wl,LIBDIR to add a non-standard path for dynamic libraries to executables. LIBDIR can be a list of directories separated by :'s. 
Since mk/wrapper/arg-source does not take this into account, such paths are mangeled by buildlink.
>How-To-Repeat:

>Fix:
--- arg-source.orig     2004-10-24 13:32:41.000000000 +0100
+++ arg-source  2004-10-30 07:54:19.000000000 +0100
@@ -60,16 +60,17 @@
                ;;
        ##############################################################
        # Split "-Wl,-R/dir1:/dir2" into "-Wl,-R/dir1 -Wl,-R/dir2".
-       # Same for -Wl,-rpath and -Wl,-rpath-link.
+       # Same for -Wl,-rpath, -Wl,-rpath-link, -Wl,--rpath, and
+       # -Wl,.
        ##############################################################
-       -R*:*|-Wl,-R*:*|\
-       -Wl,-rpath,*:*|-Wl,-rpath-link,*:*|-Wl,--rpath,*:*)     
+       -R*:*| -Wl,*:*)     
                case $arg in  
                -R*)                    R="-R" ;;
                -Wl,-R*)                R="-Wl,-R" ;;
                -Wl,-rpath,*)           R="-Wl,-rpath," ;;      
                -Wl,-rpath-link,*)      R="-Wl,-rpath-link," ;; 
                -Wl,--rpath,*)          R="-Wl,--rpath," ;;
+               -Wl,*)                  R="-Wl," ;;
                esac
                list="${arg#$R}"
                save_IFS="${IFS}"; IFS=":"

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->jlam
Responsible-Changed-By: cube@narn.netbsd.org
Responsible-Changed-When: Tue, 09 Nov 2004 16:37:32 +0000
Responsible-Changed-Why:
jlam will handle it.


From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/27702 CVS commit: pkgsrc/mk/wrapper
Date: Wed,  8 Jun 2005 05:54:17 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jlam
 Date:		Wed Jun  8 05:54:17 UTC 2005

 Modified Files:
 	pkgsrc/mk/wrapper: arg-source

 Log Message:
 Properly turn:

 	-Wl,-rpath -Wl,/dir1:/dir2:/dir3
 into:
 	-Wl,-rpath,/dir1 -Wl,-rpath,/dir2 -Wl,-rpath,/dir3

 Do the same for -Wl,-R and -Wl,-rpath-link.  This makes the wrapper
 scripts pass the test in regress/buildlink-transform/rpath-merge.mk
 and fixes PR pkg/27702.


 To generate a diff of this commit:
 cvs rdiff -r1.5 -r1.6 pkgsrc/mk/wrapper/arg-source

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: jlam@netbsd.org
State-Changed-When: Wed, 08 Jun 2005 05:58:16 +0000
State-Changed-Why:
Fixed by revision 1.6 of pkgsrc/mk/wrappers/arg-source and is now
checked by regress/buildlink-transform/tests/rpath-merge.mk.


>Unformatted:
 >Quarter:
 >Keywords:
 >Date-Required:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.