From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#18033: Add support for 'search-path-specifications' referring to files Date: Wed, 16 Jul 2014 16:02:20 +0200 Message-ID: <87k37dh05v.fsf_-_@gnu.org> References: <1405449096-29230-1-git-send-email-jmd@gnu.org> <1405449096-29230-5-git-send-email-jmd@gnu.org> <87r41ml4nu.fsf@gnu.org> <20140715214338.GB16482@jocasta.intra> <87mwc9irnj.fsf@gnu.org> <20140716100854.GB21262@jocasta.intra> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7Pna-0005B2-Fb for bug-guix@gnu.org; Wed, 16 Jul 2014 10:03:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7PnS-0006m4-1c for bug-guix@gnu.org; Wed, 16 Jul 2014 10:03:10 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:33167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7PnR-0006lw-Vb for bug-guix@gnu.org; Wed, 16 Jul 2014 10:03:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X7PnR-0000LB-PA for bug-guix@gnu.org; Wed, 16 Jul 2014 10:03:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7Pmz-000571-M5 for bug-guix@gnu.org; Wed, 16 Jul 2014 10:02:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7Pms-0006TW-RX for bug-guix@gnu.org; Wed, 16 Jul 2014 10:02:33 -0400 In-Reply-To: <20140716100854.GB21262@jocasta.intra> (John Darrington's message of "Wed, 16 Jul 2014 12:08:54 +0200") 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: 18033@debbugs.gnu.org Cc: John Darrington See use case below. John Darrington skribis: > On Wed, Jul 16, 2014 at 11:23:12AM +0200, Ludovic Court??s wrote: > John Darrington skribis: > > > On Tue, Jul 15, 2014 at 10:59:17PM +0200, Ludovic Court??s wrote: > > [...] > > > The problem is that ???search-path-specification??? is meant for $PATH-like > > variables that list directories, not files. > > > > That occurred to me too. But what problems does it actually cause? > > That we can???t use it for $XML_CATALOG_FILES. > > > So I see two solutions: > > > > 1. Patch libxml2 so that it honors a new variable, say > > $XML_CATALOG_DIRECTORIES, which would allow us to use > > ???search-path-specification???. > > > > 2. Augment support for search paths to allow file-based search paths. > > > > (2) may be best in the long run, but it has ramifications in different > > places. > > > > > > (1) seems like a good idea only if upstream can be persuaded to adopt it. > > Which is unlikely, given that it???s redundant with $XML_CATALOG_FILES. > > > What are the ramifications of (2) ? > > There are changes in the build tools, for instance ???search-path-as-list??? > (used by ???set-path-environment-variable???, used in gnu-build-system.scm) > expects directories, not files. And all this calls things > ???directories???. > > This is a change we could schedule for the next core-updates. > > This sounds like it is the most sensible solution. > > J'