build-aux/bootstrap

Branch


Log

Author Commit Date CI Message
Bruno Haible 153f0b70 2025-09-08T01:20:01 bootstrap: Improve efficiency of "git clone". * top/bootstrap-funclib.sh (default_gnulib_url): Use read-only mirror of git.savannah.gnu.org. * build-aux/bootstrap: Regenerated.
Collin Funk 9a1a6385 2025-06-09T19:50:35 Silence 'time-stamp' warnings with bleeding-edge Emacs. * build-aux/announce-gen: Use "%Y" instead of "%:y" for the 'time-stamp-format' local variable. * build-aux/do-release-commit-and-tag: Likewise. * build-aux/gendocs.sh: Likewise. * build-aux/git-version-gen: Likewise. * build-aux/gitlog-to-changelog: Likewise. * build-aux/gnu-web-doc-update: Likewise. * build-aux/gnupload: Likewise. * build-aux/move-if-change: Likewise. * build-aux/prefix-gnulib-mk: Likewise. * build-aux/update-copyright: Likewise. * build-aux/useless-if-before-free: Likewise. * build-aux/vc-list-files: Likewise. * top/bootstrap: Likewise. * top/bootstrap-funclib.sh: Likewise. * build-aux/bootstrap: Regenerate.
Bruno Haible e319c0fe 2025-02-16T13:43:40 bootstrap: Fix recognition of --depth option with recent git releases. Reported by Benno Schulenberg <bensberg@telfort.nl> in <https://lists.gnu.org/archive/html/bug-gnulib/2025-02/msg00106.html>. * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Assume that 'git clone' and 'git fetch' support the --depth option. * build-aux/bootstrap: Regenerated.
Bruno Haible 1ec9cc83 2025-02-04T02:00:19 bootstrap: Remove undesired output. * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Silence the initial branch hint. * build-aux/bootstrap: Regenerated.
Bruno Haible 2efde69c 2025-01-26T04:29:59 bootstrap: Remove obsolete code. Reported by Basil L. Contovounesios <basil@contovou.net> in <https://lists.gnu.org/archive/html/bug-gnulib/2025-01/msg00221.html>. * top/bootstrap-funclib.sh (package): Don't look at gl_INIT_PACKAGE invocations. * build-aux/bootstrap: Regenerated.
Bruno Haible b7f27f44 2025-01-23T21:39:35 bootstrap: Make it work with module 'package-version'. Reported by Basil L. Contovounesios <basil@contovou.net> in <https://lists.gnu.org/archive/html/bug-gnulib/2025-01/msg00195.html>. * top/bootstrap-funclib.sh (normalize_package_name): New variable. (extract_package_name): Don't normalize the package name here. (package): Also look at the first argument of a gl_INIT_PACKAGE invocation. * build-aux/bootstrap: Regenerated.
Bruno Haible f536baac 2025-01-09T09:37:41 bootstrap: Support a tag name as GNULIB_REVISION. * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): If $GNULIB_REVISION is a tag name, make sure to add that tag. * build-aux/bootstrap: Regenerated.
Pádraig Brady 7b089321 2025-01-01T09:24:36 maint: run 'make update-copyright'
Simon Josefsson d60c17f0 2024-11-25T17:23:21 bootstrap: avoid sc_prohibit_undesirable_word_seq failure * build-aux/bootstrap: Regenerated.
Pádraig Brady 13df1b49 2024-11-18T16:20:22 maint: avoid sc_prohibit_undesirable_word_seq failure * build-aux/bootstrap: s/can not/cannot/
Bruno Haible 59bf378a 2024-11-13T01:25:26 bootstrap: Tweak GNULIB_REFDIR related changes. * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Improve if/else structure and comments. When cloning GNULIB_REFDIR and no submodule 'gnulib' is configured, switch to the default branch. * top/bootstrap (usage): Update documentation. * build-aux/bootstrap: Regenerated.
Paul Eggert fd902a8e 2024-11-12T13:13:47 bootstrap: avoid "cd" * top/bootstrap-funclib.sh: Avoid "cd". This saves a few subprocesses and is more likely to yield diagnostics that make sense to the user. * build-aux/bootstrap: Regenerate.
Paul Eggert b855d810 2024-11-12T13:00:10 bootstrap: go back to old non-submodule semantics * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): When cloning GNULIB_REFDIR and no submodule 'gnulib' is configured, set the origin’s URL to $gnulib_url and fetch from remote, so that GNULIB_REFDIR is merely an accelerant rather than having different semantics. * build-aux/bootstrap: Regenerate.
Paul Eggert 935bbcb2 2024-11-12T09:28:55 bootstrap: tune Octave bootstrap --gnulib-refdir * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Use GNULIB_REFDIR also when a submodule 'gnulib' is not configured. This greatly speeds up bootstrapping Octave when using ‘./bootstrap --gnulib-refdir=...’. * build-aux/bootstrap: Regenerate.
Bruno Haible f3967bd9 2024-07-21T14:02:58 bootstrap: Avoid failure when gnulib-tool removed gettext.m4. * top/bootstrap-funclib.sh (autogen): When gnulib-tool has removed gettext.m4 but the package needs gettext.m4, repeat the autopoint and gnulib-tool invocations. * build-aux/bootstrap: Regenerated.
Collin Funk 71dd87c3 2024-07-04T04:04:11 Make time-stamp after-save-hooks buffer-local. * build-aux/announce-gen: Pass optional arguments to 'add-hook'. * build-aux/bootstrap: Likewise. * build-aux/do-release-commit-and-tag: Likewise. * build-aux/gendocs.sh: Likewise. * build-aux/git-version-gen: Likewise. * build-aux/gitlog-to-changelog: Likewise. * build-aux/gnu-web-doc-update: Likewise. * build-aux/gnupload: Likewise. * build-aux/move-if-change: Likewise. * build-aux/prefix-gnulib-mk: Likewise. * build-aux/update-copyright: Likewise. * build-aux/useless-if-before-free: Likewise. * build-aux/vc-list-files: Likewise. * top/bootstrap: Likewise. * top/bootstrap-funclib.sh: Likewise.
Bruno Haible bd2252fb 2024-06-30T01:57:51 bootstrap-funclib.sh: Restore readability. * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Add a line break instead of removing spaces. * build-aux/bootstrap: Regenerated.
Jim Meyering 490c8802 2024-06-29T15:08:19 bootstrap-funclib.sh: shrink or split too-long lines * top/bootstrap-funclib.sh: The generated bootstrap file had lines lines that triggered a syntax-check failure. Sure, I could have exempted this file, but it was easy to comply. Besides, this also fixed a quoting bug in the event that ${GNULIB_URL:-$default_gnulib_url} had a value requiring double quotes. * build-aux/bootstrap: Regenerate.
Bruno Haible 92d80242 2024-04-28T11:29:27 bootstrap: Support checking out a recent GNULIB_REVISION, part 2. Reported by Markus Mützel <markus.muetzel@gmx.de> in <https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00507.html>. * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): If using a submodule and the 'git checkout' command fails, fetch the newer commits and then retry it. * build-aux/bootstrap: Regenerated.
Bruno Haible d81a4871 2024-04-27T19:08:06 bootstrap: Support checking out a recent GNULIB_REVISION. Reported by Markus Mützel <markus.muetzel@gmx.de> in <https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00462.html>. * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): If the 'git checkout' command fails, fetch the newer commits and then retry it. * build-aux/bootstrap: Regenerated.
Bruno Haible d84255c1 2024-04-14T01:38:42 bootstrap: Implement phase 1 as documented in the --help output. Reported by Simon Josefsson as bug #1 in <https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00152.html>. * top/bootstrap: Correct indentation. * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Implement as documented: If GNULIB_SRCDIR and GNULIB_REVISION are set and there is a 'gnulib' submodule, checkout the revision GNULIB_REVISION. If GNULIB_SRCDIR and GNULIB_REVISION are set and --no-git is specified, don't checkout the revision GNULIB_REVISION.
Bruno Haible ac8c4111 2024-04-14T00:08:50 bootstrap: Simplify git submodule initialization. * top/bootstrap-funclib.sh (prepare_GNULIB_SRCDIR): Err out if git is older than version 1.6.4. Remove fallback code for older versions. * build-aux/bootstrap: Regenerated.
Bruno Haible 98b5e4a9 2024-04-13T17:23:48 bootstrap: Fix --help messages. Reported by Simon Josefsson in <https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00162.html>. * top/bootstrap (usage): Fix the description of GNULIB_SRCDIR. Document GNULIB_REFDIR. Use full-sentences style. Tweak wording. * top/bootstrap-funclib.sh (autopull_usage): Clarify the phase. Don't mention nonexistent options --gnulib-srcdir and --gnulib-refdir. Use full-sentences style. (autogen_usage): Clarify the phase. Use full-sentences style. * build-aux/bootstrap: Regenerated.
Simon Josefsson 5b92dd0a 2024-01-01T10:31:48 maint: run 'make update-copyright'
Pádraig Brady d1892fd7 2023-12-10T14:46:58 bootstrap: fix option propagation with --bootstrap-sync * top/bootstrap: Ensure options are propagated through upgrade_bootstrap(). * top/bootstrap-funclib.sh: Likewise. * build-aux/bootstrap: Auto generated with `make build-aux/bootstrap`. Fixes https://bugs.gnu.org/67731
Bruno Haible 32ac0e00 2023-08-29T23:34:34 bootstrap: Try to prevent the user from setting GNULIB_URL to a wrong value. * top/bootstrap-funclib.sh: Explain GNULIB_URL better. * top/bootstrap: Likewise. * build-aux/bootstrap: Likewise.
Paul Eggert fbdc9a07 2023-08-29T13:06:41 maint: don’t say “clonable” either The spelling is controversial, and the word adds little of use here.
Paul Eggert dd3ba5c1 2023-08-28T12:21:23 spelling fix: cloneable -> clonable * build-aux/bootstrap, top/bootstrap, top/bootstrap-funclib.sh: Spell it “clonable”, the more common English way, instead of “cloneable”, the Java way. Found while doing spelling check of Coreutils.
Paul Eggert a7f1fa01 2023-07-01T11:18:12 make regen
Paul Eggert 98eac8e4 2023-07-01T11:06:30 make regen
Paul Eggert 295cc7fb 2023-06-08T14:53:51 Spelling fixes Most of these were reported by Josh Soref <jsoref@gmail.com> in: https://lists.gnu.org/r/bug-gnulib/2023-06/msg00057.html except that some are omitted because the original is OK (e.g., "obsolescent"), and some are omitted because they are upstream files and I've fixed them upstream or have filed bug reports, and I made a few nearby corrections to grammar.
Paul Eggert d084ae09 2023-06-06T14:23:39 Put "/" at end of .gitignore directory names * build-aux/bootstrap: Regenerate. * top/bootstrap-funclib.sh (symlink_to_dir, autogen): Put slashes after .gitignore entries that name directories.
Josh Soref dfdf33a4 2023-05-10T13:17:45 bootstrap: spelling/grammar fix in comment * build-aux/bootstrap: As above.
Jim Meyering 0e272413 2023-03-09T09:58:35 bootstrap: correct last change * top/bootstrap-funclib.sh (autogen) [AUTORECONFFLAGS]: Do always apply the --no-recursive option. * build-aux/bootstrap: Regenerate. Spotted by Bruno Haible.
Jim Meyering 074cf4b3 2023-03-09T08:41:07 bootstrap: remove code that accommodated RHEL5's old autoreconf * top/bootstrap-funclib.sh (autogen) [AUTORECONFFLAGS]: RHEL5 has not been supported since 2017. It included (and this code worked around) a version of autoreconf that was so old it did not accept the --no-recursive option. Drop that workaround. * build-aux/bootstrap: Regenerate.
Paul Eggert 5defd965 2023-01-06T11:20:05 bootstrap: suppress stray message from --pull * build-aux/bootstrap: Regenerate. * top/bootstrap-funclib.sh (autopull): Suggest running autogen.sh only if it exists (i.e., the package is using autopull.sh/autogen.sh). Suggest the same name for autogen.sh that is used in the test.
Simon Josefsson 32a72f45 2023-01-01T01:14:21 maint: run 'make update-copyright'
Paul Eggert 7924f0e7 2022-12-27T08:15:38 Add --pull, --gen options to build-aux/bootstrap This supports a single bootstrap script with --pull and --gen options, as an alternative to separate autogen.sh and autopull.sh and bootstrap-funclib.sh auxiliary files. * top/bootstrap: With --version, also output library version. Support update of package that has only the bootstrap script, and not the other three files.
Paul Eggert 816b0d5d 2022-12-27T08:15:38 Support packages with just 'bootstrap' * top/bootstrap: With --version, also output library version. Support update of package that has only the bootstrap script, and not the other three files. * top/bootstrap-funclib.sh (scriptlibversion): Rename from scriptversion. All uses changed. This way we can distinguish script from script library versions. (upgrade_bootstrap): If the package currently has only the bootstrap script, just update that.
Paul Eggert 8319b192 2022-12-27T08:15:37 Bootstrap with functions, not scripts * top/bootstrap: Use autopull and autogen functions, not shell scripts. This lets build-aux/bootstrap become a standalone script. It does not change the behavior of top/bootstrap, except for minor rewording of disagnostics.
Paul Eggert 064ce98a 2022-12-27T08:15:37 Make autopull a shell function too This does not change behavior. It is helpful for future changes. * top/autopull.sh: Call autopull to do the actual work. (usage, download_po_files, update_po_files): Move to top/bootstrap-funclib.sh. * top/bootstrap-funclib.sh (autopull_usage): Rename from ‘usage’. (autopull): New function, containing the top level of the old top/autopull.sh.
Paul Eggert 41ea82c8 2022-12-27T08:15:37 Make autogen a shell function too This does not change behavior. It is helpful for future changes. * top/autogen.sh: Call autogen to do the actual work. (usage, version_controlled_file, gitignore_entries, insert_if_absent): (insert_vc_ignore, symlink_to_dir): Move to top/bootstrap-funclib.sh. * top/bootstrap-funclib.sh (autogen_usage): Rename from ‘usage’. (autogen): New function, containing the top level of the old top/autogen.sh.
Paul Eggert 19d5a873 2022-12-27T08:15:37 Move scriptversion= lines up in scripts By default they need to be in the first 8 lines to be updated.
Arsen Arsenović 5fd9ee20 2022-11-27T20:45:06 bootstrap: Fix --help output. * build-aux/bootstrap (usage): Regenerate.
Bruno Haible 835b3ea8 2022-11-26T15:25:44 In 'trap' commands, prefer symbolic to numeric signal names. Reported by Mike Fulton <fultonm@ca.ibm.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2022-11/msg00130.html>. * gnulib-tool: Use symbolic signal names. * posix-modules: Likewise. * MODULES.html.sh: Likewise. * build-aux/bootstrap (prepare_GNULIB_SRCDIR): Likewise. * build-aux/csharpcomp.sh.in: Likewise. * build-aux/gnu-web-doc-update: Likewise. * top/autogen.sh: Likewise. * top/bootstrap-funclib.sh: Likewise. * top/gitsub.sh: Likewise. * lib/t-idcache: Likewise. * tests/havelib/rpath-1: Likewise. * tests/havelib/rpath-2_a: Likewise. * tests/havelib/rpath-2_b: Likewise. * tests/havelib/rpath-3_a: Likewise. * tests/havelib/rpath-3_b: Likewise. * tests/init.sh: Likewise. * tests/test-binary-io.sh: Likewise. * tests/test-c-stack.sh: Likewise. * tests/test-c-stack2.sh: Likewise. * tests/test-dprintf-posix.sh: Likewise. * tests/test-fpending.sh: Likewise. * tests/test-fprintf-posix.sh: Likewise. * tests/test-lseek.sh: Likewise. * tests/test-printf-posix.sh: Likewise. * tests/test-select-in.sh: Likewise. * tests/test-select-out.sh: Likewise. * tests/test-sigpipe.sh: Likewise. * tests/test-tsearch.sh: Likewise. * tests/test-update-copyright.sh: Likewise. * tests/test-vdprintf-posix.sh: Likewise. * tests/test-vfprintf-posix.sh: Likewise. * tests/test-vprintf-posix.sh: Likewise. * tests/test-xprintf-posix.sh: Likewise. * tests/uniwidth/test-uc_width2.sh: Likewise.
Bruno Haible f00af4ba 2022-07-25T10:21:42 bootstrap: Make the automatic sync more resilient. Reported by Paul Eggert in <https://lists.gnu.org/archive/html/bug-gnulib/2022-07/msg00060.html>. * top/bootstrap (bootstrap_sync): Set to true when bootstrap-funclib.sh is not present. * top/gen-bootstrap.sed: Insert a couple of comment lines. * build-aux/bootstrap: Regenerated using "make build-aux/bootstrap".
Bruno Haible 096abe49 2022-07-24T16:24:37 Split bootstrap into autopull.sh and autogen.sh. * top/bootstrap-funclib.sh: New file, based on build-aux/bootstrap. * top/autopull.sh: New file, based on build-aux/bootstrap. * top/autogen.sh: New file, based on build-aux/bootstrap. * top/bootstrap: New file, based on build-aux/bootstrap. * top/gen-bootstrap.sed: New file. * Makefile (build-aux/bootstrap): New rule. (regen): Depend on it. * build-aux/bootstrap: Regenerated using "make build-aux/bootstrap".
Bruno Haible 21222843 2022-07-24T12:58:44 bootstrap: Obey another environment variable GNULIB_REFDIR. * build-aux/bootstrap (usage): Document option --gnulib-refdir and environment variable GNULIB_REFDIR. Accept option --gnulib-refdir. When GNULIB_SRCDIR is specified, verify that it denotes a directory. Use $GNULIB_REFDIR, not $GNULIB_SRCDIR, as argument to git's --reference option. Improve an error message. * NEWS: Mention the change.
Bruno Haible 27957b76 2022-07-23T13:31:20 Fix a couple of ShellCheck warnings. * MODULES.html.sh (sed_escape_slash): Remove unused variable. * build-aux/bootstrap: Avoid computed printf format strings. * build-aux/do-release-commit-and-tag: Likewise. * build-aux/gendocs.sh: Likewise. * build-aux/declared.sh: Fix "unrecognized option" message. * gnulib-tool (supplied_opts): Remove unused variable. (--single-con): Remove redundant option recognition. * tests/test-parse-duration.sh (nl): Remove unused variable. * tests/test-update-copyright.sh: Use double-quotes instead of single-quotes.
Bruno Haible 82942a6e 2022-07-23T12:01:35 Avoid DoS vulnerability through unsafe default assignment. See https://www.shellcheck.net/wiki/SC2223 . * MODULES.html.sh (func_tmpdir): Surround default assignment with double-quotes. * build-aux/bootstrap: Likewise. * build-aux/csharpcomp.sh.in (func_tmpdir): Likewise. * build-aux/gendocs.sh: Likewise. * build-aux/libtool-next-version (func_tmpdir): Likewise. * config/srclist-update: Likewise. * gnulib-tool (func_tmpdir): Likewise. * posix-modules (func_tmpdir): Likewise. * tests/test-atexit.sh: Likewise. * tests/test-btoc32-1.sh: Likewise. * tests/test-btoc32-2.sh: Likewise. * tests/test-btowc1.sh: Likewise. * tests/test-btowc2.sh: Likewise. * tests/test-c-dtoastr.sh: Likewise. * tests/test-c-ldtoastr.sh: Likewise. * tests/test-c-snprintf.sh: Likewise. * tests/test-c-strcase.sh: Likewise. * tests/test-c-vasprintf.sh: Likewise. * tests/test-c-vsnprintf.sh: Likewise. * tests/test-c-xvasprintf.sh: Likewise. * tests/test-c32isalnum.sh: Likewise. * tests/test-c32isalpha.sh: Likewise. * tests/test-c32isblank.sh: Likewise. * tests/test-c32iscntrl.sh: Likewise. * tests/test-c32isdigit.sh: Likewise. * tests/test-c32isgraph.sh: Likewise. * tests/test-c32islower.sh: Likewise. * tests/test-c32isprint.sh: Likewise. * tests/test-c32ispunct.sh: Likewise. * tests/test-c32isspace.sh: Likewise. * tests/test-c32isupper.sh: Likewise. * tests/test-c32isxdigit.sh: Likewise. * tests/test-c32rtomb.sh: Likewise. * tests/test-c32snrtombs-1.sh: Likewise. * tests/test-c32snrtombs-2.sh: Likewise. * tests/test-c32snrtombs-3.sh: Likewise. * tests/test-c32snrtombs-4.sh: Likewise. * tests/test-c32srtombs-1.sh: Likewise. * tests/test-c32srtombs-2.sh: Likewise. * tests/test-c32srtombs-3.sh: Likewise. * tests/test-c32srtombs-4.sh: Likewise. * tests/test-c32stombs-1.sh: Likewise. * tests/test-c32stombs-2.sh: Likewise. * tests/test-c32stombs-3.sh: Likewise. * tests/test-c32stombs-4.sh: Likewise. * tests/test-closein.sh: Likewise. * tests/test-copy-acl.sh (func_tmpdir): Likewise. * tests/test-copy-file.sh (func_tmpdir): Likewise. * tests/test-dprintf-posix.sh: Likewise. * tests/test-execl.sh: Likewise. * tests/test-execle.sh: Likewise. * tests/test-execlp.sh: Likewise. * tests/test-execv.sh: Likewise. * tests/test-execve.sh: Likewise. * tests/test-execvp.sh: Likewise. * tests/test-execvpe.sh: Likewise. * tests/test-file-has-acl.sh (func_tmpdir): Likewise. * tests/test-fprintf-posix.sh: Likewise. * tests/test-init.sh: Likewise. * tests/test-iswdigit.sh: Likewise. * tests/test-iswxdigit.sh: Likewise. * tests/test-mbmemcasecmp1.sh: Likewise. * tests/test-mbmemcasecmp2.sh: Likewise. * tests/test-mbmemcasecmp3.sh: Likewise. * tests/test-mbmemcasecoll1.sh: Likewise. * tests/test-mbmemcasecoll2.sh: Likewise. * tests/test-mbmemcasecoll3.sh: Likewise. * tests/test-mbrtoc32-1.sh: Likewise. * tests/test-mbrtoc32-2.sh: Likewise. * tests/test-mbrtoc32-3.sh: Likewise. * tests/test-mbrtoc32-4.sh: Likewise. * tests/test-mbrtowc1.sh: Likewise. * tests/test-mbrtowc2.sh: Likewise. * tests/test-mbrtowc3.sh: Likewise. * tests/test-mbrtowc4.sh: Likewise. * tests/test-mbscasecmp.sh: Likewise. * tests/test-mbscasestr2.sh: Likewise. * tests/test-mbscasestr3.sh: Likewise. * tests/test-mbscasestr4.sh: Likewise. * tests/test-mbschr.sh: Likewise. * tests/test-mbscspn.sh: Likewise. * tests/test-mbsinit.sh: Likewise. * tests/test-mbsncasecmp.sh: Likewise. * tests/test-mbsnrtoc32s-1.sh: Likewise. * tests/test-mbsnrtoc32s-2.sh: Likewise. * tests/test-mbsnrtoc32s-3.sh: Likewise. * tests/test-mbsnrtoc32s-4.sh: Likewise. * tests/test-mbsnrtowcs1.sh: Likewise. * tests/test-mbsnrtowcs2.sh: Likewise. * tests/test-mbsnrtowcs3.sh: Likewise. * tests/test-mbsnrtowcs4.sh: Likewise. * tests/test-mbspbrk.sh: Likewise. * tests/test-mbspcasecmp.sh: Likewise. * tests/test-mbsrchr.sh: Likewise. * tests/test-mbsrtoc32s-1.sh: Likewise. * tests/test-mbsrtoc32s-2.sh: Likewise. * tests/test-mbsrtoc32s-3.sh: Likewise. * tests/test-mbsrtoc32s-4.sh: Likewise. * tests/test-mbsrtowcs1.sh: Likewise. * tests/test-mbsrtowcs2.sh: Likewise. * tests/test-mbsrtowcs3.sh: Likewise. * tests/test-mbsrtowcs4.sh: Likewise. * tests/test-mbsspn.sh: Likewise. * tests/test-mbsstr2.sh: Likewise. * tests/test-mbsstr3.sh: Likewise. * tests/test-mbstoc32s-1.sh: Likewise. * tests/test-mbstoc32s-2.sh: Likewise. * tests/test-mbstoc32s-3.sh: Likewise. * tests/test-mbstoc32s-4.sh: Likewise. * tests/test-nl_langinfo.sh: Likewise. * tests/test-parse-duration.sh (func_tmpdir): Likewise. * tests/test-perror.sh: Likewise. * tests/test-printf-posix.sh: Likewise. * tests/test-set-mode-acl.sh (func_tmpdir): Likewise. * tests/test-setlocale1.sh: Likewise. * tests/test-strtod1.sh: Likewise. * tests/test-strtold1.sh: Likewise. * tests/test-unicodeio2.sh: Likewise. * tests/test-unicodeio3.sh: Likewise. * tests/test-vasnprintf-posix2.sh: Likewise. * tests/test-vc-list-files-cvs.sh: Likewise. * tests/test-vc-list-files-git.sh: Likewise. * tests/test-vdprintf-posix.sh: Likewise. * tests/test-vfprintf-posix.sh: Likewise. * tests/test-vprintf-posix.sh: Likewise. * tests/test-wcrtomb.sh: Likewise. * tests/test-wcsnrtombs1.sh: Likewise. * tests/test-wcsnrtombs2.sh: Likewise. * tests/test-wcsnrtombs3.sh: Likewise. * tests/test-wcsnrtombs4.sh: Likewise. * tests/test-wcsrtombs1.sh: Likewise. * tests/test-wcsrtombs2.sh: Likewise. * tests/test-wcsrtombs3.sh: Likewise. * tests/test-wcsrtombs4.sh: Likewise. * tests/test-xprintf-posix.sh: Likewise. * tests/test-xstrtoimax.sh: Likewise. * tests/test-xstrtol.sh: Likewise. * tests/test-xstrtoll.sh: Likewise. * tests/test-xstrtoumax.sh: Likewise. * tests/test-yesno.sh: Likewise. * tests/unicase/test-locale-language.sh: Likewise. * tests/unicase/test-ulc-casecmp1.sh: Likewise. * tests/unicase/test-ulc-casecmp2.sh: Likewise. * tests/unicase/test-ulc-casecoll1.sh: Likewise. * tests/unicase/test-ulc-casecoll2.sh: Likewise. * tests/unigbrk/test-ulc-grapheme-breaks.sh: Likewise. * tests/unistdio/test-u16-vasnprintf2.sh: Likewise. * tests/unistdio/test-u16-vasnprintf3.sh: Likewise. * tests/unistdio/test-u32-vasnprintf2.sh: Likewise. * tests/unistdio/test-u32-vasnprintf3.sh: Likewise. * tests/unistdio/test-u8-vasnprintf2.sh: Likewise. * tests/unistdio/test-u8-vasnprintf3.sh: Likewise. * tests/unistdio/test-ulc-vasnprintf2.sh: Likewise. * tests/unistdio/test-ulc-vasnprintf3.sh: Likewise. * tests/uniwbrk/test-ulc-wordbreaks.sh: Likewise. * tests/uniwidth/test-uc_width2.sh: Likewise.
Bruno Haible 533f8813 2022-07-18T19:55:17 bootstrap: Comments. * build-aux/bootstrap: Comment about two unused variables.
Paul Eggert 762bd0aa 2022-06-03T17:52:19 regex-quote: \] -> ] in EREs and BREs * build-aux/bootstrap: * build-aux/bootstrap.conf (gettext_external): * check-AC_LIBOBJ: * lib/regex-quote.c (bre_special, ere_special): * gnulib-tool (func_modules_transitive_closure) (func_emit_autoconf_snippet, func_import, func_create_testdir): * tests/test-regex-quote.c (test_bre, test_ere): * top/maint.mk (longopt_re, gpg_key_ID): Don’t use \] in BREs and EREs, as POSIX says the interpretation is undefined.
Jim Meyering bb220237 2022-03-20T18:38:50 maint: bootstrap: split a too-long line * build-aux/bootstrap (git_modules_config): Split longer-than-80 line.
Paul Eggert 57d3eb7d 2022-01-25T21:29:16 bootstrap: update scriptversion * build-aux/bootstrap: Update scriptversion. Problem reported by Bjarni Ingi Gislason in: https://lists.gnu.org/r/bug-gnulib/2022-01/msg00164.html
Glenn Washburn 035ce56a 2022-01-05T23:57:25 bootstrap: When a commit is specified, do a shallow fetch if possible. Rationale and explanation: <https://lists.gnu.org/archive/html/bug-gnulib/2021-10/msg00073.html>. * bootstrap: When a commit hash is specified, ask for this specific commit on fetch, and fallback to fetching the entire repository if fetching by commit hash fails.
Paul Eggert eec12c00 2022-01-01T09:43:19 maint: run 'make update-copyright'
Paul Eggert d1981cd1 2021-12-12T17:17:47 bootstrap: refactor for GNU tar * build-aux/bootstrap (gitignore_entries, insert_if_absent) (insert_vc_ignore, symlink_to_dir): Define these shell functions before including bootstrap.conf. This is for GNU tar, whose bootstrap.conf uses symlink_to_dir.
Bruno Haible fd6f32a8 2021-04-11T14:20:08 bootstrap: Implement --version option according to GCS. * build-aux/bootstrap (copyright_year, copyright): New variables. (--version): New option processing.
Simon Josefsson b7da35ae 2021-01-10T01:08:38 Use https:// instead of git://. * build-aux/bootstrap (default_gnulib_url): Ditto. * config/srclistvars.sh: Ditto. * doc/gnulib-readme.texi (Git Checkout): Ditto. * doc/gnulib-tool.texi (VCS Issues): Ditto. * top/gitsub.sh: Update link.
Simon Josefsson bdae9a5d 2021-01-08T11:49:59 bootstrap: Fix parsing of package name. * build-aux/bootstrap (package): Attempt to use autoconf --trace to parse AC_INIT before falling back to sed expression.
Paul Eggert 4b948321 2021-01-01T07:28:52 maint: run 'make update-copyright'
Jose E. Marchesi 9f37c96b 2020-11-22T15:04:03 bootstrap: add option hooks * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define. (bootstrap_option_hook): Likewise. (usage): Call bootstrap_print_option_usage_hook.
Akim Demaille 64e1ff01 2020-04-13T17:39:38 bootstrap: recommend git submodule update --init Reported by Bruno Haible. <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html> * build-aux/bootstrap: recommand "git submodule update --init" rather than "git submodule init".
Paul Eggert 2cdc1baf 2020-01-01T00:00:18 maint: Run 'make update-copyright'
Paul Eggert 60039e9a 2019-10-05T21:36:15 bootstrap: simplify debugging of wget failures Problem reported by Tim Rühsen in: https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html * build-aux/bootstrap (po_download_command_format): Invoke wget with -nv instead of -q, to make debugging easier.
Akim Demaille ce6b5cfa 2018-12-31T19:20:46 bootstrap: die when some submodules are not initialized * build-aux/bootstrap: Make sure all submodules are initialized.
Paul Eggert e6633650 2019-01-01T00:25:11 maint: Run 'make update-copyright'
Akim Demaille 6c3b072e 2018-10-13T07:16:00 bootstrap: fix wget command for po files. * build-aux/bootstrap (po_download_command_format): Fix comment, and adjust callers.
Benno Schulenberg 0ddd440d 2018-10-07T18:20:44 bootstrap, gnulib-tool: use https instead of insecure rsync The rsync command does not do any authentication and thus allows man-in-the-middle attacks. Better use wget over https, although this is slower. * build-aux/bootstrap (download_po_files, po_download_command_format): Don't try using rsync; always use wget over https to fetch PO files. * gnulib-tool (func_import): Likewise. * pygnulib/GLImport.py (GLImport.execute): Likewise.
Benno Schulenberg 7d73965d 2018-10-07T18:20:43 bootstrap, gnulib-tool: correct the translations wget command Using the -np (--no-parent) option doesn't prevent wget from traversing the given URL to a default depth of 5, and since the domain directory contains a href="/latest/" link, this means that wget searches through all domains anyway and will also download PO files that are meant for other packages. When getting the PO files for the nano domain, for example, you will end up with af.po and ast.po (and many others) too, but there are no African nor Asturian translations for nano. So, use the --level option instead, to stop wget from looking any further than the given URL. * build-aux/bootstrap (po_download_command_format2): Restrict recursion to a single level. * gnulib-tool (func_import): Likewise. * pygnulib/GLImport.py (GLImport.execute): Likewise.
Colin Watson 900ca5c0 2018-07-26T17:53:37 bootstrap, gnulib-tool: fix translations rsync Previously, we created files such as $pobase/Makefile.in.in and then the subsequent rsync would immediately delete them. * build-aux/bootstrap (po_download_command_format): Avoid deleting non-.po files in target directory when rsyncing translations. * gnulib-tool (func_import): Likewise. * pygnulib/GLImport.py (GLImport.execute): Likewise.
Jim Meyering 1688c519 2018-07-25T00:08:39 bootstrap: reinstate definition fo gnulib_mk. That variable is used at least by cppi. * build-aux/bootstrap (gnulib_mk): Restore definition. This reverts the deletion from v0.1-1844-gc66dba9ba.
Jim Meyering 8cb31815 2018-06-30T19:57:07 bootstrap: s/--option val/--option=val/ * build-aux/bootstrap (gnulib_tool_options): Change the spelling of "--option val" pairs to "--option=val", for aesthetics, and also so that this file no longer triggers a common help2man syntax-check warning when copied into projects like grep, gzip, etc.
Colin Watson 90f289f2 2018-05-27T22:13:41 bootstrap: document source fetching in --help There are many possibilities for how Gnulib sources are fetched, and they're rather hard to figure out without reading the code. * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
Colin Watson c083cd5a 2018-05-27T22:07:58 bootstrap: allow non-submodule control of gnulib Some projects prefer to avoid git submodules for various reasons (they have rather strange UI), but at present they're the only way to pin a particular gnulib commit. Add a couple of extra variables which can be set in bootstrap.conf to control this separately. * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in bootstrap.conf when fetching gnulib using "git clone" or via GNULIB_SRCDIR.
Paul Smith c66dba9b 2018-04-28T16:37:50 bootstrap: Avoid gnulib operations if not needed * build-aux/bootstrap: Remove unused variable gnulib_mk. Set $gnulib_extra_files early so it can be overridden in .conf. Remove redundant --import flag from $gnulib_tool_options. Set $use_gnulib to false if no gnulib modules or files are needed. If $use_gnulib is false, don't do anything related to gnulib. A lot of this is just whitespace (indentation) changes.
Paul Eggert db0b059a 2018-03-07T00:29:38 maint: write-file-hooks -> before-save-hook write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and it's time to use the recommended replacement. Problem reported by Glenn Morris in: https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html * build-aux/announce-gen, build-aux/bootstrap: * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh: * build-aux/git-version-gen, build-aux/gitlog-to-changelog: * build-aux/gnu-web-doc-update, build-aux/gnupload: * build-aux/move-if-change, build-aux/prefix-gnulib-mk: * build-aux/update-copyright, build-aux/useless-if-before-free: * build-aux/vc-list-files: Update hook usage for files where Gnulib is the canonical source.
Paul Eggert 281b825e 2018-01-01T00:57:25 maint: Run 'make update-copyright'
Jim Meyering 2a3dbe99 2017-11-12T09:13:30 maint: shorten https://lists.gnu.org/archive/html/... links Each /archive/html/ part can be replace with /r/. Run this to induce the change: git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g' * ChangeLog: Perform that substitution. * Makefile: Likewise. * STATUS-libposix: Likewise. * build-aux/bootstrap: Likewise. * doc/maintain.texi: Likewise. * gnulib-tool: Likewise. * lib/allocator.h: Likewise. * lib/argp-ba.c: Likewise. * lib/argp-pv.c: Likewise. * lib/canon-host.c: Likewise. * lib/canonicalize-lgpl.c: Likewise. * lib/float.in.h: Likewise. * lib/fstat.c: Likewise. * lib/getdelim.c: Likewise. * lib/getprogname.c: Likewise. * lib/glthread/thread.h: Likewise. * lib/intprops.h: Likewise. * lib/mbsrtowcs-state.c: Likewise. * lib/safe-read.c: Likewise. * lib/signal.in.h: Likewise. * lib/stat.c: Likewise. * lib/stdbool.in.h: Likewise. * lib/stdio-impl.h: Likewise. * lib/stdio.in.h: Likewise. * lib/sysexits.in.h: Likewise. * lib/timespec.h: Likewise. * lib/wcsrtombs-state.c: Likewise. * m4/alloca.m4: Likewise. * m4/extern-inline.m4: Likewise. * m4/fstatat.m4: Likewise. * m4/gnulib-common.m4: Likewise. * m4/lib-ignore.m4: Likewise. * m4/printf.m4: Likewise. * m4/regex.m4: Likewise. * m4/stat-size.m4: Likewise. * m4/std-gnu11.m4: Likewise. * m4/stdbool.m4: Likewise. * m4/sys_types_h.m4: Likewise. * m4/threadlib.m4: Likewise. * m4/vararrays.m4: Likewise. * pygnulib/GLImport.py: Likewise. * tests/test-exp.h: Likewise. * tests/test-exp2.h: Likewise. * tests/test-expm1.h: Likewise. * tests/test-fflush2.c: Likewise. * tests/test-getopt_long.h: Likewise. * tests/test-intprops.c: Likewise. * tests/test-log.h: Likewise. * tests/test-log10.h: Likewise. * tests/test-log1p.h: Likewise. * tests/test-log2.h: Likewise. * tests/test-printf-posix.h: Likewise. * tests/test-regex.c: Likewise. * tests/test-snprintf-posix.h: Likewise. * tests/test-sprintf-posix.h: Likewise. * tests/test-stdalign.c: Likewise. * tests/test-stdbool.c: Likewise. * tests/test-vasnprintf-posix.c: Likewise. * tests/test-vasprintf-posix.c: Likewise. * top/maint.mk: Likewise.
Paul Eggert b86cc86a 2017-09-19T01:17:50 * build-aux/bootstrap: fix HTTPS typo in comment
Bruno Haible 03eac9d3 2017-09-14T00:35:56 all: Replace many more http URLs by https URLs. Update stale URLs. * users.txt: Remove mention of 'newts'. * lib/localename.c: Update comment about LANG_SOTHO.
Paul Eggert ca35d468 2017-09-13T00:48:18 all: prefer https: URLs
Paul Eggert e89646ad 2017-01-09T11:55:22 maint: time stamp -> timestamp Use the spelling "timestamp", as that is what POSIX uses.
Paul Eggert a3fd683d 2017-01-01T02:59:23 version-etc: new year * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
Eric Blake 4f9007e2 2016-11-03T13:50:30 bootstrap: Fix get_version() for AIX 5.3 * build-aux/bootstrap (get_version): Factor out sed script, since indented comments choke AIX 5.3 sed. Reported-by: Michael Felt <aixtools@gmail.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Paul Eggert 0f9d53cb 2016-01-23T22:41:14 bootstrap: use American spelling * build-aux/bootstrap: Honor American spelling.
Paul Eggert 6118065a 2016-01-12T09:29:40 Port Universal Time settings to strict POSIX * build-aux/announce-gen, build-aux/bootstrap: * build-aux/do-release-commit-and-tag, build-aux/git-version-gen: * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update: * build-aux/gnupload, build-aux/mkinstalldirs: * build-aux/move-if-change, build-aux/prefix-gnulib-mk: * build-aux/update-copyright, build-aux/useless-if-before-free: * build-aux/vc-list-files, tests/test-strftime.c: Use TZ="UTC0", not TZ="UTC". Either works on GNU platforms, but POSIX says the behavior of TZ="UTC" is undefined.
Paul Eggert 71090a2a 2016-01-01T00:56:19 version-etc: new year * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
Pádraig Brady dd929bcb 2015-02-03T03:55:48 bootstrap: exit immediately upon gnulib-tool failure * build-aux/bootstrap: Exit immediately if gnulib-tool fails. This was noticed when gnulib-tool exited early due to failure to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233, but various confusing errors were then given as the build proceeded.
Paul Eggert b9bfe784 2015-01-01T01:38:23 version-etc: new year * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
Martin Kletzander 3914f315 2014-12-08T13:19:12 bootstrap: Allow perl modules in $buildreq With this patch it is possible to put e.g. "perl::XML:XPath -" in $buildreq in bootstrap.conf which will cause a check for perl module XML::XPath using: perl -m"XML::XPath" -e 'exit 0' >/dev/null 2>&1 If this fails due to any other error than XML::XPath missing, it is left on the user to fix up his/her bootstrap.conf. One of the examples might be perl itself missing, which should be in $buildreq and precede any perl::Module specifications. Versioning of perl modules is not supported. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Pádraig Brady 1bbbc2c0 2014-10-23T13:59:08 bootstrap: print more diagnostics for missing programs * build-aux/bootstrap: only suppress stderr when checking for alternative program names. This supports programs issuing non standard error messages like: "Provide an AUTOMAKE_VERSION environment variable, please" Reported by Ingo Schwarze with OpenBSD
Pádraig Brady e94cfb19 2014-10-23T13:26:23 bootstrap: only update the gnulib submodule * build-aux/bootstrap: Restrict the "submodule update" command to the gnulib path. Reported by Reuben Thomas
Eric Blake 1276a2c5 2014-01-01T00:04:40 maint: update copyright I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake fdfe96fe 2013-12-03T17:42:38 bootstrap: warn about BSD toolchain snafu With my help on IRC, Roman Bogorodskiy identified a bug where the BSD autoconf wrapper script eats stdin[1], which in turn causes autopoint from gettext 0.18.3 to fail to find AM_GNU_GETTEXT_VERSION out of configure.ac[2], with this error: ./bootstrap: autopoint --force autopoint: *** Missing version: please specify in configure.ac through a line 'AM_GNU_GETTEXT_VERSION(x.yy.zz)' the gettext version the package is using [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/184479 [2] http://git.sv.gnu.org/cgit/gettext.git/commit/gettext-tools/misc/autopoint.in?id=eea2dddde The workaround would be painful to automate (because gettext hardcodes the use of autom4te rather than honoring ${AUTOM4TE}, we'd have to create a temporary wrapper earlier in $PATH that forwards to the real autom4te-x.yz - basically, repeating the logic of what a wrapper script was supposed to do). Further, while the broken autom4te definitely hurts gettext 0.18.3, it tends to have no issues with gettext 0.18.2; and since the problem has been identified, it will not be long before fixed autom4te and/or improved gettext that is not so stubborn about using exactly 'autom4te' will be available. Therefore, for now we just warn about the situation. * build-aux/bootstrap: Alert users to a broken autom4te. Signed-off-by: Eric Blake <eblake@redhat.com>
Pádraig Brady 25105bbf 2013-08-18T02:05:51 bootstrap: remove the --version requirement from ancillary tools * build-aux/bootstrap (check_exists): A new refactored function to determine if a command exists. (find_tool): Use the new function which does not require the --version option to be supported. (check_versions): Use the new function.
Mike Miller 0ba08775 2013-08-12T23:39:29 bootstrap: port to OpenBSD sed * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which does not interpret `-' as a file argument to mean stdin. Signed-off-by: Eric Blake <eblake@redhat.com>
Pádraig Brady c50edd64 2013-08-08T11:08:49 bootstrap: support checksum utils without a --status option * build-aux/bootstrap: Only look for sha1sum if updating po files. Add sha1 to the list of supported checksum utils since it's now supported through adjustments below. (update_po_files): Remove the use of --status in a way that will suppress all error messages, but since this is only used to minimize updates, it shouldn't cause an issue. Exit early if there is a problem updating the po file checksums. (find_tool): Remove the check for --version support as this is optional as per commit 86186b17. Don't even check for the presence of the command as if that is needed, it's supported through configuring prerequisites in bootstrap.conf. Prompt that when a tool isn't found, one can define an environment variable to add to the hardcoded search list.
Werner LEMBERG 644c4049 2013-06-22T00:52:22 bootstrap: use correct source when copying build-aux files in my setup for ttfautohint (http://repo.or.cz/w/ttfautohint.git) I have the following assignment in `bootstrap.conf': build_aux=gnulib It seems that the patch below is necessary to make this really work (at least it works for me): if I understand the issue correctly, $build_aux is a *destination* variable, so it must not be used for the files listed in $gnulib_extra_files which uses the directory structure of the `gnulib' repository. * build-aux/bootstrap (gnulib_extra_files): This variable is relative to upstream gnulib layout, not downstream. Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake b72ff2a4 2013-07-03T13:48:58 bootstrap: honor --no-git Based on a report by Chandrashekar Shastri, at https://bugzilla.redhat.com/show_bug.cgi?id=979360 The intent behind the original addition of --no-git in commit 824f8d16 was to allow builds on a machine that either has no git, or where git is prevented from using the network; yet where the user had other means of checking out the correct version of gnulib (such as using an NFS share). But in practice, we were still trying to use git, in spite of being told where gnulib-tool already lives. This fixes bootstrap to match the original intent, by avoiding all direct use of git or submodules (any indirect use of git, such as by autopoint, is beyond our control; but at least that use does not require network access). It is still up to the end user to ensure that GNULIB_SRCDIR points to the intended gnulib commit. * build-aux/bootstrap: Don't even try to use git when user is pointing to a static checkout. Signed-off-by: Eric Blake <eblake@redhat.com>