On Nov 7, 4:33 am, "Dr. David Kirkby" <david.kir...@onetel.net> wrote: > On 11/ 7/10 10:50 AM, rafaelf wrote: > > > I don't know if this can be considered a bug: it seems that source > > files are generated via 'grep', but if the variable $GREP_OPTIONS > > contains '--color=always', these sources won't compile because of the > > extra characters which code the colors. > > So 'grep' in the build process should always be used with the option > > '--color=never' to override the eventual 'always' from system-wide > > options. > > What bit of code is this in? > > Any use of grep with the options '--color' is non-portable, and should be > removed. > > Dave
I tried this out on sage.math. This seems to happen in various spkgs, via make or configure or something: for libpng, for example, the file libpng.vers gets invalid characters put into it. The same happens with f2c, glpk, libgpg_error, singular. We have a few choices, I think: - basically ignore the problem, maybe put a warning into the installation guide that GREP_OPTIONS shouldn't be set. - in each problematic spkg, put something like "unset GREP_OPTIONS" in the spkg-install file. - put "unset GREP_OPTIONS" in sage-spkg (or maybe sage-env?). Any other options? -- John -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org