Subject: Re: pkg/34548 possible solution
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Mark E. Perkins <perkinsm@bway.net>
List: pkgsrc-bugs
Date: 06/12/2007 08:50:02
The following reply was made to PR pkg/34548; it has been noted by GNATS.
From: "Mark E. Perkins" <perkinsm@bway.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/34548 possible solution
Date: Tue, 12 Jun 2007 04:46:57 -0400
I just ran into this issue on Mac OS X 10.4.9. The problem is in
htdocs/share/mk/doc.docbook.mk where line 60 is
REQPKGS_PRINT?= tex-jadetex>=3.13 ghostscript{,-esp,-gnu}{,-nox11}>=7.05
A few lines later (see possible patch below), the ghostscript part is expanded
by the shell (bash) into six separate strings and pkg_info only finds one of
them is installed, hence the failure. Patch below to escape '{' and '}' works
here, but needs verification for other OSs.
===========================================================================
--- work/htdocs/share/mk/doc.docbook.mk.orig 2007-01-19 13:38:15.000000000
-0500
+++ work/htdocs/share/mk/doc.docbook.mk
@@ -66,7 +66,7 @@ REQPKGS= ${REQPKGS_COMMON}
.BEGIN:
@echo -n "[Checking tools for typesetting..."
@(missing=""; \
- for T in ${REQPKGS:S,<,\\<,:S,>,\\>,}; do \
+ for T in ${REQPKGS:S,<,\\<,:S,>,\\>,:S,{,\\{,g:S,},\\},g}; do \
if ! ${PKG_INFO} -e $${T} > /dev/null 2>&1; then \
missing="$${missing} $${T}";\
fi; \