Date: Sun, 10 Jan 2021 16:08:07 GMT From: Marc Fonvieille <blackend@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: 0d6f42cb77 - main - Redirect gs stdout to stderr. This will prevent warnings to be part of the generated file causing broken files. This does not redirect drivers output which still write to stdout. Message-ID: <202101101608.10AG87lJ095985@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by blackend: URL: https://cgit.FreeBSD.org/doc/commit/?id=0d6f42cb77983bc8c908294b8fcbaa029040810a commit 0d6f42cb77983bc8c908294b8fcbaa029040810a Author: Marc Fonvieille <blackend@FreeBSD.org> AuthorDate: 2021-01-10 16:01:58 +0000 Commit: Marc Fonvieille <blackend@FreeBSD.org> CommitDate: 2021-01-10 16:01:58 +0000 Redirect gs stdout to stderr. This will prevent warnings to be part of the generated file causing broken files. This does not redirect drivers output which still write to stdout. I'm currently seeing "**** Warning: glyf overlaps cmap, truncating." during esptopng conversion leading to broken .pnm. This change prevents the broken .pnm file. --- share/mk/doc.commands.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/doc.commands.mk b/share/mk/doc.commands.mk index 6f2c1f2282..fa759eb09c 100644 --- a/share/mk/doc.commands.mk +++ b/share/mk/doc.commands.mk @@ -117,7 +117,7 @@ SCR2PNGOPTS?= ${SCR2PNGFLAGS} SCR2TXT?= ${PREFIX}/bin/scr2txt SCR2TXTOPTS?= -l ${SCR2TXTFLAGS} EPS2PNM?= ${PREFIX}/bin/gs -EPS2PNMOPTS?= -q -dBATCH -dGraphicsAlphaBits=4 -dTextAlphaBits=4 \ +EPS2PNMOPTS?= -sstdout=%stderr -q -dBATCH -dGraphicsAlphaBits=4 -dTextAlphaBits=4 \ -dEPSCrop -r${EPS2PNM_RES}x${EPS2PNM_RES} \ -dNOPAUSE -dSAFER -sDEVICE=pnm -sOutputFile=- #
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101101608.10AG87lJ095985>