From ac5e5f389273fc9fab44f34c957b08f8cd836cbd Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Sun, 23 Aug 2026 21:03:23 -0400 Subject: [PATCH] [FIX] groff: the figure and the document that includes it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Emptying DOC_GNU_EPS stopped the GNU logo being built and left the document that includes it: doc/webpage.ms:45: error: cannot open gnu.eps doc/webpage.ms:45: fatal error: PSPIC failed to include gnu.eps Tenth time in this port, fourth of my own making. PROCESSEDEXAMPLEFILES_PS lists webpage.ps and grnexmpl.ps, and the HTML variant directly above it is ALREADY empty with its real value left as a comment -- groff configure empties that one when the tools are missing. This does the same for PS, which is the decision groff would have made had it checked. --- FR --- Vider DOC_GNU_EPS a empeche la construction du logo GNU et laisse en place le document qui l inclut : doc/webpage.ms:45: error: cannot open gnu.eps doc/webpage.ms:45: fatal error: PSPIC failed to include gnu.eps Dixieme fois dans ce portage, quatrieme de ma main. PROCESSEDEXAMPLEFILES_PS liste webpage.ps et grnexmpl.ps, et la variante HTML juste au-dessus est DEJA vide, sa vraie valeur laissee en commentaire — le configure de groff vide celle-la quand les outils manquent. Ceci fait de meme pour PS : la decision que groff aurait prise s il avait verifie. Assisted-by: Claude Opus 5 --- patches/pkgbuild/groff.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/patches/pkgbuild/groff.sh b/patches/pkgbuild/groff.sh index 48dd0cb..d2730c6 100755 --- a/patches/pkgbuild/groff.sh +++ b/patches/pkgbuild/groff.sh @@ -36,6 +36,19 @@ lines[i:i] = [ ind + "# package. The install side already skips the file when it is absent.", ind + 'sed -i "s|^DOC_GNU_EPS = doc/gnu.eps$|DOC_GNU_EPS =|" Makefile', ind + 'grep -q "^DOC_GNU_EPS =$" Makefile', + ind + "# And its CONSUMER. Emptying DOC_GNU_EPS removed the rule that", + ind + "# builds the figure and not the document that includes it:", + ind + "#", + ind + "# doc/webpage.ms:45: error: cannot open 'gnu.eps'", + ind + "# doc/webpage.ms:45: fatal error: PSPIC failed to include 'gnu.eps'", + ind + "#", + ind + "# PROCESSEDEXAMPLEFILES_PS lists webpage.ps and grnexmpl.ps. The", + ind + "# HTML variant right above it is ALREADY empty, with its real value", + ind + "# left as a comment -- groff's own configure empties that one when", + ind + "# the tools are missing. This does the same for PS, which is the", + ind + "# decision groff would have made had it checked.", + ind + 'sed -i "/^PROCESSEDEXAMPLEFILES_PS = /,/^$/ s|^.*$||" Makefile', + ind + 'grep -q "^PROCESSEDEXAMPLEFILES_PS" Makefile && { echo "groff: PS example list not emptied" >&2; exit 1; }', ] io.open("PKGBUILD", "w", encoding="utf-8").write("\n".join(lines)) ZZPY