pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/51324: RUNPATH is used instead of RPATH for Wine on NetBSD-current



>Number:         51324
>Category:       pkg
>Synopsis:       RUNPATH is used instead of RPATH for Wine on NetBSD-current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 07 21:50:01 +0000 2016
>Originator:     Adrien Fernandes
>Release:        pkgsrc current 2nd July 2016
>Organization:
>Environment:
NetBSD 7.99.33 (GENERIC.201607060400Z) i386
>Description:
On NetBSD-current, when I build wine-staging, a package I am making and testing before to push it, not yet on wip, it links libraries using RUNPATH instead of RPATH which leads to an incapacity to use /usr/pkg/lib and /usr/X11R7/lib when using Wine.

For example, if I "readelf -a /usr/pkg/bin/ffplay3", I will find this line :
0x0000000f (RPATH)                      Library rpath: [/usr/pkg/lib/ffmpeg3:/usr/pkg/lib:/usr/X11R7/lib]

And, if I do the same with /usr/pkg/bin/wine, I will have this :
0x0000001d (RUNPATH)                    Library runpath: [/usr/pkg/lib:/usr/X11R7/lib]

And if I try to run Wine, here is what I will have :
Shared object "libwine.so.1" not found

libwine.so.1 is in /usr/pkg/lib :
ls -l /usr/pkg/lib/libwine.so*
lrwxr-xr-x  1 root  wheel       12 Jul  7 05:41 /usr/pkg/lib/libwine.so -> libwine.so.1
lrwxr-xr-x  1 root  wheel       14 Jul  7 05:41 /usr/pkg/lib/libwine.so.1 -> libwine.so.1.0
-rwxr-xr-x  1 root  wheel  1811268 Jul  7 05:41 /usr/pkg/lib/libwine.so.1.0

If I "LD_LIBRARY_PATH=/usr/pkg/lib:/usr/X11R7/lib wine", it will work.
>How-To-Repeat:

>Fix:
(temporarily fix)
export LD_LIBRARY_PATH=/usr/pkg/lib:/usr/X11R7/lib


Home | Main Index | Thread Index | Old Index