From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: How-to solve runpath-errors when splitting packages? Date: Thu, 11 Apr 2019 10:48:22 +0200 Message-ID: <87ftqp3p2h.fsf@gnu.org> References: <2d6e4d33-3cdb-cf19-ce48-26aaebec763e@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEVU8-0006Xt-Kj for guix-devel@gnu.org; Thu, 11 Apr 2019 04:55:05 -0400 In-Reply-To: <2d6e4d33-3cdb-cf19-ce48-26aaebec763e@crazy-compilers.com> (Hartmut Goebel's message of "Tue, 5 Mar 2019 22:05:47 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel Cc: Guix-devel Hi Hartmut, Hartmut Goebel skribis: > I already managed to split the output into several. Here is an the > file-list for zbar:qt: > > /gnu/store/=E2=80=A6-zbar-0.22-gtk/bin/zbarcam-gtk > /gnu/store/=E2=80=A6-zbar-0.22-gtk/lib/libzbargtk.so.0.0.2 > /gnu/store/=E2=80=A6-zbar-0.22-gtk/lib/libzbargtk.a > /gnu/store/=E2=80=A6-zbar-0.22-gtk/lib/libzbargtk.la > /gnu/store/=E2=80=A6-zbar-0.22-gtk/include/zbar/zbargtk.h > /gnu/store/=E2=80=A6-zbar-0.22-gtk/lib/pkgconfig/zbar-gtk.pc > > Obviously zbarcam-gtk should use libzbargtk.so from the same output. > > How can I make zbarcam-gtk find the lib? Any ideas? Normally, the build system (QMake I suppose?) should take care of it. In GNU configure parlance, if you do: ./configure --libdir=3D/some/thing/lib then the build system will ensure that executables, once installed, have /some/thing/lib in their RUNPATH. IOW, instead of adding a post-install phase that moves files around, make sure to pass the right libdir option to QMake or whatever. HTH! Ludo=E2=80=99.