tests: ensure at least one failure when $built_programs is empty
[platform/upstream/coreutils.git] / ChangeLog-2008
1 2008-02-07  Jim Meyering  <meyering@redhat.com>
2
3         We *do* need two different version files.
4         One for tarball-only, the other to be updated any time we
5         get a new value of $(VERSION).
6         * Makefile.am (dist-hook): Create .tarball-version in dist tarball.
7         * GNUmakefile (_curr-ver): Make git-version-gen use it.
8         * .gitignore: Ignore it.
9
10         Fix a typo in description of size suffixes: s/GB/G/.
11         * doc/coreutils.texi (od invocation, head invocation, tail invocation):
12         Spotted by Bert Wesarg.
13
14         * NEWS [6.9.90]: Mention the added feature that head, od, split and
15         tail now accept the standard size suffixes (kB, M, MB, G, GB, and
16         so on for T, P, Y, Z, and Y) on arguments to selected options.
17
18 2008-02-06  Steven Schubiger  <schubiger@gmail.com>
19
20         mkdir, split: write --verbose output to stdout, not stderr.
21         * src/mkdir.c (verbose_output): New function.
22         (announce_mkdir): Use it.
23         * src/split.c (usage): Update.
24         * src/split.c (cwrite): Write to stdout, not stderr.
25         * doc/coreutils.texi (split invocation): Remove the mention
26         of --verbose output being printed to stderr.
27         * tests/mkdir/p-v: Redirect stdout, not stderr.
28         * tests/misc/split-a: Likewise.
29         * NEWS: Mention this change.
30         * TODO: Remove this item.
31
32 2008-02-04  Jim Meyering  <meyering@redhat.com>
33
34         * Makefile.maint (announcement): Remove stale comment.
35
36 2008-02-02  Jim Meyering  <meyering@redhat.com>
37
38         Clarify a comment.
39         * tests/sort/Test.pm: Replace a vague ChangeLog reference with a URL.
40
41 2008-01-31  Bob Proulx  <bob@proulx.com>
42
43         Improve wording of date and time man page.
44         * man/date.x: Improve compact description of the --date=STRING.
45         * man/touch.x: Likewise.
46         Suggested by A. Costa.
47
48 2008-01-31  Jim Meyering  <meyering@redhat.com>
49
50         Remove alignment constraint from the sha*_read_ctx functions.
51         * lib/sha256.c (set_uint32): New function.
52         (sha256_read_ctx, sha224_read_ctx): Use it.
53         * lib/sha512.c (set_uint64): New function.
54         (sha512_read_ctx, sha384_read_ctx): Use it.
55         * lib/sha256.h: Remove warning about alignment constraint.
56         * lib/sha512.h: Likewise.
57         Prompted by similar changes in gnulib's sha1 and md[45] modules.
58
59         Adapt to new version of vc-list-files.
60         * tests/check.mk (vc_exe_in_TESTS): Adapt to new constraint
61         that vc-list-files be run only from $(top_srcdir).
62
63         Pull vc-list-files from gnulib.
64         * bootstrap.conf (gnulib_modules): Add vc-list-files.
65         * build-aux/vc-list-files: Remove file.
66
67         Improve the cp/parent-perm test.
68         * tests/cp/parent-perm: Also check that perms of existing dest
69         dirs are changed to match those of corresponding src dir
70
71 2008-01-30  Paul Eggert  <eggert@cs.ucla.edu>
72
73         Don't modify argv in dd due to ',' in arguments.
74         * src/dd.c: Include quotearg.h.
75         (operand_matches): New function.
76         (parse_symbols, operand_is): Use it.
77         (parse_symbols): 1st arg is now const pointer.  Don't modify it.
78         msgid arg is now just the message, not a format.
79         (scanargs): Add some 'const's to check for problems like the above.
80
81 2008-01-30  Jim Meyering  <meyering@redhat.com>
82
83         * src/c99-to-c89.diff: Adjust remove.c offsets, again.
84
85         Now that system.h defines is_empty_dir, include "openat.h".
86         * src/system.h: Include "openat.h" here, ...
87         * src/chcon.c: ... not here.
88         * src/chmod.c: Likewise.
89         * src/chown-core.c: Likewise.
90         * src/remove.c: Likewise.
91
92         * src/c99-to-c89.diff: Adjust remove.c offsets.
93
94         Improve "rmdir --ignore-fail-on-non-empty"
95         * src/rmdir.c (remove_parents, main): With --ignore-fail-on-non-empty,
96         suppress a diagnostic also for other errno values, which can arise
97         with read-only media or when the parent directory has the immutable
98         attribute (set via chattr +i).
99         (errno_may_be_empty, ignorable_failure): New functions.
100         * src/remove.c (is_empty_dir): Move function to ...
101         * src/system.h (is_empty_dir): ...here, and make it inline.
102         Suggested by Josselin Mouette in <http://bugs.debian.org/363011>
103         via Bob Proulx.
104         * NEWS: Mention the improvement.
105
106 2008-01-29  Paul Eggert  <eggert@cs.ucla.edu>
107
108         Don't modify argv in dd.
109         * src/dd.c (operand_is): New function.
110         (scanargs): Use it so that we don't need to modify argv, as a nicety.
111         Problem reported by Adam Goode in
112         <http://lists.gnu.org/archive/html/bug-coreutils/2008-01/msg00264.html>.
113
114 2008-01-29  Jim Meyering  <meyering@redhat.com>
115
116         * Makefile.am (BUILT_SOURCES): Ensure that .version exists.
117         Reported by Bob Proulx.
118
119 2008-01-29  Bob Proulx  <bob@proulx.com>
120
121         Improve the man pages of --date=STRING for 'date' and 'touch'.
122         * man/date.x: Add a compact description of the --date=STRING.
123         * man/touch.x: Likewise.
124         Reported by A. Costa in http://bugs.debian.org/363011
125
126 2008-01-29  Michael Stone  <mstone@debian.org>
127
128         Improve the description of when dd outputs its final statistics.
129         * doc/coreutils.texi (dd invocation): Say that dd prints stats
130         upon normal termination and upon SIGINT.
131
132 2008-01-29  Jim Meyering  <meyering@redhat.com>
133
134         Avoid "make distcheck" failure: newly-created man/*.1 files not removed
135         * Makefile.am (EXTRA_DIST): Add .version.
136         (.version): New rule.
137         (dist-hook): Don't create $(distdir)/.version here, now that it's
138         being distributed.
139         * man/Makefile.am (common_dep): Use ../.version, not ../VERSION.
140         (../VERSION): Remove rule.
141         * GNUmakefile (dummy): Create .version, not VERSION.
142         Add an extra "...:= $(shell..." statement to ensure that
143         .version exists even when the preceding code is not run.
144         * .gitignore: Remove both .version and VERSION.
145
146         ls: don't segfault on files in /proc with an old libselinux
147         * src/ls.c (gobble_file): Work around a bug in libselinux1-2.0.15
148         whereby getfilecon returns 0 yet sets the context to NULL.
149         Reported by Jan Moringen via Michael Stone in
150         http://bugs.debian.org/463043
151         * tests/ls/Makefile.am (TESTS): Add proc-selinux-segfault.
152         * tests/ls/proc-selinux-segfault: Test for the above fix.
153         * NEWS: Mention the fix.
154
155 2008-01-26  Jim Meyering  <meyering@redhat.com>
156
157         Work around Darwin9's set-GID-like group ownership inheritance.
158         This avoids another spurious Mac OS 10.5.1 (Darwin 9.1) test failure.
159         * tests/cp/preserve-gid: Accept a group ID of 0, as well.
160         Reported by Elias Pipping.
161
162         Emit "info coreutils 'PROG invocation'" into the man page,
163         rather than just "info PROG".  The latter would often fail
164         or simply display the man page.
165         * man/help2man: Change the template.
166         Prompted by http://bugs.debian.org/399684
167
168         chcon: correct description of --no-dereference (-h) option.
169         * src/chcon.c (usage): Remove invalid reference to lchown.
170         Reported by Göran Uddeborg.
171
172         Ensure that each version string change propagates to man pages.
173         * man/Makefile.am (common_dep): Don't depend on configure.ac for
174         version changes.  Instead, depend on ../VERSION.
175         (../VERSION): New rule.
176         * Makefile.am (DISTCLEANFILES): Define.
177         * GNUmakefile: Update ./VERSION.
178         * .gitignore: List VERSION.
179         Reported by Sven Joachim.
180
181         Avoid cp/preserve-gid test failure on Mac OS 10.5.1 (Darwin 9.1)
182         * tests/cp/preserve-gid: Set group as well as owner on ".".
183         Reported by Elias Pipping.
184
185         Improve a warning about non-portable "mv" usage.
186         * doc/coreutils.texi (mv invocation): Adjust the warning: moving a
187         dir-symlink-specified-with-a-trailing-slash works in a surprising
188         manner only on some systems.  Reported by Tomas Pospisek in
189         http://bugs.debian.org/343652.
190
191 2008-01-26  Mike Frysinger  <vapier@gentoo.org>
192
193         * src/dircolors.hin (TERM): Add jfbterm.
194
195 2008-01-23  Jim Meyering  <meyering@redhat.com>
196
197         Clean up build-related rules.
198         * Makefile.cfg (gnulib_dir): Update comment.
199         * Makefile.maint (announcement) [cl_date, utc_date]: Don't set
200         now-unused variables.
201
202         * TODO: Update the note on getgrouplist.
203
204 2008-01-23  Zvi Har'El  <rl@math.technion.ac.il>
205
206         Add a ";", so "make install" works with --enable-install-program=su.
207         * src/Makefile.am (install_su): Add a semicolon.  (tiny change)
208
209 2008-01-23  Jim Meyering  <meyering@redhat.com>
210
211         Avoid misinterpreting mgetgroups failure in running root-only tests.
212         * src/setuidgid.c (main): Don't misinterpret as size_t an error
213         return from mgetgroups.  Reported by Theodoros V. Kalamatianos.
214
215         * README: Remove/convert a few stray mentions of CVS.
216
217 2008-01-22  Jim Meyering  <meyering@redhat.com>
218
219         Require automake-1.10.1, for its support of dist-lzma.
220         * configure.ac (AM_INIT_AUTOMAKE): Require 1.10.1.
221
222         Version 6.10.
223
224         * NEWS: Record release date.
225
226         * README-hacking: Update to reflect existence of automake-1.10.1.
227
228 2008-01-18  Jim Meyering  <meyering@redhat.com>
229
230         Update README.
231         * README: Remove a note about failing tests on SunOS 4.
232         On Mac OS 10.5.1 (Darwin 9.1), you'll need --disable-acl.
233         (Running tests as root): Recommend using "check-root", not "check".
234
235 2008-01-17  Jim Meyering  <meyering@redhat.com>
236
237         Do not define-away __attribute__ when __STRICT_ANSI__ is set.
238         * src/system.h (__attribute__): Remove the __STRICT_ANSI__ disjunct.
239         It has been unnecessary since approximately gcc-2.6, and now, leaving
240         it would cause gcc -Werror -ansi to fail to compile csplit.c.
241         * gl/lib/randread.c (__attribute__): Likewise.
242
243 2008-01-16  Jim Meyering  <meyering@redhat.com>
244
245         * NEWS: Mention the configure.ac fix.
246
247         * TODO: Add an introduction.
248         Remove a few entries.  Update a few others.
249
250 2008-01-13  Jim Meyering  <meyering@redhat.com>
251
252         Remove each output redirection target before writing to it.
253         * tests/check.mk (vc_exe_in_TESTS): Remove t1 and t2 _first_,
254         in case they exist beforehand and are not writable.
255         * build-aux/check.mk (am__check_pre): Likewise, remove $@-t.
256
257 2008-01-13  Elias Pipping  <pipping@gentoo.org>
258
259         * configure.ac: Correct a non-portable use of sed.
260
261 2008-01-12  Mike Frysinger  <vapier@gentoo.org>
262
263         * src/dircolors.hin (image formats): Add the .svg suffix.
264
265 2008-01-12  Jim Meyering  <meyering@redhat.com>
266
267         Use new version of announce-gen.
268         * Makefile.maint (announcement): Remove use of the
269         --gnulib-snapshot-time-stamp option.
270         Use new --gnulib-version option instead.
271         (gnulib-version): New variable.
272
273 2008-01-11  Jim Meyering  <meyering@redhat.com>
274
275         * Version 6.9.92.
276
277         * tests/tr/Test.pm: Prefer en_US.ISO-8859-1 to en_US.iso88591.
278         Suggestions from James Youngman and Pádraig Brady in
279         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12218/focus=12227
280
281 2008-01-10  Jim Meyering  <meyering@redhat.com>
282
283         * README-hacking: Add Git to the list of required tools.
284
285 2008-01-08  Paul Eggert  <eggert@cs.ucla.edu>
286
287         Fix a minor race condition when using cp -p --parents.
288         * src/cp.c (make_dir_parents_private): If stat fails on the parent
289         directory, do not add it to the list of directories whose modes
290         might need fixing later.  Also, do not bother invoking 'stat'
291         unless the stat results might be needed later.
292
293 2008-01-08  Jim Meyering  <meyering@redhat.com>
294
295         parent-perm: avoid a bizarre test failure.
296         * tests/cp/parent-perm: Accommodate the situation in which
297         chmod ("dir", 02755) returns 0 yet fails to set the S_ISGID bit.
298
299         Remove uses of now-undefined Makefile variable.
300         * src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD): Remove uses
301         of no-longer-defined variable, $(LIB_ACL_TRIVIAL).
302
303 2008-01-07  Jim Meyering  <meyering@redhat.com>
304
305         cp (but not copy.c): plug a small leak.
306         * src/cp.c (do_copy) [--parents]: Free the attribute list.
307
308         Make a racy test failure less likely to happen.
309         * tests/misc/tty-eof: Uncomment a debug "warn".
310         This change happens to make this test far less likely to fail.
311         With that statement commented out, this test would fail about
312         20% of the time on my desktop.  Now, it's gone 100 iterations
313         in a row with no failure.
314
315         * NEWS: Mention the cp bug fix.
316
317 2008-01-07  Jan Blunck  <jblunck@suse.de>
318
319         cp --parents: don't use uninitialized memory when restoring permissions
320         * src/cp.c (make_dir_parents_private): Always stat each source
321         directory, in case its permissions are required in re_protect,
322         when setting permissions of a just-created destination directory.
323
324 2008-01-07  Jim Meyering  <meyering@redhat.com>
325
326         cp: add a test for today's bug fix.
327         * tests/cp/parent-perm: New script.  Test today's change.
328         Based on reproducer from Jan Blunck.
329         * tests/cp/Makefile.am (TESTS): Add parent-perm.
330
331 2008-01-06  Jim Meyering  <meyering@redhat.com>
332
333         touch: add a test for today's change.
334         * tests/touch/now-owned-by-other: New script.  Test today's change.
335         * tests/touch/Makefile.am (TESTS): Add now-owned-by-other.
336         * tests/Makefile.am (all_t): Add td, a new root-only test.
337         (td): New target.
338         * NEWS: Mention the improvement.
339
340 2008-01-06  Paul Eggert  <eggert@cs.ucla.edu>
341
342         touch: ignore "-d now" option, when appropriate
343         * src/touch.c (main): Treat "-d now" as if it were absent, if
344         neither -a nor -m is specified.  Problem reported by Dan Jacobson in:
345         http://lists.gnu.org/archive/html/bug-coreutils/2008-01/msg00010.html
346
347 2008-01-05  Jim Meyering  <meyering@redhat.com>
348
349         Avoid tr case-conversion failure in some locales.
350         * src/tr.c (skip_construct): New function.
351         (main): When processing a pair of case-converting classes, don't
352         iterate through the elements of each [:upper:] or [:lower:] class.
353         Reported by Gerald Pfeifer in
354         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12218>.
355         * tests/tr/Test.pm [tolower-F]: New test for the above fix.
356         [upcase-xtra, dncase-xtra]: New tests, for a related code path.
357         * NEWS: Mention the tr bug fix.
358
359 2008-01-02  Jim Meyering  <jim@meyering.net>
360
361         * .gitignore: Ignore lzma-compressed files, too.
362
363         Update copyright date.
364         * tests/sample-test: Likewise.
365         * doc/coreutils.texi: Likewise.
366
367
368         -----
369
370         Copyright (C) 2008 Free Software Foundation, Inc.
371
372         Copying and distribution of this file, with or without
373         modification, are permitted provided the copyright notice
374         and this notice are preserved.