From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: bug#22138: Search paths of dependencies are not honored Date: Mon, 05 Aug 2019 18:31:15 +0200 Message-ID: References: <87bn9yk5mf.fsf@gnu.org> <20190801221206.17965136@sybil.lepiller.eu> <87ftmfa8cp.fsf@netris.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:470:142:3::10]:36406) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hufu0-0003xW-0Z for bug-guix@gnu.org; Mon, 05 Aug 2019 12:32:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hufty-0002sq-T2 for bug-guix@gnu.org; Mon, 05 Aug 2019 12:32:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55177) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hufty-0002sm-FE for bug-guix@gnu.org; Mon, 05 Aug 2019 12:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hufty-0008Hl-8F for bug-guix@gnu.org; Mon, 05 Aug 2019 12:32:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87ftmfa8cp.fsf@netris.org> 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" To: Mark H Weaver Cc: 22138@debbugs.gnu.org Le 5 ao=C3=BBt 2019 18:23:55 GMT+02:00, Mark H Weaver a = =C3=A9crit : >Hi Julien, > >Julien Lepiller writes: > >> Hi, I've been looking at our current code and would like to propose >the >> attached patch for that issue=2E >> >> From cfd2c229087166ab4cc0a9e2bdb72c8b393bcdd5 Mon Sep 17 00:00:00 >2001 >> From: Julien Lepiller >> Date: Thu, 1 Aug 2019 22:09:38 +0200 >> Subject: [PATCH] guix: Recursively honor search paths of >dependencies=2E >> >> * guix/packages=2Escm (all-transitive-inputs) >> (package-all-transitive-inputs) >> (package-all-transitive-native-search-paths): New procedures=2E >> * guix/profiles=2Escm (package->manifest-entry): Use >> package-all-transitive-native-search-paths to generate manifest >search >> paths=2E > >As I recall this kind of solution has been proposed in the past and >rejected=2E It's a reasonable suggestion, but I personally think that it >goes too far, because it would include a great many packages whose code >is nowhere to be found in the resulting profile=2E For example, it would >include documentation generators used to build man pages, and the >compilers that were used to build those documentation generators, etc, >all the way back to the early bootstrap binaries=2E > >Having said this, I agree that there is a longstanding problem in Guix >with search-paths not including enough packages in its calculation=2E >We've known about this problem for a long time, but as far as I know we >have not yet found a satisfactory solution=2E > >Our current hacky workaround for problems like this has been to set >certain environment variables unconditionally in /etc/profile=2E For >example, you'll see that MANPATH, INFOPATH, XDG_DATA_DIRS, >XDG_CONFIG_DIRS, XCURSOR_PATH, DICPATH, and GST_PLUGIN_PATH are all set >there=2E See 'operating-system-etc-service' in (gnu system) for the >relevant code=2E > >At the very least, I think we should wait for input from Ludovic before >applying anything along these lines=2E > >Anyway, thanks for looking into it and making the proposal=2E > > Best, > Mark Tgis patch doesn't add any dependency to any package, since it doesn't rec= ord any more stone paths than without=2E It indeed defines more variables t= han needed, but isn't that ok?