`man -H` doesn't use absolute path to groff

  • Done
  • quality assurance status badge
Details
3 participants
  • Maxim Cournoyer
  • pkill9
  • zimoun
Owner
unassigned
Submitted by
pkill9
Severity
normal

Debbugs page

pkill9 wrote 5 years ago
(address . bug-guix@gnu.org)
20200124203435.362c5dbc@runbox.com
when running `man -H curl`, I get the following output:

```
man: command exited with status 255: (cd /tmp/hmanCnZGIK && /gnu/store/l9j6dsfs2i4spfkia492wnighplvhb1c-man-db-2.9.0/libexec/man-db/zsoelim) | (cd /tmp/hmanCnZGIK && /gnu/store/l9j6dsfs2i4spfkia492wnighplvhb1c-man-db-2.9.0/libexec/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /tmp/hmanCnZGIK && /gnu/store/5sd2yanrfv9pq8mvnf4c6pga11r6x7qh-groff-minimal-1.22.4/bin/preconv -e UTF-8) | (cd /tmp/hmanCnZGIK && /gnu/store/5sd2yanrfv9pq8mvnf4c6pga11r6x7qh-groff-minimal-1.22.4/bin/tbl) | (cd /tmp/hmanCnZGIK && groff -mandoc -Thtml)
```

When I go into a guix environment containing groff however, it works.
Looking at the command `man -H` tries to use, it needs an absolute path
to groff.
Maxim Cournoyer wrote 4 years ago
(name . pkill9)(address . pkill9@runbox.com)(address . 39272-done@debbugs.gnu.org)
87zh3idynk.fsf@gmail.com
Hello pkill9,

pkill9 <pkill9@runbox.com> writes:

Toggle quote (18 lines)
> when running `man -H curl`, I get the following output:
>
> ```
> man: command exited with status 255: (cd /tmp/hmanCnZGIK &&
> /gnu/store/l9j6dsfs2i4spfkia492wnighplvhb1c-man-db-2.9.0/libexec/man-db/zsoelim)
> | (cd /tmp/hmanCnZGIK &&
> /gnu/store/l9j6dsfs2i4spfkia492wnighplvhb1c-man-db-2.9.0/libexec/man-db/manconv
> -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /tmp/hmanCnZGIK &&
> /gnu/store/5sd2yanrfv9pq8mvnf4c6pga11r6x7qh-groff-minimal-1.22.4/bin/preconv
> -e UTF-8) | (cd /tmp/hmanCnZGIK &&
> /gnu/store/5sd2yanrfv9pq8mvnf4c6pga11r6x7qh-groff-minimal-1.22.4/bin/tbl)
> | (cd /tmp/hmanCnZGIK && groff -mandoc -Thtml)
> ```
>
> When I go into a guix environment containing groff however, it works.
> Looking at the command `man -H` tries to use, it needs an absolute path
> to groff.

I looked into this but it turns out that our man-db package is carefully
crafted not to refer to the full groff package to reduce its closure
size by more than half.

I think you'll have to live with installing groff manually to get the
HTML feature, or alter the man-db definition to your particular needs.

If this issue comes back often, we could revisit this choice and use the
full groff, which would mean adding about 50 MiB to the closure of the
bare-bones.tmpl system.

Closing,

Thanks for the report!

Maxim
Closed
zimoun wrote 4 years ago
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(name . pkill9)(address . pkill9@runbox.com)(address . 39272-done@debbugs.gnu.org)
86h7ponewr.fsf@gmail.com
Hi Maxim,

On Sun, 15 Nov 2020 at 17:48, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:

Toggle quote (15 lines)
>> When I go into a guix environment containing groff however, it works.
>> Looking at the command `man -H` tries to use, it needs an absolute path
>> to groff.
>
> I looked into this but it turns out that our man-db package is carefully
> crafted not to refer to the full groff package to reduce its closure
> size by more than half.
>
> I think you'll have to live with installing groff manually to get the
> HTML feature, or alter the man-db definition to your particular needs.
>
> If this issue comes back often, we could revisit this choice and use the
> full groff, which would mean adding about 50 MiB to the closure of the
> bare-bones.tmpl system.

I do not know if it is related but #38838:



All the best,
simon
Closed
?
Your comment

This issue is archived.

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

To respond to this issue using the mumi CLI, first switch to it
mumi current 39272
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
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help