From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#22138: Search paths of dependencies are not honored Date: Thu, 10 Dec 2015 10:36:08 +0100 Message-ID: <87bn9yk5mf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6xer-0003O9-Ki for bug-guix@gnu.org; Thu, 10 Dec 2015 04:37:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6xeo-0002pS-VD for bug-guix@gnu.org; Thu, 10 Dec 2015 04:37:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:55582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6xeo-0002pK-SC for bug-guix@gnu.org; Thu, 10 Dec 2015 04:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a6xeo-0004Xa-LC for bug-guix@gnu.org; Thu, 10 Dec 2015 04:37:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6xe2-0003Jd-Bd for bug-guix@gnu.org; Thu, 10 Dec 2015 04:36:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6xdy-0002cb-ED for bug-guix@gnu.org; Thu, 10 Dec 2015 04:36:14 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6xdy-0002cW-B7 for bug-guix@gnu.org; Thu, 10 Dec 2015 04:36:10 -0500 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:36476 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a6xdx-0002pi-Pv for bug-guix@gnu.org; Thu, 10 Dec 2015 04:36:10 -0500 List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 22138@debbugs.gnu.org As of 0.9.0+, only the search paths of packages explicitly in the profile are shown by =E2=80=98--search-paths=E2=80=99 and similar. This is= a problem for libraries that have associated environment variables. For instance, if one installs an application linked against OpenSSL, they will not know about =E2=80=98SSL_CERT_DIR=E2=80=99 and =E2=80=98SSL_CE= RT_FILE=E2=80=99. Similarly for GStreamer and =E2=80=98GST_PLUGIN_PATH=E2=80=99, libc and =E2=80=98GUIX= _LOCPATH=E2=80=99, and so on. Fixing it seems tricky. We could pass the profile builder the closure=E2= =80=99s graph (via #:references-graph) and the the set of search paths of all the direct and indirect dependencies of the profile. The builder would then need to somehow determine the subset of these search paths that is actually useful, and use it to build the search path spec in the manifest as well as etc/profile. Ludo=E2=80=99.