[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Man-db-devel] man-db Guix package: preconv segfaults when hard-coded

From: Pierre Neidhardt
Subject: [Man-db-devel] man-db Guix package: preconv segfaults when hard-coded
Date: Mon, 14 Jan 2019 17:04:44 +0100
User-agent: mu4e 1.0; emacs 26.1


I'm working on a bug that Guix ( has been experiencing

Long story short:  non-ASCII man pages don't display properly because
preconv (from groff) is not found.

Guix is not like most other distributions in that it's purely
functional, dependencies are not found in the PATH but they are

man-db needs to find preconv.  So what we would typically do is patch
lib/encodings.c to point to preconv in the /gnu/store:

--8<---------------cut here---------------start------------->8---
(substitute* "lib/encodings.c"
               (("const char \\*groff_preconv = NULL;")
                (string-append "const char *groff_preconv = \""
                               (assoc-ref inputs "groff-minimal")
--8<---------------cut here---------------end--------------->8---

Surprisingly, man only displays this on every call:

--8<---------------cut here---------------start------------->8---
Segmentation fault
--8<---------------cut here---------------end--------------->8---

However, calling

--8<---------------cut here---------------start------------->8---
echo "hêlló"  | 
/gnu/store/mpjn4jfx5i8jxblfj538n22hv56rdnhw-groff-minimal-1.22.3/bin/preconv -e 
--8<---------------cut here---------------end--------------->8---


It seems that it has something to do with libpipeline, but I'm not sure

Is it wrong to create a pipeline with the full path to the executable?

Pierre Neidhardt

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]