]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: refresh stale local gnulib patch files
authorJim Meyering <meyering@redhat.com>
Fri, 27 Jul 2012 10:15:32 +0000 (12:15 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 27 Jul 2012 10:15:32 +0000 (12:15 +0200)
We carry local adjustments for a few gnulib modules via the
patches in gl/.  Nearly all of those patches had become stale
due to evolution of the originals in gnulib.

To refresh them, first make sure you have no local changes in gl/
or in the gnulib submodule, then run "make refresh-gnulib-patches".

gl/lib/regcomp.c.diff
gl/lib/regex_internal.c.diff
gl/lib/regex_internal.h.diff
gl/lib/regexec.c.diff
gl/lib/tempname.c.diff
gl/lib/tempname.h.diff
gl/modules/link-tests.diff
gl/modules/rename-tests.diff
gl/modules/tempname.diff

index e9656736113e6d94461ebcc3fb6bc8f8daed97b0..9042a6e47159fc409e251a4437ca56d9e055bd4d 100644 (file)
@@ -1,8 +1,8 @@
 diff --git a/lib/regcomp.c b/lib/regcomp.c
-index d5968bd..4926676 100644
+index 6d5525a..c9331d4 100644
 --- a/lib/regcomp.c
 +++ b/lib/regcomp.c
-@@ -541,7 +541,7 @@ regerror (errcode, preg, errbuf, errbuf_size)
+@@ -539,7 +539,7 @@ regerror (errcode, preg, errbuf, errbuf_size)
      size_t errbuf_size;
  #else /* size_t might promote */
  size_t
@@ -11,7 +11,7 @@ index d5968bd..4926676 100644
          char *_Restrict_ errbuf, size_t errbuf_size)
  #endif
  {
-@@ -1415,7 +1415,7 @@ calc_first (void *extra, bin_tree_t *node)
+@@ -1421,7 +1421,7 @@ calc_first (void *extra, bin_tree_t *node)
 
  /* Pass 2: compute NEXT on the tree.  Preorder visit.  */
  static reg_errcode_t
@@ -20,7 +20,7 @@ index d5968bd..4926676 100644
  {
    switch (node->token.type)
      {
-@@ -2792,8 +2792,10 @@ build_range_exp (const reg_syntax_t synt
+@@ -2807,8 +2807,10 @@ build_range_exp (const reg_syntax_t syntax,
  static reg_errcode_t
  internal_function
  # ifdef RE_ENABLE_I18N
@@ -33,7 +33,7 @@ index d5968bd..4926676 100644
  # else /* not RE_ENABLE_I18N */
  build_collating_symbol (bitset_t sbcset, const unsigned char *name)
  # endif /* not RE_ENABLE_I18N */
-@@ -3377,7 +3379,8 @@ parse_bracket_exp (re_string_t *regexp,
+@@ -3392,7 +3394,8 @@ parse_bracket_exp (re_string_t *regexp, re_dfa_t *dfa, re_token_t *token,
 
  static reg_errcode_t
  parse_bracket_element (bracket_elem_t *elem, re_string_t *regexp,
@@ -43,7 +43,7 @@ index d5968bd..4926676 100644
                       reg_syntax_t syntax, bool accept_hyphen)
  {
  #ifdef RE_ENABLE_I18N
-@@ -3464,8 +3467,10 @@ parse_bracket_symbol (bracket_elem_t *elem, re_string_t *regexp,
+@@ -3479,8 +3482,10 @@ parse_bracket_symbol (bracket_elem_t *elem, re_string_t *regexp,
 
  static reg_errcode_t
  #ifdef RE_ENABLE_I18N
@@ -56,7 +56,7 @@ index d5968bd..4926676 100644
  #else /* not RE_ENABLE_I18N */
  build_equiv_class (bitset_t sbcset, const unsigned char *name)
  #endif /* not RE_ENABLE_I18N */
-@@ -3869,7 +3874,7 @@ free_token (re_token_t *node)
+@@ -3886,7 +3891,7 @@ free_token (re_token_t *node)
     and its children. */
 
  static reg_errcode_t
index 2cede3c07d81cecbcc1edd03d67a4bb084a55ce0..a27f67218c3f0fe9aed91c5e6879dfa95feb0b50 100644 (file)
@@ -1,17 +1,17 @@
 diff --git a/lib/regex_internal.c b/lib/regex_internal.c
-index 904b88e..61c8d9d 100644
+index 7e8c1bc..e68c9da 100644
 --- a/lib/regex_internal.c
 +++ b/lib/regex_internal.c
-@@ -18,6 +18,8 @@
-    with this program; if not, write to the Free Software Foundation,
-    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+@@ -16,6 +16,8 @@
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, see <http://www.gnu.org/licenses/>.  */
 
 +#include "verify.h"
 +#include "intprops.h"
  static void re_string_construct_common (const char *str, Idx len,
                                        re_string_t *pstr,
                                        RE_TRANSLATE_TYPE trans, bool icase,
-@@ -1390,7 +1392,10 @@ static void
+@@ -1393,7 +1395,10 @@ static void
  internal_function
  re_node_set_remove_at (re_node_set *set, Idx idx)
  {
index d1506a6f57e209ee2a79a2de60c093d49e41afa1..fe0f2b71898216cf694e4b3bd7806c3bdeb5ed33 100644 (file)
@@ -1,14 +1,14 @@
-diff --git i/lib/regex_internal.h w/lib/regex_internal.h
-index 859832f..3c7fe06 100644
---- i/lib/regex_internal.h
-+++ w/lib/regex_internal.h
-@@ -826,7 +826,8 @@ re_string_wchar_at (const re_string_t *pstr, Idx idx)
-
+diff --git a/lib/regex_internal.h b/lib/regex_internal.h
+index 2b9f697..7f4e349 100644
+--- a/lib/regex_internal.h
++++ b/lib/regex_internal.h
+@@ -823,7 +823,8 @@ re_string_wchar_at (const re_string_t *pstr, Idx idx)
+ # ifndef NOT_IN_libc
  static int
  internal_function __attribute ((pure))
 -re_string_elem_size_at (const re_string_t *pstr, Idx idx)
 +re_string_elem_size_at (const re_string_t *pstr _UNUSED_PARAMETER_,
 +                      Idx idx _UNUSED_PARAMETER_)
  {
- # ifdef _LIBC
+ #  ifdef _LIBC
    const unsigned char *p, *extra;
index d9b6d1cd5eafde1fe2d3940a9d214d5c152d3afe..897d2483958f6891d961cd078150f56c2f01046c 100644 (file)
@@ -1,17 +1,17 @@
 diff --git a/lib/regexec.c b/lib/regexec.c
-index 21a8166..7762437 100644
+index 7d130a0..a58d454 100644
 --- a/lib/regexec.c
 +++ b/lib/regexec.c
-@@ -18,6 +18,8 @@
-    with this program; if not, write to the Free Software Foundation,
-    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+@@ -16,6 +16,8 @@
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, see <http://www.gnu.org/licenses/>.  */
 
 +#include "verify.h"
 +#include "intprops.h"
  static reg_errcode_t match_ctx_init (re_match_context_t *cache, int eflags,
                                     Idx n) internal_function;
  static void match_ctx_clean (re_match_context_t *mctx) internal_function;
-@@ -378,8 +380,11 @@ re_search_2_stub (struct re_pattern_buffer *bufp,
+@@ -374,8 +376,11 @@ re_search_2_stub (struct re_pattern_buffer *bufp,
    Idx len = length1 + length2;
    char *s = NULL;
 
@@ -25,7 +25,7 @@ index 21a8166..7762437 100644
 
    /* Concatenate the strings.  */
    if (length2 > 0)
-@@ -431,11 +436,14 @@ re_search_stub (struct re_pattern_buffer *bufp,
+@@ -426,11 +431,14 @@ re_search_stub (struct re_pattern_buffer *bufp,
    Idx last_start = start + range;
 
    /* Check for out-of-range.  */
index b1c223610c3d859a263c9a8ab28be466d1c09185..a7314217136fa570187919924f017ee61d9f1bb4 100644 (file)
@@ -1,8 +1,8 @@
-diff --git c/lib/tempname.c i/lib/tempname.c
-index 2da5afe..562955a 100644
---- c/lib/tempname.c
-+++ i/lib/tempname.c
-@@ -22,6 +22,7 @@
+diff --git a/lib/tempname.c b/lib/tempname.c
+index 26a38ce..5944ee0 100644
+--- a/lib/tempname.c
++++ b/lib/tempname.c
+@@ -20,6 +20,7 @@
  #if !_LIBC
  # include <config.h>
  # include "tempname.h"
@@ -10,7 +10,7 @@ index 2da5afe..562955a 100644
  #endif
 
  #include <sys/types.h>
-@@ -49,6 +50,7 @@
+@@ -47,6 +48,7 @@
  # error report this to bug-gnulib@gnu.org
  #endif
 
@@ -18,7 +18,7 @@ index 2da5afe..562955a 100644
  #include <stddef.h>
  #include <stdlib.h>
  #include <string.h>
-@@ -179,14 +181,21 @@ __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
+@@ -175,14 +177,21 @@ __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
  }
  #endif /* _LIBC */
 
@@ -41,8 +41,8 @@ index 2da5afe..562955a 100644
 +   this function.  TMPL is overwritten with the result.
 
     KIND may be one of:
-    __GT_NOCREATE:     simply verify that the name does not exist
-@@ -197,23 +206,24 @@ static const char letters[] =
+    __GT_NOCREATE:       simply verify that the name does not exist
+@@ -193,23 +202,24 @@ static const char letters[] =
 
     We use a clever algorithm to get hard-to-predict names. */
  int
@@ -72,7 +72,7 @@ index 2da5afe..562955a 100644
  #define ATTEMPTS_MIN (62 * 62 * 62)
 
    /* The number of times to attempt to generate a temporary file.  To
-@@ -225,43 +235,28 @@ __gen_tempname (char *tmpl, int suffixlen, int flags, int kind)
+@@ -221,43 +231,28 @@ __gen_tempname (char *tmpl, int suffixlen, int flags, int kind)
  #endif
 
    len = strlen (tmpl);
@@ -128,7 +128,7 @@ index 2da5afe..562955a 100644
 
        switch (kind)
          {
-@@ -276,7 +271,7 @@ __gen_tempname (char *tmpl, int suffixlen, int flags, int kind)
+@@ -272,7 +267,7 @@ __gen_tempname (char *tmpl, int suffixlen, int flags, int kind)
            break;
 
          case __GT_NOCREATE:
@@ -137,7 +137,7 @@ index 2da5afe..562955a 100644
               succeeds if __xstat fails because the name does not exist.
               Note the continue to bypass the common logic at the bottom
               of the loop.  */
-@@ -285,11 +280,15 @@ __gen_tempname (char *tmpl, int suffixlen, int flags, int kind)
+@@ -281,11 +276,15 @@ __gen_tempname (char *tmpl, int suffixlen, int flags, int kind)
                if (errno == ENOENT)
                  {
                    __set_errno (save_errno);
@@ -156,7 +156,7 @@ index 2da5afe..562955a 100644
              }
            continue;
 
-@@ -301,13 +300,32 @@ __gen_tempname (char *tmpl, int suffixlen, int flags, int kind)
+@@ -297,13 +296,32 @@ __gen_tempname (char *tmpl, int suffixlen, int flags, int kind)
        if (fd >= 0)
          {
            __set_errno (save_errno);
index 67074459a2b747a983a70b03a17bd464d9203db1..2e885e185ede2612000fcb729220c4217454838b 100644 (file)
@@ -1,7 +1,7 @@
-diff --git c/lib/tempname.h i/lib/tempname.h
-index cd69e7d..9757db2 100644
---- c/lib/tempname.h
-+++ i/lib/tempname.h
+diff --git a/lib/tempname.h b/lib/tempname.h
+index 7972562..7ced9a9 100644
+--- a/lib/tempname.h
++++ b/lib/tempname.h
 @@ -46,5 +46,7 @@
 
     We use a clever algorithm to get hard-to-predict names. */
index 5d0cbc10b0521be50361c6409e4b611a31bfd191..25f71201d937ed3e8e94a6b3f714c897068de599 100644 (file)
@@ -1,8 +1,8 @@
-diff --git i/modules/link-tests w/modules/link-tests
-index d8e7b1a..aca0e74 100644
---- i/modules/link-tests
-+++ w/modules/link-tests
-@@ -12,3 +12,4 @@ configure.ac:
+diff --git a/modules/link-tests b/modules/link-tests
+index 5b1978e..039e97f 100644
+--- a/modules/link-tests
++++ b/modules/link-tests
+@@ -15,3 +15,4 @@ configure.ac:
  Makefile.am:
  TESTS += test-link
  check_PROGRAMS += test-link
index 7f1ff61625ac1e9b5ea06a21841efa0fcef4920d..f7d0e1d34d1e7ca142bfe4bde907d0e3b8bb07d2 100644 (file)
@@ -1,8 +1,8 @@
 diff --git a/modules/rename-tests b/modules/rename-tests
-index be1b423..fea330a 100644
+index b3cd973..898d18b 100644
 --- a/modules/rename-tests
 +++ b/modules/rename-tests
-@@ -14,3 +14,4 @@ configure.ac:
+@@ -20,3 +20,4 @@ configure.ac:
  Makefile.am:
  TESTS += test-rename
  check_PROGRAMS += test-rename
index 65d52053895d005ad09664c5bf82a69f59aa0401..3603a598bb6b8d43a12d113aa5e688e5a97337cf 100644 (file)
@@ -1,5 +1,7 @@
---- tempname   2011-10-27 18:55:14.672722002 +0200
-+++ tempname   2011-10-27 18:55:25.200999149 +0200
+diff --git a/modules/tempname b/modules/tempname
+index b4708d9..e003c41 100644
+--- a/modules/tempname
++++ b/modules/tempname
 @@ -1,5 +1,5 @@
  Description:
 -gen_tempname() function: create a private temporary file or directory.