GNU bug report logs - #18033
Add support for 'search-path-specifications' referring to files

Previous Next

Package: guix;

Reported by: ludo <at> gnu.org (Ludovic Courtès)

Date: Wed, 16 Jul 2014 14:03:01 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18033 in the body.
You can then email your comments to 18033 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#18033; Package guix. (Wed, 16 Jul 2014 14:03:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to ludo <at> gnu.org (Ludovic Courtès):
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 16 Jul 2014 14:03:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: bug-guix <at> gnu.org
Cc: John Darrington <jmd <at> gnu.org>
Subject: Add support for 'search-path-specifications' referring to files
Date: Wed, 16 Jul 2014 16:02:20 +0200
See use case below.

John Darrington <john <at> darrington.wattle.id.au> skribis:

> On Wed, Jul 16, 2014 at 11:23:12AM +0200, Ludovic Court??s wrote:
>      John Darrington <john <at> darrington.wattle.id.au> 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'




Information forwarded to bug-guix <at> gnu.org:
bug#18033; Package guix. (Sat, 27 Dec 2014 11:27:02 GMT) Full text and rfc822 format available.

Message #8 received at 18033 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: 18033 <at> debbugs.gnu.org
Cc: John Darrington <jmd <at> gnu.org>
Subject: Re: bug#18033: Add support for 'search-path-specifications' referring
 to files
Date: Sat, 27 Dec 2014 12:26:41 +0100
Commit 6aa47e3 implements the build-side part for that.

Ludo’.




Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Sat, 27 Dec 2014 22:58:02 GMT) Full text and rfc822 format available.

Notification sent to ludo <at> gnu.org (Ludovic Courtès):
bug acknowledged by developer. (Sat, 27 Dec 2014 22:58:02 GMT) Full text and rfc822 format available.

Message #13 received at 18033-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: 18033-done <at> debbugs.gnu.org
Cc: John Darrington <jmd <at> gnu.org>
Subject: Re: bug#18033: Add support for 'search-path-specifications' referring
 to files
Date: Sat, 27 Dec 2014 23:57:26 +0100
Commit af07095 extends ‘search-path-specification’ with a ‘file-type’
field, which can be 'regular.

Then, commit 7b21fe5 adds a ‘file-pattern’ field, to look for files
matching a pattern recursively.

Lastly, commit 2a8d440 uses these features for libxml2 and
$XML_CATALOG_FILES.

Comments welcome!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#18033; Package guix. (Fri, 02 Jan 2015 23:31:02 GMT) Full text and rfc822 format available.

Message #16 received at 18033 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: 18033 <at> debbugs.gnu.org
Cc: ludo <at> gnu.org
Subject: Re: bug#18033: Add support for 'search-path-specifications' referring
 to files
Date: Fri, 02 Jan 2015 18:30:45 -0500
Hi Ludovic,

ludo <at> gnu.org (Ludovic Courtès) writes:

> Commit af07095 extends ‘search-path-specification’ with a ‘file-type’
> field, which can be 'regular.
>
> Then, commit 7b21fe5 adds a ‘file-pattern’ field, to look for files
> matching a pattern recursively.
>
> Lastly, commit 2a8d440 uses these features for libxml2 and
> $XML_CATALOG_FILES.
>
> Comments welcome!

Something seems to have gone wrong here.  Trying to build 'emacs' on
current 'core-updates' (bf0baaf) on i686, I get this:

--8<---------------cut here---------------start------------->8---
mhw:~/guix-core-updates$ git describe
v0.8-499-gbf0baaf
mhw:~/guix-core-updates$ ./pre-inst-env guile
GNU Guile 2.0.11
Copyright (C) 1995-2014 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,use (guix scripts build)
scheme@(guile-user)> (guix-build "emacs")
ERROR: In procedure concatenate:
ERROR: In procedure append: Wrong type argument in position 23 (expecting empty list): #<<search-path-specification> variable: "XML_CATALOG_FILES" files: ("xml") separator: " " file-type: regular file-pattern: "^catalog\\.xml$">

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
In ice-9/boot-9.scm:
   157:17 33 (catch srfi-34 #<procedure 92450a0 at guix/ui.scm:218:2 ()> #<procedure 927b2c0 at guix/ui.scm:218:2 (key c)> #)
   157:17 32 (catch system-error #<procedure 92450b0 at guix/scripts/build.scm:416:2 ()> #<procedure 927b300 at guix/ui.s…> …)
In guix/scripts/build.scm:
    420:6 31 (#<procedure 92450b0 at guix/scripts/build.scm:416:2 ()>)
    318:6 30 (options->derivations #<build-daemon 256.14 9211ae0> ((argument . "emacs") (system . "i686-linux") (# . #t) …))
In srfi/srfi-1.scm:
   664:12 29 (filter-map #<procedure 9e01a60 at guix/scripts/build.scm:318:18 (expr)> ((argument . #<package emacs-24.…>) …))
In guix/packages.scm:
   620:14 28 (cache #<package emacs-24.4 gnu/packages/emacs.scm:57 98f2060> ("i686-linux" . #t) #<procedure thunk ()>)
   869:10 27 (thunk)
    801:6 26 (bag->derivation #<build-daemon 256.14 9211ae0> #<<bag> name: "emacs-24.4" system: "i686-linux" target: #f b…> …)
In srfi/srfi-1.scm:
   578:27 25 (map #<procedure 9a5c498 at guix/packages.scm:803:30 (t-8656)> (("glib:bin" #<package glib-2.42.1 gnu/pa…>) …))
In guix/packages.scm:
   662:16 24 (expand-input #<build-daemon 256.14 9211ae0> #<package emacs-24.4 gnu/packages/emacs.scm:57 98f2060> ("gl…" …) …)
   620:14 23 (cache #<package glib-2.42.1 gnu/packages/glib.scm:120 99234e0> ("i686-linux" . #f) #<procedure thunk ()>)
   869:10 22 (thunk)
    801:6 21 (bag->derivation #<build-daemon 256.14 9211ae0> #<<bag> name: "glib-2.42.1" system: "i686-linux" target: #f …> …)
In srfi/srfi-1.scm:
   578:27 20 (map #<procedure 9a5c408 at guix/packages.scm:803:30 (t-8656)> (("source" #<origin "mirror://gnome/sourc…>) …))
In guix/packages.scm:
   662:16 19 (expand-input #<build-daemon 256.14 9211ae0> #<package glib-2.42.1 gnu/packages/glib.scm:120 99234e0> ("d…" …) …)
   620:14 18 (cache #<package dbus-1.8.12 gnu/packages/glib.scm:58 9923540> ("i686-linux" . #f) #<procedure thunk ()>)
   869:10 17 (thunk)
    801:6 16 (bag->derivation #<build-daemon 256.14 9211ae0> #<<bag> name: "dbus-1.8.12" system: "i686-linux" target: #f …> …)
In srfi/srfi-1.scm:
   578:27 15 (map #<procedure a00e390 at guix/packages.scm:803:30 (t-8656)> (("source" #<origin "http://dbus.freedesk…>) …))
In guix/packages.scm:
   662:16 14 (expand-input #<build-daemon 256.14 9211ae0> #<package dbus-1.8.12 gnu/packages/glib.scm:58 9923540> ("li…" …) …)
   620:14 13 (cache #<package libx11-1.6.2 gnu/packages/xorg.scm:4501 999ba20> ("i686-linux" . #f) #<procedure thunk ()>)
   869:10 12 (thunk)
    801:6 11 (bag->derivation #<build-daemon 256.14 9211ae0> #<<bag> name: "libx11-1.6.2" system: "i686-linux" target: #f…> …)
In srfi/srfi-1.scm:
   576:29 10 (map #<procedure a1ec390 at guix/packages.scm:803:30 (t-8656)> (("source" #<origin "mirror://xorg/indivi…>) …))
In guix/packages.scm:
   662:16  9 (expand-input #<build-daemon 256.14 9211ae0> #<package libx11-1.6.2 gnu/packages/xorg.scm:4501 999ba20> (# #) …)
   620:14  8 (cache #<package libxcb-1.11 gnu/packages/xorg.scm:4370 999bae0> ("i686-linux" . #f) #<procedure thunk ()>)
   869:10  7 (thunk)
    801:6  6 (bag->derivation #<build-daemon 256.14 9211ae0> #<<bag> name: "libxcb-1.11" system: "i686-linux" target: #f …> …)
In srfi/srfi-1.scm:
   578:27  5 (map #<procedure a388c00 at guix/packages.scm:803:30 (t-8656)> (("source" #<origin "mirror://xorg/indivi…>) …))
In guix/packages.scm:
   662:16  4 (expand-input #<build-daemon 256.14 9211ae0> #<package libxcb-1.11 gnu/packages/xorg.scm:4370 999bae0> ("…" …) …)
   620:14  3 (cache #<package libxslt-1.1.28 gnu/packages/xml.scm:106 9963c00> ("i686-linux" . #f) #<procedure thunk ()>)
   869:10  2 (thunk)
   806:26  1 (bag->derivation #<build-daemon 256.14 9211ae0> #<<bag> name: "libxslt-1.1.28" system: "i686-linux" target: …> …)
In unknown file:
           0 (concatenate (() () () () () () () () () () () () () () () () () (#<<search-path-specification> variabl…> …) …))
scheme@(guile-user) [1]>
--8<---------------cut here---------------end--------------->8---

      Mark




Information forwarded to bug-guix <at> gnu.org:
bug#18033; Package guix. (Sat, 03 Jan 2015 18:49:01 GMT) Full text and rfc822 format available.

Message #19 received at 18033 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Mark H Weaver <mhw <at> netris.org>
Cc: 18033 <at> debbugs.gnu.org
Subject: Re: bug#18033: Add support for 'search-path-specifications' referring
 to files
Date: Sat, 03 Jan 2015 19:48:07 +0100
Mark H Weaver <mhw <at> netris.org> skribis:

> Something seems to have gone wrong here.  Trying to build 'emacs' on
> current 'core-updates' (bf0baaf) on i686, I get this:
>
> mhw:~/guix-core-updates$ git describe
> v0.8-499-gbf0baaf
> mhw:~/guix-core-updates$ ./pre-inst-env guile
> GNU Guile 2.0.11
> Copyright (C) 1995-2014 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> ,use (guix scripts build)
> scheme@(guile-user)> (guix-build "emacs")
> ERROR: In procedure concatenate:
> ERROR: In procedure append: Wrong type argument in position 23 (expecting empty list): #<<search-path-specification> variable: "XML_CATALOG_FILES" files: ("xml") separator: " " file-type: regular file-pattern: "^catalog\\.xml$">

A typo fixed in commit 7452806.  Thanks for the report!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 01 Feb 2015 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.