NetBSD Problem Report #51324

From www@NetBSD.org  Thu Jul  7 21:49:39 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BBD487A471
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  7 Jul 2016 21:49:39 +0000 (UTC)
Message-Id: <20160707214938.D14437A473@mollari.NetBSD.org>
Date: Thu,  7 Jul 2016 21:49:38 +0000 (UTC)
From: adrien_fernandes2@hotmail.com
Reply-To: adrien_fernandes2@hotmail.com
To: gnats-bugs@NetBSD.org
Subject: RUNPATH is used instead of RPATH for Wine on NetBSD-current
X-Send-Pr-Version: www-1.0

>Number:         51324
>Category:       pkg
>Synopsis:       RUNPATH is used instead of RPATH for Wine on NetBSD-current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    maya
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 07 21:50:01 +0000 2016
>Closed-Date:    Mon Oct 31 23:14:30 +0000 2016
>Last-Modified:  Mon Oct 31 23:14:30 +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

>Release-Note:

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/51324: RUNPATH is used instead of RPATH for Wine on
 NetBSD-current
Date: Fri, 8 Jul 2016 08:35:21 +0200

 On Thu, Jul 07, 2016 at 09:50:01PM +0000, adrien_fernandes2@hotmail.com wrote:
 > On NetBSD-current, when I build wine-staging, a package I am making and testing before to push it, not yet on wip,...

 How can we help you debug a problem in a package that is not even
 committed yet?

 Please add it to wip.
  Thomas

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/51324: RUNPATH is used instead of RPATH for Wine on
 NetBSD-current
Date: Fri, 8 Jul 2016 13:27:57 +0200

 On Thu, Jul 07, 2016 at 09:50:01PM +0000, adrien_fernandes2@hotmail.com wrote:
 > 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.

 Lots of crap started to hard-code --enable-new-dtags, because apparently
 forcing broken GNU crap down everyones throat is an immprovement. Find
 and remove the places in wine and/or *-config.

 Joerg

Responsible-Changed-From-To: pkg-manager->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Fri, 02 Sep 2016 16:48:14 +0000
Responsible-Changed-Why:
Take


State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Fri, 02 Sep 2016 16:48:14 +0000
State-Changed-Why:
I fixed it in wip/wine-devel, by disabling the configure check.


State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Mon, 31 Oct 2016 23:14:30 +0000
State-Changed-Why:
feedback not needed .it does work.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.