Subject: pkg/33398: qt3-libs and qt3-tools refer to work directory in packaged files' RPATH
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <chap@NetBSD.org>
List: pkgsrc-bugs
Date: 05/01/2006 02:45:00
>Number:         33398
>Category:       pkg
>Synopsis:       qt3-libs and qt3-tools refer to work directory in packaged files' RPATH
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 01 02:45:00 +0000 2006
>Originator:     Chapman Flack
>Release:        3.99.18
>Organization:
>Environment:
not relevant
>Description:
The shared objects built by qt3-libs and qt3-tools 3.3.5nb6 for NetBSD
3.0/i386 contain references to their pkgsrc work directories in RPATH.

You'd think that might be harmless, but it isn't in some circumstances
(such as when pkgsrc involves a union mount and the RPATH lookup causes
a process to hang in unionlk2) and anyway it should be fixed.

A fresh source build had the same problem.
>How-To-Repeat:
$ ftp \
ftp.NetBSD.org:pub/NetBSD/packages/3.0/i386/All/qt3-libs-3.3.5nb6.tgz
$ pax -rzf qt3-libs-3.3.5nb6.tgz qt3/lib
$ cd qt3/lib
$ readelf -d *.so | grep RPATH

Note that the last RPATH element refers to the build work directory.
>Fix: