From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: How-to solve runpath-errors when splitting packages? Date: Tue, 5 Mar 2019 22:05:47 +0100 Message-ID: <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]:33259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1HG5-0001dx-AJ for guix-devel@gnu.org; Tue, 05 Mar 2019 16:05:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1HG4-0003vD-IE for guix-devel@gnu.org; Tue, 05 Mar 2019 16:05:53 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:56544) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1HG4-0003sL-AQ for guix-devel@gnu.org; Tue, 05 Mar 2019 16:05:52 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 44DTvJ6Tsyz1qxQN for ; Tue, 5 Mar 2019 22:05:48 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 44DTvJ6Pf6z1qrhB for ; Tue, 5 Mar 2019 22:05:48 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id WldZ6tPgPwBp for ; Tue, 5 Mar 2019 22:05:48 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-83-171-164-163.dynamic.mnet-online.de [83.171.164.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Tue, 5 Mar 2019 22:05:48 +0100 (CET) Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id E2F6E600A0 for ; Tue, 5 Mar 2019 22:09:36 +0100 (CET) Content-Language: en-US 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: Guix-devel Hi, I'm currently packaging zbar (a bar-code scanner suite). zbar includes "generic" binaries as well as "qt" anf "gtk" ones (zbarcam, zbarcam-qt, zbarcam-gtk). I want to avoid having qt or gtk or even both as a dependency of the `zbar` packages, as these would pull in *huge* dependencies. 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? I already tried: 0) Nothing special: phase "validate-runpath" fails. 1) Setting "#:validate-runpath? #f": build passes, but the program does not find the lib. 2) Passing the equivalent of "LDFLAGS=3D-Wl,-rpath=3D${out_gtk}/lib -Wl,-rpath=3D${out_qt}/lib" to configure. This leads to some "recursive dependency error". --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |