Gentoo Archives: gentoo-user

From: karl@××××××××.se
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] sci-libs/{amd,camd}-2.4.6/ doc wierdness
Date: Wed, 16 Dec 2020 22:16:51
Message-Id: 20201216221643.2B58182CBBF6@turkos.aspodata.se
In Reply to: Re: [gentoo-user] sci-libs/{amd,camd}-2.4.6/ doc wierdness by Michael Orlitzky
1 Michael:
2 > On 12/16/20 1:17 PM, Michael Orlitzky wrote:
3 > > On 12/16/20 12:30 PM, karl@××××××××.se wrote:
4 > >> Both sci-libs/{amd,camd}-2.4.6 gives this error in their build log:
5 > >>
6 > >> ! Package inputenc Error: Unicode character ^^H (U+0008)
7 > >> (inputenc) not set up for use with LaTeX.
8 > >>
9 > >
10 > > I can reproduce this... I'll take a look.
11 > It looks like the Makefile.am for the documentation was only tested with
12 > bash.
13
14 Yes, this part:
15 CAMD_UserGuide.pdf:
16 echo '\begin{verbatim}' > camd_h.tex
17 expand -8 $(top_srcdir)/Include/camd.h >> camd_h.tex
18 echo '\end{verbatim}' >> camd_h.tex
19 -ln -s $(srcdir)/*.{tex,bib} .
20 $(PDFLATEX) CAMD_UserGuide
21 $(BIBTEX) CAMD_UserGuide
22 $(PDFLATEX) CAMD_UserGuide
23 $(PDFLATEX) CAMD_UserGuide
24
25 Unfortunately, different echos handles excapes differently, see e.g.
26 https://helpmanual.io/man1/echo-posix/
27 In /bin/sh (dash) echo always converts thoose excapes (a' la sysV),
28 where bash needs -e to do it (a' la BSD).
29
30 One could replace the echos with printf "%s\n" as in
31 $ printf "%s\n" '\begin' | od -a
32 0000000 \ b e g i n nl
33
34 Note: echo '\e' is said to be undefined in dashs manual.
35
36 ///
37
38 Also, the $(srcdir) seems defined as ".", and I get this useless link:
39 # ls -l
40 total 140
41 lrwxrwxrwx 1 portage portage 13 Dec 16 16:58 '*.{tex,bib}' -> './*.{tex,bib}'
42
43 ///
44
45 > Try e.g.,
46 >
47 > CONFIG_SHELL=/bin/bash USE=doc emerge -v1 sci-libs/amd
48 >
49 > If that works for you, I'll add it to the ebuilds.
50
51 It will probably, cannot test just now, rust is compiling....
52
53 Regards,
54 /Karl Hammar

Replies

Subject Author
Re: [gentoo-user] sci-libs/{amd,camd}-2.4.6/ doc wierdness Michael Orlitzky <mjo@g.o>