‘file-append’ expansion is incorrect when passed a store item

  • Done
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Ludovic Courtès
Owner
unassigned
Submitted by
Ludovic Courtès
Severity
normal
L
L
Ludovic Courtès wrote on 25 May 2020 15:09
(address . bug-guix@gnu.org)
87eer8w494.fsf@inria.fr
Since commit d03001a31a6d460b712825640dba11e3f1a53a14, an object like:

(file-append (local-file …) "/foo/bar")

where (local-file …) is lowered to a store item, say,
/gnu/store/…-example, would wrongfully expand to:

/gnu/store/…-example

IOW, the second argument to ‘file-append’ is ignored.

Ricardo noticed it in ‘doc/build.scm’, in ‘guix-manual-text-domain’.

Ludo’.
L
L
Ludovic Courtès wrote on 26 May 2020 09:56
(address . 41527-done@debbugs.gnu.org)(name . Ricardo Wurmus)(address . rekado@elephly.net)
87imgjqgdp.fsf@gnu.org
Ludovic Courtès <ludovic.courtes@inria.fr> skribis:

Toggle quote (11 lines)
> Since commit d03001a31a6d460b712825640dba11e3f1a53a14, an object like:
>
> (file-append (local-file …) "/foo/bar")
>
> where (local-file …) is lowered to a store item, say,
> /gnu/store/…-example, would wrongfully expand to:
>
> /gnu/store/…-example
>
> IOW, the second argument to ‘file-append’ is ignored.

Fixed in abf43d4511566e97f09049aa8b29453a2ed5ed16.

Ludo’.
Closed
?