Bug from profile path name?

  • Open
  • quality assurance status badge
Details
2 participants
  • Greg Hogan
  • zimoun
Owner
unassigned
Submitted by
Greg Hogan
Severity
normal
G
G
Greg Hogan wrote on 3 Nov 2022 19:56
(address . bug-guix@gnu.org)
CA+3U0Z=AS=r=RoAX=O-_xYXVrVz-Zu1UPQRmoKPh43bNS5Vh+g@mail.gmail.com
With an '@' character in the profile path I see the following error.

(the reason for using the full package@version in the profile path is
to preserve successfully built packages when garbage collecting during
testing of updates to dependent packages)

Greg

$ guix install -p ~/profile/llvm@14 llvm@14
The following package will be installed:
llvm 14.0.6

The following derivation will be built:
/gnu/store/bvybwzjn6gzvkcyg77lxc1cjk13h41vk-profile.drv

building CA certificate bundle...
listing Emacs sub-directories...
building fonts directory...
The following builds are still in progress:
/gnu/store/f9q36dx4xlaw4d9m9cfl57v7623dng4d-fonts-dir.drv
/gnu/store/7lr81m696k1xbdkpchxjnlxzsr76svh3-emacs-subdirs.drv

building directory of Info manuals...
The following builds are still in progress:
/gnu/store/mhd4jwqyjcsq6nfccnya8jirfaf8pm6f-info-dir.drv
/gnu/store/f9q36dx4xlaw4d9m9cfl57v7623dng4d-fonts-dir.drv

The following build is still in progress:
/gnu/store/mhd4jwqyjcsq6nfccnya8jirfaf8pm6f-info-dir.drv

building profile with 1 package...
hint: Backtrace:
18 (primitive-load "/home/ec2-user/.config/guix/current/bi…")
In guix/ui.scm:
2263:7 17 (run-guix . _)
2226:10 16 (run-guix-command _ . _)
In ice-9/boot-9.scm:
1752:10 15 (with-exception-handler _ _ #:unwind? _ # _)
In guix/status.scm:
835:3 14 (_)
815:4 13 (call-with-status-report _ _)
In guix/store.scm:
1300:8 12 (call-with-build-handler _ _)
1300:8 11 (call-with-build-handler #<procedure 7f9809626990 at g…> …)
In guix/build/syscalls.scm:
1433:3 10 (_)
1400:4 9 (call-with-file-lock/no-wait _ _ _)
In guix/scripts/package.scm:
325:7 8 (build-and-use-profile _ "/home/ec2-user/profile/llvm@…" …)
In guix/ui.scm:
312:5 7 (display-hint _ _)
1448:24 6 (texi->plain-text _)
In texinfo.scm:
1132:22 5 (parse _)
980:31 4 (loop #<input: string 7f97f8aa84d0> (*fragment*) _ _ _)
911:31 3 (loop #<input: string 7f97f8aa84d0> #f #<procedure ide…> …)
754:31 2 (_ #<input: string 7f97f8aa84d0> _ (example # # lisp …) …)
92:2 1 (read-command-token #<input: string 7f97f8aa84d0>)
In ice-9/boot-9.scm:
1685:16 0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Throw to key `parser-error' with args `(#<input: string 7f97f8aa84d0>
"Nonalphabetic @-command char: '" #\1 "'")'.
Z
Z
zimoun wrote on 4 Nov 2022 10:08
86h6zf5bom.fsf@gmail.com
Hi,

On Thu, 03 Nov 2022 at 14:56, Greg Hogan <code@greghogan.com> wrote:

[...]

Toggle quote (2 lines)
> $ guix install -p ~/profile/llvm@14 llvm@14

[...]

Toggle quote (16 lines)
> In guix/ui.scm:
> 312:5 7 (display-hint _ _)
> 1448:24 6 (texi->plain-text _)
> In texinfo.scm:
> 1132:22 5 (parse _)
> 980:31 4 (loop #<input: string 7f97f8aa84d0> (*fragment*) _ _ _)
> 911:31 3 (loop #<input: string 7f97f8aa84d0> #f #<procedure ide…> …)
> 754:31 2 (_ #<input: string 7f97f8aa84d0> _ (example # # lisp …) …)
> 92:2 1 (read-command-token #<input: string 7f97f8aa84d0>)
> In ice-9/boot-9.scm:
> 1685:16 0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> Throw to key `parser-error' with args `(#<input: string 7f97f8aa84d0>
> "Nonalphabetic @-command char: '" #\1 "'")'.

Well, the issue is ’@14’ is interpreted as TeXinfo. Maybe the
replacement of ’texi->plain-text’ inside ’display-hint’ by
’texi->plain-text*’ and teach the latter for this “corner case“.

However, what is the “corner case”? :-) Any ’@thing’ for thing not a
keyword of TeXinfo? Therefore, ’llvm@14’ would work but not
’llvm@code’. Why not? :-)


Cheers,
simon
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 59002@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 59002
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch