Debian Codegraph @

ChangeLog

raw
1 2020-04-03 Jim Meyering <[email protected]>
2
3 build: reenable compiler warning options
4 * configure.ac (WERROR_CFLAGS): Reenable many warning options
5 that need no longer be suppressed.
6
7 build: avoid false positive warning
8 * configure.ac: Disable -Wduplicated-branches warning.
9 It would report this:
10 lid.c:535:15: error: this condition has identical branches
11 535 | else if (delimiter_style == ds_word)
12
13 maint: make update-copyright
14
15 build: update away from deprecated gnulib modules
16 * bootstrap.conf (gnulib_modules): Update from deprecated
17 modules (calloc, malloc, realloc) to "-gnu"- suffixed names.
18
19 build: update gnulib to latest
20 * gnulib: Update submodule.
21 * configure.ac: AC_PREREQ([2.63]). Now required by gnulib.
22 * testsuite/init.sh: Update from gnulib.
23 * bootstrap: Likewise.
24
25 2018-01-06 Jim Meyering <[email protected]>
26
27 maint: update gnulib and copyright dates for 2018
28 * gnulib: Update to latest.
29 * all files: Run "make update-copyright".
30 * bootstrap: Update from gnulib.
31
32 2017-12-18 Curt McDowell <[email protected]>
33
34 compare full 8-byte inodes in one more place
35 * libidu/walker.c (dev_ino_hash_compare): Rewrite to compare both
36 device and full inode.
37
38 2017-11-23 Jim Meyering <[email protected]>
39
40 fix handling of 64-bit ino_t
41 The dev/inode hashing code used only four bytes of each inode number,
42 and thus could malfunction:
43 mkid: warning: `f1' and `f1' are the same file, but yield different scans!
44 * libidu/walker.c (dev_ino_hash_1, dev_ino_hash_2): Adjust to use all bytes
45 of device and inode numbers.
46 * NEWS (Bugs): Mention it.
47 Reported by Curt McDowell in https://bugs.gnu.org/29092
48
49 2017-11-07 Jim Meyering <[email protected]>
50
51 lid: fix invalid fallthrough after failed exec
52 gcc's -Wimplicit-fallthrough detected a bug: lid would
53 fall through it's "case 0" after a failed execvp.
54 * src/lid.c: Include "die.h".
55 Use "die (EXIT_FAILURE,...", not "error (0,..."
56
57 build: add die.h from coreutils
58 * src/die.h: New file. From coreutils.
59 * src/Makefile.am (noinst_HEADERS): Add it.
60
61 build: address -Wimplicit-fallthrough= warnings
62 * src/mkid.c (FALLTHROUGH): Define.
63 (main): Mark two case statements as such.
64
65 build: fix type-vs-format-string mismatches
66 * libidu/idread.c (io_read): As above.
67 * libidu/idu-hash.c (hash_init, hash_print_stats): Likewise.
68 * libidu/idwrite.c (io_write): Likewise.
69 * libidu/scanners.c (ARGS): Likewise.
70 * libidu/walker.c (print_member_file, langs_excluded): Likewise.
71 * src/lid.c (main): Likewise.
72 * src/mkid.c (scan_files, report_statistics, summarize): Likewise.
73
74 2017-01-20 Jim Meyering <[email protected]>
75
76 maint: update copyright dates
77
78 gnulib: update to latest; and update bootstrap and init.sh
79
80 2014-02-13 Jim Meyering <[email protected]>
81
82 gnulib: update to latest
83
84 maint: update copyright years
85
86 2014-02-13 Tom Tromey <[email protected]>
87
88 doc: change the manual to build with texinfo 5.1
89 * doc/idutils.texi (Top): Rearrange menu.
90 (Quick start): Use @itemize and @item.
91 (Common options): Rearrange menu.
92 (Walker options): Use @item, not @itemx.
93 (Past and Future): Use @itemize and @item.
94
95 2013-08-11 Jim Meyering <[email protected]>
96
97 doc: remove idutils.texi front- and back-cover text requirements
98 * doc/idutils.texi: Do not require front- or back-cover text,
99 thus making this section the same as gzip's, so this may be
100 included in Debian's "free" (rather than non-free) archive.
101
102 2012-10-23 Jim Meyering <[email protected]>
103
104 build: update gnulib, bootstrap and init.sh
105
106 2012-10-23 Eric Blake <[email protected]>
107
108 build: default to --enable-gcc-warnings in a git tree
109 Anyone building from cloned sources can be assumed to have a new
110 enough environment, such that enabling gcc warnings by default will
111 be useful. Tarballs still default to no warnings, and the default
112 can still be overridden with --disable-gcc-warnings.
113 * configure.ac (gl_gcc_warnings): Set default based on environment.
114
115 2012-10-23 Jim Meyering <[email protected]>
116
117 lid: avoid reading beyond end of buffer for a long name
118 * libidu/idfile.h (stzncpy): Define, from coreutils.
119 * src/lid.c (query_ambiguous_prefix): Avoid buffer overrun.
120 Using strncpy to copy a too-long name would result in a "name"
121 that is not NUL-terminated, yet that name would be treated as
122 a NUL-terminated string immediately afterwards, via report_func,
123 which attempts to print it.
124 * libidu/fnprint.c (root_name): Use stzncpy in place of strncpy.
125 * NEWS (Bug fixes): Mention the bug fix.
126
127 2012-05-11 Jim Meyering <[email protected]>
128
129 maint: arrange for "make distcheck" to run the syntax-check rules
130 * Makefile.am (ALL_RECURSIVE_TARGETS): Define.
131 (distcheck-hook): Depend on syntax-check.
132
133 maint: avoid new syntax-check failures
134 * cfg.mk (old_NEWS_hash): Update to reflect typo fix in old NEWS.
135 * doc/idutils.texi: Add "." before @xref.
136
137 build: update gnulib submodule to latest
138
139 2012-04-18 Jim Meyering <[email protected]>
140
141 maint: fix comment/doc typos
142 Found using https://github.com/lyda/misspell-check
143 * ChangeLog-2007: As above.
144 * NEWS: Likewise.
145 * src/mkid.c: Likewise.
146
147 2012-02-04 Jim Meyering <[email protected]>
148
149 maint: reenable gnulib's get-rusage-as-tests
150 * bootstrap.conf (avoided_gnulib_modules): Don't exclude
151 get-rusage-as-tests. That test has now been fixed.
152 * gnulib: Update to latest, for fixed get-rusage-as-tests.
153
154 2012-02-03 Jim Meyering <[email protected]>
155
156 maint: adjust the URL that will appear in the generated announcement
157 * cfg.mk (url_dir_list): Use this http://ftp.gnu.org/gnu/$(PACKAGE)
158 for the first link listed in the generated announcement.
159 announce-gen now provides the faster mirror link automatically.
160
161 maint: post-release administrivia
162 * NEWS: Add header line for next release.
163 * .prev-version: Record previous version.
164 * cfg.mk (old_NEWS_hash): Auto-update.
165
166 version 4.6
167 * NEWS: Record release date.
168
169 2012-01-31 Jim Meyering <[email protected]>
170
171 maint: use gnulib's readme-release module
172 * bootstrap.conf (gnulib_modules): Add readme-release.
173 (bootstrap_epilogue): Substitute.
174 * README-release: Remove file.
175 * .gitignore: Update.
176
177 tests: adapt framework for upcoming automake-1.12
178 * testsuite/check.mk (LOG_COMPILER): Define.
179 (TESTS_ENVIRONMENT): Adapt to work with the upcoming automake-1.12;
180 use "; 9>&2" at end. Move shell-or-perl to ...
181 * testsuite/shell-or-perl: ... new helper script from coreutils.
182 * testsuite/CuSkip.pm: New file, from coreutils.
183 * testsuite/Makefile.am (EXTRA_DIST): Add CuSkip.pm and shell-or-perl.
184
185 maint: make copyright statements more consistent; update gnulib
186 * cfg.mk (update-copyright-env): Add UPDATE_COPYRIGHT_FORCE=1
187 to rejoin some split lines, and UPDATE_COPYRIGHT_USE_INTERVALS=2
188 to make update-copyright use only one year range.
189 * gnulib: Update.
190 * testsuite/files0-from: Adapt to gnulib's change from `q' to 'q'.
191
192 build: update bootstrap from gnulib, and adapt
193 * bootstrap: Update from gnulib.
194 * testsuite/init.sh: Update from gnulib.
195 * bootstrap.conf (bootstrap_epilogue): Remove now-unnecessary,
196 snippet that edited gnulib-tests/gnulib.mk.
197 (gnulib_tool_option_extras): Add both --symlink and
198 --makefile-name=gnulib.mk. Remove use of $bt.
199 * lib/Makefile.am: Initialize numerous automake variables so that
200 generated code in gnulib.mk may use += to append to them.
201
202 build: work around new warning/suggestion to use "pure"
203 * src/mkid.c (check_hits): Change semantics to avoid the warning
204 that this assert-containing function could be declared with the
205 "pure" attribute. Instead, return 0/1, declare "pure" and let
206 the caller perform the assertion. Rename from assert_hits.
207 Add a comment.
208
209 2012-01-31 Jim Meyering <[email protected]>
210
211 build: add const and pure attributes, per gcc recommendation
212 * src/mkid.c (ceil_log_8, ceil_log_2): Add "const" attribute.
213 (token_hash_1, token_hash_2): Add "pure" attribute.
214 (token_hash_cmp, token_qsort_cmp): Likewise.
215 (count_vec_size, count_buf_size): Likewise.
216
217 * libidu/idu-hash.c (round_up_2): Add "const" attribute.
218 * libidu/scanners.h (get_language): Add "pure" attribute.
219 * libidu/idfile.h (token_flags): Likewise.
220 (token_count): Likewise.
221 (member_file_qsort_compare): Likewise.
222 (tree8_count_levels): Add "const" attribute.
223 * libidu/walker.c (symlink_ancestry): Add "pure" attribute.
224 (links_depth): Likewise.
225 (file_link_hash_1): Likewise.
226 (vector_length): Likewise.
227 (file_link_hash_compare): Likewise.
228 (string_in_vector): Likewise.
229 * src/lid.c (vector_cardinality, get_radix, dtoi, otoi): Likewise.
230 (is_regexp): Likewise.
231 (vector_length): Remove forward decl and move function definition
232 to precede first use.
233
234 2012-01-31 Jim Meyering <[email protected]>
235
236 build: turn off two of gcc's warning options
237 * configure.ac: Disable -Winline, at least temporarily due to number
238 of warnings, and low priority, and disable -Wformat-nonliteral, due
239 to inherent false positives.
240
241 build: fix man-page-building and cross-check rules
242 * man/Makefile.am (defid.1): New dependency.
243 (programs): Use both $(PROGRAMS) and $(SCRIPTS).
244 (check-x-vs-1): Use tr, not fmt, for portability. Use AM_V_GEN.
245 (programs): Likewise.
246 (check-programs-vs-x): Use AM_V_GEN. Remove coreutils-specific code.
247 (t, mapped_name): Remove definitions of unused variables.
248 (.x.1): Remove obsolete comment. Use AM_V_GEN, not echo.
249
250 2012-01-28 Jim Meyering <[email protected]>
251
252 tests: disable gnulib's get-rusage-as test
253 * bootstrap.conf (avoided_gnulib_modules): Disable the get-rusage-as
254 test: it's failing.
255
256 2012-01-01 Jim Meyering <[email protected]>
257
258 maint: avoid new syntax-check failure due to #if HAVE_SYS_TYPES_H
259 * libidu/idfile.h: Include <sys/types.h> unconditionally.
260 I.e., drop the now-redundant #if HAVE_SYS_TYPES_H guard.
261 gnulib guarantees the presence of that header.
262
263 maint: update all copyright year number ranges
264 Run "make update-copyright".
265
266 2011-11-29 Jim Meyering <[email protected]>
267
268 tests: use "compare exp out", not "compare out exp"
269 Likewise, when an empty file is expected, use "compare /dev/null out",
270 not "compare out /dev/null". I.e., specify the expected/desired contents
271 via the first file name. Prompted by a suggestion from Bruno Haible
272 in http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020/focus=29154
273
274 Run these commands:
275
276 git grep -l -E 'compare [^ ]+ exp' \
277 |xargs perl -pi -e 's/\b(compare) (\S+) (exp\S*)/$1 $3 $2/'
278 git grep -l -E 'compare [^ ]+ /dev/null' \
279 |xargs perl -pi -e 's,\b(compare) (\S+) (/dev/null),$1 $3 $2,'
280
281 [here, there were none of the latter]
282
283 2011-11-17 Jim Meyering <[email protected]>
284
285 build: update gnulib submodule to latest
286
287 build: exempt defid from a built-in automake check
288 defid *does* support --help and --version, but only when gid
289 is already in your shell's search path. That is not the case
290 for the first pre-install build.
291 * src/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Define.
292
293 maint: stop using gnulib's obsolete "exit" module
294 * bootstrap.conf (gnulib_modules): Remove module. It no longer exists.
295
296 build: update bootstrap from gnulib
297 * bootstrap: Update.
298
299 build: stop distributing gzip'd releases; xz is enough
300 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist-gzip.
301
302 2011-08-03 Jim Meyering <[email protected]>
303
304 tests: update init.sh from gnulib
305 * testsuite/init.sh: Update from gnulib.
306
307 2011-08-02 Jim Meyering <[email protected]>
308
309 tests: add a test for the lid radix-handling bug
310 * testsuite/lid-radix: New file.
311 * testsuite/Makefile.am (TESTS): Add it.
312 * NEWS (Bug fixes): Mention it.
313
314 2011-08-02 Shigio YAMAGUCHI <[email protected]>
315
316 lid: fix a bug that made it so -o, -x, -d did not work
317 * src/lid.c (radix_flag): Initialize to 0, not radix_all.
318 (main): Map 0 to the default, radix_all.
319 Tiny change.
320
321 2011-08-02 Jim Meyering <[email protected]>
322
323 build: update gnulib submodule to latest
324 * cfg.mk (local-checks-to-skip): Add sc_prohibit_path_max_allocation
325 to the list of skipped syntax-check rules. This is temporary.
326
327 2011-05-25 Jim Meyering <[email protected]>
328
329 maint: update gnulib to latest with accompanying tight-scope tweak
330 * cfg.mk: Include $(srcdir)/dist-check.mk using "-include",
331 to accommodate the new sc_tight_scope rule.
332 * gnulib: Update to latest.
333
334 2011-05-24 Jim Meyering <[email protected]>
335
336 tests: add tests for the lid -F ..N bug
337 * testsuite/lid-range: New file with tests based on a report by Shigio
338 YAMAGUCHI in http://thread.gmane.org/gmane.comp.gnu.idutils.bugs/137
339 * testsuite/Makefile.am (TESTS): Add it.
340 * NEWS (Bug fixes): Mention the bug fix.
341
342 2011-05-24 Shigio YAMAGUCHI <[email protected]>
343
344 lid -F RANGE: fix a bug in handling open-ended ranges
345 * src/lid.c (parse_frequency_arg): lid -F 2.. would mistakenly
346 act like "lid -F 2" and "lid -F ..2" would act like "lid F 1"
347
348 2011-05-23 Jim Meyering <[email protected]>
349
350 maint: adapt to use gnulib's tight-scope rule; update gnulib to latest
351 * cfg.mk (_gl_TS_headers): Define.
352 (_gl_TS_obj_files): Likewise.
353 * src/Makefile.am (sc_tight_scope): Remove rule.
354 * gnulib: Update to latest.
355
356 2011-03-20 Jim Meyering <[email protected]>
357
358 maint: stop using .x-sc_* files to list syntax-check exemptions
359 Instead, use the new mechanism with which you merely use a
360 variable (derived from the rule name) defined in cfg.mk to an ERE
361 matching the exempted file names.
362 * gnulib: Update to latest, to get maint.mk that implements this.
363 * .x-sc_cast_of_argument_to_free: Remove file.
364 * .x-sc_program_name: Likewise.
365 * .x-sc_prohibit_always_true_header_tests: Likewise.
366 * .x-sc_require_config_h: Likewise.
367 * .x-sc_require_config_h_first: Likewise.
368 * Makefile.am (EXTRA_DIST): Remove them from here, too.
369 * cfg.mk: Define variables to exempt the same files.
370
371 maint: remove unused inclusion of <stddef.h>
372 * libidu/scanners.c: As above.
373 * libidu/walker.c: Likewise.
374 * src/mkid.c: Likewise.
375
376 tests: avoid new compilation failure of a gnulib test program
377 * bootstrap.conf (avoided_gnulib_modules): Do not use --avoid=lock.
378 That would lead to compilation failure of the localenames.c test.
379
380 maint: avoid new false-positive syntax-check test failures
381 * .x-sc_program_name: Exempt main programs in testsuite/.
382 * .x-sc_prohibit_always_true_header_tests: New file, to exempt
383 src/lid.c from test for uses of cpp conditional, HAVE_TERMIOS_H.
384 It looks like lid.c's uses (of struct termios) cannot be guaranteed
385 to work with gnulib's replacement.
386
387 maint: remove two empty #if...#endif blocks
388 * src/lid.c: Remove empty #if...#endif blocks.
389
390 maint: avoid syntax-check failure due to new sc_bindtextdomain rule
391 * cfg.mk (local-checks-to-skip): Add sc_bindtextdomain.
392 Remove references to rules that are no longer in maint.mk.
393
394 maint: update copyright year ranges to include 2011
395 Run "make update-copyright".
396
397 2011-01-03 Jim Meyering <[email protected]>
398
399 build: update gnulib submodule to latest
400
401 2010-11-11 Pedro J. Ruiz Lopez <[email protected]>
402
403 mkid, xtokid: fixed conflict checking between include/exclude lang options.
404 * libidu/walker.c: fixed condition.
405
406 2010-10-09 Jim Meyering <[email protected]>
407
408 maint: describe policy on copyright year number ranges
409 * README: Mention coreutils' long-standing policy on use of M-N
410 ranges in copyright year lists. Requested by Richard Stallman.
411
412 2010-09-04 Jim Meyering <[email protected]>
413
414 build: update gnulib submodule to latest
415
416 build: use gettext-h, not gettext
417 * bootstrap.conf (gnulib_modules): Use gettext-h, not gettext.
418 The latter is overkill for a package that uses
419 AM_GNU_GETTEXT([external]...
420
421 2010-06-20 Jim Meyering <[email protected]>
422
423 doc: update README
424 * README: Update to reflect that the package is now named "idutils".
425 Add a little to the history. Remove mention of cscope plans.
426 Richard Lloyd reported that README was out of date.
427
428 2010-06-19 Jim Meyering <[email protected]>
429
430 maint: mention the GPLv3 update in NEWS
431 * NEWS (4.3.92): Note when we switched to GPLv3.
432 * cfg.mk (old_NEWS_hash): Update to reflect addition to old NEWS.
433 Suggested by Karl Berry.
434
435 2010-06-18 Jim Meyering <[email protected]>
436
437 tests: avoid "make check" failure with Solaris 10's "fmt"
438 * man/Makefile.am (check-x-vs-1): Use "fmt -w 1", not "fmt -w1",
439 since the latter fails on Solaris 10 with "fmt: bad width: 0".
440 Reported by Claudio Fontana.
441
442 2010-06-17 Jim Meyering <[email protected]>
443
444 maint: update release procedure
445 * README-release: Update.
446
447 mkid: handle the .xz suffix
448 * libidu/id-lang.map: Teach mkid about the .xz suffix.
449 Tell mkid to use the "xz" program on .lzma files.
450
451 post-release administrivia
452 * NEWS: Add header line for next release.
453 * .prev-version: Record previous version.
454 * cfg.mk (old_NEWS_hash): Auto-update.
455
456 version 4.5
457 * NEWS: Record release date.
458
459 maint: use gnulib's do-release-commit-and-tag module
460 * bootstrap.conf (gnulib_modules): Add do-release-commit-and-tag.
461
462 2010-06-16 Jim Meyering <[email protected]>
463
464 tests: fix "make distcheck" failure
465 * testsuite/help-version (mkid_setup): Tell mkid not to access
466 the not-yet-installed id-lang.map file.
467 (xtokid_setup): Likewise.
468
469 tests: clean up "consistency" and limit the number of files it uses
470 * testsuite/consistency: Use abs_top_srcdir.
471 Perform tests only on files under src, so it doesn't take so long.
472 Stop using "eval" and an explicit $bindir.
473 Don't re-invoke "make". Not needed, now that $abs_top_srcdir
474 is exported from Makefile (via check.mk) to this script.
475 * testsuite/Makefile.am (consistency-real): Remove rule, now
476 that we no longer use it.
477
478 build: remove now-unnecessary replacement lstat definition
479 * libidu/walker.c [! HAVE_LSTAT] (lstat): Remove definition.
480 Gnulib already handles that.
481
482 maint: update bootstrap and init.sh from gnulib
483 * bootstrap: Update from gnulib.
484 * testsuite/init.sh: Likewise.
485
486 build: update gnulib submodule to latest
487
488 build: require gettext-0.18
489 * configure.ac: Require it here...
490 * bootstrap.conf (buildreq): ...and here.
491
492 2010-05-09 Jim Meyering <[email protected]>
493
494 tests: adjust help-version
495 * testsuite/help-version: Use one-line invocation of init.sh.
496
497 build: avoid new syntax-check failure
498 * libidu/iduglobal.h (FNM_FILE_NAME): Remove definition.
499 Now, it's provided by gnulib.
500
501 build: update from gnulib
502 * bootstrap: Update from gnulib.
503 * testsuite/init.sh: Update from gnulib.
504 * gnulib: Update to latest.
505
506 doc: add "gid" to the menus and direntry list
507 * doc/idutils.texi (gid invocation): Add a section on "gid".
508
509 doc: add @dircategory to Info documentation
510 The Texinfo documentation says that Info files should use @dircategory,
511 and suggests consulting the Free Software Directory to select a category
512 name. The directory places under ""Text creation and manipulation".
513 * doc/idutils.texi: Add "@dircategory Text creation and manipulation".
514 Inspired by a nearly identical patch by Colin Watson for Parted.
515
516 mkid: use ftello (not ftell) and fail if an offset is 2^32 or larger
517 This is necessary because the internal layout requires that an
518 offset be representable as a 4-byte quantity.
519 * src/mkid.c (write_id_file): Use ftello, not ftell.
520 The latter would fail on files larger than 4GiB. Now,
521 we still fail for such files, but use ftello instead --
522 and give a diagnostic.
523
524 2010-05-01 Jim Meyering <[email protected]>
525
526 build: update gnulib submodule to latest
527
528 tests: add help-version, from grep
529 * testsuite/help-version: New file.
530 * testsuite/init.sh: New file, from gnulib.
531 * testsuite/Makefile.am (EXTRA_DIST): Add init.sh.
532 (TESTS): Add help-version.
533 * cfg.mk (_hv_file): Define.
534 * testsuite/check.mk (TESTS_ENVIRONMENT): Define VERSION,
535 for help-version's cross check.
536 (built_programs): Adjust to work, and to accommodate $(EXEEXT).
537
538 maint: accommodate new syntax-check rules
539 * bootstrap.conf (gnulib_modules): Add sys_ioctl
540 * src/lid.c: Include <sys/ioctl.h> unconditionally.
541 * libidu/xnls.h: Don't depend on HAVE_LOCALE_H.
542 <locale.h> is always available.
543
544 maint: accommodate new empty-line-EOF syntax-check rule
545 * lisp/Makefile.am (dist_lisp_LISP): Remove empty line at EOF
546
547 doc: update to version 1.3 of the FDL
548 * doc/idutils.texi: Update to FDL 1.3.
549 * NEWS: Likewise.
550 * cfg.mk (old_NEWS_hash): Update to accommodate this change.
551
552 2010-04-21 Jim Meyering <[email protected]>
553
554 build: update gnulib submodule to latest
555
556 2010-01-03 Jim Meyering <[email protected]>
557
558 maint: record update-copyright options for this package
559 * cfg.mk: Next time, just run "make update-copyright".
560
561 2010-01-01 Jim Meyering <[email protected]>
562
563 build: update gnulib submodule to latest
564
565 maint: remove all .cvsignore files
566
567 maint: update all FSF copyright year lists to include 2010
568 Use this command:
569 git ls-files |grep -vE '^(\..*|COPYING|gnulib)$' |xargs \
570 env UPDATE_COPYRIGHT_USE_INTERVALS=1 build-aux/update-copyright
571
572 2009-12-31 Jim Meyering <[email protected]>
573
574 maint: sync dist-check.mk from coreutils
575 * dist-check.mk: Update.
576
577 maint: newer gnulib; don't hard-code my GPG key ID
578 * cfg.mk (gpg_key_ID): Remove definition, now that maint.mk automates it.
579 * gnulib: Update to latest.
580
581 2009-12-01 Jim Meyering <[email protected]>
582
583 build: correct relative name of .version file
584 * man/Makefile.am (common_dep): Use ../.version,
585 not $(top_srcdir)/.version.
586 Reported by Markus Armbruster.
587
588 2009-11-20 Jim Meyering <[email protected]>
589
590 maint: cfg.mk: remove factored-out ftp host/dir definitions
591 * cfg.mk (gnu_ftp_host-alpha, gnu_ftp_host-beta gnu_ftp_host-stable):
592 (gnu_rel_host, url_dir_list): Remove definitions. The defaults,
593 now provided by maint.mk, are the same.
594 * gnulib: Update for latest, including those maint.mk additions.
595
596 2009-11-13 Jim Meyering <[email protected]>
597
598 build: require gettext-0.17
599 * configure.ac: Require gettext-0.17; it was released two years ago.
600
601 build: correct gettext configure-time support
602 * configure.ac: Use AM_GNU_GETTEXT([external], [need-ngettext]),
603 rather than AM_GNU_GETTEXT([external], [need-formatstring-macros]).
604 Reported by Martin Jacobs in
605 http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3181
606
607 2009-11-07 Jim Meyering <[email protected]>
608
609 build: update gnulib submodule to latest
610
611 2009-10-31 Jim Meyering <[email protected]>
612
613 admin: distribute gnu-web-doc-update
614 * bootstrap.conf (gnulib_modules): Add gnu-web-doc-update.
615
616 admin: document release procedure (copied from gzip's)
617 * README-release: New file.
618
619 2009-10-30 Jim Meyering <[email protected]>
620
621 post-release administrivia
622 * NEWS: Add header line for next release.
623 * .prev-version: Record previous version.
624 * cfg.mk (old_NEWS_hash): Auto-update.
625
626 version 4.4
627 * NEWS: Record release date.
628
629 build: accommodate new syntax-check test
630 Use EXIT_FAILURE and EXIT_SUCCESS, not 1 and 0.
631 Apply these commands:
632 perl -pi -e 's/\berror \(1,/error (EXIT_FAILURE,/' \
633 $(git grep -l '\<error (1,')
634 perl -pi -e 's/\bexit \(1\)/exit (EXIT_FAILURE)/' \
635 $(git grep -l '\<exit (1)')
636 perl -pi -e 's/\bexit \(0\)/exit (EXIT_SUCCESS)/' \
637 $(git grep -l '\<exit (0)')
638 * libidu/idread.c (read_id_file, maybe_read_id_file, io_read):
639 * libidu/idu-hash.c (hash_init):
640 * libidu/idwrite.c (io_write):
641 * libidu/scanners.c (parse_language_map, parse_language_map_file):
642 (read_language_map_file):
643 * libidu/walker.c (include_languages, exclude_languages):
644 (get_current_dir_link):
645 * src/fid.c (usage, help_me, main):
646 * src/fnid.c (usage, help_me, main):
647 * src/lid.c (usage, help_me, main, report_grep, report_edit):
648 (query_regexp):
649 * src/mkid.c (main, assert_writeable, write_id_file):
650 * src/xtokid.c (help_me):
651
652 build: update gnulib submodule to latest
653
654 2009-10-19 Jim Meyering <[email protected]>
655
656 build: update gnulib submodule to latest
657
658 2009-10-18 Jim Meyering <[email protected]>
659
660 build: update bootstrap from coreutils
661 * bootstrap: Update from coreutils.
662 * bootstrap.conf: Likewise.
663
664 build: update gnulib submodule to latest
665
666 2009-09-30 Jim Meyering <[email protected]>
667
668 maint: use proper distribution upload url
669 * cfg.mk (url_dir_list): Use $(PACKAGE), not coreutils.
670
671 build: avoid warning exposed by gcc-4.4.1
672 * src/fid.c (help_me): Declare with noreturn attribute.
673 * src/fnid.c (help_me): Likewise.
674 * src/lid.c (help_me): Likewise.
675 * src/mkid.c (help_me): Likewise.
676 * src/xtokid.c (help_me): Likewise.
677
678 build: use more gnulib modules for better POSIX compliance
679 * bootstrap.conf (gnulib_modules): Add modules exposed via
680 make CFLAGS=-DGNULIB_POSIXCHECK 2>&1 \
681 |perl -lne '/.* use gnulib module (\S+).*/ and print $1' \
682 |sort |uniq -c|sort -nr
683 calloc, fflush, fopen, freopen, fprintf-posix, printf-posix,
684 sprintf-posix
685
686 2009-08-31 Jim Meyering <[email protected]>
687
688 maint: update gnulib submodule to latest
689
690 maint: declare usage with "noreturn" attribute, so...
691 * libidu/scanners.c: ...tools like llvm understand flow control better.
692
693 maint: use better syntax: NULL, not 0, in pointer comparison
694 * libidu/scanners.c (language_save_arg): Compare pointer to NULL, not 0.
695
696 maint: mkid, xtokid: remove unnecessary initialization
697 * src/xtokid.c (main): Don't set "skip_file" unnecessarily.
698 * src/mkid.c (main): Likewise.
699
700 build: don't use -Werror in lib/
701 * lib/Makefile.am (AM_CFLAGS): Don't use $(WERROR_CFLAGS).
702
703 2009-08-16 Jim Meyering <[email protected]>
704
705 build: enable warning options also in lib/
706 * lib/Makefile.am (AM_CFLAGS): Fix typo: s/WARNING_CFLAGS/WARN_CFLAGS/
707
708 2009-08-15 Jim Meyering <[email protected]>
709
710 maint: configure update-copyright to use intervals
711 * cfg.mk (update-copyright-env): Define.
712
713 maint: update copyright year lists to include 2009
714
715 maint: make @copyright line recognizable to update-copyright
716 * doc/idutils.texi: Remove "(C)" from copyright line.
717
718 build: avoid "make distcheck" failure and distracting diagnostics
719 * testsuite/check.mk (built_programs): Rewrite so that it works.
720 (TESTS_ENVIRONMENT): Use $$f, not $$tst. The latter included a
721 $(srcdir)/ prefix that was fatal in the non-srcdir build case.
722
723 rename hash.? to idu-hash.? to avoid conflict with gnulib's hash.h
724 Now that gnulib's exclude module uses gnulib's hash module,
725 which includes a hash.h file, idutils' use of a hash.h file conflicted.
726 Rename the one here in idutils:
727 * libidu/idu-hash.c: Rename from hash.c.
728 * libidu/idu-hash.h: Rename from hash.h.
729 * libidu/idfile.h: Reflect renaming.
730 * libidu/idread.c: Likewise.
731 * libidu/idwrite.c: Likewise.
732 * src/mkid.c: Likewise.
733 * libidu/Makefile.am: Likewise.
734
735 build: use gnulib's update-copyright module
736 * bootstrap.conf (gnulib_modules): Add update-copyright.
737
738 build: use gnulib's getopt-gnu module (getopt is now deprecated)
739 * bootstrap.conf (gnulib_modules): Gnulib's getopt module is now
740 deprecated; use the new, preferred name, getopt-gnu.
741
742 build: update from gnulib
743 * gnulib: Update submodule to latest.
744
745 build: avoid a legitimate warning exposed by newer gcc
746 * libidu/scanners.c (language_save_arg): Remove decl of unused
747 static local, horizontal_space.
748
749 tests: run the latest test
750 * testsuite/Makefile.am (EXTRA_DIST): Add mkid-langopt.
751 * NEWS: Tweak wording.
752 * testsuite/mkid-langopt: Add a comment.
753
754 2009-08-13 Pedro J. Ruiz Lopez <[email protected]>
755
756 mkid: avoid segfault with "-l OPT"
757 * libidu/scanners.c: languages_0[] is not const anymore, since this
758 would make impossible to set lang->lg_argv
759 * libidu/scanners.c: language_save_arg now manages language options
760 with zero or one argument.
761 * doc/idutils.texi: update to reflect the behavior of mkid "-l" option.
762 * testsuite/mkid-langopt: new test program.
763
764 2009-07-04 Jim Meyering <[email protected]>
765
766 maint: ignore *.1 man pages
767 * .gitignore: Ignore man/*.1.
768
769 build: require/use newer automake
770 * configure.ac: require automake-1.11.
771 Enable color-tests and parallel-tests options.
772
773 tests: remove now-unnecessary build-aux/check.mk
774 * build-aux/check.mk: Remove file.
775 * testsuite/check.mk: Don't include build-aux/check.mk.
776
777 tests: avoid a false-positive failure
778 * testsuite/consistency: Manually remove single_file_token_bug.c
779 from the list of files to be compared, since it would provoke
780 a false positive.
781
782 tests: update CuTmpdir.pm from coreutils
783 * testsuite/CuTmpdir.pm: Update from coreutils.
784
785 mkid, xtokid: read and process --files0-from= input a name at a time,
786 rather than by reading the entire input into memory and *then*
787 processing each file name.
788 * src/mkid.c: Include "argv-iter.h", not "readtokens0.h".
789 (main): Rewrite to use argv-iter.
790 * src/xtokid.c: Likewise.
791 Include <assert.h>.
792 * bootstrap.conf (gnulib_modules): Add argv-iter. Remove readtokens0.
793 * libidu/iduglobal.h (STREQ): Define.
794 (bad_cast): Define.
795
796 remove wc-related code that doesn't apply here
797 * src/mkid.c: Don't handle a file name of "-" specially.
798 * src/xtokid.c: Likewise.
799 * testsuite/files0-from: Don't test for it.
800
801 tests: add testing framework, and tests for the new option
802 * NEWS (New features): Mention the new option.
803 * src/mkid.c (main): Adjust a diagnostic.
804 * src/xtokid.c (main): Adjust a diagnostic.
805 * bootstrap.conf (gnulib_modules): Add perl and posix_shell
806 * build-aux/check.mk: New file, from coreutils.
807 * testsuite/Coreutils.pm: Likewise.
808 * testsuite/CuTmpdir.pm: Likewise.
809 * testsuite/check.mk: Likewise.
810 * testsuite/envvar-check: Likewise.
811 * testsuite/files0-from: New test, based on one from coreutils.
812 * testsuite/Makefile.am (TESTS): Add files0-from.
813 (TESTS_ENVIRONMENT): Remove definition. Now it's in check.mk.
814 (EXTRA_DIST): Add Coreutils.pm CuTmpdir.pm envvar-check and check.mk.
815 Include $(srcdir)/check.mk.
816
817 2009-07-04 Pedro J. Ruiz Lopez <[email protected]>
818
819 mkid, xtokid: accept a new option --files0-from=FILE
820 * bootstrap.conf (gnulib_modules): Add quote and readtokens0.
821 * doc/idutils.texi: Document the option.
822 * src/mkid.c (usage, FILES0_FROM_OPTION, long_options, help_me)
823 (main): Implement.
824 * src/xtokid.c (usage, FILES0_FROM_OPTION, long_options, help_me)
825 (main): Likewise.
826
827 2009-07-04 Jim Meyering <[email protected]>
828
829 gnulib: update to latest, to get argv-iter
830
831 2009-06-30 Jim Meyering <[email protected]>
832
833 build: update from coreutils
834 * README-hacking: Update from coreutils.
835 * bootstrap.conf: Likewise.
836 * bootstrap: Likewise.
837 * dist-check.mk: Likewise.
838
839 2009-06-16 Pedro J. Ruiz Lopez <[email protected]>
840
841 Fixed bug #22154: --default-lang does nothing
842 * libidu/scanners.c: set_default_language function implemented.
843
844 2009-06-07 Jim Meyering <[email protected]>
845
846 maint: add const attribute to a few declarations
847 * libidu/hash.c (hash_print_stats, hash_dump): Add const.
848 * libidu/hash.h: Likewise.
849 * src/mkid.c (scan_files): Likewise.
850
851 build: avoid warning from newer gcc
852 * configure.ac: Turn off -Wunsafe-loop-optimizations.
853
854 build: update from gnulib
855 * gnulib: Update submodule to latest.
856
857 2009-05-18 Ludovic Courtès <[email protected]>
858
859 elisp: use `read-shell-command' in `gid'
860 * lisp/idutils.el (gid): Use `read-shell-command' instead of
861 `read-string', to allow for completion.
862
863 2009-05-17 Jim Meyering <[email protected]>
864
865 maint: cfg.mk: remove now-unnecessary gnulib_dir definition
866 * cfg.mk (gnulib_dir): Remove definition, now that gnulib's
867 maint.mk provides the default we want.
868
869 build: update from gnulib, for rename.m4 fix, improved tests, etc.
870 * gnulib: Update submodule to latest.
871
872 build: adjust warnings
873 * configure.ac: Enable a few warning options that didn't need to
874 be disabled; disable -Wlong-long (for latest gcc snapshot).
875
876 maint: remove unused file
877 * m4/extra_dist.sh: Remove now-unused file.
878
879 2009-04-30 Jim Meyering <[email protected]>
880
881 clean-up: use proper types
882 * src/fid.c (get_file_index): Use size_t for lengths, not int.
883
884 avoid a legitimate -Wstrict-overflow warning
885 * libidu/scanners.h (log_8_member_files): Change type from int to size_t.
886 * libidu/scanners.c: Likewise.
887
888 build: suppress more warnings
889 * src/fid.c (usage): Declare with __noreturn__ attribute.
890 * src/fnid.c (usage): Likewise.
891 * src/lid.c (usage): Likewise.
892 * src/mkid.c (usage): Likewise.
893 * src/xtokid.c: (usage): Likewise.
894 * src/mkid.c (sum_files): Remove unused macro.
895
896 build: suppress warnings about ignored return value from fread/fwrite
897 * libidu/idwrite.c: include "ignore-value.h".
898 (io_write): Ignore fwrite return value.
899 * libidu/idread.c: Likewise for fread.
900 * bootstrap.conf (gnulib_modules): Add ignore-value.
901
902 build: remove unused macros
903 * libidu/scanners.c (ISSPACE, WS): Remove unused macros.
904
905 build: avoid a warning
906 * libidu/idfile.c (sizeof_idhead): Avoid old-style function definition.
907
908 build: remove unused macros
909 * libidu/idread.c (TOK_COUNT_ADDR): Remove unused macro.
910 (TOK_HITS_ADDR): Likewise.
911
912 build: enable new compiler warning options
913 * src/Makefile.am (AM_CFLAGS): Define to $(WARN_CFLAGS) $(WERROR_CFLAGS).
914 * libidu/Makefile.am (AM_CPPFLAGS): Remove bogus -I$(top_builddir)/intl
915 (AM_CFLAGS): Define to $(WARN_CFLAGS) $(WERROR_CFLAGS).
916 * src/Makefile.am (AM_CPPFLAGS): Remove bogus -I.../intl
917
918 2009-04-29 Jim Meyering <[email protected]>
919
920 build: address automake warning
921 * lib/Makefile.am (AM_CFLAGS): Increment, rather than assigning,
922 so as not to override settings from just-included gnulib.mk.
923
924 build: accommodate maint.mk, now that it's pulled from gnulib
925 * dist-check.mk: New file, from coreutils. Was part of maint.mk.
926 * cfg.mk (old_NEWS_hash): Include $(srcdir)/dist-check.mk.
927 Remove trailing " -", to align with new check in maint.mk.
928 * Makefile.am (EXTRA_DIST): Add dist-check.mk.
929
930 maint: enable many gcc warnings
931 * bootstrap.conf (gnulib_modules): Add warnings and manywarnings.
932 * configure.ac: Use gl_MANYWARN_ALL_GCC, and exclude options
933 I don't want or that provoke too many warnings.
934 (WARN_CFLAGS, WERROR_CFLAGS): Define.
935 (lint, GNULIB_PORTCHECK): Define.
936 (_FORTIFY_SOURCE): Define to 2.
937
938 * .cvsignore: Remove now-unused file.
939
940 build: use maint.mk from gnulib
941 * maint.mk: Remove file. Now it's generated.
942 * .gitignore: Ignore it.
943 * bootstrap.conf (gnulib_modules): Add maintainer-makefile.
944 Remove obsolete modules.
945
946 maint: use a git submodule for gnulib
947 * .gitmodules: New file, to track gnulib.
948 * gnulib: New file, created by running this:
949 git submodule add git://git.sv.gnu.org/gnulib.git gnulib
950
951 * configure.ac (AM_INIT_AUTOMAKE): Require automake-1.10b or newer.
952
953 2009-04-27 Jim Meyering <[email protected]>
954
955 build: make automake's silent-rules option the default
956 * configure.ac (AM_SILENT_RULES): Use this, with it's "yes" argument.
957 Those who want verbose build output may configure with
958 --disable-silent-rules or use "make V=1".
959
960 2009-03-21 Jim Meyering <[email protected]>
961
962 * maint.mk: sync from coreutils
963
964 2009-03-18 Jim Meyering <[email protected]>
965
966 maint.mk: update from coreutils
967 * maint.mk: Sync.
968 * cfg.mk (manual_title): Define.
969
970 2009-03-02 Jim Meyering <[email protected]>
971
972 * cfg.mk (old_NEWS_hash): Update.
973
974 maint.mk: update from coreutils
975 * maint.mk: Modernize
976 (sc_tight_scope): Move this rule to...
977 * idutils/cfg.mk (sc_tight_scope): ...here.
978 * .x-sc_require_config_h_first: New file.
979
980 * doc/idutils.texi: Update copyright year.
981
982 * configure.ac: Use dist-xz rather than dist-lzma.
983
984 2009-03-02 Ludovic Courtès <[email protected]>
985
986 recognize `.org' files as text
987 * libidu/id-lang.map: Add `.org' extension, for Emacs Org-Mode files.
988
989 2008-11-30 Jim Meyering <[email protected]>
990
991 * src/lid.c: Remove duplicate inclusion of <termios.h>.
992
993 * src/fnid.c: Remove duplicate inclusion of <errno.h>.
994
995 2008-10-26 Jim Meyering <[email protected]>
996
997 recognize a few more file types
998 * libidu/id-lang.map: Recognize .rb, .in.h, .PL, configure.in,
999 and GNUmakefile.
1000
1001 avoid a start-up leak
1002 * libidu/walker.c (get_current_dir_link): Don't leak cwd_0.
1003
1004 2008-10-22 Pedro J. Ruiz Lopez <[email protected]>
1005
1006 accommodate gnulib header removals
1007 * libidu/idfile.c: Include <sys/stat.h>, not "lstat.h".
1008 * libidu/scanners.c: Likewise.
1009 * libidu/walker.c: Likewise.
1010 * src/mkid.c: Likewise.
1011
1012 2008-10-18 Jim Meyering <[email protected]>
1013
1014 post-release administrivia
1015 * NEWS: Add header line for next release.
1016 * .prev-version: Record previous version.
1017 * cfg.mk (old_NEWS_hash): Auto-update.
1018
1019 * NEWS: Record release date; add copyright at bottom.
1020
1021 sync from coreutils
1022 * maint.mk: Sync from coreutils.
1023 * bootstrap: Likewise.
1024 * README-hacking: Likewise.
1025 * bootstrap.conf: Standardize copyright comments.
1026 (gnulib_modules): Add announce-gen and strcasestr.
1027
1028 add idutils.spec.in
1029 * idutils.spec.in: New file, mostly from from Markus Armbruster.
1030 * Makefile.am (idutils.spec): New rule.
1031 (EXTRA_DIST): Add idutils.spec.in and idutils.spec.
1032 * .gitignore: Add idutils.spec.
1033
1034 2008-09-13 Jim Meyering <[email protected]>
1035
1036 set coding system to utf8 in THANKS
1037 * THANKS: and adjust François' name accordingly.
1038
1039 2008-09-12 Jim Meyering <[email protected]>
1040
1041 * lisp/idutils.el: Update suggested autoload syntax in comment.
1042
1043 use dist_man1_MANS rather than dist_man_MANS: efficiency
1044 * man/Makefile.am: Use dist_man1_MANS rather than dist_man_MANS.
1045 Recommended in automake documentation, for more efficient install.
1046
1047 2008-08-30 Jim Meyering <[email protected]>
1048
1049 tests: adjust failure diagnostic to match reality
1050 * testsuite/consistency: Correct suffix, s/xtokid/xti/ in diagnostics.
1051 Also fix a double temp-file naming bug: s/fid/lid/g.
1052
1053 * bootstrap: Update from coreutils.
1054
1055 2008-06-24 Jim Meyering <[email protected]>
1056
1057 avoid warnings, adjust for const-correctness
1058 * libidu/scanners.c (long_options_c, long_options_asm)
1059 (long_options_text, long_options_perl): Add initializers.
1060 * src/fid.c (long_options): Add initializers.
1061 * src/fnid.c (long_options): Add initializers.
1062 * src/lid.c (ATTRIBUTE_UNUSED): Define.
1063 (long_options): Add initializers.
1064 (report_nothing): Mark parameter as unused.
1065 (get_editor_argv, report_edit): Adjust for const-correctness.
1066 * src/mkid.c (long_options): Add initializers.
1067 (report_statistics): Don't subtract "void*" pointers. Cast to "char*".
1068 * src/xtokid.c (long_options): Add initializers.
1069
1070 remove redundant "const" in declarations
1071 * libidu/scanners.c (languages_0, long_options_c): Likewise.
1072 (long_options_asm, long_options_text, long_options_perl): Likewise.
1073 * src/fid.c (long_options): Likewise.
1074 * src/fnid.c (long_options): Likewise.
1075 * src/lid.c (long_options): Likewise.
1076 * src/mkid.c (long_options): Likewise.
1077 * src/xtokid.c (long_options): Likewise.
1078
1079 * maint.mk: sync from coreutils
1080
1081 2008-06-14 Jim Meyering <[email protected]>
1082
1083 sync maint.mk from coreutils, and adjust to conform
1084 * libidu/scanners.c (long_options_c, long_options_asm): Add "const".
1085 (long_options_text, long_options_perl): Likewise.
1086 * src/fnid.c (long_options): Likewise.
1087 * src/lid.c (long_options): Likewise.
1088 * src/xtokid.c (long_options): Likewise.
1089
1090 2008-06-04 Jim Meyering <[email protected]>
1091
1092 exempt the four new src/lid-?id.c files from config.h test
1093 * .x-sc_require_config_h: Add the regexp.
1094
1095 use gnulib's progname module
1096 * bootstrap.conf (gnulib_modules): Add progname.
1097 * src/mkid.c: Include "progname.h".
1098 (program_name): Remove declaration.
1099 (main): Call set_program_name rather than setting program_name.
1100 * src/fid.c: Likewise.
1101 * src/fnid.c: Likewise.
1102 * src/lid.c: Likewise.
1103 * src/xtokid.c: Likewise.
1104
1105 * maint.mk: sync from coreutils
1106
1107 2008-05-30 Jim Meyering <[email protected]>
1108
1109 * bootstrap.conf (gnulib_modules): Add autobuild.
1110
1111 2008-05-27 Jim Meyering <[email protected]>
1112
1113 * maint.mk: Merge from coreutils.
1114
1115 build aid, eid, and gid as binaries (were scripts)
1116 * src/lid.c: Include "lid.h".
1117 (main): Set defaults based on new global, lid_mode.
1118 * src/Makefile.am (bin_PROGRAMS): Add aid, eid, gid.
1119 (dist_bin_SCRIPTS): Remove them from this list.
1120 (noinst_HEADERS, aid_SOURCES, eid_SOURCES): Define.
1121 (gid_SOURCES, lid_SOURCES): Define.
1122 * src/aid, src/eid, src/gid: Remove scripts.
1123 * src/lid-aid.c, src/lid-eid.c, src/lid-gid.c, src/lid-lid.c:
1124 * src/lid.h: New files.
1125 * man/Makefile.am (aid.1, eid.1, gid.1): Adjust dependencies.
1126 * .gitignore: Add src/aid, src/eid, src/gid.
1127
1128 enforce --help and --version compliance
1129 * configure.ac (AM_INIT_AUTOMAKE): Add std-options.
1130
1131 perform gnulib tests first
1132 * Makefile.am (SUBDIRS): Make gnulib-tests precede testsuite.
1133
1134 2008-05-22 Jim Meyering <[email protected]>
1135
1136 don't ignore pre-fclose ID-file write error
1137 * src/mkid.c (write_id_file): Test ferror, too.
1138
1139 2008-05-20 Jim Meyering <[email protected]>
1140
1141 detect write error on stdout
1142 * src/fid.c: Include "closeout.h".
1143 (main): Use it via atexit.
1144 * src/fnid.c (main): Likewise.
1145 * src/lid.c (main): Likewise.
1146 * src/mkid.c (main): Likewise.
1147 * src/xtokid.c (main): Likewise.
1148 * NEWS: Mention the bug fixes.
1149
1150 2008-05-19 Jim Meyering <[email protected]>
1151
1152 recognize more suffixes: .mk, .ac, .bz2, .lzma.
1153 * libidu/id-lang.map: Add .mk -> make, .ac -> m4.
1154 Handle .bz2 and .lzma, too.
1155 * NEWS: Mention this. Add a few more news items.
1156
1157 2008-05-17 Jim Meyering <[email protected]>
1158
1159 tighten scope in libidu/, too
1160 Mark with "extern" the symbols that belong that way.
1161 Make the others static.
1162 * libidu/dynvec.h (dv_fill):
1163 * libidu/fnprint.c (cw_dlink):
1164 * libidu/hash.h (qsort_cmp_t):
1165 * libidu/idfile.h (io_func_t):
1166 * libidu/scanners.c (lang_args_obstack, languages_0, languages_N):
1167 (language_help_me, language_getopt, get_language):
1168 (lang_args_index):
1169 * libidu/walker.c (largest_member_file):
1170 * maint.mk (extract_char, today):
1171 * src/fid.c (long_options):
1172 * src/fnid.c (cw_dlink):
1173 * src/lid.c (cw_dlink):
1174 * src/xtokid.c (cw_dlink):
1175
1176 * src/Makefile.am (sc_tight_scope): Improve.
1177
1178 make more functions static
1179
1180 declare many global variable to be "static"
1181 Remove the few that were thus exposed as being unused.
1182 Remove some unused prototypes.
1183
1184 tests: make scope check work when $(noinst_HEADERS) is empty
1185 * src/Makefile.am (sc_tight_scope): Add /dev/null as an argument
1186 to the sed-based variable filter, in case $(noinst_HEADERS) is empty.
1187
1188 Remove unused functions.
1189 * src/lid.c (linetty): Remove unused function.
1190 (file_name_wildcard): Likewise.
1191
1192 * src/lid.c (strcasestr): Remove function.
1193
1194 make functions static
1195
1196 tests: enable scoping check
1197 * cfg.mk (local-checks-to-skip): Don't skip sc_tight_scope anymore.
1198 * src/Makefile.am (sc_tight_scope): New rule. From coreutils.
1199
1200 * bootstrap: Sync from coreutils.
1201
1202 Generate man pages, update from coreutils.
1203 * configure.ac (AC_CONFIG_FILES): Add man/Makefile.
1204 Check for help2man.
1205 * man/Makefile.am: New file.
1206 * .gitignore: Add .version and .tarball-version.
1207 * Makefile.am (SUBDIRS): Add man.
1208 * cfg.mk: Update from coreutils.
1209 * maint.mk: Likewise.
1210 * man/aid.x: New file.
1211 * man/defid.x: Likewise.
1212 * man/eid.x: Likewise.
1213 * man/fid.x: Likewise.
1214 * man/fnid.x: Likewise.
1215 * man/gid.x: Likewise.
1216 * man/lid.x: Likewise.
1217 * man/mkid.x: Likewise.
1218 * man/xtokid.x: Likewise.
1219
1220 2008-05-10 Jim Meyering <[email protected]>
1221
1222 * src/defid: Handle --help and --version.
1223
1224 * configure.ac (AM_INIT_AUTOMAKE): Add dist-lzma.
1225
1226 Use new gnulib gnumakefile module.
1227 * bootstrap.conf (gnulib_modules): Pull in new module.
1228 * GNUmakefile: Remove from version control.
1229 * .gitignore: Update.
1230 * configure.ac (AC_CONFIG_LINKS): Delete; rely on gnulib to do
1231 this now.
1232 * Makefile.am (EXTRA_DIST): Remove GNUmakefile.
1233
1234 2008-03-21 Jim Meyering <[email protected]>
1235
1236 Sync GNUmakefile with gnulib.
1237 * GNUmakefile (Makefile.cfg): Rename...
1238 (cfg.mk): ...to this, and make optional.
1239 (GNUmakefile.cfg): Delete, redundant with cfg.mk.
1240 (Makefile.maint): Rename...
1241 (maint.mk): ...to this.
1242 (all) [!_have-Makefile]: Rename...
1243 (abort-due-to-no-makefile): ...to this, and invoke via
1244 .DEFAULT_GOAL to pick up all targets.
1245 * Makefile.cfg: Rename...
1246 * cfg.mk: ...to this.
1247 * Makefile.maint: Rename...
1248 * maint.mk ...to this.
1249 (ME): Reflect rename.
1250 (makefile-check, m4-check, author_mark_check, msg): Use $(ME)
1251 rather than hard-coded name.
1252
1253 2008-03-18 Jim Meyering <[email protected]>
1254
1255 * bootstrap.conf (gnulib_modules): Add useless-if-before-free.
1256
1257 Update from coreutils.
1258 * GNUmakefile: Likewise.
1259 * Makefile.maint: Likewise.
1260 * configure.ac: Likewise.
1261
1262 2008-03-02 Jim Meyering <[email protected]>
1263
1264 Update .tarball-version-related rules from coreutils.
1265 * GNUmakefile: Support VPATH "make dist". Namespace clean-up.
1266 Remove .version-creating rules.
1267 * configure.ac (AC_INIT): Use .tarball-version, not .version
1268 * bootstrap: Update from coreutils.
1269 * bootstrap.conf (obsolete_gnulib_modules): Remove free.
1270 * Makefile.am: Emit .tarball-version into tarball.
1271
1272 2008-02-27 Jim Meyering <[email protected]>
1273
1274 * testsuite/Makefile.am (TESTS_ENVIRONMENT): Remove abs_top_builddir setting. Not needed.
1275
1276 2008-02-14 Bob Proulx <[email protected]>
1277
1278 Fix testsuite PATH for VPATH builds.
1279 * testsuite/Makefile.am (PATH): Prepend $(abs_top_builddir).
1280
1281 Add version report for aid program test dependency.
1282 * testsuite/infloop-kawa-el [VERBOSE]: Print aid version.
1283
1284 2008-02-14 Jim Meyering <[email protected]>
1285
1286 aid, eid, gid: Make these scripts executable in srcdir.
1287 This fixes a test failure that would occur when "aid"
1288 is not already installed anywhere in your search PATH.
1289 * src/aid: chmod a+x.
1290 * src/eid: Likewise.
1291 * src/gid: Likewise.
1292 Reported by Bob Proulx.
1293
1294 2008-02-09 Jim Meyering <[email protected]>
1295
1296 * lisp/idutils.el (gid): Use read-string, not deprecated read-input.
1297
1298 Remove version comment from idutils.el.
1299 * lisp/idutils.el: Remove version string comment.
1300 * Makefile.am (distcheck-hook): Remove rule.
1301
1302 * Makefile.am (dist-hook): Write ChangeLog only if .git/ exists.
1303
1304 Modify bootstrap.conf, not bootstrap (for ChangeLog-generation).
1305 * bootstrap.conf: touch ChangeLog here, ...
1306 * bootstrap: ...not here.
1307
1308 Generate ChangeLog at "make dist" time.
1309 * Makefile.am (dist-hook): New rule.
1310 * bootstrap.conf (gnulib_modules): Add gitlog-to-changelog.
1311
1312 Pull vc-list-files from gnulib.
1313 * bootstrap.conf (gnulib_modules): Add vc-list-files.
1314 * build-aux/vc-list-files: Remove from version-control.
1315
1316 Makefile.maint: Update from coreutils.
1317
1318 2008-01-30 Jim Meyering <[email protected]>
1319
1320 Remove unnecessary test before "free".
1321 * libidu/walker.c (get_current_dir_link): Remove "if (xcwd)"
1322 just before "free (xcwd);".
1323
1324 Remove more files that are now in build-aux/.
1325 * config.rpath: Remove file.
1326 * mkinstalldirs: Remove file.
1327
1328 Avoid printf-format-vs-arg type mismatch warnings.
1329 * src/mkid.c (report_statistics): Cast ptrdiff_t to unsigned long long.
1330
1331 Remove trailing blanks.
1332 * README-alpha:
1333 * TODO:
1334 * doc/idutils.texi:
1335 * libidu/scanners.c (set_uchar_ctype, ARGS, get_token_lisp):
1336 * src/Makefile.am:
1337 * src/fid.c (main):
1338 * src/lid.c (report_edit):
1339 * Makefile.cfg (local-checks-to-skip): Remove sc_trailing_blank,
1340 thus enabling that check.
1341
1342 Remove useless multiply-by-1. Avoid sizeof TYPE: use equivalent sizeof *VAR.
1343 * libidu/dynvec.c (make_dynvec):
1344 * libidu/scanners.c (parse_language_map_file, parse_args_c)
1345 (parse_args_asm, parse_args_text):
1346
1347 Allocate safely.
1348 * libidu/dynvec.c (make_dynvec, dynvec_freeze, dynvec_append):
1349 Use xnmalloc, not xmalloc (n * sizeof T).
1350 Use xnrealloc, not xrealloc (p, n * sizeof T).
1351 * libidu/walker.c (append_strings_to_vector, vectorize_string): Likewise.
1352 * libidu/scanners.c (tokenize_args_string): Likewise.
1353
1354 Use xstrdup, not strdup.
1355 * src/lid.c (get_editor_argv): Use xstrdup, not strdup.
1356 * libidu/walker.c (get_current_dir_link): Likewise.
1357 * libidu/idfile.c: Include "xalloc.h".
1358 (locate_id_file_name): Handle failed strdup.
1359 * libidu/scanners.c (parse_args_text, parse_args_perl): Likewise.
1360 (parse_args_c, parse_args_asm): Likewise.
1361
1362 2008-01-14 Jim Meyering <[email protected]>
1363
1364 fid: avoid buffer overrun.
1365 * libidu/idread.c (deserialize_file_links): Fix typo (or think-o).
1366
1367 Here's what valgrind reported:
1368
1369 Invalid write of size 4
1370 at 0x804A15A: deserialize_file_links (idread.c:132)
1371 by 0x8049DEE: maybe_read_id_file (idread.c:74)
1372 by 0x8049C64: read_id_file (idread.c:46)
1373 by 0x80492FB: main (fid.c:170)
1374 Address 0x41EB944 is 628 bytes inside a block of size 629 alloc'd
1375 at 0x4022765: malloc (vg_replace_malloc.c:149)
1376 by 0x80516BC: xnmalloc_inline (xmalloc.c:49)
1377 by 0x80516EE: xmalloc (xmalloc.c:65)
1378 by 0x8049E2F: deserialize_file_links (idread.c:87)
1379 by 0x8049DEE: maybe_read_id_file (idread.c:74)
1380 by 0x8049C64: read_id_file (idread.c:46)
1381 by 0x80492FB: main (fid.c:170)
1382
1383 2008-01-14 Jim Meyering <[email protected]>
1384
1385 Replace uses of xrealloc with uses of safer variants.
1386 * src/mkid.c (write_id_file): Avoid risk of overflow.
1387 (make_sibling_summary, add_token_to_summary): Likewise.
1388
1389 src/mkid.c: Remove now-unused declaration of dirname.
1390
1391 lisp/idutils.el: Restore "Version: ..." comment.
1392
1393 Ensure that a ChangeLog file exists before running automake.
1394 Add ChangeLog to .gitignore.
1395
1396 Convert to coreutils-flavored gnulib.
1397
1398 ChangeLog-2007: Rename from ChangeLog.
1399
1400 distribute.sh: Remove now-unused file.
1401 * distribute.sh: Remove file. Now, use "make alpha", "make stable", etc.
1402 and follow resulting instructions that tell how to invoke build-aux/gnupload.
1403
1404 Update copyright year.
1405
1406 Avoid a test failure.
1407 * testsuite/infloop-kawa-el: Invoke mkid with -m, since
1408 id-lang.map may not be installed yet.
1409 * testsuite/Makefile.am (TESTS_ENVIRONMENT): Set abs_top_srcdir.
1410
1411 Mark diagnostics for translation.
1412 * src/mkid.c (main): Mark with _(...).
1413 * libidu/walker.c (exclude_languages, include_languages): Likewise.
1414 * src/lid.c (report_grep): Likewise.
1415
1416 Put at least two spaces between an option and its description.
1417 help2man requires this.
1418 * src/lid.c: Add another space before the description.
1419 * src/mkid.c: Likewise.
1420 * src/xtokid.c: Likewise.
1421
1422 Adjust indentation in ChangeLog to use only TABs.
1423
1424 Avoid SPACE-TAB.
1425 * testsuite/consistency: Use TAB-SPACE, instead.
1426 * src/defid: Likewise.
1427
1428 Don't cast x*alloc return value.
1429 * libidu/hash.c (hash_rehash): Remove cast.
1430 (hash_init): Likewise.
1431
1432 2008-01-04 Jim Meyering <[email protected]>
1433
1434 Don't include <strsep.h>. Now it's guaranteed to be in <string.h>.
1435 * libidu/walker.c: Don't include <strsep.h>.
1436 * libidu/idfile.c: Likewise.
1437 * libidu/scanners.c: Likewise.
1438
1439 Remove files now pulled from gnulib.
1440 Also remove all intl/ files.