>From 3e75e00c40ff97b0b72a22c28e4bb9b8086602fb Mon Sep 17 00:00:00 2001 From: Bruno Haible
Date: Sat, 20 Jul 2019 00:51:26 +0200 Subject: [PATCH 2/2] parse-datetime: Avoid warnings from bison versions >= 3.3. Reported by Bernhard Voelker . * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison. --- ChangeLog | 6 ++++++ modules/parse-datetime | 30 +++++++++++++++++------------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index f8c1541..40d3e67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2019-07-19 Bruno Haible + parse-datetime: Avoid warnings from bison versions >= 3.3. + Reported by Bernhard Voelker . + * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison. + +2019-07-19 Bruno Haible + parse-datetime: Require Bison 2.4 or newer. * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON. Code taken from gettext's intl.m4. diff --git a/modules/parse-datetime b/modules/parse-datetime index d54dafd..5ef3264 100644 --- a/modules/parse-datetime +++ b/modules/parse-datetime @@ -30,22 +30,26 @@ configure.ac: gl_PARSE_DATETIME Makefile.am: -# This rule overrides the Automake generated .y.c rule, to ensure that the -# parse-datetime.c file gets generated in the source directory, not in the -# build directory. +# The Automake generated .y.c rule is broken: When executed in a VPATH build, +# - The .c file gets generated in the build directory. But since it requires +# special tools to rebuild it, we need to distribute it in the tarballs, +# and by the GNU Coding Standards +#