pkgsrc-Bugs archive

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

Re: pkg/48259: bsd.wrapper.mk and gawk 3.1.8



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

From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Cc: 
Subject: Re: pkg/48259: bsd.wrapper.mk and gawk 3.1.8
Date: Wed, 2 Oct 2013 15:33:14 +0200

 On Wed, Oct 02, 2013 at 01:05:00PM +0000, richard%netbsd.org@localhost wrote:
 > apparently the native gawk package (3.1.8) on certain solaris systems 
 > have a problem with the following from bsd.wrapper.mk:
 > > # Filter to scrunch shell scripts by removing comments and empty lines.
 > > _WRAP_SH_CRUNCH_FILTER= ${AWK} ' \
 > >            /^\#!/ { print } \
 > >            /^[[:space:]]*\#/ || NF == 0 { next } \
 > >            /.*/ { print } \
 > >            '
 > 
 > Particular uncomfortable during a bootstrap, as it gives the following:
 > > ===> Extracting for bootstrap-mk-files-20130912
 > > ===> Patching for bootstrap-mk-files-20130912
 > > ===> Creating toolchain wrappers for bootstrap-mk-files-20130912
 > > gawk: fatal: Unmatched [ or [^: /^[[:space:]]*#/
 > 
 > confirmed with the quick test:
 >  richard@devzone:~$ cat ~/.profile |gawk ' \
 >  /^\#!/ { print } \
 >  /^[[:space:]]\#/ || NF == 0 { next } \
 >  /.*/ { print } \
 >  '
 > gawk: cmd. line:3: fatal: Unmatched [ or [^: /^[[:space:]]\#/
 > 
 > which works with the pkgsrc gawk.
 
 Have you tried replacing
 /^[[:space:]]\#/
 with
 /^[ \t]\#/
 
 ?
  Thomas
 


Home | Main Index | Thread Index | Old Index