From: Marcin Krol Date: Sat, 28 May 2022 13:21:24 +0000 (+0200) Subject: - merged 9.1 from PLD X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=d564be8ce1adc5b7cafc85bc0f141df7f24200e9;p=packages%2Fcoreutils.git - merged 9.1 from PLD --- diff --git a/coreutils-fmt-wchars.patch b/coreutils-fmt-wchars.patch index 64748ea..e82dde1 100644 --- a/coreutils-fmt-wchars.patch +++ b/coreutils-fmt-wchars.patch @@ -413,7 +413,7 @@ + word_limit->width += xwcwidth (c); + c = xgetwc (f); } -- while (c != EOF && !isspace (c)); +- while (c != EOF && !c_isspace (c)); - in_column += word_limit->length = wptr - word_limit->text; + while (c != WEOF && !isspace (c)); + word_limit->length = wptr - word_limit->text; diff --git a/coreutils-info.patch b/coreutils-info.patch index dc3373a..dc83a42 100644 --- a/coreutils-info.patch +++ b/coreutils-info.patch @@ -1,5 +1,5 @@ ---- coreutils-9.0/doc/coreutils.texi.orig 2021-09-24 13:31:05.000000000 +0200 -+++ coreutils-9.0/doc/coreutils.texi 2021-10-07 17:55:04.486617755 +0200 +--- coreutils-9.1/doc/coreutils.texi.orig 2022-04-15 19:30:07.000000000 +0200 ++++ coreutils-9.1/doc/coreutils.texi 2022-04-17 14:06:21.550894970 +0200 @@ -22,123 +22,112 @@ @syncodeindex pg cp @syncodeindex vr cp @@ -724,7 +724,7 @@ @section @command{csplit}: Split a file into context-determined pieces @pindex csplit -@@ -3736,17 +3718,17 @@ These commands generate just a few numbe +@@ -3737,17 +3719,17 @@ These commands generate just a few numbe contents of files. @menu @@ -749,7 +749,7 @@ @section @command{wc}: Print newline, word, and byte counts @pindex wc -@@ -3872,7 +3854,7 @@ find . -name '*.[ch]' -print0 | +@@ -3873,7 +3855,7 @@ find . -name '*.[ch]' -print0 | @exitstatus @@ -758,7 +758,7 @@ @section @command{sum}: Print checksum and block counts @pindex sum -@@ -3921,7 +3903,7 @@ next section) is preferable in new appli +@@ -3922,7 +3904,7 @@ next section) is preferable in new appli @exitstatus @@ -767,7 +767,7 @@ @section @command{cksum}: Print and verify file checksums @pindex cksum -@@ -3953,7 +3935,7 @@ for each file along with the number of b +@@ -3954,7 +3936,7 @@ for each file along with the number of b and the file name unless no arguments were given. The same usage and options as the @command{b2sum} @@ -776,7 +776,7 @@ In addition @command{cksum} supports the following options. @table @samp -@@ -3996,11 +3978,11 @@ This format has the checksum at the star +@@ -3997,11 +3979,11 @@ This format has the checksum at the star more amenable to further processing by other utilities, especially in combination with the @option{--zero} option. Note this does not identify the digest algorithm used for the checksum. @@ -790,7 +790,7 @@ @section @command{b2sum}: Print or check BLAKE2 digests @pindex b2sum -@@ -4012,7 +3994,7 @@ Note this does not identify the digest a +@@ -4013,7 +3995,7 @@ Note this does not identify the digest a @command{b2sum} computes a 512-bit checksum for each specified @var{file}. The same usage and options as the @command{md5sum} @@ -799,7 +799,7 @@ In addition @command{b2sum} supports the following options. @table @samp -@@ -4027,7 +4009,7 @@ This option is ignored when @option{--ch +@@ -4028,7 +4010,7 @@ This option is ignored when @option{--ch as the length is automatically determined when checking. @end table @@ -808,7 +808,7 @@ @section @command{md5sum}: Print or check MD5 digests @pindex md5sum -@@ -4050,7 +4032,7 @@ fingerprint is considered infeasible at +@@ -4051,7 +4033,7 @@ fingerprint is considered infeasible at to modify certain files, including digital certificates, so that they appear valid when signed with an \hash\ digest. For more secure hashes, consider using SHA-2, or the newer @command{b2sum} command. @@ -817,7 +817,7 @@ @end macro @weakHash{MD5} -@@ -4208,7 +4190,7 @@ Also file name escaping is not used. +@@ -4209,7 +4191,7 @@ Also file name escaping is not used. @exitstatus @@ -826,7 +826,7 @@ @section @command{sha1sum}: Print or check SHA-1 digests @pindex sha1sum -@@ -4220,7 +4202,7 @@ Also file name escaping is not used. +@@ -4221,7 +4203,7 @@ Also file name escaping is not used. @command{sha1sum} computes a 160-bit checksum for each specified @var{file}. The usage and options of this command are precisely the @@ -835,7 +835,7 @@ @weakHash{SHA-1} -@@ -4256,7 +4238,7 @@ various lengths (respectively 224, 256, +@@ -4257,7 +4239,7 @@ various lengths (respectively 224, 256, collectively known as the SHA-2 hashes. The usage and options of these commands are precisely the same as for @command{md5sum} and @command{sha1sum}. @@ -844,7 +844,7 @@ @node Operating on sorted files -@@ -4268,16 +4250,16 @@ and @command{sha1sum}. +@@ -4269,16 +4251,16 @@ and @command{sha1sum}. These commands work with (or produce) sorted files. @menu @@ -868,7 +868,7 @@ @section @command{sort}: Sort text files @pindex sort -@@ -4573,7 +4555,7 @@ appear earlier in the output instead of +@@ -4574,7 +4556,7 @@ appear earlier in the output instead of Sort by hashing the input keys and then sorting the hash values. Choose the hash function at random, ensuring that it is free of collisions so that differing keys have differing hash values. This is @@ -877,7 +877,7 @@ except that keys with the same value sort together. If multiple random sort fields are specified, the same random hash -@@ -4771,7 +4753,7 @@ Set the number of sorts run in parallel +@@ -4772,7 +4754,7 @@ Set the number of sorts run in parallel @var{n} is set to the number of available processors, but limited to 8, as there are diminishing performance gains after that. Note also that using @var{n} threads increases the memory usage by @@ -886,7 +886,7 @@ @item -u @itemx --unique -@@ -4789,7 +4771,7 @@ The commands @code{sort -u} and @code{so +@@ -4790,7 +4772,7 @@ The commands @code{sort -u} and @code{so this equivalence does not extend to arbitrary @command{sort} options. For example, @code{sort -n -u} inspects only the value of the initial numeric string when checking for uniqueness, whereas @code{sort -n | @@ -895,7 +895,7 @@ @optZeroTerminated @macro newlineFieldSeparator -@@ -5002,7 +4984,7 @@ ls */* | sort -t / -k 1,1R -k 2,2 +@@ -5003,7 +4985,7 @@ ls */* | sort -t / -k 1,1R -k 2,2 @end itemize @@ -904,7 +904,7 @@ @section @command{shuf}: Shuffling text @pindex shuf -@@ -5158,7 +5140,7 @@ shuf -r -n 100 -e Head Tail +@@ -5159,7 +5141,7 @@ shuf -r -n 100 -e Head Tail @exitstatus @@ -913,7 +913,7 @@ @section @command{uniq}: Uniquify files @pindex uniq -@@ -5180,7 +5162,7 @@ lines that are not repeated, or all repe +@@ -5181,7 +5163,7 @@ lines that are not repeated, or all repe The input need not be sorted, but repeated input lines are detected only if they are adjacent. If you want to discard non-adjacent duplicate lines, perhaps you want to use @code{sort -u}. @@ -922,7 +922,7 @@ @vindex LC_COLLATE Comparisons honor the rules specified by the @env{LC_COLLATE} -@@ -5345,7 +5327,7 @@ compared. +@@ -5346,7 +5328,7 @@ compared. @exitstatus @@ -931,7 +931,7 @@ @section @command{comm}: Compare two sorted files line by line @pindex comm -@@ -5460,7 +5442,7 @@ $ comm -12 file1 file2 | wc -l # numb +@@ -5461,7 +5443,7 @@ $ comm -12 file1 file2 | wc -l # numb @end table @@ -940,7 +940,7 @@ @section @command{ptx}: Produce permuted indexes @pindex ptx -@@ -5950,7 +5932,7 @@ allowed with System V @command{ptx}. +@@ -5951,7 +5933,7 @@ allowed with System V @command{ptx}. @end itemize @@ -949,7 +949,7 @@ @section @command{tsort}: Topological sort @pindex tsort -@@ -6112,13 +6094,13 @@ in different ways. +@@ -6113,13 +6095,13 @@ in different ways. @chapter Operating on fields @menu @@ -967,7 +967,7 @@ @section @command{cut}: Print selected parts of lines @pindex cut -@@ -6243,7 +6225,7 @@ many fields and want to print all but a +@@ -6244,7 +6226,7 @@ many fields and want to print all but a @exitstatus @@ -976,7 +976,7 @@ @section @command{paste}: Merge lines of files @pindex paste -@@ -6341,7 +6323,7 @@ $ paste -d '%_' num2 let3 num2 +@@ -6342,7 +6324,7 @@ $ paste -d '%_' num2 let3 num2 @exitstatus @@ -985,7 +985,7 @@ @section @command{join}: Join lines on a common field @pindex join -@@ -6873,13 +6855,13 @@ entire lines as the key. +@@ -6874,13 +6856,13 @@ entire lines as the key. These commands operate on individual characters. @menu @@ -1003,7 +1003,7 @@ @section @command{tr}: Translate, squeeze, and/or delete characters @pindex tr -@@ -7291,7 +7273,7 @@ square brackets from interpretation by a +@@ -7303,7 +7285,7 @@ tr -d -- -axM @end itemize @@ -1012,7 +1012,7 @@ @section @command{expand}: Convert tabs to spaces @pindex expand -@@ -7360,7 +7342,7 @@ characters) on each line to spaces. +@@ -7372,7 +7354,7 @@ characters) on each line to spaces. @exitstatus @@ -1021,7 +1021,7 @@ @section @command{unexpand}: Convert spaces to tabs @pindex unexpand -@@ -7423,14 +7405,14 @@ This chapter describes the @command{ls} +@@ -7435,14 +7417,14 @@ This chapter describes the @command{ls} and @command{vdir}, which list information about files. @menu @@ -1041,7 +1041,7 @@ @section @command{ls}: List directory contents @pindex ls -@@ -8325,7 +8307,7 @@ be one of the following: +@@ -8337,7 +8319,7 @@ be one of the following: @item +@var{format} @vindex LC_TIME List timestamps using @var{format}, where @var{format} is interpreted @@ -1050,7 +1050,7 @@ For example, @option{--time-style="+%Y-%m-%d %H:%M:%S"} causes @command{ls} to list timestamps like @samp{2020-03-30 23:45:56}. As with @command{date}, @var{format}'s interpretation is affected by the -@@ -8526,7 +8508,7 @@ This is the default unless the output is +@@ -8538,7 +8520,7 @@ This is the default unless the output is @end table @@ -1059,7 +1059,7 @@ @section @command{dir}: Briefly list directory contents @pindex dir -@@ -8536,10 +8518,10 @@ This is the default unless the output is +@@ -8548,10 +8530,10 @@ This is the default unless the output is -b}; that is, by default files are listed in columns, sorted vertically, and special characters are represented by backslash escape sequences. @@ -1072,7 +1072,7 @@ @section @command{vdir}: Verbosely list directory contents @pindex vdir -@@ -8549,9 +8531,9 @@ and special characters are represented b +@@ -8561,9 +8543,9 @@ and special characters are represented b -b}; that is, by default files are listed in long format and special characters are represented by backslash escape sequences. @@ -1084,7 +1084,7 @@ @section @command{dircolors}: Color setup for @command{ls} @pindex dircolors -@@ -8638,16 +8620,16 @@ This chapter describes the commands for +@@ -8656,16 +8638,16 @@ This chapter describes the commands for copying, moving (renaming), and deleting (removing). @menu @@ -1108,7 +1108,7 @@ @section @command{cp}: Copy files and directories @pindex cp -@@ -9142,7 +9124,7 @@ option, and overrides the @option{--pres +@@ -9160,7 +9142,7 @@ option, and overrides the @option{--pres @exitstatus @@ -1117,7 +1117,7 @@ @section @command{dd}: Convert and copy a file @pindex dd -@@ -9683,7 +9665,7 @@ environment variable is set. +@@ -9740,7 +9722,7 @@ environment variable is set. @exitstatus @@ -1126,7 +1126,7 @@ @section @command{install}: Copy files and set attributes @pindex install -@@ -9865,7 +9847,7 @@ This option is mutually exclusive with t +@@ -9922,7 +9904,7 @@ This option is mutually exclusive with t @exitstatus @@ -1135,7 +1135,7 @@ @section @command{mv}: Move (rename) files @pindex mv -@@ -10011,7 +9993,7 @@ to the system default type for destinati +@@ -10068,7 +10050,7 @@ to the system default type for destinati @exitstatus @@ -1144,7 +1144,7 @@ @section @command{rm}: Remove files or directories @pindex rm -@@ -10177,7 +10159,7 @@ predates the development of the @code{ge +@@ -10234,7 +10216,7 @@ predates the development of the @code{ge @exitstatus @@ -1153,7 +1153,7 @@ @section @command{shred}: Remove files more securely @pindex shred -@@ -10187,7 +10169,7 @@ predates the development of the @code{ge +@@ -10244,7 +10226,7 @@ predates the development of the @code{ge @command{shred} overwrites devices or files, to help prevent even extensive forensics from recovering the data. @@ -1162,7 +1162,7 @@ and metadata are not actually destroyed. Only the file's directory entry is removed, and the file's storage is reclaimed only when no process has the file open and no other directory entry links to the -@@ -10474,18 +10456,18 @@ Besides directories, other special file +@@ -10531,18 +10513,18 @@ Besides directories, other special file (FIFOs), symbolic links, sockets, and so-called @dfn{special files}. @menu @@ -1190,7 +1190,7 @@ @section @command{link}: Make a hard link via the link syscall @pindex link -@@ -10498,7 +10480,7 @@ It is a minimalist interface to the syst +@@ -10555,7 +10537,7 @@ It is a minimalist interface to the syst @code{link} function. @xref{Hard Links, , , libc, The GNU C Library Reference Manual}. It avoids the bells and whistles of the more commonly-used @@ -1199,7 +1199,7 @@ Synopsis: @example -@@ -10524,7 +10506,7 @@ to specify which behavior is desired. +@@ -10581,7 +10563,7 @@ to specify which behavior is desired. @exitstatus @@ -1208,7 +1208,7 @@ @section @command{ln}: Make links between files @pindex ln -@@ -10711,7 +10693,7 @@ ln -srv /a/file /tmp +@@ -10768,7 +10750,7 @@ ln -srv /a/file /tmp Relative symbolic links are generated based on their canonicalized containing directory, and canonicalized targets. I.e., all symbolic links in these file names will be resolved. @@ -1217,7 +1217,7 @@ over relative file name generation, as demonstrated in the following example: @example -@@ -10788,7 +10770,7 @@ ln -s ../adir/afile yetanotherfile +@@ -10845,7 +10827,7 @@ ln -s ../adir/afile yetanotherfile @end example @@ -1226,7 +1226,7 @@ @section @command{mkdir}: Make directories @pindex mkdir -@@ -10866,7 +10848,7 @@ Print a message for each created directo +@@ -10923,7 +10905,7 @@ Print a message for each created directo @exitstatus @@ -1235,7 +1235,7 @@ @section @command{mkfifo}: Make FIFOs (named pipes) @pindex mkfifo -@@ -10907,7 +10889,7 @@ permission bits. @xref{File permissions +@@ -10964,7 +10946,7 @@ permission bits. @xref{File permissions @exitstatus @@ -1244,7 +1244,7 @@ @section @command{mknod}: Make block or character special files @pindex mknod -@@ -10984,7 +10966,7 @@ Set the mode of created files to @var{mo +@@ -11041,7 +11023,7 @@ Set the mode of created files to @var{mo @exitstatus @@ -1253,7 +1253,7 @@ @section @command{readlink}: Print value of a symlink or canonical file name @pindex readlink -@@ -11008,7 +10990,7 @@ of a symbolic link, it produces no outpu +@@ -11065,7 +11047,7 @@ of a symbolic link, it produces no outpu @command{readlink} outputs the absolute name of the given files which contain no @file{.}, @file{..} components nor any repeated separators (@file{/}) or symbolic links. Note the @command{realpath} command is the @@ -1262,7 +1262,7 @@ @end table -@@ -11083,7 +11065,7 @@ The @command{realpath} command without o +@@ -11140,7 +11122,7 @@ The @command{realpath} command without o @exitstatus @@ -1271,7 +1271,7 @@ @section @command{rmdir}: Remove empty directories @pindex rmdir -@@ -11131,7 +11113,7 @@ Give a diagnostic for each successful re +@@ -11188,7 +11170,7 @@ Give a diagnostic for each successful re @end table @@ -1280,7 +1280,7 @@ To remove all empty directories under @var{dirname}, including directories that become empty because other directories are removed, -@@ -11148,7 +11130,7 @@ find @var{dirname} -depth -type d -exec +@@ -11205,7 +11187,7 @@ find @var{dirname} -depth -type d -exec @exitstatus @@ -1289,7 +1289,7 @@ @section @command{unlink}: Remove files via the unlink syscall @pindex unlink -@@ -11159,7 +11141,7 @@ It is a minimalist interface to the syst +@@ -11216,7 +11198,7 @@ It is a minimalist interface to the syst @code{unlink} function. @xref{Deleting Files, , , libc, The GNU C Library Reference Manual}. Synopsis: It avoids the bells and whistles of the more commonly-used @@ -1298,7 +1298,7 @@ @example unlink @var{filename} -@@ -11193,14 +11175,14 @@ timestamps, and other information. Coll +@@ -11250,14 +11232,14 @@ timestamps, and other information. Coll These commands change file attributes. @menu @@ -1318,7 +1318,7 @@ @section @command{chown}: Change file owner and group @pindex chown -@@ -11427,7 +11409,7 @@ chown -hR root /u +@@ -11485,7 +11467,7 @@ chown -hR root /u @end example @@ -1327,7 +1327,7 @@ @section @command{chgrp}: Change group ownership @pindex chgrp -@@ -11436,7 +11418,7 @@ chown -hR root /u +@@ -11494,7 +11476,7 @@ chown -hR root /u @command{chgrp} changes the group ownership of each given @var{file} to @var{group} (which can be either a group name or a numeric group ID) @@ -1336,7 +1336,7 @@ Synopsis: @example -@@ -11555,7 +11537,7 @@ chgrp -hR staff /u +@@ -11613,7 +11595,7 @@ chgrp -hR staff /u @end example @@ -1345,7 +1345,7 @@ @section @command{chmod}: Change access permissions @pindex chmod -@@ -11677,7 +11659,7 @@ chmod -R a=,+rwX dir +@@ -11735,7 +11717,7 @@ chmod -R a=,+rwX dir @end smallexample @@ -1354,7 +1354,7 @@ @section @command{touch}: Change file timestamps @pindex touch -@@ -11852,15 +11834,15 @@ how much storage is in use or available, +@@ -11910,15 +11892,15 @@ how much storage is in use or available, file status information, and write buffers to file systems. @menu @@ -1376,7 +1376,7 @@ @section @command{df}: Report file system space usage @pindex df -@@ -12168,7 +12150,7 @@ be read and one or more of the options @ +@@ -12226,7 +12208,7 @@ be read and one or more of the options @ or @option{-x} is used together with a file name argument. @@ -1385,7 +1385,7 @@ @section @command{du}: Estimate file space usage @pindex du -@@ -12426,7 +12408,7 @@ be one of the following: +@@ -12484,7 +12466,7 @@ be one of the following: @item +@var{format} @vindex LC_TIME List timestamps using @var{format}, where @var{format} is interpreted @@ -1394,7 +1394,7 @@ For example, @option{--time-style="+%Y-%m-%d %H:%M:%S"} causes @command{du} to list timestamps like @samp{2020-07-21 23:45:56}. As with @command{date}, @var{format}'s interpretation is affected by the -@@ -12494,7 +12476,7 @@ in HP-UX; it also affects the HP-UX @com +@@ -12552,7 +12534,7 @@ in HP-UX; it also affects the HP-UX @com @exitstatus @@ -1403,7 +1403,7 @@ @section @command{stat}: Report file or file system status @pindex stat -@@ -12735,7 +12717,7 @@ with @env{TZ}, libc, The GNU C Library R +@@ -12794,7 +12776,7 @@ with @env{TZ}, libc, The GNU C Library R @exitstatus @@ -1412,7 +1412,7 @@ @section @command{sync}: Synchronize cached writes to persistent storage @pindex sync -@@ -12795,7 +12777,7 @@ write barriers, than a global sync(2) us +@@ -12854,7 +12836,7 @@ write barriers, than a global sync(2) us @exitstatus @@ -1421,7 +1421,7 @@ @section @command{truncate}: Shrink or extend the size of a file @pindex truncate -@@ -12872,13 +12854,13 @@ the size of each @var{file} based on its +@@ -12931,13 +12913,13 @@ the size of each @var{file} based on its This section describes commands that display text strings. @menu @@ -1439,12 +1439,21 @@ @section @command{echo}: Print a line of text @pindex echo -@@ -12967,12 +12949,12 @@ that the behavior of @command{echo} is i - @var{string} contains a backslash or if the first argument is - @option{-n}. Portable programs can use the @command{printf} command - if they need to omit trailing newlines or output control characters or --backslashes. @xref{printf invocation}. -+backslashes. @xref{printf}. +@@ -12960,7 +12942,7 @@ strings cannot be passed to @command{ech + It is therefore not advisable to use @command{echo} for printing unknown or + variable arguments. The @command{printf} command is recommended as a more + portable and flexible replacement for tasks historically performed by +-@command{echo}. @xref{printf invocation}. ++@command{echo}. @xref{printf}. + + The program accepts the following options. Also see @ref{Common options}. + Options must precede operands, and the normally-special argument +@@ -13035,12 +13017,12 @@ POSIX does not require support for any o + that the behavior of @command{echo} is implementation-defined if any + @var{string} contains a backslash or if the first argument is @option{-n}. + Portable programs should use the @command{printf} command instead. +-@xref{printf invocation}. ++@xref{printf}. @exitstatus @@ -1454,7 +1463,7 @@ @section @command{printf}: Format and print data @pindex printf -@@ -13134,7 +13116,7 @@ $ recode BIG5..JAVA < sample.txt \ +@@ -13202,7 +13184,7 @@ $ recode BIG5..JAVA < sample.txt \ @exitstatus @@ -1463,7 +1472,7 @@ @section @command{yes}: Print a string until interrupted @pindex yes -@@ -13165,14 +13147,14 @@ condition of shell @code{if} statements, +@@ -13233,14 +13215,14 @@ condition of shell @code{if} statements, pipeline. @menu @@ -1483,7 +1492,7 @@ @section @command{false}: Do nothing, unsuccessfully @pindex false -@@ -13202,7 +13184,7 @@ Portable programs should not assume that +@@ -13270,7 +13252,7 @@ Portable programs should not assume that non-GNU hosts. @@ -1492,7 +1501,7 @@ @section @command{true}: Do nothing, successfully @pindex true -@@ -13238,7 +13220,7 @@ This version of @command{true} is implem +@@ -13306,7 +13288,7 @@ This version of @command{true} is implem more secure and faster than a shell script implementation, and may safely be used as a dummy shell for the purpose of disabling accounts. @@ -1501,7 +1510,7 @@ @section @command{test}: Check file types and compare values @pindex test -@@ -13609,7 +13591,7 @@ True if either @var{expr1} or @var{expr2 +@@ -13677,7 +13659,7 @@ True if either @var{expr1} or @var{expr2 @end table @@ -1510,7 +1519,7 @@ @section @command{expr}: Evaluate expressions @pindex expr -@@ -13886,11 +13868,11 @@ useful redirection is performed by a sep +@@ -13954,11 +13936,11 @@ useful redirection is performed by a sep it's described here. @menu @@ -1524,7 +1533,7 @@ @section @command{tee}: Redirect output to multiple files or processes @pindex tee -@@ -14098,15 +14080,15 @@ tar chof - "$tardir" \ +@@ -14166,15 +14148,15 @@ tar chof - "$tardir" \ This section describes commands that manipulate file names. @menu @@ -1546,7 +1555,7 @@ @section @command{basename}: Strip directory and suffix from a file name @pindex basename -@@ -14188,7 +14170,7 @@ basename -a -s .h include/stdio.h includ +@@ -14256,7 +14238,7 @@ basename -a -s .h include/stdio.h includ @end example @@ -1555,7 +1564,7 @@ @section @command{dirname}: Strip last file name component @pindex dirname -@@ -14241,7 +14223,7 @@ dirname stdio.h +@@ -14309,7 +14291,7 @@ dirname stdio.h @end example @@ -1564,7 +1573,7 @@ @section @command{pathchk}: Check file name validity and portability @pindex pathchk -@@ -14317,7 +14299,7 @@ Exit status: +@@ -14385,7 +14367,7 @@ Exit status: 1 otherwise. @end display @@ -1573,7 +1582,7 @@ @section @command{mktemp}: Create temporary file or directory @pindex mktemp -@@ -14492,7 +14474,7 @@ Exit status: +@@ -14560,7 +14542,7 @@ Exit status: @end display @@ -1582,7 +1591,7 @@ @section @command{realpath}: Print the resolved file name. @pindex realpath -@@ -14684,14 +14666,14 @@ which you are working: the current direc +@@ -14752,14 +14734,14 @@ which you are working: the current direc so forth. See also the user-related commands in the next section. @menu @@ -1602,7 +1611,7 @@ @section @command{pwd}: Print working directory @pindex pwd -@@ -14738,7 +14720,7 @@ environment variable is set. +@@ -14806,7 +14788,7 @@ environment variable is set. @exitstatus @@ -1611,7 +1620,7 @@ @section @command{stty}: Print or change terminal characteristics @pindex stty -@@ -15480,7 +15462,7 @@ or +@@ -15548,7 +15530,7 @@ or @end table @@ -1620,7 +1629,7 @@ @section @command{printenv}: Print all or some environment variables @pindex printenv -@@ -15515,7 +15497,7 @@ Exit status: +@@ -15583,7 +15565,7 @@ Exit status: @end display @@ -1629,7 +1638,7 @@ @section @command{tty}: Print file name of terminal on standard input @pindex tty -@@ -15565,16 +15547,16 @@ This section describes commands that pri +@@ -15633,16 +15615,16 @@ This section describes commands that pri logins, groups, and so forth. @menu @@ -1653,7 +1662,7 @@ @section @command{id}: Print user identity @pindex id -@@ -15681,7 +15663,7 @@ database to be consulted afresh, and so +@@ -15749,7 +15731,7 @@ database to be consulted afresh, and so @exitstatus @@ -1662,7 +1671,7 @@ @section @command{logname}: Print current login name @pindex logname -@@ -15702,7 +15684,7 @@ options}. +@@ -15770,7 +15752,7 @@ options}. @exitstatus @@ -1671,7 +1680,7 @@ @section @command{whoami}: Print effective user name @pindex whoami -@@ -15718,7 +15700,7 @@ options}. +@@ -15786,7 +15768,7 @@ options}. @exitstatus @@ -1680,7 +1689,7 @@ @section @command{groups}: Print group names a user is in @pindex groups -@@ -15745,7 +15727,7 @@ options}. +@@ -15813,7 +15795,7 @@ options}. @exitstatus @@ -1689,7 +1698,7 @@ @section @command{users}: Print login names of users currently logged in @pindex users -@@ -15780,7 +15762,7 @@ should not rely on its existence on non- +@@ -15848,7 +15830,7 @@ should not rely on its existence on non- @exitstatus @@ -1698,7 +1707,7 @@ @section @command{who}: Print who is currently logged in @pindex who -@@ -15943,16 +15925,14 @@ This section describes commands that pri +@@ -16011,16 +15993,14 @@ This section describes commands that pri information. @menu @@ -1721,7 +1730,7 @@ @section @command{date}: Print or set system date and time @pindex date -@@ -16675,7 +16655,7 @@ date --date='2017-01-01 00:00:00 +0000' +@@ -16770,7 +16750,7 @@ date --date='2017-01-01 00:00:00 +0000' @end itemize @@ -1730,7 +1739,7 @@ @section @command{arch}: Print machine hardware name @pindex arch -@@ -16698,7 +16678,7 @@ not rely on its existence. +@@ -16793,7 +16773,7 @@ not rely on its existence. @exitstatus @@ -1739,7 +1748,7 @@ @section @command{nproc}: Print the number of available processors @pindex nproc -@@ -16737,7 +16717,7 @@ If possible, exclude this @var{number} o +@@ -16832,7 +16812,7 @@ If possible, exclude this @var{number} o @exitstatus @@ -1748,7 +1757,7 @@ @section @command{uname}: Print system information @pindex uname -@@ -16867,35 +16847,7 @@ Print the kernel version. +@@ -16962,35 +16942,7 @@ Print the kernel version. @exitstatus @@ -1785,7 +1794,7 @@ @section @command{hostid}: Print numeric host identifier @pindex hostid -@@ -16923,44 +16875,6 @@ existence. +@@ -17018,44 +16970,6 @@ existence. @exitstatus @@ -1830,7 +1839,7 @@ @node SELinux context @chapter SELinux context -@@ -16972,11 +16886,11 @@ This section describes commands for oper +@@ -17067,11 +16981,11 @@ This section describes commands for oper contexts. @menu @@ -1845,7 +1854,7 @@ @section @command{chcon}: Change SELinux context of file @pindex chcon -@@ -17079,7 +16993,7 @@ Set range @var{range} in the target secu +@@ -17174,7 +17088,7 @@ Set range @var{range} in the target secu @exitstatus @@ -1854,7 +1863,7 @@ @section @command{runcon}: Run a command in specified SELinux context @pindex runcon -@@ -17171,16 +17085,16 @@ different than the current one: a modifi +@@ -17266,16 +17180,16 @@ different than the current one: a modifi user, etc. @menu @@ -1878,7 +1887,7 @@ @section @command{chroot}: Run a command with a different root directory @pindex chroot -@@ -17296,7 +17210,7 @@ the exit status of @var{command} otherwi +@@ -17391,7 +17305,7 @@ the exit status of @var{command} otherwi @end display @@ -1887,7 +1896,7 @@ @section @command{env}: Run a command in a modified environment @pindex env -@@ -17916,7 +17830,7 @@ OLDUSER=gordon +@@ -18011,7 +17925,7 @@ OLDUSER=gordon @@ -1896,7 +1905,7 @@ @section @command{nice}: Run a command with modified niceness @pindex nice -@@ -18047,7 +17961,7 @@ $ sudo nice -n -1 nice +@@ -18142,7 +18056,7 @@ $ sudo nice -n -1 nice @end example @@ -1905,7 +1914,7 @@ @section @command{nohup}: Run a command immune to hangups @pindex nohup -@@ -18121,7 +18035,7 @@ If @env{POSIXLY_CORRECT} is set, interna +@@ -18216,7 +18130,7 @@ If @env{POSIXLY_CORRECT} is set, interna instead of 125. @@ -1914,7 +1923,7 @@ @section @command{stdbuf}: Run a command with modified I/O stream buffering @pindex stdbuf -@@ -18215,7 +18129,7 @@ the exit status of @var{command} otherwi +@@ -18310,7 +18224,7 @@ the exit status of @var{command} otherwi @end display @@ -1923,7 +1932,7 @@ @section @command{timeout}: Run a command with a time limit @pindex timeout -@@ -18350,90 +18264,6 @@ timeout -s INT 5s env --ignore-signal=IN +@@ -18446,90 +18360,6 @@ timeout -s INT 5s env --ignore-signal=IN timeout -s INT -k 3s 5s env --ignore-signal=INT sleep 20 @end example @@ -2014,7 +2023,7 @@ @node Delaying @chapter Delaying -@@ -18443,11 +18273,11 @@ signal names and numbers. +@@ -18539,11 +18369,11 @@ signal names and numbers. @c Perhaps @command{wait} or other commands should be described here also? @menu @@ -2028,7 +2037,7 @@ @section @command{sleep}: Delay for a specified time @pindex sleep -@@ -18510,13 +18340,13 @@ options}. +@@ -18606,13 +18436,13 @@ options}. These programs do numerically-related operations. @menu @@ -2046,7 +2055,7 @@ @section @command{factor}: Print prime factors @pindex factor -@@ -18577,7 +18407,7 @@ are the product of two large primes), ot +@@ -18673,7 +18503,7 @@ are the product of two large primes), ot @exitstatus @@ -2055,7 +2064,7 @@ @section @command{numfmt}: Reformat numbers @pindex numfmt -@@ -18917,7 +18747,7 @@ $ LC_ALL=ta_IN numfmt --from=iec --forma +@@ -19013,7 +18843,7 @@ $ LC_ALL=ta_IN numfmt --from=iec --forma @end example @@ -2064,7 +2073,7 @@ @section @command{seq}: Print numeric sequences @pindex seq -@@ -19092,7 +18922,7 @@ Naively, a file's atime, mtime, and ctim +@@ -19188,7 +19018,7 @@ Naively, a file's atime, mtime, and ctim whenever you read, write, or change the attributes of the file respectively, and searching a directory counts as reading it. A file's atime and mtime can also be set directly, via the diff --git a/coreutils-uname-cpuinfo.patch b/coreutils-uname-cpuinfo.patch index b6b83c0..5ec76d0 100644 --- a/coreutils-uname-cpuinfo.patch +++ b/coreutils-uname-cpuinfo.patch @@ -10,20 +10,21 @@ diff -urNp -x '*.orig' coreutils-8.32.org/src/uname.c coreutils-8.32/src/uname.c static struct option const uname_long_options[] = { {"all", no_argument, NULL, 'a'}, -@@ -301,13 +303,9 @@ main (int argc, char **argv) - if (toprint & PRINT_PROCESSOR) - { - char const *element = unknown; +@@ -323,14 +323,12 @@ + element = "powerpc"; + # endif + #endif -#if HAVE_SYSINFO && defined SI_ARCHITECTURE -- { -- static char processor[257]; -- if (0 <= sysinfo (SI_ARCHITECTURE, processor, sizeof processor)) -- element = processor; -- } + if (element == unknown) + { +- static char processor[257]; +- if (0 <= sysinfo (SI_ARCHITECTURE, processor, sizeof processor)) +- element = processor; ++ char processor[BUFSIZ]; ++ __sysinfo_processor_type(processor); ++ element = processor; + } -#endif -+ char processor[BUFSIZ]; -+ __sysinfo_processor_type(processor); -+ element = processor; #ifdef UNAME_PROCESSOR if (element == unknown) { diff --git a/coreutils.spec b/coreutils.spec index a286284..5d37ac6 100644 --- a/coreutils.spec +++ b/coreutils.spec @@ -8,12 +8,12 @@ Summary: GNU Core-utils - basic command line utilities Summary(pl.UTF-8): GNU Core-utils - podstawowe narzędzia działające z linii poleceń Name: coreutils -Version: 9.0 -Release: 3 +Version: 9.1 +Release: 1 License: GPL v3+ Group: Applications/System Source0: http://ftp.gnu.org/gnu/coreutils/%{name}-%{version}.tar.xz -# Source0-md5: 0d79ae8a6124546e3b94171375e5e5d0 +# Source0-md5: 8b1ca4e018a7dce9bb937faec6618671 Source1: %{name}-non-english-man-pages.tar.bz2 # Source1-md5: f7c986ebc74ccb8d08ed70141063f14c Source2: DIR_COLORS @@ -34,7 +34,6 @@ Patch8: %{name}-pl.po-update.patch # https://github.com/jarun/advcpmv Patch9: %{name}-advcopy.patch Patch10: tests.patch -Patch11: ignore-symlinks.patch URL: http://www.gnu.org/software/coreutils/ BuildRequires: acl-devel BuildRequires: attr-devel @@ -125,7 +124,6 @@ Programy zawarte w tym pakiecie to: %patch9 -p1 %endif %patch10 -p1 -%patch11 -p1 %{__mv} man/pt_BR man/pt