From patchwork Sun Sep 2 21:21:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Durigan Junior X-Patchwork-Id: 29162 Received: (qmail 105883 invoked by alias); 2 Sep 2018 21:21:22 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 105872 invoked by uid 89); 2 Sep 2018 21:21:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=aclocal_m4_deps, ACLOCAL, aclocal, H*f:sk:a3aeaa0 X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 02 Sep 2018 21:21:11 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4937A400E9A3; Sun, 2 Sep 2018 21:21:10 +0000 (UTC) Received: from psique.yyz.redhat.com (unused-10-15-17-196.yyz.redhat.com [10.15.17.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id E33FE104948C; Sun, 2 Sep 2018 21:21:07 +0000 (UTC) From: Sergio Durigan Junior To: GDB Patches Cc: Pedro Alves , Tom Tromey , Simon Marchi , Sergio Durigan Junior Subject: [PATCH] Automatically update "aclocal_m4_deps" when updating gnulib Date: Sun, 2 Sep 2018 17:21:00 -0400 Message-Id: <20180902212100.19034-1-sergiodj@redhat.com> In-Reply-To: References: X-IsSubscribed: yes When we update gnulib using our "update-gnulib.sh" tool, it doesn't automatically update the list of M4 files present at gnulib/Makefile.in:aclocal_m4_deps. This patch extends the tool to do that. It also puts "aclocal_m4_deps" in its own file (a Makefile fragment), so that it's easier to update it programatically. Tested by generating the file and diff'ing the results against the current version of "aclocal_m4_deps". gdb/ChangeLog: 2018-09-02 Sergio Durigan Junior Pedro Alves * gnulib/Makefile.in (aclocal_m4_deps): Move to "aclocal-m4-deps.mk". Include file here. * gnulib/aclocal-m4-deps.mk: New file. * gnulib/update-gnulib.sh: Automatically update "aclocal-m4-deps.mk". --- gdb/gnulib/Makefile.in | 138 +--------------------------------- gdb/gnulib/aclocal-m4-deps.mk | 136 +++++++++++++++++++++++++++++++++ gdb/gnulib/update-gnulib.sh | 6 ++ 3 files changed, 144 insertions(+), 136 deletions(-) create mode 100644 gdb/gnulib/aclocal-m4-deps.mk diff --git a/gdb/gnulib/Makefile.in b/gdb/gnulib/Makefile.in index 1602da54b6..4aa8ee51b7 100644 --- a/gdb/gnulib/Makefile.in +++ b/gdb/gnulib/Makefile.in @@ -205,142 +205,8 @@ config.status: $(srcdir)/configure ACLOCAL = aclocal ACLOCAL_AMFLAGS = -I import/m4 -I ../../config -aclocal_m4_deps = \ - configure.ac \ - import/m4/flexmember.m4 \ - import/m4/eealloc.m4 \ - import/m4/mkdir.m4 \ - import/m4/close.m4 \ - import/m4/unistd-safer.m4 \ - import/m4/inttypes-pri.m4 \ - import/m4/chdir-long.m4 \ - import/m4/gnulib-common.m4 \ - import/m4/readdir.m4 \ - import/m4/stdlib_h.m4 \ - import/m4/getlogin_r.m4 \ - import/m4/warn-on-use.m4 \ - import/m4/getdtablesize.m4 \ - import/m4/rewinddir.m4 \ - import/m4/string_h.m4 \ - import/m4/closedir.m4 \ - import/m4/canonicalize.m4 \ - import/m4/stdio_h.m4 \ - import/m4/fdopendir.m4 \ - import/m4/getcwd-abort-bug.m4 \ - import/m4/alloca.m4 \ - import/m4/strstr.m4 \ - import/m4/stat-time.m4 \ - import/m4/builtin-expect.m4 \ - import/m4/rawmemchr.m4 \ - import/m4/msvc-nothrow.m4 \ - import/m4/absolute-header.m4 \ - import/m4/isnanl.m4 \ - import/m4/stddef_h.m4 \ - import/m4/gnulib-tool.m4 \ - import/m4/realloc.m4 \ - import/m4/d-type.m4 \ - import/m4/frexp.m4 \ - import/m4/getcwd-path-max.m4 \ - import/m4/dup2.m4 \ - import/m4/strtok_r.m4 \ - import/m4/exponentd.m4 \ - import/m4/std-gnu11.m4 \ - import/m4/locale-ja.m4 \ - import/m4/gettimeofday.m4 \ - import/m4/time_h.m4 \ - import/m4/malloc.m4 \ - import/m4/fnmatch_h.m4 \ - import/m4/codeset.m4 \ - import/m4/getcwd.m4 \ - import/m4/readlink.m4 \ - import/m4/locale-zh.m4 \ - import/m4/stdint.m4 \ - import/m4/memrchr.m4 \ - import/m4/onceonly.m4 \ - import/m4/pathmax.m4 \ - import/m4/rename.m4 \ - import/m4/rmdir.m4 \ - import/m4/dup.m4 \ - import/m4/errno_h.m4 \ - import/m4/mbrtowc.m4 \ - import/m4/environ.m4 \ - import/m4/wchar_h.m4 \ - import/m4/strchrnul.m4 \ - import/m4/fcntl_h.m4 \ - import/m4/getpagesize.m4 \ - import/m4/largefile.m4 \ - import/m4/openat.m4 \ - import/m4/save-cwd.m4 \ - import/m4/stat.m4 \ - import/m4/include_next.m4 \ - import/m4/mmap-anon.m4 \ - import/m4/mode_t.m4 \ - import/m4/exponentl.m4 \ - import/m4/sys_types_h.m4 \ - import/m4/fcntl-o.m4 \ - import/m4/stdbool.m4 \ - import/m4/float_h.m4 \ - import/m4/msvc-inval.m4 \ - import/m4/wctype_h.m4 \ - import/m4/gnulib-cache.m4 \ - import/m4/mbsrtowcs.m4 \ - import/m4/limits-h.m4 \ - import/m4/locale-fr.m4 \ - import/m4/fstatat.m4 \ - import/m4/inttypes.m4 \ - import/m4/memchr.m4 \ - import/m4/glob.m4 \ - import/m4/fstat.m4 \ - import/m4/sys_stat_h.m4 \ - import/m4/off_t.m4 \ - import/m4/strdup.m4 \ - import/m4/ssize_t.m4 \ - import/m4/math_h.m4 \ - import/m4/unistd_h.m4 \ - import/m4/fpieee.m4 \ - import/m4/mempcpy.m4 \ - import/m4/wint_t.m4 \ - import/m4/d-ino.m4 \ - import/m4/setenv.m4 \ - import/m4/open-cloexec.m4 \ - import/m4/longlong.m4 \ - import/m4/multiarch.m4 \ - import/m4/filenamecat.m4 \ - import/m4/gnulib-comp.m4 \ - import/m4/mkstemp.m4 \ - import/m4/dirfd.m4 \ - import/m4/getlogin.m4 \ - import/m4/signal_h.m4 \ - import/m4/sys_socket_h.m4 \ - import/m4/dirname.m4 \ - import/m4/00gnulib.m4 \ - import/m4/dirent_h.m4 \ - import/m4/opendir.m4 \ - import/m4/error.m4 \ - import/m4/extensions.m4 \ - import/m4/fchdir.m4 \ - import/m4/mbsinit.m4 \ - import/m4/__inline.m4 \ - import/m4/extern-inline.m4 \ - import/m4/fnmatch.m4 \ - import/m4/lstat.m4 \ - import/m4/nocrash.m4 \ - import/m4/sys_time_h.m4 \ - import/m4/localcharset.m4 \ - import/m4/open.m4 \ - import/m4/localtime-buffer.m4 \ - import/m4/getprogname.m4 \ - import/m4/wchar_t.m4 \ - import/m4/isnand.m4 \ - import/m4/double-slash-root.m4 \ - import/m4/malloca.m4 \ - import/m4/fcntl.m4 \ - import/m4/frexpl.m4 \ - import/m4/strerror.m4 \ - import/m4/glob_h.m4 \ - import/m4/tempname.m4 \ - import/m4/memmem.m4 \ - import/m4/mbstate_t.m4 + +include $(srcdir)/aclocal-m4-deps.mk $(srcdir)/aclocal.m4: @MAINTAINER_MODE_TRUE@ $(aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) diff --git a/gdb/gnulib/aclocal-m4-deps.mk b/gdb/gnulib/aclocal-m4-deps.mk new file mode 100644 index 0000000000..07db2ab616 --- /dev/null +++ b/gdb/gnulib/aclocal-m4-deps.mk @@ -0,0 +1,136 @@ +aclocal_m4_deps = \ + configure.ac \ + import/m4/flexmember.m4 \ + import/m4/eealloc.m4 \ + import/m4/mkdir.m4 \ + import/m4/close.m4 \ + import/m4/unistd-safer.m4 \ + import/m4/inttypes-pri.m4 \ + import/m4/chdir-long.m4 \ + import/m4/gnulib-common.m4 \ + import/m4/readdir.m4 \ + import/m4/stdlib_h.m4 \ + import/m4/getlogin_r.m4 \ + import/m4/warn-on-use.m4 \ + import/m4/getdtablesize.m4 \ + import/m4/rewinddir.m4 \ + import/m4/string_h.m4 \ + import/m4/closedir.m4 \ + import/m4/canonicalize.m4 \ + import/m4/stdio_h.m4 \ + import/m4/fdopendir.m4 \ + import/m4/getcwd-abort-bug.m4 \ + import/m4/alloca.m4 \ + import/m4/strstr.m4 \ + import/m4/stat-time.m4 \ + import/m4/builtin-expect.m4 \ + import/m4/rawmemchr.m4 \ + import/m4/msvc-nothrow.m4 \ + import/m4/absolute-header.m4 \ + import/m4/isnanl.m4 \ + import/m4/stddef_h.m4 \ + import/m4/gnulib-tool.m4 \ + import/m4/realloc.m4 \ + import/m4/d-type.m4 \ + import/m4/frexp.m4 \ + import/m4/getcwd-path-max.m4 \ + import/m4/dup2.m4 \ + import/m4/strtok_r.m4 \ + import/m4/exponentd.m4 \ + import/m4/std-gnu11.m4 \ + import/m4/locale-ja.m4 \ + import/m4/gettimeofday.m4 \ + import/m4/time_h.m4 \ + import/m4/malloc.m4 \ + import/m4/fnmatch_h.m4 \ + import/m4/codeset.m4 \ + import/m4/getcwd.m4 \ + import/m4/readlink.m4 \ + import/m4/locale-zh.m4 \ + import/m4/stdint.m4 \ + import/m4/memrchr.m4 \ + import/m4/onceonly.m4 \ + import/m4/pathmax.m4 \ + import/m4/rename.m4 \ + import/m4/rmdir.m4 \ + import/m4/dup.m4 \ + import/m4/errno_h.m4 \ + import/m4/mbrtowc.m4 \ + import/m4/environ.m4 \ + import/m4/wchar_h.m4 \ + import/m4/strchrnul.m4 \ + import/m4/fcntl_h.m4 \ + import/m4/getpagesize.m4 \ + import/m4/largefile.m4 \ + import/m4/openat.m4 \ + import/m4/save-cwd.m4 \ + import/m4/stat.m4 \ + import/m4/include_next.m4 \ + import/m4/mmap-anon.m4 \ + import/m4/mode_t.m4 \ + import/m4/exponentl.m4 \ + import/m4/sys_types_h.m4 \ + import/m4/fcntl-o.m4 \ + import/m4/stdbool.m4 \ + import/m4/float_h.m4 \ + import/m4/msvc-inval.m4 \ + import/m4/wctype_h.m4 \ + import/m4/gnulib-cache.m4 \ + import/m4/mbsrtowcs.m4 \ + import/m4/limits-h.m4 \ + import/m4/locale-fr.m4 \ + import/m4/fstatat.m4 \ + import/m4/inttypes.m4 \ + import/m4/memchr.m4 \ + import/m4/glob.m4 \ + import/m4/fstat.m4 \ + import/m4/sys_stat_h.m4 \ + import/m4/off_t.m4 \ + import/m4/strdup.m4 \ + import/m4/ssize_t.m4 \ + import/m4/math_h.m4 \ + import/m4/unistd_h.m4 \ + import/m4/fpieee.m4 \ + import/m4/mempcpy.m4 \ + import/m4/wint_t.m4 \ + import/m4/d-ino.m4 \ + import/m4/setenv.m4 \ + import/m4/open-cloexec.m4 \ + import/m4/longlong.m4 \ + import/m4/multiarch.m4 \ + import/m4/filenamecat.m4 \ + import/m4/gnulib-comp.m4 \ + import/m4/mkstemp.m4 \ + import/m4/dirfd.m4 \ + import/m4/getlogin.m4 \ + import/m4/signal_h.m4 \ + import/m4/sys_socket_h.m4 \ + import/m4/dirname.m4 \ + import/m4/00gnulib.m4 \ + import/m4/dirent_h.m4 \ + import/m4/opendir.m4 \ + import/m4/error.m4 \ + import/m4/extensions.m4 \ + import/m4/fchdir.m4 \ + import/m4/mbsinit.m4 \ + import/m4/__inline.m4 \ + import/m4/extern-inline.m4 \ + import/m4/fnmatch.m4 \ + import/m4/lstat.m4 \ + import/m4/nocrash.m4 \ + import/m4/sys_time_h.m4 \ + import/m4/localcharset.m4 \ + import/m4/open.m4 \ + import/m4/localtime-buffer.m4 \ + import/m4/getprogname.m4 \ + import/m4/wchar_t.m4 \ + import/m4/isnand.m4 \ + import/m4/double-slash-root.m4 \ + import/m4/malloca.m4 \ + import/m4/fcntl.m4 \ + import/m4/frexpl.m4 \ + import/m4/strerror.m4 \ + import/m4/glob_h.m4 \ + import/m4/tempname.m4 \ + import/m4/memmem.m4 \ + import/m4/mbstate_t.m4 diff --git a/gdb/gnulib/update-gnulib.sh b/gdb/gnulib/update-gnulib.sh index 3dcafeb3e6..6c10c8a8c4 100755 --- a/gdb/gnulib/update-gnulib.sh +++ b/gdb/gnulib/update-gnulib.sh @@ -167,3 +167,9 @@ if [ $? -ne 0 ]; then exit 1 fi +# Update aclocal-m4-deps.mk +cat > aclocal-m4-deps.mk <