Re: bsdgrep --null has no effect

2011-11-28 Thread Gábor Kövesdán

On 2011.11.27. 12:07, Jan Beich wrote:

Oops, here is a diff. Non -l/-L case still seems to be broken.

   $ echo ta; echo tb; echo tc
   $ gnugrep --null . ? | vis
   a\^@t
   b\^@t
   c\^@t

   $ bsdgrep --null . ? | vis
   a\^@:t
   b\^@:t
   c\^@:t
Thanks Jan, I've just committed this and your other patch to HEAD and 
will MFC it soon.


Gabor
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: bsdgrep --null has no effect

2011-11-28 Thread O. Hartmann
Am 11/28/11 21:23, schrieb Gábor Kövesdán:
 On 2011.11.27. 12:07, Jan Beich wrote:
 Oops, here is a diff. Non -l/-L case still seems to be broken.

$ echo ta; echo tb; echo tc
$ gnugrep --null . ? | vis
a\^@t
b\^@t
c\^@t

$ bsdgrep --null . ? | vis
a\^@:t
b\^@:t
c\^@:t
 Thanks Jan, I've just committed this and your other patch to HEAD and
 will MFC it soon.
 
 Gabor

After the patch of grep the mentioned port astro/stellarium build
perfectly again!

Thanks a lot for fast resposne.

Regards,
Oliver



signature.asc
Description: OpenPGP digital signature


bsdgrep --null has no effect (Was: port astro/stellarium: /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/AngleMeasure/src/AngleMeasure.hpp, : File name too long, *** Error code 1)

2011-11-27 Thread Jan Beich
(add gabor@ to CC, drop questions@)

O. Hartmann ohart...@zedat.fu-berlin.de writes:

 ===  Patching for stellarium-0.11.1
 sed:
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/src/core/external/fixx11h.h
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/src/CMakeLists.txt
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TelescopeControl/src/TelescopeControl.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Oculars/src/Oculars.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/CompassMarks/src/CompassMarks.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TextUserInterface/src/TextUserInterface.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Supernovae/src/Supernovae.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/SolarSystemEditor/src/SolarSystemEditor.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Satellites/src/Satellites.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/HelloStelModule/src/HelloStelModule.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TimeZoneConfiguration/src/TimeZoneConfiguration.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/AngleMeasure/src/AngleMeasure.hpp
 : File name too long
 *** Error code 1

Do you use bsdgrep? ${GREP} -Rl --null ... | ${XARGS} -0 ... won't work.

  $ gnugrep -l --null . /usr/include/md*.h | vis
  /usr/include/md2.h\^@/usr/include/md4.h\^@/usr/include/md5.h\^@

  $ bsdgrep -l --null . /usr/include/md*.h | vis
  /usr/include/md2.h
  /usr/include/md4.h
  /usr/include/md5.h
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: bsdgrep --null has no effect

2011-11-27 Thread Jan Beich
Jan Beich jbe...@tormail.net writes:

 O. Hartmann ohart...@zedat.fu-berlin.de writes:

 ===  Patching for stellarium-0.11.1
 sed:
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/src/core/external/fixx11h.h
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/src/CMakeLists.txt
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TelescopeControl/src/TelescopeControl.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Oculars/src/Oculars.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/CompassMarks/src/CompassMarks.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TextUserInterface/src/TextUserInterface.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Supernovae/src/Supernovae.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/SolarSystemEditor/src/SolarSystemEditor.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Satellites/src/Satellites.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/HelloStelModule/src/HelloStelModule.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TimeZoneConfiguration/src/TimeZoneConfiguration.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/AngleMeasure/src/AngleMeasure.hpp
 : File name too long
 *** Error code 1

 Do you use bsdgrep? ${GREP} -Rl --null ... | ${XARGS} -0 ... won't work.

   $ gnugrep -l --null . /usr/include/md*.h | vis
   /usr/include/md2.h\^@/usr/include/md4.h\^@/usr/include/md5.h\^@

   $ bsdgrep -l --null . /usr/include/md*.h | vis
   /usr/include/md2.h
   /usr/include/md4.h
   /usr/include/md5.h

Oops, here is a diff. Non -l/-L case still seems to be broken.

  $ echo t a; echo t b; echo t c
  $ gnugrep --null . ? | vis
  a\^@t
  b\^@t
  c\^@t

  $ bsdgrep --null . ? | vis
  a\^@:t
  b\^@:t
  c\^@:t

Index: usr.bin/grep/util.c
===
--- usr.bin/grep/util.c (revision 228003)
+++ usr.bin/grep/util.c (working copy)
@@ -246,9 +246,9 @@ procfile(const char *fn)
printf(%u\n, c);
}
if (lflag  !qflag  c != 0)
-   printf(%s\n, fn);
+   printf(%s%c, fn, nullflag ? 0 : '\n');
if (Lflag  !qflag  c == 0)
-   printf(%s\n, fn);
+   printf(%s%c, fn, nullflag ? 0 : '\n');
if (c  !cflag  !lflag  !Lflag 
binbehave == BINFILE_BIN  f-binary  !qflag)
printf(getstr(8), fn);
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: bsdgrep --null has no effect (Was: port astro/stellarium: /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/AngleMeasure/src/AngleMeasure.hpp, : File name too long, *** Error code 1)

2011-11-27 Thread O. Hartmann
Am 11/27/11 11:24, schrieb Jan Beich:
 (add gabor@ to CC, drop questions@)
 
 O. Hartmann ohart...@zedat.fu-berlin.de writes:
 
 ===  Patching for stellarium-0.11.1
 sed:
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/src/core/external/fixx11h.h
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/src/CMakeLists.txt
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TelescopeControl/src/TelescopeControl.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Oculars/src/Oculars.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/CompassMarks/src/CompassMarks.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TextUserInterface/src/TextUserInterface.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Supernovae/src/Supernovae.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/SolarSystemEditor/src/SolarSystemEditor.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Satellites/src/Satellites.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/HelloStelModule/src/HelloStelModule.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TimeZoneConfiguration/src/TimeZoneConfiguration.hpp
 /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/AngleMeasure/src/AngleMeasure.hpp
 : File name too long
 *** Error code 1
 
 Do you use bsdgrep? ${GREP} -Rl --null ... | ${XARGS} -0 ... won't work.
 
   $ gnugrep -l --null . /usr/include/md*.h | vis
   /usr/include/md2.h\^@/usr/include/md4.h\^@/usr/include/md5.h\^@
 
   $ bsdgrep -l --null . /usr/include/md*.h | vis
   /usr/include/md2.h
   /usr/include/md4.h
   /usr/include/md5.h

Yes, I use bsdgrep. The switch is set to use it via /etc/src.conf.

Oliver

P.S. Pretty fast, thanks ;-)



signature.asc
Description: OpenPGP digital signature