Subject: Re: cannot compile xcolors under Linux with native X11
To: None <pkgsrc-users@NetBSD.org>
From: Aleksey Cheusov <cheusov@tut.by>
List: pkgsrc-users
Date: 05/02/2006 14:19:10
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 0 x11-links>bmake install
...
> awk: run time error: regular expression compile failed (Invalid content of \{\})
> \${LOWER_VENDOR}
>         FILENAME="-" FNR=1 NR=1

See PR #33410.

Index: mk/plist/plist-subst.awk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/plist/plist-subst.awk,v
retrieving revision 1.2
diff -u -r1.2 plist-subst.awk
--- mk/plist/plist-subst.awk    22 Jan 2006 16:54:13 -0000      1.2
+++ mk/plist/plist-subst.awk    2 May 2006 11:13:51 -0000
@@ -49,7 +49,7 @@
                value = ENVIRON[vars[i]]
                var = vars[i]
                sub("^PLIST_", "", var)
-               regexp = "\\${" var "}"
+               regexp = "[$][{]" var "[}]"
                substitute[regexp] = value
        }
 }

-- 
Best regards, Aleksey Cheusov.