GNU bug report logs -
#50625
ghostscript shell scripts refer to unqualified external commands
Previous Next
To reply to this bug, email your comments to 50625 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#50625
; Package
guix
.
(Thu, 16 Sep 2021 15:29:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jack Hill <jackhill <at> jackhill.us>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Thu, 16 Sep 2021 15:29:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Guix,
Many of the commands, e.g. ps2pdf, provided by the ghostscript package are
implemented as shell scripts that do some argument or file name processing
before invoking the main gs binary. These scripts invoke external commands
like basename, awk, dirname, and even gs by dynamically looking them up
PATH. Instead, they should refer to a specific path in the store so that
the behavior of ghostscript doesn't depend on the environment and so that
Guix can see these references.
Best,
Jack
Information forwarded
to
bug-guix <at> gnu.org
:
bug#50625
; Package
guix
.
(Fri, 17 Sep 2021 14:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 50625 <at> debbugs.gnu.org (full text, mbox):
Hi,
On Thu, 16 Sept 2021 at 17:29, Jack Hill <jackhill <at> jackhill.us> wrote:
> Many of the commands, e.g. ps2pdf, provided by the ghostscript package are
> implemented as shell scripts that do some argument or file name processing
> before invoking the main gs binary. These scripts invoke external commands
> like basename, awk, dirname, and even gs by dynamically looking them up
> PATH. Instead, they should refer to a specific path in the store so that
> the behavior of ghostscript doesn't depend on the environment and so that
> Guix can see these references.
Indeed.
--8<---------------cut here---------------start------------->8---
$ guix environment -C --ad-hoc ghostscript
[env]$ ps2pdf --version
/gnu/store/jc3x02w3dmbff7s5r7g2d21r2jswag4p-profile/bin/ps2pdf: line
8: dirname: command not found
/gnu/store/jc3x02w3dmbff7s5r7g2d21r2jswag4p-profile/bin/ps2pdf14: line
3: dirname: command not found
/gnu/store/jc3x02w3dmbff7s5r7g2d21r2jswag4p-profile/bin/ps2pdfwr: line
7: dirname: command not found
/gnu/store/jc3x02w3dmbff7s5r7g2d21r2jswag4p-profile/bin/ps2pdfwr: line
24: basename: command not found
Usage: [options...] (input.[e]ps|-) [output.pdf|-]
--8<---------------cut here---------------end--------------->8---
The fix would to add these external commands as 'inputs' and then let
'wrap-program'. Do you want to give a try?
Cheers,
simon
This bug report was last modified 3 years and 269 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.