| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
* tests/glibc-infloop: New file.
Based on the command from Koen Claessen
reported in https://bugs.gnu.org/62483
* configure.ac (USE_INCLUDED_REGEX): define.
* tests/Makefile.am (TESTS): Add the file name
* THANKS.in: Add name of reporter.
|
|
|
|
|
| |
* configure.ac (WERROR_CFLAGS): Disable -Wdeprecated-declarations
to accommodate Apple's clang 14 that's installed as "gcc".
|
| |
|
|
|
|
|
|
|
|
| |
Problem reported by Serge Belyshev for Coreutils (Bug#52844).
I observed the same problem with current Grep on Fedora 35
without Perl installed.
* configure.ac (HAVE_PERL): Rely on latest Gnulib gl_PERL, which
sets gl_cv_prog_perl.
|
|
|
|
|
|
| |
* configure.ac: Re-disable -Wstack-protector, to pacify GCC Ubuntu
11.2.0-7ubuntu2 x86-64 on knuth_morris_pratt and
knuth_morris_pratt_multibyte.
|
|
|
|
| |
* configure.ac: Re-disable -Winline. It is still needed.
|
|
|
|
|
|
|
| |
With --enable-gcc-warnings, compiling regexec.h would fail due to
its use of a single variable-length array.
* configure.ac: Add -Wvla to the list of disabled warnings and
remove most of the others, that no longer need to be disabled.
|
| |
|
|
|
|
|
| |
* configure.ac (gl_GCC_VERSION_IFELSE): Copy from coreutils.
(gcc-warnings): Update from coreutils.
|
|
|
|
|
| |
* configure.ac (GNULIB_TEST_WARN_CFLAGS): Add
-Woverlength-strings to avoid clang warnings.
|
| |
|
|
|
|
|
|
|
| |
* gnulib-tests/Makefile.am (AM_CFLAGS): Enable gnulib
warning options for these tests.
* configure.ac (GNULIB_TEST_WARN_CFLAGS): Disable the same three
warning options that coreutils does, and a few more for GCC11.
|
|
|
|
|
| |
* configure.ac: Quote args of AC_CONFIG_AUX_DIR, AC_CONFIG_SRCDIR
and AC_CHECK_FUNCS_ONCE.
|
|
|
|
|
| |
* configure.ac (AC_HEADER_STDC): Remove. It's been assumed for ages.
* m4/pcre.m4 (gl_FUNC_PCRE): Use AS_HELP_STRING, not AC_HELP_STRING.
|
|
|
|
|
|
| |
Requested by Issam E. Maghni in:
https://lists.gnu.org/r/grep-devel/2020-09/msg00000.html
* configure.ac (AM_INIT_AUTOMAKE): Remove no-dist-gzip.
|
|
|
|
| |
* configure.ac: Require autoconf-2.64, up from 2.63, to align with gnulib.
|
|
|
|
|
|
|
|
| |
Run "make update-copyright" and then...
* gnulib: Update to latest with copyright year adjusted.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
* doc/grep.in.1: Use "-" in copyright year ranges, not \en.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem reported by Jim Meyering in:
https://lists.gnu.org/r/grep-devel/2019-02/msg00000.html
* NEWS: Mention the change.
* configure.ac (fn_grep): Remove. This old attempt to fix
<https://savannah.gnu.org/bugs/?31646> wasn’t working anyway,
since subprograms didn’t grok fn_grep. People building on Solaris
will need a working grep, which is reasonably standard nowadays.
(GREP, EGREP): Do not override. This way, we test the
newly-built grep only when running ‘make test’ and suchlike.
Instead, output a hopefully-helpful diagnostic if the
system 'grep' does not work.
|
|
|
|
|
|
|
|
|
| |
Cause developer builds to fail for any use of a VLA.
VLAs (variable length arrays) limit portability.
* configure.ac (nw): Remove -Wvla from the list of disabled warnings,
thus enabling the warning when configured with --enable-gcc-warnings.
(GNULIB_NO_VLA) Define, disabling use of VLAs in gnulib. This commit
is functionally equivalent to coreutils' v8.30-44-gd26dece5d.
|
|
|
|
|
|
|
|
|
|
| |
This fixes a warning if PCRE is not used (Bug#34054).
* configure.ac (USE_PCRE): New conditional.
* src/Makefile.am (grep_SOURCES) [!USE_PCRE]: Omit pcresearch.c.
* src/grep.c (matchers) [!HAVE_LIBPCRE]: Omit perl matcher.
(setmatcher) [!HAVE_LIBPCRE]: If helpful, mention
--disable-perl-regexp in diagnostic.
* src/pcresearch.c: Simplify by assuming HAVE_LIBPCRE.
|
|
|
|
| |
* gnulib: Also update submodule for its copyright updates.
|
|
|
|
|
|
| |
* configure.ac: AC_PREREQ: Require 2.63, not 2.59. And quote properly.
Autoconf-2.63 has been required for some time via gnulib.
This merely makes it explicit.
|
|
|
|
|
| |
Mostly this is just changing http: to https:.
In one or two places it removes no-longer-useful URLs.
|
|
|
|
|
|
| |
* gnulib: Update to latest.
* all files: Run "make update-copyright".
* bootstrap: Update from gnulib.
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac (WERROR_CFLAGS): Add -Wno-cast-function-type
to suppress warning about sig-handler.h's sa_handler_t cast:
sig-handler.h: In function 'get_handler':
sig-handler.h:47:12: error: cast between incompatible function\
types from 'void (* const)(int, siginfo_t *, void *)'\
{aka 'void (* const)(int, struct <anonymous> *, void *)'}\
to 'void (*)(int)' [-Werror=cast-function-type]
return (sa_handler_t) a->sa_sigaction;
|
|
|
|
|
| |
* gnulib: Update to latest.
* all files: Run "make update-copyright".
|
|
|
|
|
| |
* configure.ac (HAVE_PRINTF_C99_SIZES): Remove; no longer needed.
* src/grep.c (print_offset): Simplify (Bug#24451).
|
|
|
|
|
|
|
|
| |
* configure.ac: Use gl_PRINTF_SIZES_C99 to test printf and
(conditionally) define HAVE_PRINTF_C99_SIZES.
* src/grep.c (print_offset): Use printf("%j...") for printing
[u]intmax_t if HAVE_PRINTF_C99_SIZES is defined; otherwise continue
using the existing hand-rolled loop.
|
|
|
|
|
|
| |
* configure.ac (gl_gcc_warnings): Reword diagnostic.
Suggested by Assaf Gordon in:
http://lists.gnu.org/archive/html/grep-devel/2016-09/msg00024.html
|
|
|
|
|
|
| |
* configure.ac (gl_gcc_warnings): Omit duplicate copy of 'main'.
Problem reported by Assaf Gordon in:
http://lists.gnu.org/archive/html/grep-devel/2016-09/msg00024.html
|
|
|
|
|
|
|
| |
Problem reported by Dagobert Michelsen in:
http://lists.gnu.org/archive/html/grep-devel/2016-09/msg00018.html
* configure.ac (gl_gcc_warnings): Default to false if .git
exists but GCC is too old.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Set the AM_CONDITIONAL variable, HAVE_PERL.
* tests/Coreutils.pm: New file.
* tests/CuSkip.pm: New file.
* tests/CuTmpdir.pm: New file.
* tests/no-perl: New file.
* tests/Makefile.am: Set up to use .pl tests:
(TEST_EXTENSIONS, TESTSUITE_PERL, TESTSUITE_PERL_OPTIONS): Define.
(SH_LOG_COMPILER, PL_LOG_COMPILER): Define.
(EXTRA_DIST): Add the four new file names.
|
|
|
|
|
|
|
|
| |
Run "make update-copyright" and then...
* gnulib: Update to latest.
* tests/init.sh: Update from gnulib.
* bootstrap: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem reported by Mike Frysinger in: http://bugs.gnu.org/16757
* bootstrap.conf (bootstrap_post_import_hook):
Copy pkg-config's pkg.m4.
* configure.ac: Invoke PKG_PROG_PKG_CONFIG.
* m4/pcre.m4 (gl_FUNC_PCRE): Rewrite to use pkg-config if
available, and to test that pcre_compile can be linked to.
* src/Makefile.am (AM_CFLAGS): Add PCRE_CFLAGS.
(grep_LDADD): Add PCRE_LIBS.
* src/pcresearch.c: Simply include <pcre.h> if HAVE_LIBPCRE,
since 'configure' arranges for the appropriate -I option now.
|
|
|
|
|
| |
Run "make update-copyright". Also, ...
* grep.texi: Update manually, converting each "--" to "-".
|
|
|
|
|
|
|
|
|
|
| |
On platforms this old, building with _FORTIFY_SOURCE equal to 2
results in duplicate definitions of standard library functions.
Problem reported by Nelson H. F. Beebe.
* configure.ac (_FORTIFY_SOURCE): Sort after GNULIB_PORTCHECK.
By default, do not enable this unless GNULIB_PORTCHECK is defined.
This better matches the original intent, which as I recall was to
enable these extra checks only with --enable-gcc-warnings.
|
|
|
|
|
|
|
|
|
| |
glibc has a bug where mbrlen and mbrtowc mishandle length-0 inputs.
Working around it in gnulib slows grep down, so disable the tests for it
and make sure grep works even if the bug is present.
* bootstrap.conf (avoided_gnulib_modules): Add mbrtowc-tests.
* configure.ac (gl_cv_func_mbrtowc_empty_input): Assume yes.
* src/searchutils.c (mb_next_wc): Don't invoke mbrtowc on empty input.
|
|
|
|
|
|
|
|
| |
This allows the use of --enable-gcc-warnings on Gentoo and Ubuntu.
See: http://bugs.gnu.org/17793
* configure.ac (WERROR_CFLAGS): Avoid -Wstack-protector.
This can be worked around, but the cure is worse than the disease.
|
|
|
|
|
|
|
|
|
|
|
| |
'configure' creates this file, so it shouldn't be distributed; see:
http://bugs.gnu.org/17480
* configure.ac (COLORIZE_SOURCE): New macro.
Don't use AC_CONFIG_LINKS for lib/colorize.c.
* lib/Makefile.am (nodist_libgreputils_a_SOURCES): New macro.
(libgreputils_a_SOURCES): Remove colorize.c.
(CLEANFILES): Add colorize.c
(colorize.c): New rule.
|
|
|
|
|
|
|
|
| |
I ran into one of these while trying out GCC 4.9.0's new
-fsanitize=undefined option. The warning told me that GCC didn't
do an unsafe optimization, but in 'grep' this is not typically a
symptom of a programming error.
* configure.ac (WERROR_CFLAGS): Suppress -Wunsafe-loop-optimizations.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The code converted between size_t * and ptrdiff_t *, which wasn't
diagnosed by modern x86-64 GCC but isn't portable. Problem
reported by Norihiro Tanaka in <http://bugs.gnu.org/17136#31>.
* configure.ac (WERROR_CFLAGS): Don't add -Wno-pointer-sign.
We want GCC to diagnose pointer signedness problems, as they
violate the C standard and other compilers no doubt complain too.
* src/dfa.c (struct dfa): Change type of salloc to size_t.
(realloc_trans_if_necessary): Convert signed value to size_t before
passing its address to x2nrealloc. Changing the type of tralloc
to size_t might have led to problems elsewhere.
|
|
|
|
| |
Do that by running "make update-copyright".
|
|
|
|
|
|
| |
* Makefile.am (ACLOCAL_AMFLAGS): Don't use this deprecated variable.
* configure.ac (AC_CONFIG_MACRO_DIRS): Use this instead.
(AUTOMAKE_OPTIONS): Require automake-1.12.
|
|
|
|
|
|
| |
* configure.ac (WERROR_CFLAGS): Don't add -fdiagnostics-show-option
and -funit-at-a-time, as Gnulib does that for us now, and we're
merely piling on duplicats.
|
|
|
|
| |
* configure.ac (AM_INIT_AUTOMAKE): Add subdir-objects.
|
|
|
|
|
|
|
| |
* configure.ac: Don't use unquoted '^' in a pattern, as this
breaks 'configure' on Solaris 10, whose /bin/sh complains about it,
which causes 'configure' to exit even before it finds a decent shell.
Unix 7th edition shell accepted '^' as an alias for '|'.
|
|
|
|
|
|
| |
Problem reported by Brenton Hoff (Bug#15663).
* configure.ac (_FORTIFY_SOURCE): Don't define if already defined.
This is what Emacs does.
|
|
|
|
|
|
|
|
|
| |
* configure.ac (AM_GNU_GETTEXT_VERSION): Update to 0.18.2.
This is necessary to have the gettext-provided m4 files to use
AC_PROG_MKDIR_P rather than AM_PROG_MKDIR_P. This latter macro,
planned to disappear in Automake 1.14, has already been removed
in the development version of Automake, so that, without this
change, grep fails to bootstrap with bleeding-edge Automake.
|
|
|
|
| |
Run "make update-copyright".
|