From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: [PATCH] gnu: kde: Add kdelibs. Date: Wed, 5 Nov 2014 20:50:30 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm6bC-0002SV-DD for guix-devel@gnu.org; Wed, 05 Nov 2014 14:50:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xm6bA-0001a5-SP for guix-devel@gnu.org; Wed, 05 Nov 2014 14:50:34 -0500 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: andreas@enge.fr, Guix-devel , =?UTF-8?Q?Ludovic_Court=C3=A8s?= Andreas Enge writes: > As usual, the libraries and binaries are not explicitly linked with the > libraries they depend on. So in a context where the input libraries are not > in /usr/lib, executing binaries fails. > > In my private branch I also tried to compile a few KDE packages. The same > problem everywhere: Unless I set an LD_LIBRARY_PATH, they do not find the > necessary KDE and Qt libraries. I think we need a more general solution, > as also witnessed by this: I'm working on dconf and I had the same problem: the produced binaries like dconf-edit, but even shared libraries produced by the build would not find their own companions. Initially I did set LD_LIBRARY_PATH to resolve the problem. However, after setting #:configure-flags ;; Set the correct RUNPATH in binaries. (list (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")) at build time, everything was working fine without having to set LD_LIBRARY_PATH. That is not in dconf and not in packages build against dconf's libraries. Regards, Fede