]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
coreutils: Update to 8.15.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 13 Jan 2012 18:30:25 +0000 (19:30 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 13 Jan 2012 18:30:25 +0000 (19:30 +0100)
Fixes #314

coreutils/coreutils.nm
coreutils/patches/coreutils-i18n.patch
coreutils/patches/coreutils-selinux.patch

index abdfcbb12ee132b89a534e9ea83eae553d4971c4..6b65353266fa4dc0758c5cbe1a32977ac1861706 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = coreutils
-version    = 8.14
-release    = 3
+version    = 8.15
+release    = 1
 
 groups     = System/Base
 url        = http://www.gnu.org/software/coreutils/
@@ -31,7 +31,7 @@ build
                libcap-devel
                libselinux-devel
                ncurses-devel
-               pam-devel
+               pam-devel>=1.1.5
        end
 
        CFLAGS += \
index 9ba6bb4898d95b742f3335f343bcaf448a65d9f6..e2f9f21ed09bb1d5a8adac0fba8970f81399273e 100644 (file)
@@ -10,7 +10,7 @@ diff -urNp coreutils-8.13-orig/lib/linebuffer.h coreutils-8.13/lib/linebuffer.h
 +#  include <wchar.h>
 +# endif
 +
- /* A `struct linebuffer' holds a line of text. */
+ /* A 'struct linebuffer' holds a line of text. */
  
  struct linebuffer
 @@ -28,6 +33,9 @@ struct linebuffer
@@ -1784,8 +1784,8 @@ diff -urNp coreutils-8.13-orig/src/pr.c coreutils-8.13/src/pr.c
  static void getoptarg (char *arg, char switch_char, char *character,
 +                       int *character_length, int *character_width,
                         int *number);
- void usage (int status);
  static void print_files (int number_of_files, char **av);
+ static void init_parameters (int number_of_files);
 @@ -439,7 +491,6 @@ static void store_char (char c);
  static void pad_down (int lines);
  static void read_rest_of_line (COLUMN *p);
@@ -2271,7 +2271,7 @@ diff -urNp coreutils-8.13-orig/src/pr.c coreutils-8.13/src/pr.c
      {
        width = TAB_WIDTH (chars_per_c, input_position);
  
-@@ -2741,6 +2942,154 @@ char_to_clump (char c)
+@@ -2741,6 +2942,155 @@ char_to_clump (char c)
    return chars;
  }
  
@@ -2279,6 +2279,7 @@ diff -urNp coreutils-8.13-orig/src/pr.c coreutils-8.13/src/pr.c
 +static int
 +char_to_clump_multi (char c)
 +{
++  unsigned char uc = c;
 +  static size_t mbc_pos = 0;
 +  static char mbc[MB_LEN_MAX] = {'\0'};
 +  static mbstate_t state = {'\0'};
@@ -2365,7 +2366,7 @@ diff -urNp coreutils-8.13-orig/src/pr.c coreutils-8.13/src/pr.c
 +                      width += 4;
 +                      chars += 4;
 +                      *s++ = '\\';
-+                      sprintf (esc_buff, "%03o", c);
++                      sprintf (esc_buff, "%03o", uc);
 +                      for (j = 0; j <= 2; ++j)
 +                        *s++ = (int) esc_buff[j];
 +                    }
@@ -2386,7 +2387,7 @@ diff -urNp coreutils-8.13-orig/src/pr.c coreutils-8.13/src/pr.c
 +                          width += 4;
 +                          chars += 4;
 +                          *s++ = '\\';
-+                          sprintf (esc_buff, "%03o", c);
++                          sprintf (esc_buff, "%03o", uc);
 +                          for (j = 0; j <= 2; ++j)
 +                            *s++ = (int) esc_buff[j];
 +                        }
@@ -2970,9 +2971,9 @@ diff -urNp coreutils-8.13-orig/src/sort.c coreutils-8.13/src/sort.c
 +}
 +#endif /* HAV_EMBRTOWC */
 +
- static int
- general_numcompare (char const *sa, char const *sb)
- {
+ /* Work around a problem whereby the long double value returned by glibc's
+    strtold ("NaN", ...) contains uninitialized bits: clear all bytes of
+    A and B before calling strtold.  FIXME: remove this function once
 @@ -1942,7 +2305,7 @@ general_numcompare (char const *sa, char
     Return 0 if the name in S is not recognized.  */
  
index 7ebce30d0b836f295c2b73b950359bc56f0a4f5a..3e5c143df72b46baff710805f7fb7fd79ae34db0 100644 (file)
@@ -45,7 +45,7 @@ diff -urNp coreutils-8.13-orig/src/chcon.c coreutils-8.13/src/chcon.c
 +Change the SELinux security context of each FILE to CONTEXT.\n\
  With --reference, change the security context of each FILE to that of RFILE.\n\
  \n\
-   -h, --no-dereference   affect symbolic links instead of any referenced file\n\
+ "), stdout);
 diff -urNp coreutils-8.13-orig/src/copy.c coreutils-8.13/src/copy.c
 --- coreutils-8.13-orig/src/copy.c     2011-07-28 12:38:27.000000000 +0200
 +++ coreutils-8.13/src/copy.c  2011-09-09 10:30:39.564562214 +0200
@@ -243,10 +243,10 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
    };
  
  /* Display letters and indicators for each filetype.
-@@ -283,6 +284,7 @@ static void queue_directory (char const 
+@@ -282,6 +283,7 @@
+                              bool command_line_arg);
  static void sort_files (void);
  static void parse_ls_color (void);
- void usage (int status);
 +static void print_scontext_format (const struct fileinfo *f);
  
  /* Initial size of hash table.
@@ -382,19 +382,6 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
          default:
            usage (LS_FAILURE);
          }
-@@ -2714,8 +2738,10 @@ clear_files (void)
-       struct fileinfo *f = sorted_file[i];
-       free (f->name);
-       free (f->linkname);
--      if (f->scontext != UNKNOWN_SECURITY_CONTEXT)
--        freecon (f->scontext);
-+      if (f->scontext != UNKNOWN_SECURITY_CONTEXT) {
-+               freecon (f->scontext);
-+        f->scontext = NULL;
-+      }
-     }
-   cwd_n_used = 0;
 @@ -2757,6 +2783,7 @@ gobble_file (char const *name, enum file
    memset (f, '\0', sizeof *f);
    f->stat.st_ino = inode;