pkgsrc-Bugs archive

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

Re: pkg/34548 possible solution

The following reply was made to PR pkg/34548; it has been noted by GNATS.

From: "Mark E. Perkins" <>
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/ 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/    2007-01-19 13:38:15.000000000
 +++ work/htdocs/share/mk/
 @@ -66,7 +66,7 @@ REQPKGS=      ${REQPKGS_COMMON}
         @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; \

Home | Main Index | Thread Index | Old Index