]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: fix new syntax-check failures from HTTPS adjustments
authorPádraig Brady <P@draigBrady.com>
Wed, 20 Sep 2017 05:24:39 +0000 (22:24 -0700)
committerPádraig Brady <P@draigBrady.com>
Wed, 20 Sep 2017 05:32:00 +0000 (22:32 -0700)
* 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

cfg.mk
src/sort.c
src/tail.c

diff --git a/cfg.mk b/cfg.mk
index a20d2b08f41b1a67f84ff77c9df4cd96a2aab48a..eb04fd830b94cc769fd44bc6277b6cdc687ac769 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -48,7 +48,7 @@ export VERBOSE = yes
 # 4914152 9e
 export XZ_OPT = -8e
 
-old_NEWS_hash = 0c14d8be06bfd7cc0024b7d39fdd6e1e
+old_NEWS_hash = 8c2a749f657a6bd541e8b9c5227fe26f
 
 # Add an exemption for sc_makefile_at_at_check.
 _makefile_at_at_check_exceptions = ' && !/^cu_install_prog/ && !/dynamic-dep/'
@@ -320,11 +320,12 @@ sc_prohibit-gl-attributes:
          $(_sc_search_regexp)
 
 # Look for lines longer than 80 characters, except omit:
-# - program-generated long lines in diff headers,
+# - urls
 # - the help2man script copied from upstream,
 # - tests involving long checksum lines, and
 # - the 'pr' test cases.
 FILTER_LONG_LINES =                                            \
+  \|^[^:]*NEWS:.*https\{,1\}://| d;                                    \
   \|^[^:]*man/help2man:| d;                                    \
   \|^[^:]*tests/misc/sha[0-9]*sum.*\.pl[-:]| d;                        \
   \|^[^:]*tests/pr/|{ \|^[^:]*tests/pr/pr-tests:| !d; };
index e5ef8a72f3b56604269a145d509ca9a9bb325a47..8f16ec41dff601e6d51105189cc0faefe616938c 100644 (file)
@@ -3193,7 +3193,7 @@ sequential_sort (struct line *restrict lines, size_t nlines,
   if (nlines == 2)
     {
       /* Declare 'swap' as int, not bool, to work around a bug
-         <https://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html>
+        <https://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html>
          in the IBM xlc 6.0.0.0 compiler in 64-bit mode.  */
       int swap = (0 < compare (&lines[-1], &lines[-2]));
       if (to_temp)
index 847c7096fbfd9c8c3bb51d0b5099d8d6d2a57a68..1c7418d343e7f1bde1900f63d6d5d7c7229fe28e 100644 (file)
@@ -2027,7 +2027,7 @@ tail_file (struct File_spec *f, uintmax_t n_units)
             {
               /* Note: we must use read_pos here, not stats.st_size,
                  to avoid a race condition described by Ken Raeburn:
-        https://lists.gnu.org/archive/html/bug-textutils/2003-05/msg00007.html */
+       https://lists.gnu.org/archive/html/bug-textutils/2003-05/msg00007.html */
               record_open_fd (f, fd, read_pos, &stats, (is_stdin ? -1 : 1));
               f->remote = fremote (fd, pretty_name (f));
             }