findutils-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Findutils-patches] Re: release dates in NEWS


From: Eric Blake
Subject: Re: [Findutils-patches] Re: release dates in NEWS
Date: Tue, 17 Jul 2007 21:40:52 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to James Youngman on 6/29/2007 2:00 AM:
> All fine to apply.   Thanks!
> 
>> (by
>> the way, should we move to configure.ac, since that is the preferred
>> file name
>> these days?)
> 
> It has been for years, too.   Yes, let's make that change in 4.3.x.

I ported this patch, and made the above change; applied as follows.

> 
>> However, 'make distcheck' fell over for a different reason - lib/gnulib-
>> version.sh tries to create a temp file in the read-only $(srcdir),
>> rather than
>> in the read-write $(builddir).
> 
> I'm sure there was originally a reason for doing it the way I did, but
> your change seems fine to me.

Hmm, on head, ./import-gnulib.sh just generated this file, rather than
trying to do it at 'make dist' time.  I like that approach better (and
it's simpler); but at least the branch's solution works, even if it is not
optimal, so I'm not going to spend time backporting it.

2007-07-17  Eric Blake  <address@hidden>

        Ensure 'make distcheck' can pass on cygwin.
        * configure.in: Rename...
        * configure.ac: ...to this, to match automake recommendations.
        * NEWS: Add release dates.
        * doc/find-maint.texi (Documentation): Document where release
        dates are usefully recorded.
        * locate/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Be
        aware of .exe.
        * .cvsignore: Ignore 'make dist' files.
        * po/.cvsignore: Ignore remove-potcdate.sed.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGnYvD84KuGfSFAYARAnAEAKDXDxP6/ODS13b0T18A3dNCkQ782wCfbsWa
ASFBYKbNu9RQ/l5fG1B/kqs=
=oH6Z
-----END PGP SIGNATURE-----
Index: .cvsignore
===================================================================
RCS file: /sources/findutils/findutils/.cvsignore,v
retrieving revision 1.14
diff -u -p -r1.14 .cvsignore
--- .cvsignore  3 Mar 2007 22:42:17 -0000       1.14
+++ .cvsignore  18 Jul 2007 03:39:00 -0000
@@ -18,3 +18,4 @@ install-sh
 link-warning.h
 gnulib-cvs
 tests
+findutils-*
Index: NEWS
===================================================================
RCS file: /sources/findutils/findutils/NEWS,v
retrieving revision 1.194
diff -u -p -r1.194 NEWS
--- NEWS        3 Jul 2007 23:24:57 -0000       1.194
+++ NEWS        18 Jul 2007 03:39:00 -0000
@@ -37,14 +37,14 @@ Added an extra worked example for find (
 
 The locate command's manual page now has a HISTORY section.
 
-* Major changes in release 4.3.8
+* Major changes in release 4.3.8, 2007-06-12
 
 ** Bug Fixes
 
 #20157: Avoid segfault in locate when run as root.  This is caused by
-a buffer overrun, but at this time no explot mechanism is known.
+a buffer overrun, but at this time no exploit mechanism is known.
 
-* Major changes in release 4.3.7
+* Major changes in release 4.3.7, 2007-06-09
 
 ** Functional changes
 
@@ -107,7 +107,7 @@ discussion should compare %b with %s/512
 
 #19416: _FORTIFY_SOURCE warn_unused_result warnings
 
-* Major changes in release 4.3.6
+* Major changes in release 4.3.6, 2007-05-21
 
 ** Bug Fixes
 
@@ -152,7 +152,7 @@ versions of HP-UX and Solaris.  
 type uintmax_t).
 
 
-* Major changes in release 4.3.5
+* Major changes in release 4.3.5, 2007-05-05
 
 ** Functional changes
 
@@ -208,7 +208,7 @@ more clearly, and also documents the slo
 The maximum and default values applying to the -s option of xargs are
 now documented more clearly in the manual page.
 
-* Major changes in release 4.3.4
+* Major changes in release 4.3.4, 2007-04-21
 
 ** Bug Fixes
 
@@ -247,7 +247,7 @@ with a space
 Findutils 4.3.4 includes a translation for the Ukranian language.
 
 
-* Major changes in release 4.3.3
+* Major changes in release 4.3.3, 2007-04-15
 
 Fiundutils-4.3.3 was released on 2007-04-15.
 
@@ -340,7 +340,7 @@ check", the test suite fails rather than
 system binaries.
    
 
-* Major changes in release 4.3.2
+* Major changes in release 4.3.2, 2006-11-25
 
 ** Bug Fixes
 
@@ -388,7 +388,7 @@ The global effect of options (other than
 explained more clearly in the manual page.   Savannah bug #15360.
 
 
-* Major changes in release 4.3.1
+* Major changes in release 4.3.1, 2006-08-06
 
 ** Bug Fixes
 
@@ -463,7 +463,7 @@ languages:
  Slovak, Slovenian, Serbian, Swedish, Turkish, Chinese (simplified),
  Chinese (traditional), Bulgarian
 
-* Major changes in release 4.3.0
+* Major changes in release 4.3.0, 2005-12-12
 
 The 4.3.x release series are currently 'development' releases.  Please
 test it, but think carefully before installing it in a production
@@ -493,7 +493,7 @@ configure --without-fts               ftsfind       find
 New tests, -readable, -writable, -executable.  These check that a file
 can be read, written or executed respectively.
 
-* Major changes in release 4.2.27
+* Major changes in release 4.2.27, 2005-12-06
 
 ** Warnings of Future Changes
 
@@ -529,7 +529,7 @@ The 'find' manual page now correctly doc
 defaults to using Emacs-style regular expressions (though this can be
 changed).
 
-* Major changes in release 4.2.26
+* Major changes in release 4.2.26, 2005-11-19
 
 ** Public Service Announcements
 
@@ -588,7 +588,7 @@ and -i options have been clarified (but 
 The documentation now explains more clearly what happens when you use
 "-L -type l".
 
-* Major changes in release 4.2.25
+* Major changes in release 4.2.25, 2005-09-03
 
 ** Bug Fixes
 
@@ -611,7 +611,7 @@ also (once again) build on Cygwin.
 
 The test suite for find is now much more extensive.
 
-* Major changes in release 4.2.24
+* Major changes in release 4.2.24, 2005-07-29
 
 ** Documentation Changes
 
@@ -691,7 +691,7 @@ The "%Y" directive for the -printf actio
 idea of the mode of the file, so this means among other things that
 "-printf %Y %y" now works properly.  This is Savannah bug #13973.
 
-* Major changes in release 4.2.23
+* Major changes in release 4.2.23, 2005-06-19
 
 ** Documentation Changes
 
@@ -708,7 +708,7 @@ message if the user tries to do that.  T
 is "/" which does work and is not rejected.
 
 
-* Major changes in release 4.2.22
+* Major changes in release 4.2.22, 2005-06-12
 
 ** Security Fixes
 
@@ -743,7 +743,7 @@ symptoms that look like bugs but aren't.
 and "%b" directives to "find -printf" have been imrpoved.
 
 
-* Major changes in release 4.2.21
+* Major changes in release 4.2.21, 2005-06-07
 ** Functional Changes to find
 
 The GNU extension "find ... -perm +MODE" has been withdrawn because it
@@ -779,7 +779,7 @@ Regular Expressions.  (Savannah bug #129
 The updatedb program now works on systems where "su" does not support
 the "-s" option, for example Solaris.
 
-* Major changes in release 4.2.20
+* Major changes in release 4.2.20, 2005-03-17
 ** Internationalization and Localization
 Updated Vietnamese and Dutch translations.   
 
@@ -787,7 +787,7 @@ Updated Vietnamese and Dutch translation
 Minor bugfix affecting only those who compile from the CVS repository, 
 as opposed to those who compile from the source releases.
 
-* Major changes in release 4.2.19
+* Major changes in release 4.2.19, 2005-03-07
 ** Bug Fixes
 
 find should now no longer hang on systems which lack the O_NOFOLLOW
@@ -823,7 +823,7 @@ Fixed some typos and clarified wording i
 ** Internationalization and Localization
 New Vietnamese message translation.
 
-* Major changes in release 4.2.18
+* Major changes in release 4.2.18, 2005-02-16
 ** Bug Fixes
 *** "find -depth" was missing out non-leaf directories when they contain 
     non-directories.  This affected findutils releases 4.2.15,
@@ -833,7 +833,7 @@ New Vietnamese message translation.
 **  Documentation improvements
 *** Improvements and corrections to the find.1 manpage, including corrections 
to the descriptions of -H and -L.
 
-* Major changes in release 4.2.17
+* Major changes in release 4.2.17, 2005-02-08
 ** Bug Fixes
 *** bug #11861         undefined symbol "basename" on IRIX 5.3 
 *** bug #11865         xargs -i regression  (as compared to findutils-4.2.12)
@@ -843,7 +843,7 @@ New Vietnamese message translation.
 *** find bar/baz/ugh now works again if baz is a symbolic link (broken 
     in 4.2.15).
 
-* Major changes in release 4.2.16
+* Major changes in release 4.2.16, 2005-02-05
 **  Functionality Changes
 *** Updated the message catalogues for the translated messages.
 *** The subfs filesystem is now treated the same as the autofs
@@ -856,12 +856,12 @@ New Vietnamese message translation.
 *** The -execdir action now works correctly for files named on the 
     command line.
 
-* Major changes in release 4.2.15
+* Major changes in release 4.2.15, 2005-01-29
 **  Functionality Changes
 *** locate now supports matching regular expression (--regex).
 *** --enable-d_type-optimization (introduced in findutils 4.2.13) is now 
turned on by default.
 
-* Major changes in release 4.2.14
+* Major changes in release 4.2.14, 2005-01-25
 **  Functionality Changes
 *** New options -L, -P, -H for locate.  The work in the same was as the same 
options for find.
 **  Bug Fixes
@@ -872,7 +872,7 @@ New Vietnamese message translation.
 **  Documentation improvements
 *** All options for "locate" are now documented
 
-* Major changes in release 4.2.13
+* Major changes in release 4.2.13, 2005-01-23
 **  Performance Enhancements
 *** On Linux and some other systems, a large performance improvement, 
     because we can eliminate many of the calls to lstat() (in extreme
@@ -880,7 +880,7 @@ New Vietnamese message translation.
     filesystems.  Other systems which can make use of this enhancement
     include Mac OS X and *BSD.
 
-* Major changes in release 4.2.12
+* Major changes in release 4.2.12, 2005-01-22
 **  Functionality Changes
 *** find is now POSIX-compliant, as far as I know.
 *** -exec ... {} + now works.
@@ -894,7 +894,7 @@ New Vietnamese message translation.
     output is redirected to a file and the disk is full, the 
     relevant program will return a non-zero exit status.
 
-* Major changes in release 4.2.11
+* Major changes in release 4.2.11, 2004-12-12
 **  Bug Fixes
 *** Compilation fix for systems without EOVERFLOW.
 *** More helpful error message if you make a mistake with (, ), -o or -a.
@@ -913,13 +913,13 @@ New Vietnamese message translation.
 *** locate's options -i and -w now work with the -e option (previously a bug 
     prevented this).
 
-* Major changes in release 4.2.10
+* Major changes in release 4.2.10, 2004-12-06
 **  Bug Fixes
 *** Portability fix for fstype.c: should now compile on UNICOS, and possibly 
     also produce useful results on BeOS and Dolphin, perhaps other
     systems too.   
 
-* Major changes in release 4.2.9
+* Major changes in release 4.2.9, 2004-12-05
 **  Functionality Changes
 *** xargs no longer treats a line containing only an underscore as a logical 
end-of-file.   To obtain the behaviour that was previously the default, use 
"-E_". 
 *** xargs now supports the POSIX options -E, -I and -L.   These are synonyms 
@@ -937,12 +937,12 @@ New Vietnamese message translation.
 *** The precise interpretation of the arguments to the -atime, -ctime 
     and similar tests in find has been documented more clearly.
 
-* Major changes in release 4.2.8
+* Major changes in release 4.2.8, 2004-11-24
 *** Bugfix to the findutils 4.2.7 automount handling on Solaris.  This 
     worked to some extent in findutils-4.2.7, but is much improved in
     findutils-4.2.8.
 
-* Major changes in release 4.2.7
+* Major changes in release 4.2.7, 2004-11-21
 **  Functionality Changes
 *** xargs can now read a list of arguments from a named file, allowing 
     the invoked program to use the same stdin as xargs started with
@@ -959,7 +959,7 @@ New Vietnamese message translation.
 *** Reenabled internationalisation support (which had been accidentally 
     disabled in findutils-4.2.5).
 
-* Major changes in release 4.2.6
+* Major changes in release 4.2.6, 2004-11-21
 **  Bug Fixes
 *** find now copes rather better when a directory appears to change just as
     it is about to start examining it, which happens with automount.
@@ -967,7 +967,7 @@ New Vietnamese message translation.
     directory into them.  This should resolve Savannah bugs #3998,
     #9043.
 
-* Major changes in release 4.2.5
+* Major changes in release 4.2.5, 2004-11-11
 **  Functionality Changes
 *** The POSIX options -H and -L are supported.  These control whether or not
     find will follow symbolic links.
@@ -984,7 +984,7 @@ New Vietnamese message translation.
     warnings because we try to link with the nonexistent library
     "-lsun".  Edit $(LIBS) to work around this problem.
 
-* Major changes in release 4.2.4
+* Major changes in release 4.2.4, 2004-11-08
 **  Functionality Changes
 *** If your system sort command has a working "-z" option, updatedb will
     now correctly handle newline characters in filenames (as will
@@ -1021,7 +1021,7 @@ New Vietnamese message translation.
     value).
 *** Corrected section numbers of manual page cross-references
 
-* Major changes in release 4.2.3
+* Major changes in release 4.2.3, 2004-10-30
 **  Functionality Changes
 *** Added new action -delete which deletes things that find matches.
 *** Added new action -quit which causes find to exit immediately.
@@ -1040,7 +1040,7 @@ New Vietnamese message translation.
 ** Other Changes
 *** Non-functional code changes to silence compiler warnings.
 
-* Major changes in release 4.2.2
+* Major changes in release 4.2.2, 2004-10-24
 **  Documentation improvements
 *** "find ... -exec {}+" is not yet supported.
 ** Bug Fixes
@@ -1056,13 +1056,13 @@ New Vietnamese message translation.
     directory, while gnulib is in the gnulib subdirectory.
 *** Fixed a typo in the address of the FSF in many of the file headers.
 
-* Major changes in release 4.2.1
+* Major changes in release 4.2.1, 2004-10-17
 ** Bug Fixes
 *** 'find -name \*bar now matches .foobar, because the POSIX standard 
      requires it, as explained at
      
http://standards.ieee.org/reading/ieee/interp/1003-2-92_int/pasc-1003.2-126.html
 
-* Major changes in release 4.2.1
+* Major changes in release 4.2.1, 2004-10-17
 ** Bug Fixes
 *** find -iname now works correctly on systems that have an fnmatch() function 
     that does not support FNM_CASEFOLD
@@ -1072,7 +1072,7 @@ New Vietnamese message translation.
 ** Other Changes
 **** findutils now uses a newer version of gnulib (dated 2004-10-17).
 
-* Major changes in release 4.2.0
+* Major changes in release 4.2.0, 2003-06-14
 ** Functionality Changes
 *** xargs now works better when the environment variables are very extensive.
     The xargs command used to run into difficulties if the environment 
@@ -1119,7 +1119,7 @@ New Vietnamese message translation.
 *** The %k format specifier for -fprintf now works
     This was broken in 4.1.20.
 
-* Major changes in release 4.1.20:
+* Major changes in release 4.1.20, 2003-06-14:
 ** New maintainer, James Youngman <address@hidden>
 ** As far as I know, this is the first release after 4.1.7, but I've left 
    a gap just in case. 
@@ -1130,35 +1130,38 @@ New Vietnamese message translation.
    README-CVS).
 ** There are no (deliberate) functional changes in version 4.1.20.
 
-* Major changes in release 4.1.7:
+* Major changes in release 4.1.7, 2001-05-20:
 fix problem so that default "-print" is added when "-prune" is used.
 security fixes related to directories changing while find is executing.
 
-* Major changes in release 4.1.6:
+* Major changes in release 4.1.6, 2000-10-10:
 correct bug in prune.
 added --ignore-case option for locate
 
-* Major changes in release 4.1.5:
+* Major changes in release 4.1.5, 2000-04-12:
 Add support for large files
 
-* Major changes in release 4.1.4:
+* Major changes in release 4.1.4, 2000-02-26:
 bug fixes, more up-to-date languages.
 
-* Major changes in release 4.1.3:
+* Major changes in release 4.1.3, 2000-01-27:
 added internationalization and localization.
 
-* Major changes in release 4.1.1:
+* Major changes in release 4.1.2, 2000-01-18:
+None.
+
+* Major changes in release 4.1.1, 1999-08-8:
 attempt at successful compilation on many platforms after years of neglect
  "--existing" option added to locate "--prunefs" option added to updatedb
 
-* Major changes in release 4.1:
+* Major changes in release 4.1, 1994-11-3:
 
 ** Distribution renamed to findutils.
 ** updatedb is now a user command, installed in $exec_prefix/bin
   instead of $exec_prefix/libexec.
 ** A few problems in Makefiles and testsuite corrected.
 
-* Major changes in release 4.0:
+* Major changes in release 4.0, 1994-11-2:
 
 ** Documentation:
 *** Texinfo manual.
@@ -1191,7 +1194,7 @@ attempt at successful compilation on man
 *** The EOF string is not used when -0 is given.
 *** Now has a test suite.  Some minor bugs fixed as a result.
 
-* Major changes in release 3.8:
+* Major changes in release 3.8, 1993-03-29:
 
 ** case insensitive versions of -lname, -name, -path, -regex:
   -ilname, -iname, -ipath, -iregex
@@ -1202,6 +1205,18 @@ attempt at successful compilation on man
 ** locate can search multiple databases
 ** locate has an option to specify the database path
 ** updatedb no longer goes into an infinite loop with some versions of tail
+
+* No NEWS was kept for earlier releases.  Known release dates include:
+** release 3.2, 1991-08-28
+** release 3.1, 1991-08-21
+** release 3.0, 1991-08-21
+** release 2.2, 1991-04-05
+** release 2.1, 1991-01-01
+** release 2.0, 1990-11-20
+** release 1.2, 1990-07-03
+** release 1.1, 1990-06-24
+** release 1.0, 1990-06-22
+** beginning of findutils history, 1987-02-21
 
                         --//--
 This is used by Emacs' spell checker ispell.el:
Index: configure.ac
===================================================================
RCS file: configure.ac
diff -N configure.ac
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ configure.ac        18 Jul 2007 03:39:01 -0000
@@ -0,0 +1,253 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT([GNU findutils], 4.3.9-CVS, address@hidden)
+AC_CONFIG_AUX_DIR(build-aux)
+AM_INIT_AUTOMAKE
+
+AC_CONFIG_SRCDIR([find/pred.c])
+AC_CONFIG_HEADERS([config.h])
+AC_CANONICAL_HOST
+AC_CONFIG_MACRO_DIR(gnulib/m4)
+
+dnl Set of available languages.
+ALL_LINGUAS="be bg ca da de el eo es et fi fr ga gl hr hu id it ja ko lg ms nl 
pl pt pt_BR ro ru rw sk sl sr sv tr uk vi zh_CN zh_TW"
+
+AC_SUBST(INCLUDES)dnl
+AC_SUBST(AUXDIR,$ac_aux_dir)
+dnl check for --with-fts
+FIND_WITH_FTS
+
+AC_ARG_ENABLE(id-cache,
+[  --enable-id-cache       cache all UIDs & GIDs; avoid if using NIS or 
Hesiod],
+  AC_DEFINE(CACHE_IDS, 1, [Define if you want find -nouser and -nogroup to 
make tables of
+   used UIDs and GIDs at startup instead of using getpwuid or
+   getgrgid when needed.  Speeds up -nouser and -nogroup unless you
+   are running NIS or Hesiod, which make password and group calls
+   very expensive.]))
+
+AC_ARG_ENABLE(debug,
+       AS_HELP_STRING(--enable-debug,Enable debugging output which is likely 
to be interesting to people debugging findutils),
+       [ac_cv_debug=$enableval],[ac_cv_debug=no])
+
+AC_ARG_ENABLE(leaf-optimisation,
+       AS_HELP_STRING(--enable-leaf-optimisation,Enable an optimisation which 
saves lstat calls to identify subdirectories on filesystems having traditional 
Unix semantics),
+       [ac_cv_leaf_optimisation=$enableval],[ac_cv_leaf_optimisation=yes])
+
+AC_ARG_ENABLE(d_type-optimization,
+       AS_HELP_STRING(--enable-d_type-optimization,Make use of the file type 
data returned in struct dirent.d_type by readdir()),
+       [ac_cv_d_type=$enableval],[ac_cv_d_type=yes])
+
+dnl This one has no default, because otherwise we would have to say 
+dnl both --enable-d_type-optimisation=no and --enable-d_type-optimization=no
+dnl to turn it off.
+AC_ARG_ENABLE(d_type-optimisation,
+       AS_HELP_STRING(--enable-d_type-optimisation,Synonym for 
--enable-d_type-optimization),
+       [ac_cv_d_type=$enableval],[])
+
+
+AC_MSG_CHECKING([whether debug output should be produced])
+if test x$ac_cv_debug = xno; then
+   AC_MSG_RESULT([no])
+else
+   AC_MSG_RESULT([yes])
+   AC_DEFINE(DEBUG, 1, [Define if you want to see find's innards])
+   AC_DEFINE(DEBUG_STAT, 1, [Define if you want to see a message every time 
find calls the stat() system call])
+fi
+
+AC_MSG_CHECKING([for leaf optimisation])
+if test x$ac_cv_leaf_optimisation = xno; then
+   AC_MSG_RESULT([no])
+else
+   AC_MSG_RESULT([yes])
+   AC_DEFINE(LEAF_OPTIMISATION, 1, [Define if you want to use the leaf 
optimisation (this can still be turned off with -noleaf)])
+fi
+
+
+
+dnl Checks for programs.
+AC_PROG_CC
+AC_PROG_CPP
+
+AC_AIX
+
+
+dnl AC_MINIX
+dnl for gnulib
+gl_EARLY
+dnl gl_EARLY calls AC_GNU_SOURCE anyway.
+
+
+AC_ISC_POSIX
+AM_C_PROTOTYPES
+
+AC_PROG_INSTALL
+AC_PROG_RANLIB
+dnl AC_PROG_LIBTOOL
+AC_PROG_MAKE_SET
+AC_SYS_LARGEFILE
+
+
+gl_INIT
+
+
+
+dnl Older versions of gnulib/m4/nls.m4 provide AM_MKINSTALLDIRS.
+dnl The current version of gnulib does not, but the version of 
+dnl po/Makefile.in.in that comes with gettext-0.14.6 expects
+dnl that @MKINSTALLDIRS@ will be expanded.
+AM_MKINSTALLDIRS
+
+dnl lib/regexprops needs to be a native program, because we need to 
+dnl run it in order to generate the documentation about the properties
+dnl of regular expressions.  See lib/Makefile.am.
+AM_CONDITIONAL(CROSS_COMPILING, [[test "x$cross_compiling" = xyes]])
+
+dnl Try to get a POSIX.1 environment.
+
+dnl Checks for libraries.  If getpwnam() isn't present in the 
+dnl C library, try -lsun.
+AC_CHECK_FUNC(getpwnam, [],
+[AC_CHECK_LIB(sun, getpwnam)])
+
+AC_CHECK_LIB([m],[modf],[FINDLIBS="-lm $FINDLIBS"]
+  AC_DEFINE_UNQUOTED(HAVE_MODF_IN_LIBM,1,[modf is defined in -lm]))
+AC_CHECK_LIB([m],[fabs],[FINDLIBS="-lm $FINDLIBS"]
+  AC_DEFINE_UNQUOTED(HAVE_FABS_IN_LIBM,1,[fabs is defined in -lm]))
+AC_SUBST([FINDLIBS])
+
+dnl Checks for header files.
+AC_HEADER_STDC
+dnl Assume unistd.h is present - coreutils does too.
+AC_CHECK_HEADERS(fcntl.h string.h limits.h errno.h stdlib.h stddef.h)
+AC_CHECK_HEADERS(unistd.h sys/types.h inttypes.h fcntl.h locale.h stdint.h)
+AC_CHECK_HEADERS(sys/param.h mntent.h sys/mnttab.h sys/mntio.h sys/mkdev.h)
+dnl find.c needs sys/utsname.h because it calls uname(2).
+AC_CHECK_HEADERS(sys/utsname.h)
+AC_HEADER_MAJOR
+AC_HEADER_DIRENT
+AC_HEADER_STAT
+AC_HEADER_SYS_WAIT
+
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+
+AC_TYPE_UID_T
+AC_TYPE_SIZE_T
+AC_CHECK_TYPE(ssize_t, int)
+AC_TYPE_PID_T
+AC_CHECK_TYPE(ino_t, unsigned long)
+AC_CHECK_TYPE(dev_t, unsigned long)
+AC_TYPE_MODE_T
+AC_STRUCT_ST_BLOCKS
+AC_CHECK_MEMBERS([struct stat.st_rdev])
+
+AC_MSG_CHECKING([whether we should use struct dirent.d_type, if available])
+if test x$ac_cv_d_type = xno; then
+   AC_MSG_RESULT([no])
+else
+   AC_MSG_RESULT([yes])
+   AC_DEFINE(USE_STRUCT_DIRENT_D_TYPE, 1,
+   [Defined if you specify --enable-d_type-optimisation to configure.])
+   AC_CHECK_MEMBERS([struct dirent.d_type],[
+   AC_DEFINE(HAVE_STRUCT_DIRENT_D_TYPE, 1,
+   [Define to 1 if your 'struct dirent' has a d_type member])],
+   [],[
+#include <sys/types.h>
+#include <dirent.h>])
+fi
+
+
+AC_STRUCT_TM
+AC_STRUCT_TIMEZONE
+
+dnl Checks for library functions that are provided by gnulib.
+AC_FUNC_STRFTIME
+AC_REPLACE_FUNCS(memcmp memset stpcpy strdup strstr strtol strtoul)
+AC_CHECK_FUNCS(fchdir getcwd strerror endgrent endpwent setlocale)
+AC_FUNC_VPRINTF
+AC_FUNC_ALLOCA
+AC_FUNC_CLOSEDIR_VOID
+
+dnl We don't just use AC_FUNC_GETMNTENT directly because it 
+dnl will try to use -lsun on platforms which have getmntent() in the 
+dnl C library, for example UNICOS.
+AC_CHECK_FUNC(getmntent, [], [AC_FUNC_GETMNTENT])
+AC_CHECK_FUNCS(getmntent)
+AC_CHECK_FUNCS(setmntent endmntent)
+
+
+dnl Checks for library functions that are provided by findlib.
+FINDLIB_REPLACE_FUNCS(waitpid strspn)
+FINDLIB_REPLACE_FUNCS(forcefindlib)
+
+
+# Check for common but not-POSIX functions.
+AC_CHECK_FUNCS(setgroups)
+
+
+dnl gl_XALLOC
+gl_FUNC_ALLOCA
+
+dnl Use gl_INCLUDED_REGEX so that findutils will build on systems like
+dnl Solaris, which lacks those functions in libc (see GNU Savannah bug
+dnl #11710) (Sun Sep  4 20:15:11 2005: gl_INCLUDED_REGEX no longer seems
+dnl to be available in gnulib CVS)
+gl_REGEX
+
+AC_PREREQ(2.59)
+
+# Define intmax_t to 'signed long' or 'signed long long'
+# if it is not already defined in <stdint.h> or <inttypes.h>.
+dnl Derived from gnulib's uintmax_t which was from Paul Eggert.
+AC_DEFUN([jy_AC_TYPE_INTMAX_T],
+[
+  if test $ac_cv_header_inttypes_h = no && test $ac_cv_header_stdint_h = no; 
then
+    AC_REQUIRE([gl_AC_TYPE_LONG_LONG])
+    test $ac_cv_type_long_long = yes \
+      && ac_type='long long' \
+      || ac_type='long'
+    AC_DEFINE_UNQUOTED(intmax_t, $ac_type,
+      [Define to signed long or signed long long
+       if <stdint.h> and <inttypes.h> don't define.])
+  else
+    AC_DEFINE(HAVE_INTMAX_T, 1,
+      [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
+  fi
+])
+
+jy_AC_TYPE_INTMAX_T
+jy_SORTZ
+
+
+AC_CHECK_MEMBER(struct dirent.d_type,,,[                  
+#include <sys/types.h>
+#include <dirent.h>])
+
+jy_AC_ATTRIBUTE_NORETURN
+
+dnl internationalization macros
+AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION(0.14.5)
+
+dnl regextype.c and regexprops.c are designed to be usable outside findutils,
+dnl but findutils doesn't want to support all the regex types in gnulib,
+dnl and wants to support an additional one (RE_SYNTAX_EMACS|RE_DOT_NEWLINE).
+dnl Hence they need to know if they are being compiled into findutils or not.
+AC_DEFINE([FINDUTILS], 1, [Define if we are compiling GNU findutils])
+AC_DEFINE([ALREADY_INCLUDED_CONFIG_H], 1, [Define so that source code can 
verify that config.h was already included])
+
+# This is necessary so that .o files in LIBOBJS are also built via
+# the ANSI2KNR-filtering rules.
+#LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
+##AC_CONFIG_SUBDIRS(gnulib)
+AC_CONFIG_FILES(gnulib/Makefile gnulib/lib/Makefile)
+AC_CONFIG_FILES(m4/Makefile)
+AC_CONFIG_FILES([Makefile 
+         tests/Makefile build-aux/Makefile
+       find/Makefile find/testsuite/Makefile
+       xargs/Makefile xargs/testsuite/Makefile
+       locate/Makefile locate/testsuite/Makefile
+        po/Makefile.in po/Makefile
+       doc/Makefile lib/Makefile
+       ])
+AC_OUTPUT
+dnl intl/Makefile
Index: doc/find-maint.texi
===================================================================
RCS file: /sources/findutils/findutils/doc/find-maint.texi,v
retrieving revision 1.2
diff -u -p -r1.2 find-maint.texi
--- doc/find-maint.texi 2 Jul 2007 08:25:42 -0000       1.2
+++ doc/find-maint.texi 18 Jul 2007 03:39:01 -0000
@@ -95,7 +95,7 @@ mailing list.  We'll try to improve this
 
 GNU Findutils is part of the GNU Project and so there are a number of
 documents which set out standards for the maintenance of GNU
-software.  
+software.
 
 @table @file
 @item standards.texi
@@ -153,7 +153,7 @@ security.  For example, the sanity check
 while traversing a directory tree may slow it down.   We adopt
 functional changes, and functional changes are allowed to make
 @code{find} slower, but only if there is no detectable impact on users
-who don't use the feature.  
+who don't use the feature.
 
 Backward-incompatible changes do get made in order to comply with
 standards (for example the behaviour of @code{-perm -...} changed in
@@ -173,7 +173,7 @@ pass.  Some features of the code are tes
 coverage for other features is less good.  If you are about to modify
 the code for a predicate and aren't sure about the test coverage, use
 @code{grep} on the test directories and measure the coverage with
address@hidden or another test coverage tool.  
address@hidden or another test coverage tool.
 
 Lastly, we try not to depend on having a ``working system''.  The
 findutils suite is used for diagnosis of problems, and this applies
@@ -221,14 +221,14 @@ explain some idioms and practices in use
 and leave it up to the reader's engineering judgement to decide which
 considerations apply to the code they are working on, and whether or
 not there is sufficient reason to ignore the guidance in current
-circumstances.  
+circumstances.
 
 
 @menu
 * Make the Compiler Find the Bugs::
 * The File System Is Being Modified::
 * Don't Trust the File System Contents::
-* Debugging is For Users Too:: 
+* Debugging is For Users Too::
 * Factor Out Repeated Code::
 @end menu
 
@@ -247,7 +247,7 @@ The test suite is of course not the only
 findutils source code makes liberal use of the assert macro.  While on
 the one hand these might be a performance drain, the performance
 impact of most of these is negligible compared to the time taken to
-fetch even one sector from a disk drive.  
+fetch even one sector from a disk drive.
 
 Assertions should not be used to check the results of operations which
 may be affected by the program's external environment.  For example,
@@ -272,14 +272,14 @@ character.  In any case, there is a subs
 persuade the compiler to generate an error message when we make this
 mistake; this is where the equality test is with a constant.
 
-This is an example of a vulnerable piece of code.  
+This is an example of a vulnerable piece of code.
 
 @example
 if (x == 2)
  ...
 @end example
 
-A simple typo converts the above into 
+A simple typo converts the above into
 
 @example
 if (x = 2)
@@ -318,7 +318,7 @@ Consider what happens if there is an unf
 We have changed the meaning of our program and the compiler cannot
 diagnose this as an error.  Our string is no longer terminated.  Bad
 things will probably happen.  It would be better if the compiler could
-help us diagnose this problem.  
+help us diagnose this problem.
 
 In C, the type of @code{'\0'} is in fact int, not char.  This provides
 us with a simple way to avoid this error.  The constant @code{0} has
@@ -374,7 +374,7 @@ Solaris Doors)
 Please exercise caution when working in those areas.
 
 
address@hidden    Debugging is For Users Too 
address@hidden    Debugging is For Users Too
 @section Debugging is For Users Too
 
 Debug and diagnostic code is often used to verify that a program is
@@ -426,7 +426,7 @@ less helpful.
 Bear in mind also that it is possible for the directory @code{find} is
 currently searching could be moved to another point in the filesystem,
 and that the directory in which @code{find} was started could be
-deleted. 
+deleted.
 
 Henry Spencer's sixth commandment is also apposite here:
 @quotation
@@ -440,7 +440,7 @@ shall surely punish thee for thy arrogan
 There are a lot of files out there.  They come in all dates and
 sizes.  There is a condition out there in the real world to exercise
 every bit of the code base.  So we try to test that code base before
-someone falls over a bug.  
+someone falls over a bug.
 
 
 @node Tools
@@ -459,7 +459,7 @@ information we can work to remove unnece
 Valgrind is a tool which dynamically verifies the memory accesses a
 program makes to ensure that they are valid (for example, that the
 behaviour of the program does not in any way depend on the contents of
-uninitialised memory).  
+uninitialised memory).
 
 @item DejaGnu
 DejaGnu is the test framework used to run the findutils test suite
@@ -467,7 +467,7 @@ DejaGnu is the test framework used to ru
 everybody building @code{findutils} also ran the test suite, but many
 people don't have DejaGnu installed.  When changes are made to
 findutils, DejaGnu is invoked a lot. @xref{Testing}, for more
-information. 
+information.
 @end table
 
 @node Using the GNU Portability Library
@@ -483,7 +483,7 @@ GNU libc system with a bug in the regex 
 @section How and Why we Import the Gnulib Code
 Gnulib does not have a release process which results in a source
 tarball you can download.  Instead, the code is simply made available
-by CVS.  
+by CVS.
 
 GNU projects vary in how they interact with Gnulib.  Many import a
 selection of code from Gnulib into the working directory and then
@@ -542,7 +542,7 @@ version skew is prevented.
 
 However, sometimes we want deliberate version skew in order to use a
 findutils-specific patched version of a Gnulib file, for example
-because we fixed a bug.  
+because we fixed a bug.
 
 Gnulib is used by quite a number of GNU projects, and this means that
 it gets plenty of testing.  Therefore there are relatively few bugs in
@@ -568,7 +568,7 @@ use to import the code from a local copy
 @item Build findutils
 Build findutils and run the test suite, which should pass.  In our
 example we assume you have just noticed a bug in Gnulib, not that
-recent Gnulib changes broke the findutils regression tests.  
+recent Gnulib changes broke the findutils regression tests.
 @item Write a test case
 If in fact Gnulib did break the findutils regression tests, you can probably
 skip this step, since you already have a test case demonstrating the problem.
@@ -581,12 +581,12 @@ directory you checked out earlier.   Obs
 Use @code{cvs -z3 diff -upN} to prepare the patch.  Write a ChangeLog
 entry and prepend this to the patch.  Check that the patch conforms
 with the GNU coding standards, and email it to the Gnulib mailing
-list.  
+list.
 @item Wait for the patch to be applied
 Once your bug fix has been applied, you can update your local directory
 from CVS, re-import the code into Findutils (still using the @code{-d}
 option), and re-run the tests.  This verifies that the fix the Gnulib
-team made actually fixes your problem.  
+team made actually fixes your problem.
 @item Reimport the Gnulib code
 Update the findutils file @file{import-gnulib.config} to specify a
 date which is after the point at which the bug fix was committed to
@@ -632,7 +632,7 @@ tutorial material.
 @item ABOUT-NLS
 Describes the Free Translation Project, the translation status of
 various GNU projects, and how to participate by translating an
-application.  
+application.
 @item AUTHORS
 Lists the authors of findutils.
 @item COPYING
@@ -660,6 +660,7 @@ Mainly obsolete.
 @item NEWS
 Enumerates the user-visible change in each release.  Typical changes
 are fixed bugs, functionality changes and documentation changes.
+Include the date when a release is made.
 @item ChangeLog
 This file enumerates all changes to the findutils source code (with
 the possible exception of @file{.cvsignore} and @code{.gitignore}
@@ -669,7 +670,7 @@ If a change fixes a bug, always give the
 the @file{ChangeLog} and @file{NEWS} files and of course also in the
 checkin message.  In general, it should be possible to enumerate all
 material changes to a function by searching for its name in
address@hidden
address@hidden  Mention when each release is made.
 @end table
 
 @node Testing
@@ -693,7 +694,7 @@ life-cycle of a bug is like this:
 Someone, usually a maintainer, a distribution maintainer or a user,
 creates a bug by filling in the form.   They fill in field values as
 they see fit.  This will generate an email to
address@hidden@@gnu.org}.  
address@hidden@@gnu.org}.
 
 @item Triage
 The bug hangs around with @samp{Status=None} until someone begins to
@@ -738,10 +739,10 @@ we could not hope to cover them all.
 Often, bugs are raised against a distribution's bug tracker instead of
 GNU's.    Periodically (about every six months) I take a look at some
 of the more accessible bug trackers to indicate which bugs have been
-fixed upstream.  
+fixed upstream.
 
 Many distributions include both findutils and the slocate package,
-which provides a replacement @code{locate}.  
+which provides a replacement @code{locate}.
 
 
 @node Internationalisation
@@ -764,7 +765,7 @@ If someone reports a security bug public
 rapidly as possible.  If necessary, this can mean issuing a fixed
 release containing just the one bug fix.  We try to avoid issuing
 releases which include both significant security fixes and functional
-changes.  
+changes.
 
 Where someone reports a security problem privately, we generally try
 to construct and test a patch without checking the intermediate code
@@ -772,7 +773,7 @@ in.  Once everything has been tested, th
 and immediately make a release.   The advantage of doing things this
 way is that we avoid situations where people watching for CVS commits
 can figure out and exploit a security problem before a fixed release
-is available. 
+is available.
 
 It's important that security problems be fixed promptly, but don't
 rush so much that things go wrong.  Make sure the new release really
@@ -914,12 +915,12 @@ good: $ver"
          fi
        else
          # the regular locate failed
-         ugly="$ugly 
+         ugly="$ugly
 buggy, may or may not be vulnerable: $ver"
        fi
     done
     rm -f "address@hidden@}" "address@hidden@}"
-    # good: unaffected.  bad: affected (vulnerable).  
+    # good: unaffected.  bad: affected (vulnerable).
     # ugly: doesn't even work for a normal old-format database.
     echo "$good"
     echo "$bad"
@@ -965,7 +966,7 @@ diff -u -p -r1.58.2.2 locate.c
 --- locate/locate.c    22 Apr 2007 16:57:42 -0000      1.58.2.2
 +++ locate/locate.c    28 May 2007 10:18:16 -0000
 @@@@ -124,9 +124,9 @@@@ extern int errno;
- 
+
  #include "locatedb.h"
  #include <getline.h>
 -#include "../gnulib/lib/xalloc.h"
@@ -980,7 +981,7 @@ diff -u -p -r1.58.2.2 locate.c
 @@@@ -468,10 +468,36 @@@@ visit_justprint_unquoted(struct process_
    return VISIT_CONTINUE;
  @}
- 
+
 +static void
 +toolong (struct process_data *procdata)
 address@hidden
@@ -1013,17 +1014,17 @@ diff -u -p -r1.58.2.2 locate.c
 -  register char *s;
 +  register size_t i;
    (void) context;
- 
+
    /* Get the offset in the path where this path info starts.  */
 @@@@ -479,20 +505,35 @@@@ visit_old_format(struct process_data *pr
      procdata->count += getw (procdata->fp) - LOCATEDB_OLD_OFFSET;
    else
      procdata->count += procdata->c - LOCATEDB_OLD_OFFSET;
 +  assert(procdata->count > 0);
- 
+
 -  /* Overlay the old path with the remainder of the new.  */
 -  for (s = procdata->original_filename + procdata->count;
-+  /* Overlay the old path with the remainder of the new.  Read 
++  /* Overlay the old path with the remainder of the new.  Read
 +   * more data until we get to the next filename.
 +   */
 +  for (i=procdata->count;
@@ -1041,7 +1042,7 @@ diff -u -p -r1.58.2.2 locate.c
 +    @{
 +      if (procdata->c < 0200)
 +      @{
-+        /* An ordinary character. */    
++        /* An ordinary character. */
 +        extend (procdata, i, 1u);
 +        procdata->original_filename[i++] = procdata->c;
 +      @}
@@ -1056,15 +1057,15 @@ diff -u -p -r1.58.2.2 locate.c
 +    @}
 +
 +  /* Consider the case where we executed the loop body zero times; we
-+   * still need space for the terminating null byte. 
++   * still need space for the terminating null byte.
 +   */
 +  extend (procdata, i, 1u);
 +  procdata->original_filename[i] = 0;
- 
+
    procdata->munged_filename = procdata->original_filename;
 @end verbatim
 
-   
+
 VIII. THANKS
 ============
 
@@ -1108,7 +1109,7 @@ Copy the tarball somewhere safe.
 @item Tag the release; findutils releases are tagged in CVS as
 FINDUTILS_x_y_z-1.  For example, the tag for findutils release 4.3.8
 is FINDUTILS_4_3_8-1.
address@hidden Prepare the upload and upload it.  
address@hidden Prepare the upload and upload it.
 @xref{Automated FTP Uploads, ,Automated FTP
 Uploads, maintain, Information for Maintainers of GNU Software},
 for detailed upload instructions.
Index: locate/Makefile.am
===================================================================
RCS file: /sources/findutils/findutils/locate/Makefile.am,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile.am
--- locate/Makefile.am  28 Jun 2007 17:20:39 -0000      1.21
+++ locate/Makefile.am  18 Jul 2007 03:39:01 -0000
@@ -3,8 +3,11 @@ AUTOMAKE_OPTIONS = std-options
 LOCATE_DB = $(localstatedir)/locatedb
 localedir = $(datadir)/locale
 
-AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = frcode code bigram
-bin_PROGRAMS = locate 
+AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = \
+       frcode$(EXEEXT) \
+       code$(EXEEXT) \
+       bigram$(EXEEXT)
+bin_PROGRAMS = locate
 libexec_PROGRAMS = frcode code bigram
 bin_SCRIPTS = updatedb
 man_MANS = locate.1 updatedb.1 locatedb.5
Index: po/.cvsignore
===================================================================
RCS file: /sources/findutils/findutils/po/.cvsignore,v
retrieving revision 1.3
diff -u -p -r1.3 .cvsignore
--- po/.cvsignore       20 Aug 2006 18:18:42 -0000      1.3
+++ po/.cvsignore       18 Jul 2007 03:39:01 -0000
@@ -4,3 +4,4 @@ Makefile.in
 POTFILES
 cat-id-tbl.c
 stamp-po
+remove-potcdate.sed

reply via email to

[Prev in Thread] Current Thread [Next in Thread]