summaryrefslogtreecommitdiff
path: root/cfg.mk
Commit message (Collapse)AuthorAgeFilesLines
* build: fix _Noreturn compilation failurePádraig Brady2023-04-101-1/+1
| | | | | | | | | Fix a build failure seen on gcc 3.4 on Solaris 10 at least. * src/crctab.c: Ensure we include config.h for all compilation units. This is now required for new _Noreturn usage in gnulib for stdint.h. * src/cksum.c: Update generation code to ensure config.h included. * cfg.mk: Remove crctab.c exclusion from the config.h check.
* maint: post-release administriviaPádraig Brady2023-03-201-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: fix some typos in commentsChuanGang Jiang2023-02-101-1/+1
| | | | | | | | | * NEWS: s/commmand/command/ * cfg.mk: Adjust old_NEWS_hash with `make update-NEWS-hash`. * src/expand-common.c: s/specifed/specified/ * src/pr.c: s/e.g/e.g./ * tests/misc/comm.pl: s/ouput/output/ Fixes https://bugs.gnu.org/61405
* cksum: accept new option: --base64 (-b)Jim Meyering2023-01-311-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/digest.c [HASH_ALGO_CKSUM]: Include "base64.h" [HASH_ALGO_CKSUM] (base64_digest): New global. [HASH_ALGO_CKSUM] (enum BASE64_DIGEST_OPTION): New enum. [HASH_ALGO_CKSUM] (long_options): Add "base64". (valid_digits): Rename from hex_digits, now taking an input length argument. Adjust callers. (bsd_split_3): Rename arg from hex_digits to digest. Add new *d_len parameter for length of extracted digest. Move "i" declaration down to first use. (split_3): Rename arg from hex_digits to digest. Add new *d_len parameter for length of extracted digest. Instead of relying on "known" length of digest to find the following must-be-whitespace byte, search for the first whitespace byte. [HASH_ALGO_CKSUM] (output_file): Handle base64_digest. [HASH_ALGO_CKSUM] (main): Set base64_digest. [HASH_ALGO_CKSUM] (b64_equal): New function. (hex_equal): New function, factored out of digest_check. (digest_check) Factored part into b64_equal and hex_equal. Rename local hex_digest to digest. * tests/misc/cksum-base64.pl: Add tests. * tests/local.mk (all_tests): Add to the list. * cfg.mk (_cksum): Define. (exclude_file_name_regexp--sc_prohibit_test_backticks): Exempt new test. (exclude_file_name_regexp--sc_long_lines): Likewise. * doc/coreutils.texi (cksum invocation): Document it. (md5sum invocation) [--check]: Mention digest encoding auto-detect. * NEWS (New Features): Mention this.
* build: avoid spurious failures due to lack of EGREP definitionJim Meyering2023-01-301-1/+1
| | | | | | * configure.ac: Use AC_PROG_EGREP, since many doc and test rules use $EGREP. * cfg.mk (sc_tests_list_consistency): Use grep -E, not $(EGREP) here.
* copy: immediately fail with transient reflink errorsPádraig Brady2023-01-061-1/+1
| | | | | | | | | | | | | | | | * src/copy.c (handle_clone_fail): A new function refactored from copy_reg() to handle failures from FICLONE or fclonefileat(). Fail with all errors from FICLONE, unless they're from the set indicating the file system or file do not support the clone operation. Also fail with errors from fclonefileat() (dest_dest < 0) if they're from the set indicating a transient failure for the file. (copy_ref): Call handle_clone_fail() after fclonefileat() and FICLONE. (sparse_copy): Call the refactored is_CLONENOTSUP() which is now also used by the new handle_clone_fail() function. * NEWS: Mention the bug fix. Also mention explicitly the older --reflink=auto default change to aid searching. * cfg.mk: Adjust old_NEWS_hash with `make update-NEWS-hash`. Fixes https://bugs.gnu.org/60489
* maint: avoid grep warning in sc_prohibit_test_minus_aoBernhard Voelker2023-01-031-1/+1
| | | | | | | | | | | Newer grep(1) complains: $ make sc_prohibit_test_minus_ao /usr/bin/grep: warning: * at start of expression prohibit_test_minus_ao * cfg.mk (exclude_file_name_regexp--sc_prohibit_test_minus_ao): Fix expression inroduced in v8.24-120-g3205bb178, and narrow down the file pattern to the 'doc/' directory.
* maint: update all copyright year number rangesPádraig Brady2023-01-011-1/+1
| | | | | | | | | | Update to latest gnulib with new copyright year. Run "make update-copyright" and then... * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Manually update copyright year, until we fully sync with gnulib at a later stage. * tests/sample-test: Adjust to use the single most recent year.
* maint: fix cfg.mk commentPaul Eggert2022-11-151-4/+1
| | | | * cfg.mk (sc_texi_long_option_escaped): Fix comment.
* maint: avoid new grep -q syntax-check failuresPádraig Brady2022-11-151-3/+7
| | | | | | | * cfg.mk: Exclude NEWS from the check. * init.cfg: s/grep -q/grep >/dev/null/. * tests/ls/hyperlink.sh: Likewise. * tests/ls/symlink-quote.sh: Likewise.
* maint: avoid misquoting of some --long-options in texiPádraig Brady2022-11-151-0/+8
| | | | | | | | * cfg.mk (sc_texi_long_option_escaped): A new check to avoid future instances of this. * doc/coreutils.texi (Common options): Rearrange this menu to be less repetitive in each description, and avoid long lines. Addresses https://bugs.gnu.org/59262
* maint: prefer POSIX-compatible EREsPaul Eggert2022-06-201-7/+11
| | | | | | | | | | * cfg.mk (begword, endword): New macros. (sc_prohibit_stat_macro_address, sc_prohibit_fail_0) (sc_prohibit_short_facl_mode_spec, sc_require_stdio_safer) (sc_prohibit_sleep, sc_prohibit_framework_failure) (sc_marked_devdiagnostics): * build-aux/gen-single-binary.sh: Prefer POSIX-compatible EREs to GNU extensions like \w and \<.
* maint: avoid \] in REsPaul Eggert2022-06-031-3/+3
| | | | | * cfg.mk (sc_dd_max_sym_length, sc_prohibit_man_see_also_period): Do not rely on undefined interpretation of \] in regular expressions.
* maint: post-release administriviaPádraig Brady2022-04-151-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: address syntax-check issues in recent commitPádraig Brady2022-03-071-2/+2
| | | | | | * cfg.mk (sc_die_EXIT_FAILURE): Generalize to match any EXIT_ define, and also relax to ignore error() usage with ternary operator. * src/chroot.c (main): Use () to avoid the sc_error_quotes check.
* build: allow readlinkat callsPaul Eggert2022-01-151-6/+0
| | | | | | | Problem reported by Bernhard Voelker in: https://lists.gnu.org/r/coreutils/2022-01/msg00026.html * cfg.mk (sc_prohibit_readlink): Remove. It’s OK to call readlinkat to determine whether a file is a symbolic link.
* maint: update all copyright year number rangesPádraig Brady2022-01-021-1/+1
| | | | | | | | | 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. * tests/sample-test: Adjust to use the single most recent year.
* doc: colorize -> colorPaul Eggert2021-12-241-1/+1
| | | | | | | Living so close to Hollywood I know that "colorize" means adding color to something that was already monochrome, whereas "color" means to give color to something. Coreutils apps color text instead of colorizing it.
* maint: fix recent syntax-check failuresPádraig Brady2021-11-011-1/+1
| | | | | | | | * cfg.mk (exclude_file_name_regexp--sc_system_h_headers): Add chown-core.h to the regexp, to better decouple from system.h. * src/env.c: Remove minmax.h include already included in system.h. * src/libstdbuf.c: Likewise. * src/prog-fprintf.h: Remove doubled semicolon.
* maint: post-release administriviaPádraig Brady2021-09-241-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* digest: refactor cksum(1) into digest.cPádraig Brady2021-09-151-2/+2
| | | | | | | | | | | | | | | | * cfg.mk: Adjust cksum.c to not require config.h and support a main (for crctab) without calling bindtextdomain(). * po/POTFILES.in: Remove cksum_pclmul.c since it no longer concerns itself with diagnostics. * src/cksum.c: Refactor to just providing stream digest, and digest printing functionality. * src/cksum.h: Adjust to the new interface. * src/cksum_pclmul.c: Remove diagnostics, and determine errors internally. * src/crctab.c: Separate from cksum.h since that's now included multiple times. * src/digest.c: Provide cksum(1) functionality if -DHASH_ALGO_CKSUM * src/local.mk: Adjust to new crctab.c and HASH_ALGO_CKSUM define.
* build: update gnulib submodule to latestPádraig Brady2021-09-091-1/+2
| | | | | | * gnulib: Update to latest. This fixes a gnulib test failure in base64, among other fixes. * cfg.mk: Disable sc_indent as auto indent is too invasive for now.
* maint: avoid new syntax-check failureJim Meyering2021-08-251-2/+2
| | | | | | | | | | find-mount-point.h rightly includes <stdlib.h> for its use of _GL_ATTRIBUTE_DEALLOC_FREE, which uses free, yet that new inclusion provoked a syntax-check failure. Exempt this header file as we've done for others. * cfg.mk (exclude_file_name_regexp--sc_system_h_headers): Add find-mount-point.h to the regexp. (sc_system_h_headers): Use grep -E, for a more readable regexp.
* maint: use "char const *" rather than "const char *"Pádraig Brady2021-04-111-0/+7
| | | | | | * cfg.mk (sc_prohibit-const-char): Add a new syntax-check to enforce this style. * *.[ch]: sed -i 's/const char \*/char const */g'
* maint: update all copyright year number rangesPádraig Brady2021-01-011-1/+1
| | | | | | | | | 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. * tests/sample-test: Adjust to use the single most recent year.
* tests: simplify since expr now works on bignumsPaul Eggert2020-07-081-8/+0
| | | | | | | | | | | | * cfg.mk (sc_prohibit_expr_unsigned): Remove. * tests/dd/skip-seek-past-dev.sh (DEV_OFLOW): * tests/id/setgid.sh (gp1): * tests/misc/cut-huge-range.sh (CUT_MAX): * tests/misc/expr.pl: * tests/misc/sort-discrim.sh: Assume expr works on bignums. * tests/misc/cut-huge-range.sh (subtract_one): Remove; no longer needed.
* maint: copy FDL from gnulib instead of using it as moduleBernhard Voelker2020-05-251-0/+2
| | | | | | | | | | | | | | | | Since the previous gnulib update, bootstrap outputs this warning: Notice from module fdl: Don't use this module! Instead, copy the referenced license file \ into your version control repository. See gnulib commit: https://git.sv.gnu.org/cgit/gnulib.git/commit/?id=88fc5afbccc9 * bootstrap.conf (gnulib_modules): Remove 'fdl'. * doc/fdl.texi: Add file as a copy of 'gnulib/doc/fdl.texi'. * doc/.gitignore (/fdl.texi): Remove entry. * cfg.mk (FILTER_LONG_LINES): Add pattern for the 'fdl.texi' file.
* maint: fix syntax-check failure from recent adjustmentBernhard Voelker2020-05-231-1/+1
| | | | * cfg.mk (old_NEWS_hash): Regenerate after commit v8.32-15-g6d0107a37
* maint: post-release administriviaPádraig Brady2020-03-051-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* tests: fix incorrect `|| fail` pattern in testsPádraig Brady2020-02-291-0/+8
| | | | | | | * tests/ls/stat-free-symlinks.sh: s/|| fail/|| fail=1/. * tests/misc/tee.sh: Likewise. * tests/touch/relative.sh: Likewise. * cfg.mk (sc_prohibit_or_fail): A new syntax-check to avoid this.
* maint: update all copyright year number rangesPádraig Brady2020-01-011-1/+1
| | | | | | | | | 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. * tests/sample-test: Adjust to use the single most recent year.
* maint: fix syntax-check failure from recent adjustmentPádraig Brady2019-12-021-1/+1
| | | | * cfg.mk (old_NEWS_hash): Regenerate after commit v8.31-56-gc1e1965.
* maint: fix error in syntax-check checkingBernhard Voelker2019-08-061-2/+1
| | | | | | | | | | | | | | The previous commit introduced a bug into the following syntax-check, and thus effectively turned it off: $ make sc_prohibit_test_calls_print_ver_with_irrelevant_argument; \ echo $? prohibit_test_calls_print_ver_with_irrelevant_argument fatal: cannot change to 'grep': No such file or directory 0 * cfg.mk (sc_prohibit_test_calls_print_ver_with_irrelevant_argument): Remove changing directory, and pass $(srcdir) as argument to 'git -C'.
* maint: fix issues in syntax-checkAkim Demaille2019-08-041-17/+22
| | | | | | | | | | | | | | | | | | * cfg.mk (sc_prohibit_colon_redirection): Don't expect `|` to denote the pipe character in git grep. (sc_tests_executable) (sc_case_insensitive_file_names) (sc_some_programs_must_avoid_exit_failure) (sc_prohibit_test_background_without_cleanup_) (sc_prohibit_test_calls_print_ver_with_irrelevant_argument) (sc_prohibit_test_ulimit_without_require_) (sc_prohibit_test_background_without_cleanup_) (sc_THANKS_in_duplicates) *sc_prohibit_test_calls_print_ver_with_irrelevant_argument): Don't expect builddir to be a descendant of srcdir. (sc_strftime_check): Don't check file size against 0 when "N\nq\n" was already put in the file. * THANKS.in: Remove me.
* maint: post-release administriviaPádraig Brady2019-03-101-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: fix new syntax-check failure from recent changePádraig Brady2019-01-271-1/+2
| | | | * cfg.mk: Exclude cl-strtold.c wrapper from requiring config.h
* maint: update all copyright year number rangesAssaf Gordon2019-01-011-1/+1
| | | | | | | | | 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. * tests/sample-test: Adjust to use the single most recent year.
* tests: fix skipping in some testsPádraig Brady2018-07-041-0/+5
| | | | | | | | | | | * tests/cp/cp-a-selinux.sh: Use 'skip_' rather than the probably undefined 'skip'. * tests/du/2g.sh: Likewise. * tests/install/install-Z-selinux.sh: Likewise. * tests/misc/chcon.sh: Likewise. * tests/misc/selinux.sh: Likewise. * tests/mkdir/restorecon.sh: Likewise. * cfg.mk (sc_prohibit-skip): A new syntax check to catch the issue.
* maint: post-release administriviaPádraig Brady2018-07-011-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: disable overly agressive sc_gitignore_redundantPádraig Brady2018-06-271-5/+7
| | | | | | * cfg.mk (sc_gitignore_redundant): Disabled for now as too aggressive flagging entries like /lib/arg-nonnull.h in a newly checked out repo.
* doc: retroactively adjust info about tail and closed outputPádraig Brady2018-04-201-1/+1
| | | | | | | | * NEWS: Expand on the 8.28 description of how tail more responsively reacts to closed output, and move from "Improvements" to "Changed behavior". * cfg.mk (old_NEWS_hash): Regenerate. Fixes https://bugs.gnu.org/31225
* doc: retroactively document -e/-u addition in NEWSEric Blake2018-04-051-1/+1
| | | | | | | Prompted by https://bugs.gnu.org/31045 * NEWS: Update 8.8 blurb to mention other split additions. * cfg.mk (old_NEWS_hash): Regenerate.
* maint: update all copyright year number rangesPádraig Brady2018-01-011-1/+1
| | | | | | | | | 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. * tests/sample-test: Adjust to use the single most recent year.
* maint: post-release administriviaPádraig Brady2017-12-271-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: fix new syntax-check failures from HTTPS adjustmentsPádraig Brady2017-09-191-2/+3
| | | | | | | | * cfg.mk [old_NEWS_hash]: update with `make update-NEWS-hash`. [sc_long_lines]: Avoid flagging (long) URLs in NEWS. * src/sort.c: Tweak to a shorter line. * src/tail.c: Likewise. Introduced in v8.28-4-gbe87d61
* all: prefer HTTPS in URLsPaul Eggert2017-09-191-2/+2
|
* maint: post-release administriviaPádraig Brady2017-09-011-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: avoid syntax check failure with wrapped returns_Pádraig Brady2017-03-271-0/+1
| | | | | | * cfg.mk (sc_prohibit_env_returns): Allow wrapped calls to return_ of the form: `wrapper_ returns_ ...` which is needed with the following commit.
* doc: rearrange a recent bug entry to an improvement in NEWSPádraig Brady2017-03-081-1/+1
| | | | | * NEWS: The stat,tail change was an improvement, not a bug fix. * cfg.mk [old_NEWS_hash]: update with `make update-NEWS-hash`.
* maint: post-release administriviaPádraig Brady2017-03-081-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.