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: Richard PALO <richard.palo%free.fr@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/48259: bsd.wrapper.mk and gawk 3.1.8
Date: Wed, 02 Oct 2013 16:42:27 +0200

 Le 02/10/13 15:35, Thomas Klausner a écrit :
 > 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
 >
 >
 Yes Thomas, substituting '[:space:]' with ' \t' seems to work:
 $ cat ~/.profile |gawk ' \
   /^\#!/ { print } \
   /^[ \t]*\#/ || NF == 0 { next } \
   /.*/ { print } \
   '
 


Home | Main Index | Thread Index | Old Index