--- findutils-4.4.0.orig/debian/patches/00list +++ findutils-4.4.0/debian/patches/00list @@ -0,0 +1 @@ +10_unnecessary_tempfile --- findutils-4.4.0.orig/debian/patches/10_unnecessary_tempfile.dpatch +++ findutils-4.4.0/debian/patches/10_unnecessary_tempfile.dpatch @@ -0,0 +1,17 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## unnecessary_tempfile.dpatch by Andreas Metzler> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Stop generating a unnecessary unsafe tempfile in testsuite + +@DPATCH@ +diff -urNad findutils-4.4.0~/find/testsuite/find.gnu/xtype-symlink.exp findutils-4.4.0/find/testsuite/find.gnu/xtype-symlink.exp +--- findutils-4.4.0~/find/testsuite/find.gnu/xtype-symlink.exp 2005-01-24 16:50:30.000000000 +0000 ++++ findutils-4.4.0/find/testsuite/find.gnu/xtype-symlink.exp 2008-04-03 17:31:45.000000000 +0000 +@@ -2,6 +2,5 @@ + exec mkdir tmp + exec touch tmp/file + exec ln -s file tmp/LINK +-exec ls -l tmp > /tmp/z + find_start p {tmp/LINK -xtype f } + exec rm -rf tmp --- findutils-4.4.0.orig/debian/locate.manpages +++ findutils-4.4.0/debian/locate.manpages @@ -0,0 +1 @@ +debian/tmp/usr/share/man/man5/locatedb.5* --- findutils-4.4.0.orig/debian/README.source +++ findutils-4.4.0/debian/README.source @@ -0,0 +1,7 @@ +README.source for findutils +=========================== + +This package uses dpatch to manage patches, use +fakeroot debian/rules patch +to get a patched sourcetree after dpkg-source -x and use dpatch-edit-patch to +generate new patches. --- findutils-4.4.0.orig/debian/changelog +++ findutils-4.4.0/debian/changelog @@ -0,0 +1,1019 @@ +findutils (4.4.0-2ubuntu1) intrepid; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/locate-cron.daily: Test if called by root (LP: #147911), + - add /var/lib/schroot/mount to PRUNEPATHS. + - preinst: fix check for removal of the oboslete /etc/cron.daily/find + on gutsy->hardy upgrades (LP: #210699) + + -- Michael Vogt Tue, 06 May 2008 11:32:24 +0200 + +findutils (4.4.0-2) unstable; urgency=low + + * Stop generating a unnecessary unsafe tempfile in testsuite. Should fix + ftbfs on hppa. [debian/patches/10_unnecessary_tempfile.dpatch] + + -- Andreas Metzler Thu, 03 Apr 2008 19:38:59 +0200 + +findutils (4.4.0-1) unstable; urgency=low + + * New upstream stable version. + + Some fixes for the texinfo manuals. (Closes: #470308) + * First upload to unstable, close bugs fixed by previous uploads to + experimental: + + POSIX is going to or has already standardized -[i]path. Stop throwing a + warning sugging to use -[i]wholename instead. Closes: #336078 + + Better error message if the second operand of a binary operator is + missing. (Closes: #403823) + + #22056: -Xtime tests are off by one second (e.g. rm -f x; touch x; + find x -mtime 0 should print x). Closes: #460733 + + If locatedb is old show actual age in warning mesage instead of just + saying "more than 8 days old". (Closes: #354384) + + Do not show warnings about argument ordering if -nowarn is specified. + (Closes: #370057) + + find -execdir will not segfault if PATH is not set. Closes: #438689 + + Different error message on 'find ""'. (Closes: #21084) + + Support for *BSDs -newerXY tests allows to find files with a date in the + future without generating a temporary file. "find -newermt 2007-07-07" + (Closes: #291419) + * Stop trying to install removed README-alpha. + * Point watchfile to ftp.gnu.org instead of alpha.gnu.org. + * Use doc-base section "File Management", since Apps/Tools is gone. + * Only run $(MAKE) distclean if Makefile exists. + * Symlink find(1) to oldfind(1) manpage. + + -- Andreas Metzler Sat, 15 Mar 2008 16:26:43 +0100 + +findutils (4.3.13-1) experimental; urgency=low + + * New upstream version. + #22057: Actually rename the old locate database to the new one + atomically, instead of just claiming the rename is atomic in a + comment. Closes: #461585 + #22056: -Xtime tests are off by one second (e.g. rm -f x; touch x; + find x -mtime 0 should print x). Closes: #460733 + * merge from 4.2.x: + - Add Vcs-Svn, Vcs-Browser and Homepage control fields. + - Try to preserve user changes of updatedb.conf on upgrading from + findutils versions with included locate: If updatedb.conf is user + modified and /etc/updatedb.findutils.cron.local does not yet exist, + generate the latter from the former. Closes: #459570 + * Upstream's documentation licensing has been fixed, update + debian/copyright. + + -- Andreas Metzler Sat, 01 Mar 2008 12:34:04 +0100 + +findutils (4.3.12-1) experimental; urgency=low + + * New upstream version + * Merge changes 4.2.31-3-->4.2.31-4 from unstable. + + Standards-Version: 3.7.3, no changes required. + + findutils Suggests: mlocate|locate|slocate. Long description of + findutils was improved. (Thanks, Justin B Rye). Closes: #455690 + + Fixed minor grammar error in 4.2.31-2 entry of NEWS.Debian. (Thanks, + Steve Langasek) Closes: #457231 + + Allow setting IONICE_CLASS and IONICE_PRIORITY in + /etc/updatedb.findutils.cron.local. (Thanks, Kees Cook). + Closes: #454677 + + locate-cron.daily + - Do not run ionice for kernels < 2.6.13. Redirect ionice stderr and + stdout to /dev/null. (Thanks, Craig Sanders) + - Allow disabling ionice by setting UPDATDB_NO_IONICE to a non-empty + value in /etc/updatedb.findutils.cron.local Closes: #456291 + - run with "set -e" + + Reformat /usr/share/doc/locate/README.Debian and add a comment about the + effects of IONICE_CLASS. (Thanks, James Youngman) + + Do not export NICE in the cronjob, since updatedb itself does not make + use of it. + * Refer to /usr/share/common-licenses/GFDL-1.2 in debian/copyright. + + -- Andreas Metzler Sun, 06 Jan 2008 11:52:09 +0100 + +findutils (4.3.11-1) experimental; urgency=low + + * New upstream version. + + GPLv3+. Update debian/copyright. + + includes fix for savannah #20139: find -[acm]time -N (wrongly) includes + files from N days ago, as well as (correctly) from less than N days ago. + + POSIX is going to or has already standardized -[i]path. Stop throwing a + warning sugging to use -[i]wholename instead. Closes: #336078 + + find -execdir will not segfault if PATH is not set. Closes: #438689 + * Add a note about the separate locate package to findutils' NEWS.Debian. + README.Debian only talks about locate. Move it to the correct package, + update contents. Closes: #453002 + * locate needs a Replaces: findutils (<< 4.2.31-2), since the helper + binaries in /usr/lib/locate/ are shipped in both packages. Closes: #453078 + * Rename /etc/cron.daily/find to /etc/cron.daily/locate. Use "export foo + bar" instead of "export foo ; export bar". (Thanks, jidanni). + Closes: #453490 + + -- Andreas Metzler Sun, 2 Dec 2007 16:14:34 +0100 + +findutils (4.3.8-3) experimental; urgency=low + + * fix removal of alternatives. (Thanks, dato) + + -- Andreas Metzler Sat, 17 Nov 2007 11:57:45 +0100 + +findutils (4.3.8-2) experimental; urgency=low + + * Split off locate/updatedb to a separate package. + (resulting description change Closes: #448523) + * Drop misnamed /etc/updatedb.conf and include its contents in cron.daily + file. (updatedb.conf only configured the cronjob, but not any + invocation of updatedb. (Closes: #342713). Allow keeping customization in a + separate /etc/updatedb.findutils.cron.local (Closes: #344213) + * Set cronjob IO scheduling to idle. (Thanks, Alberto Marmodoro) + (Closes: #448398) + * Use alternatives to manage /usr/bin/locate and /usr/bin/updatedb. + (Closes: #57748) + * Remove orphaned locate related conffiles on findutils upgrade as described + in http://wiki.debian.org/DpkgConffileHandling + * In findutils.postinst remove locate database unless locate is installed. + + -- Andreas Metzler Sun, 11 Nov 2007 15:04:12 +0100 + +findutils (4.3.8-1) experimental; urgency=low + + * New upstream version 4.3.8. + - Fixes locate heap buffer overflow when using databases in old format. + (CVE-2007-2452) Closes: #426862 + - Fixes savannah bug #20005: Tests -mtime -n and -mtime +n incorrectly + treated like -mtime n. Closes: #426505 + - Correct docs for %b printf specifier. (Closes: #400936) + * Pulled from CVS: 01_sv-bug-20139.dpatch: + find -[acm]time -N (wrongly) includes files from N days ago, as well as + (correctly) from less than N days ago. + + -- Andreas Metzler Sat, 23 Jun 2007 09:05:25 +0200 + +findutils (4.3.6-1) experimental; urgency=low + + * New upstream version. + + -- Andreas Metzler Sun, 27 May 2007 10:50:49 +0200 + +findutils (4.3.5-1) experimental; urgency=low + + * New upstream version. + - Better error message if the second operand of a binary operator is + missing. (Closes: #403823) + - If locatedb is old show actual age in warning mesage instead of just + saying "more than 8 days old". (Closes: #354384) + - Do not show warnings about argument ordering if -nowarn is specified. + (Closes: #370057) + - Correct docs for %b printf specifier. (Closes: #400936) + - [-version] instead of [--version] in locate --help. (Closes: #412459) + - make clean does not delete regexprops.texi if cross-building. + (Closes: #420190) + - Different error message on 'find ""'. (Closes: #21084) + - Support for *BSDs -newerXY tests allows to find files with a date in the + future without generating a temporary file. "find -newermt 2007-07-07" + (Closes: #291419) + - Non-printable characters escaped in errormessages, too. (Closes: #259194) + * Undo workaround for savannah #19550, since it is a glibc bug. + + -- Andreas Metzler Sun, 13 May 2007 14:40:44 +0200 + +findutils (4.2.33-1) unstable; urgency=low + + * New upstream version. (Translation updates and additions only.) + * Add Vcs-Svn, Vcs-Browser and Homepage control fields. + + -- Andreas Metzler Sat, 16 Feb 2008 13:26:48 +0100 + +findutils (4.2.32-1ubuntu2) hardy; urgency=low + + * debian/findutils.preinst: + - fix check for removal of the oboslete /etc/cron.daily/find + on gutsy->hardy upgrades (LP: #210699) + + -- Michael Vogt Wed, 02 Apr 2008 16:15:17 +0200 + +findutils (4.2.32-1ubuntu1) hardy; urgency=low + + * Merge with Debian; remaining changes: + - debian/locate-cron.daily: Test if called by root (LP: #147911), + add /var/lib/schroot/mount to PRUNEPATHS. + + -- Matthias Klose Fri, 08 Feb 2008 12:31:14 +0000 + +findutils (4.2.32-1) unstable; urgency=low + + * New upstream version. + - Fixes memory-corruption caused by off-by-one error in lib/listfile.c. + Closes: #462224 + - Correct docs for %b printf specifier in info manual, too. + (Closes: #400936) + * License now GPLv3+, update debian/copyright. + * Try to preserve user changes of updatedb.conf on upgrading from findutils + versions with included locate: If updatedb.conf is user modified and + /etc/updatedb.findutils.cron.local does not yet exist, generate the + latter from the former. Closes: #459570 + * Point watch file to ftp.gnu.org instead of alpha. + + -- Andreas Metzler Sun, 27 Jan 2008 10:18:07 +0100 + +findutils (4.2.31-4ubuntu2) hardy; urgency=low + + * add /var/lib/schroot/mount to PRUNEPATHS (LP: #153036) + + -- Reinhard Tartler Fri, 18 Jan 2008 00:00:12 +0100 + +findutils (4.2.31-4ubuntu1) hardy; urgency=low + + [ Soren Hansen ] + * Merge from debian unstable. All changes adopted by Debian. + + [ dAniel hAhler ] + * debian/locate-cron.daily: test if called by root (LP: #147911) + + -- Soren Hansen Wed, 16 Jan 2008 13:08:39 +0100 + +findutils (4.2.31-4) unstable; urgency=low + + * Allow setting IONICE_CLASS and IONICE_PRIORITY in + /etc/updatedb.findutils.cron.local. (Thanks, Kees Cook). + Closes: #454677 + * Standards-Version: 3.7.3, no changes required. + * Reformat /usr/share/doc/locate/README.Debian and add a comment about the + effects of IONICE_CLASS. (Thanks, James Youngman) + * Do not export NICE in the cronjob, since updatedb itself does not make use + of it. + * findutils Suggests: mlocate|locate|slocate. Long description of findutils + was improved. (Thanks, Justin B Rye). Closes: #455690 + * locate-cron.daily + - Do not run ionice for kernels < 2.6.13. Redirect ionice stderr and + stdout to /dev/null. (Thanks, Craig Sanders) + - Allow disabling ionice by setting UPDATDB_NO_IONICE to a non-empty + value in /etc/updatedb.findutils.cron.local Closes: #456291 + - run with "set -e" + * Fixed minor grammar error in 4.2.31-2 entry of NEWS.Debian. (Thanks, + Steve Langasek) Closes: #457231 + + -- Andreas Metzler Sat, 1 Dec 2007 12:47:17 +0100 + +findutils (4.2.31-3ubuntu1) hardy; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/locate-cron.daily: add IONICE_CLASS/PRIORITY variable usage. + + -- Kees Cook Thu, 06 Dec 2007 15:05:32 -0800 + +findutils (4.2.31-3) unstable; urgency=low + + * Add a note about the separate locate package to findutils' NEWS.Debian. + README.Debian only talks about locate. Move it to the correct package, + update contents. Closes: #453002 + * locate needs a Replaces: findutils (<< 4.2.31-2), since the helper + binaries in /usr/lib/locate/ are shipped in both packages. Closes: #453078 + * Rename /etc/cron.daily/find to /etc/cron.daily/locate. Use "export foo + bar" instead of "export foo ; export bar". (Thanks, jidanni). + Closes: #453490 + + -- Andreas Metzler Sat, 24 Nov 2007 10:55:17 +0100 + +findutils (4.2.31-2) unstable; urgency=low + + * Merge changes from 4.3.8-1 to 4.3.8-3 to unstable: + + Split off locate/updatedb to a separate package. + (resulting description change Closes: #448523) + + Drop misnamed /etc/updatedb.conf and include its contents in cron.daily + file. (updatedb.conf only configured the cronjob, but not any + invocation of updatedb. (Closes: #342713). Allow keeping customization + in a separate /etc/updatedb.findutils.cron.local (Closes: #344213) + + Set cronjob IO scheduling to idle. (Thanks, Alberto Marmodoro) + (Closes: #448398) + + Use alternatives to manage /usr/bin/locate and /usr/bin/updatedb. + (Closes: #57748) + + Remove orphaned locate related conffiles on findutils upgrade as + described in http://wiki.debian.org/DpkgConffileHandling + + In findutils.postinst remove locate database unless locate is installed. + + -- Andreas Metzler Sat, 2 Jun 2007 10:53:46 +0200 + +findutils (4.2.31-1ubuntu2) gutsy; urgency=low + + * debian/find-daily.cron: fixed small typo in shell variable. + + -- Kees Cook Wed, 03 Oct 2007 11:04:17 -0700 + +findutils (4.2.31-1ubuntu1) gutsy; urgency=low + + * Make use of ionice in cron.daily, if available (LP: #134692) + * debian/updatedb.conf: added IONICE_CLASS/IONICE_PRIORITY, + defaulting to IONICE_CLASS=2, IONICE_PRIORITY=7 (best effort) + * debian/find-crond.daily: use ionice + * debian/control: DebianMaintainerField + + -- dAniel hAhler Tue, 02 Oct 2007 01:52:46 +0200 + +findutils (4.2.31-1) unstable; urgency=medium + + * Undo workaround for savannah #19550, since it is a glibc bug. + * New upstream bugfix release: + - Fixes locate heap buffer overflow when using databases in old format. + (CVE-2007-2452) Closes: #426862 + - make clean does not delete regexprops.texi if cross-building. + (Closes: #420190) + - [-version] instead of [--version] in locate --help. (Closes: #412459) + + -- Andreas Metzler Sat, 2 Jun 2007 09:55:27 +0200 + +findutils (4.2.30-1) unstable; urgency=low + + * New upstream version. + - drop patches/11_fix_execdir.dpatch added in 4.2.28-2. + - drop debian/patches/10_tcl8.3_testsuite_failure.dpatch + * Work around http://savannah.gnu.org/bugs/?19550 by forcing + --without-included-regex. + + -- Andreas Metzler Sun, 8 Apr 2007 13:38:24 +0200 + +findutils (4.2.28-2) unstable; urgency=low + + * Pulled from 4.2.29 + - Fix breakage with slightly more complicated commands and -exedir. + (Closes: #385896) + + -- Andreas Metzler Sun, 25 Feb 2007 10:44:55 +0100 + +findutils (4.2.28-1) unstable; urgency=low + + * New upstream version. + - includes 01_updatedb-withnew-su.dpatch, drop it. + + -- Andreas Metzler Sun, 6 Aug 2006 09:53:05 +0200 + +findutils (4.2.27-3) unstable; urgency=low + + * [updatedb] use su "$LOCALUSER" -s $SHELL -c false instead of + su "$LOCALUSER" -s $SHELL false to make it work with current su in sid. + Thanks, Chronos Tachyon for bugreport and fix. (Closes: #366269) + * standards-version 3.7.2, no changes required. + + -- Andreas Metzler Sat, 13 May 2006 13:41:30 +0200 + +findutils (4.2.27-2) unstable; urgency=low + + * Invoke ./configure according to latest autotools-dev/README.Debian.gz, + just with --build for regular builds, and both --build and --host when + crosscompiling, instead of always specifying both. + * Do not run testsuite when cross-compiling. (Thanks, Pjotr Kourzanov) + (Closes: #358774) + * Fix testsuite failure with tcl8.3 by pulling fix from CVS. + (Closes: #361401) + + -- Andreas Metzler Fri, 24 Mar 2006 19:06:03 +0100 + +findutils (4.2.27-1) unstable; urgency=low + + * New upstream version + - filesystem detection should be correct more often. Hopefully closes + #344356 + * Add udf to PRUNEFS (Closes: #340597) + + -- Andreas Metzler Fri, 6 Jan 2006 17:45:04 +0100 + +findutils (4.2.26-2) unstable; urgency=low + + * [xargs] Use true instead of echo in testsuite, hopefully fixing FTBFS on + alpha, amd64 and ia64. (Closes: #340664) + * [xargs] Limit number of arguments to (arg_max / sizeof(void*)) - 2 instead + of ...-1, hopefully fixing FTBFS on hppa. + * [updatedb] Add binfmt_misc, tmpfs, usbfs to PRUNEFS (Closes: #229551) + + -- Andreas Metzler Sat, 3 Dec 2005 13:52:20 +0100 + +findutils (4.2.26-1) unstable; urgency=low + + * mimick override-file and put find in section utils instead of base. + * debian/README.debian: on_ac_power works for ACPI, too. (Closes: #306963) + * Add a NEWS.Debian file, explaining the withdrawal of "find -perm +MODE" + and introduction of "find -perm /MODE". (Closes: #329358) + * New upstream version 4.2.26. + - find manpage updated to document -perm /... instead of -perm +... + (Closes: #330245) + - Typos in xargs.1 and find.1 fixed. (Thanks, A. Costa) + (Closes: #327909, #327910) + - If the input to xargs is a large number of very short options (for + example, one character each), earlier versions of xargs would fail + with 'Argument list too long'. This is because Linux's execve + implementation requires that the sum of the sizes of all argument + string pointers not exceed 128K (the actual limit is + ARG_MAX - sizeof (void*)). Hopefully (Closes: #313028). + + -- Andreas Metzler Sun, 20 Nov 2005 09:38:42 +0100 + +findutils (4.2.25-1) unstable; urgency=low + + * new upstream version 4.2.25. (bugfix and improved testsuite) + * add findutils-4.2.25-14390.dpatch, fixing a testsuite failure concerning + find -depth ... -quit + * Update debian/copyright. + + -- Andreas Metzler Sun, 4 Sep 2005 09:35:59 +0200 + +findutils (4.2.24-1) unstable; urgency=low + + * standards-version 3.6.2, no changes required. + * New upstream version 4.2.24: + - "-printf %Y %y"n works correctly again (Closes: #320378). + - new option -regextype to finds for selecting more useful regex-variants + than the default GNU Emacs. + - find -exec rm -i {} \; works again. (Closes: #317019) + - xargs exits with correct exit status 123 if invoked command returned + non-zero returncode. (Closes: #319085) + - xargs -I option documented in manpage. (Closes: #317086) + - fixes to find.1 manpage (Closes: #318417) + + -- Andreas Metzler Sat, 30 Jul 2005 09:14:35 +0200 + +findutils (4.2.22-2) unstable; urgency=high + + * Remove locatedb on purge. (Closes: #315343) + * revert regex-syntax back to emacs-re. (Closes: #315136) Future versions + will allow to select this by commandline parameter. + + -- Andreas Metzler Mon, 4 Jul 2005 11:37:37 +0200 + +findutils (4.2.22-1) unstable; urgency=low + + * New upstream version + - fixes infinite loop of "find -follow" on trees with symlinks to ./. + (Closes: #313081) + - better documentation for %k and %d printf directives. (Closes: #208307) + - find filters out non-printable characters (which could mess up the + terminal) when printing the output to a console. (Closes: #311384) + - Typo fixes. (Closes: #301934, #312760, #312761) (Thanks, A Costa.) + + -- Andreas Metzler Mon, 13 Jun 2005 19:39:46 +0200 + +findutils (4.2.20-3) unstable; urgency=low + + * find dir/foo -depth -empty was broken. Pull fix from 4.2.21. + (Closes: #313079) + + -- Andreas Metzler Sun, 12 Jun 2005 17:05:41 +0200 + +findutils (4.2.20-2) unstable; urgency=low + + * Upload to unstable. + + -- Andreas Metzler Thu, 9 Jun 2005 20:07:37 +0200 + +findutils (4.2.20-1) experimental; urgency=low + + * [locate] Do not index cifs (Closes: #295399) lustre (Closes: #300323) and + nfs4 (Closes: #300631) filesystems by default. + * [locate] Ignore /media by default. (Closes: #300429) + * New upstream version 4.2.20 + - includes up-to-date Italian translation. (Closes: #286977) + + -- Andreas Metzler Sun, 27 Mar 2005 10:54:02 +0200 + +findutils (4.2.14-1) experimental; urgency=low + + * New upstream version + - includes patch to fix savannah #11495. + - locate: New options -L, --follow|-P, -H, --nofollow for ignoring + dangling symlinks (or not). (Closes: #159221) + - find supports -exec ... {} +. + - locate support for FreeBSD options (Sclms, m and s are ignored, but + undocumented, I've already opened upstream report #11730 on that.) + (Closes: #102914) + - find built with --enable-d_type-optimisation, for using + readdir/getdents. (Closes: #202512) + + -- Andreas Metzler Tue, 25 Jan 2005 11:40:21 +0100 + +findutils (4.2.11-2) experimental; urgency=low + + * find -printf '%n' (hard link count) was broken (savannah #11495). + + -- Andreas Metzler Fri, 7 Jan 2005 09:13:32 +0100 + +findutils (4.2.11-1) experimental; urgency=low + + * New upstream version. + + -- Andreas Metzler Wed, 5 Jan 2005 12:29:36 +0100 + +findutils (4.2.10.CVS20041219-1) experimental; urgency=low + + * New upstream, CVS from CVS20041219 (pre- 4.2.11). + * -printf '%P' works correctly again. + * Run testsuite. + + -- Andreas Metzler Sun, 19 Dec 2004 11:58:08 +0100 + +findutils (4.2.9-1) experimental; urgency=low + + * New upstream source + + -- Andreas Metzler Sun, 5 Dec 2004 22:33:29 +0100 + +findutils (4.2.8-1) experimental; urgency=low + + * New upstream version + - New option --arg-file=file and extended documentation about + stdin-handling (short in manpage, more extensive in info). + (Closes: #5956) + - improved behavior on automounted directories. + + -- Andreas Metzler Tue, 30 Nov 2004 10:19:56 +0100 + +findutils (4.2.5-1) experimental; urgency=low + + * New upstream version + - includes 25_destdir_localstatedir.dpatch, our last remaining patch, we + are vanilla now. + * Add minimal debian/README.source. + * Chuan-kai Lin has offered to serve as backup + maintainer. Thanks. Add him to Uploaders. + + -- Andreas Metzler Sat, 20 Nov 2004 09:38:55 +0100 + +findutils (4.2.4-1) experimental; urgency=low + + * New upstream version + - Closes: #175372: findutils: man pages have L's on references + - includes 10_updatedb-findopts patch. + - does not print warning about listing options after non-options unless + connected to a tty. + - xargs now uses 128Kb instead of 20Kb of command line by default, as + ARG_MAX is 131072 on linux this Closes: #261598. + + -- Andreas Metzler Tue, 9 Nov 2004 10:57:24 +0100 + +findutils (4.2.3.CVS20041106-1) experimental; urgency=low + + * New upstream version (pre-4.2.4, CVS 2004-11-06). + - Closes: #176201: findutils: xargs enviroment size limited to 20k + - Closes: #254676: xargs: environment is too large for exec + - Closes: #219855: -printf: accepts C octal escapes, contrary to the + documentation. + - Closes: #246040: findutils: find -printf %H segfaults + - Closes: #185202: findutils: extra ")" not caught + - Closes: #185203: findutils: overflow causes -mtime to succeed + - Closes: #244766: /usr/bin/locate: locate should have equivalent of + -print0 option + - documents type of supported regular expressions for -regex + (Closes: #162838) + - Closes: #256367: Deprecated usage of trap in locate/updatedb.sh + - includes some examples in find.1 manpage. (Closes: #111578) + - new option -ignore_readdir_race to selectively suppress the obnoxious + race-condition caused errormessages. (Closes: #67782) + - -print0/-0 issues explained in more detail. (Closes: #111143) + - includes supplied patch for GNU/FreeBSD. (Closes: #192330) + - updatedb invokes "cd /" before running commands as unprivileged user. + (Closes: #262476) + - 'xargs -n 1 -i' works. (Closes: #31858). Please note that it is no bug + that -i changes xargs to pass a whole line of input as a single argument + instead of splitting on any blank characters as without -i. - Other + implementations behave the same and the -I XSI extension documented in + SUSv3/POSIX works like this, too. + + * Removed unnecessary patches: 10_missing_includes 20_missing_newlines + 30_locate_nologinsh 35_updatedb-location 36_savannah-8623 40_direntry + 50_install_info + * Add shfs to PRUNFS (Closes: #260780) + * New patch: 10_updatedb-findopts: Add --findoptions option to updatedb to + pass global options to find. + * Set FINDOPTIONS='-ignore_readdir_race' for updatedb.sh's cron-job. + (Closes: #169730) + * standards-version 3.6.1 (no changes required). + + -- Andreas Metzler Sun, 7 Nov 2004 13:11:28 +0100 + +findutils (4.1.20-4) unstable; urgency=low + + * Add sysfs to PRUNFS (Closes: #219340) + * Add watch file provided Stefano Fabri. (Closes: #248758) + * locate crashed on invalid db-files. Fix pulled from CVS. (Closes: #256811) + + -- Andreas Metzler Tue, 29 Jun 2004 13:30:57 +0200 + +findutils (4.1.20-3) unstable; urgency=low + + * Don't ship /usr/share/info/dir.gz, change Makefile.in to use install-info + test from new automake. The bug only applied to the autobuilt versions, + because I don't have /usr/sbin in $PATH, thanks to Santiago Vila. + (Closes: #217627) + + -- Andreas Metzler Sun, 26 Oct 2003 13:44:21 +0100 + +findutils (4.1.20-2) unstable; urgency=low + + * Run updatedb cronjob with nice level 10 per default (configurable in + /etc/updatedb.conf) (Closes: #46548) (Thanks to era eriksson) + * Document how to fine-tune/disable daily updatedb-runs in README.debian + (Closes: #183085, #183290) + * Make sure LOCALUSER is set to a nonempty value in /etc/cron.daily/find + (Closes: #189023) + + -- Andreas Metzler Thu, 23 Oct 2003 16:30:43 +0200 + +findutils (4.1.20-1) unstable; urgency=low + + * New maintainer. Hijacked package as discussed on debian-devel and + debian-qa. + * Update texinfo docs to use @direntry to help dh_installinfo. + (Closes: #182172) + * Acknowledge Thomas' grand NMU by using dpkg-buildpackage -v4.1.7-2 + * Bump standards-version to 3.6.0. (No changes required) + + -- Andreas Metzler Mon, 14 Jul 2003 14:38:34 +0200 + +findutils (4.1.20-0.2) unstable; urgency=low + + * repacked using debhelper and dpatch. + * move contents of debian/Changelog to debian/changelog, remove + emacs-variables from it. + * reformat debian/copyright + * Strip down debian-patch: + - weed out all the changes to .cvsignore files. + - the changes described in the diff to po/ChangeLog are included upstream + - Some the changes in #123919 seem to be unneeded now (at least I do not + get implicit declaration warnings. + - fix for #67507 (id=0 instead of name=root) included upstream. + * Remove old cruft from maintainerscripts: + - compatibility code for upgrading from versions prior to 4.1-15 + (released Dec 1996) in preinst. + - Fix permissions of /var/lib/locate (4.1-16 released Jan 1997) in + postinst. + - fix executable /etc/updatedb.conf. (included since 4.1-19, Mar 1997) + * use getent instead of grep ... /etc/passwd to check for existence of + $LOCALUSER + * Use config.(guess|sub) from autotools-dev (Closes: #155119) + * Fix db-path in updatedb(1). (Closes: #171877) + + -- Andreas Metzler Mon, 14 Jul 2003 10:03:33 +0200 + +findutils (4.1.7-2.1) unstable; urgency=low + + * Non-Maintainer upload. + * Fixed compiler warnings about implicit declarations of various + functions. + Closes: #123919: findutils: find segfaults on ia64 + * debian/rules, debian/postinst: Use numeric id 0 instead of "root" + Closes: #67507: user "root" + * Closes: #102708: locate usage message lacks final newline + Closes: #124333: Missing newline for helptext in locate + Closes: #140941: findutils: locate with no args is missing final \n + Closes: #149126: findutils: locate should print a newline after its + error message + Closes: #149716: findutils: locate doesn't print final newline + Closes: #161083: findutils: If you run locate without parameters, + there is no final newline in the output + * Closes: #117425: findutils: xargs: missing newline on "--help" output + Closes: #124178: xargs --help doesn't end in a newline + * Closes: #141354: findutils: include devfs to list PRUNEFS + * Closes: #166085: Need to exclude the mfs filesystem for mosix and + openmosix + * Closes: #113139: updatedb: please remove "auto" from PRUNEFS + Closes: #129121: I don't believe fstype AUTO should be excluded in + updatedb.conf + Closes: #132430: auto in PRUNEFS in /etc/updatedb.conf has unexpected + sideeffect! + Closes: #144649: the updatedb cron script does not work on root + filesystem type auto + Closes: #119603: locate should index filetype (auto) [ext3fs] + * Include LOCALUSER configuration into /etc/updatedb.conf + Closes: #152635: midnight updatedb always runs as nobody + * debian/cron.find: complain if $LOCALUSER does not exist. + Closes: #97367: locate-database is destroyed by /etc/cron.daily/find + * Closes: #109920: updatedb should not scan /sfs + * locate/updatedb.sh: Use a default shell of /bin/sh to run find. + Closes: #113774: findutils: updatedb makes assumption about localuser + Closes: #119719, #119721: updatedb doesn't work in cron.daily/find if + the user nobody has no login shell + * Moved locatedb from /var/lib/locate/ to /var/cache/locate/. + debian/postinst: added code to move an existing locatedb into the + new place. + Closes: #115399: findutils: locate FHS violation + + -- Thomas Schoepf Sun, 27 Oct 2002 20:22:26 +0100 + +findutils (4.1.7-2) unstable; urgency=low + + * changed libc dependencies to remove libc6-dev build-depends (closes: + #99216). + + -- Kevin Dalley Fri, 1 Jun 2001 20:33:32 -0700 + +findutils (4.1.7-1) unstable; urgency=low + + * add ftpfs to PRUNEFS (closes: #90016). + * implicit -print now works again (closes: #79218). + * change debian/rules to support DEB_BUILD_OPTIONS. Do not install + INSTALL. + * fixed security problems in find (closes: #95185). + * upgraded to recent config.guess and config.sub (closes: #98035). + * updated to newest upstream release. + + -- Kevin Dalley Sun, 20 May 2001 17:32:29 -0700 + +findutils (4.1.6-2) unstable; urgency=low + + * Adds Build-Depends texinfo (closes: #76145) + + -- Kevin Dalley Sat, 4 Nov 2000 10:20:22 -0800 + +findutils (4.1.6-1) unstable; urgency=low + + * find/find.c (process_path): fix problem with "-depth" which is tested + in depth.exp test. (closes: 69782). + + * new alpha release. locate --ignore-case is done. + + + * some patches for ignoring case have been added. (closes: #19563). + + * fixed problems with brace expansion in debian/rules (closes: #71827) + + * doc/find.texi (Invoking xargs): changed @var{-s} to @samp{-s} (closes: + #69529). + + * Update to a new alpha release. + + * update to new alpha release. + + * testing out 4.1.3, with internationalization. + + * added devpts to PRUNEFS in updatedb.conf (closes: #65503). + + * fixes bug described as follows: When 'find' looks for a fstype, it + parses the /etc/mtab until it finds the good line. But, if there is, + before the good line, a line whose mountpoint is unreachable, it + fails. (closes: #40245). + + * fixed problem with strange behavior with "-name" and "-iname" (closes: + #63270). + + -- Kevin Dalley Mon, 30 Oct 2000 23:48:26 -0800 + +findutils (4.1-38) frozen unstable; urgency=low + + * debian/updatedb.conf: removed second occurrence of smbfs, added + coda (closes: #56612, #28453). + * fixed problem with xargs sysconf(_SC_ARG_MAX) returning -1 (closes: + #31325). + + -- Kevin Dalley Thu, 24 Feb 2000 15:25:57 +0000 + +findutils (4.1-37) frozen unstable; urgency=low + + * reverted to maintainer release, fixed last NMU bugs (closes: #55417, + #55551). + + -- Kevin Dalley Thu, 20 Jan 2000 09:52:59 -0800 + +findutils (4.1-36) unstable; urgency=low + + * add ncpfs and smbfs to PRUNEFS (closes: #28453). + * update Standards-Version to 3.1.1.0 + * corrected copyright reference + * updated dpkg-gencontrol options to provide section and priority + * 4.1-35 was not accepted, for undetermined reasons, uploaded 4.1-36, + with additional changes + + -- Kevin Dalley Sun, 16 Jan 2000 13:58:54 -0800 + +findutils (4.1-34) unstable; urgency=low + + * removed cron.updatedb (fixes bug #31300). + * added const to declaration of basename, which should satisfy Linux as + well as Hurd (fixes bug #31325). + * added /var/spool to PRUNEPATHS in updatedb.conf so that /var/spool is + not scanned by updatedb (fixes bug #31301). + + -- Kevin Dalley Sat, 30 Jan 1999 16:51:34 -0800 + +findutils (4.1-33) frozen unstable; urgency=low + + * re to remove predependency problem with a specific version libc6. + + -- Kevin Dalley Thu, 17 Dec 1998 08:11:15 -0800 + +findutils (4.1-32) frozen unstable; urgency=low + + * added documentation for the environment variables PRUNEPATHS, PRUNEFS, + and NETPATHS for updatedb in find.texi and updatedb.1. Added + documentation for --prunefs in updatedb. (fixes bug #29755). + * link ChangeLog.gz to changelog.gz, to follow policy manual. + + -- Kevin Dalley Fri, 4 Dec 1998 23:17:57 -0800 + +findutils (4.1-31) unstable; urgency=low + + * fix getstr so that it correctly handles long file paths + + -- Kevin Dalley Sat, 26 Sep 1998 16:07:03 -0700 + +findutils (4.1-30) unstable; urgency=low + + * reduced PATH in update.sh to increase security (fixes bug #21704) + * removed more function declarations to meet GNU coding standards + * removed "-s /bin/sh" from updatedb change quoting around PRUNEFS + (fixes bug #20812, again, and #26857) + + -- Kevin Dalley Sun, 20 Sep 1998 19:06:19 -0700 + +findutils (4.1-29) unstable; urgency=low + + * removed declaration of strdup and free from lib/nextelem.c, which + meets GNU coding standards and allow compilation on sparc (and fixes + bug #20840) + * corrected explanation of -amin option which described hours instead of + minutes (fixes bug #22995) + * check status of tempfile commands and exit upon failure (fixes bug + #22350) + * added iso9660 to PRUNEFS so that CDs will not be automatically scanned + by updatedb (fixes bug #24548) + * added "-s /bin/sh" to all instances of command su, which allows + updatedb to be easily used by users which have a different shell. + (fixes bug #20812) + + -- Kevin Dalley Sun, 30 Aug 1998 01:40:04 -0700 + +findutils (4.1-28) frozen unstable; urgency=low + + * use tempfile for extra safety (fixes bug #19791) + + -- Kevin Dalley Thu, 19 Mar 1998 00:37:28 -0800 + +findutils (4.1-27) unstable; urgency=low + + * add --existing option to locate, which only prints the names of files + which still exist (fixes: bug #14037) + * upgrade standards version + + -- Kevin Dalley Fri, 27 Feb 1998 01:43:36 -0800 + +findutils (4.1-26) unstable; urgency=low + + * added auto fs to PRUNEFS variable in updatedb.conf to prune + automounted file systems (fixes: bug #13662) + * corrected get_short so that it correctly returns negative + numbers. (fixes: bug #17774) + * remove declarations of various string functions which allows + compilation under sparc. Removing the declarations almost + matches the GNU Coding Standards.(fixes: bug #16948) + + -- Kevin Dalley Sun, 8 Feb 1998 22:43:13 -0800 + +findutils (4.1-25) unstable; urgency=low + + * change auto to autofs in PRUNEFS variable in updatedb.conf + + -- Kevin Dalley Tue, 30 Sep 1997 09:13:27 -0700 + +findutils (4.1-24) unstable; urgency=low + + * added auto to PRUNEFS, so that automounted fs are automatically pruned + + -- Kevin Dalley Sat, 27 Sep 1997 01:14:52 -0700 + +findutils (4.1-23) unstable; urgency=low + + * This release is built with libc6 release + * add "#define _GNU_SOURCE" to pred.c + * zip man pages, which fixes bug #10272: findutils manpages are not + compressed. + + -- Kevin Dalley Sun, 6 Jul 1997 14:12:56 -0700 + +findutils (4.1-22) frozen unstable; urgency=low + + * add smbfs to PRUNEFS in updatedb.conf, which is bug #8668, findutils: + Updatedb should not scan smbfs mounts + + -- Kevin Dalley Sun, 27 Apr 1997 00:20:23 -0700 + +findutils (4.1-21) frozen unstable; urgency=low + + * fixed preinst to handle install, which fixes bug #8351 + + -- Kevin Dalley Wed, 2 Apr 1997 22:21:59 -0800 + +findutils (4.1-20) unstable; urgency=low + + * really fixed xargs to prevent occasional core dumping, which fixes bug + #7287. findutils-4.1-19 skipped including this patch + + -- Kevin Dalley Mon, 3 Mar 1997 22:50:28 -0800 + +findutils (4.1-19) unstable; urgency=low + + * /etc/updatedb.conf execution mode is removed, which fixes bug #7569 + * xargs fixed to prevent occasional core dumping, which fixes bug #7287 + * added comment in README.debian describing updatedb on automatically + mounted file systems only, which closes bug #7023 + + -- Kevin Dalley Sun, 2 Mar 1997 11:51:30 -0800 + +findutils (4.1-18) unstable; urgency=low + + * added extra '\' so that localuser, prunefs, and prunepaths can work + together, which fixes bug #6640 + + -- Kevin Dalley Thu, 23 Jan 1997 02:00:11 -0800 + +findutils (4.1-17) unstable; urgency=low + + * corrected permission on /var/lib/locate again in postinst. + + -- Kevin Dalley Sun, 12 Jan 1997 15:24:17 -0800 + +findutils (4.1-16) unstable; urgency=low + + * add --localuser option to updatedb, which allows find to be run as + nobody, while allowing database file to be created as root, change + suggested by + * install /var/lib/locate as root:root + * doc/find.texi, locate/updatedb.sh: add --localuser documention. + * debian/postinst: change /var/lib/locate directory to be owned by root + * debian/cron.find: use --localuser option so to updatedb is run as + root, but find is run as nobody + * correct warning message in preinst, fixes bug #6498: findutils.preinst + mentions /etc/find.conf instead of /etc/updatedb.conf + + -- Kevin Dalley Sat, 11 Jan 1997 19:16:39 -0800 + +findutils (4.1-15) unstable; urgency=low + + * added PRUNEFS as variable in updatedb and --prunefs as option to + updatedb (solves bug #1239, which is RFE) + * rename cron.find to cron.updatedb (and cron.daily/find to + cron.daily/updatedb) + * find.texi, find.info*: changed certain defaults back to the way they + were in the original release, added prunefs option + * findutils/locate/updatedb.sh: added prunefs option + * debian/rules: added find.conf and changed method of installation of files + * debian/preinst: add information about changed find.conf when upgrading + * debian/find.conf: updatedb configuration file + * debian/find.conf: use find.conf + * debian/conffiles: added find.conf as configuration file + * renamed find.conf to updatedb.conf + + -- Kevin Dalley Sat, 28 Dec 1996 14:21:07 -0800 + +findutils (4.1-14) stable unstable; urgency=low + + * install conffiles so that find is a conffile (this was last during the + standards-version update + + -- Kevin Dalley Sat, 21 Dec 1996 12:54:46 -0800 + +findutils (4.1-13) stable unstable; urgency=HIGH + + * fixes bug which prevents locate from running in previous + installations, which is /var/lib/locate directory being owned by + root. + + * remove recursive chown and chmod from debian/rules. set + /var/lib/locate to nobody:nogroup in postinst, just in case it was set + previously by another installation. + + -- Kevin Dalley Tue, 17 Dec 1996 23:34:44 -0800 + +findutils (4.1-12) unstable; urgency=low + + * changed debian/control to satisfy standards and fix bug #3566, + summary incorrect + * moved files debian.* to debian/* + * converted to Standards-Version: 2.1.1.0 + + -- Kevin Dalley Wed, 23 Oct 1996 21:06:15 -0700 + +Mon May 27 01:07:52 1996 Kevin Dalley + * updatedb.sh: when NETPATHS is used, only su to NETUSER if whoami + is root + * debian.rules: now creates *.architecture.deb + upgraded to Debian release 11 + stopped rm of find.info* +Sat Apr 27 12:29:06 1996 Kevin Dalley + * find.info, find.info-1, find.info-2: updated to match find.texi + * debian.rules (debian): update debian revision to 10 + * getline.c (getstr): verify that nchars_avail is *really* greater + than 0; set *n to a large enough number, stops some core dumping +Mon Apr 15 05:06:15 1996 Kevin Dalley + * debian.rules: change to findutils-4.1-9 + * configure: restore configure from autoconf version 2.1, which + was modified in findutils-4.1-7 +Sun Apr 14 00:09:13 1996 Kevin Dalley +* debian.control, debian.rules: + added architecture field, updated debian.rules, bumped version +* find.texi, updatedb.sh: + added /amd, /net, /alex to list of files to be ignored +Sun Feb 25 13:23:21 1996 Kevin Dalley +* debian.rules: finish variable changing of v, d, and p +* updatedb.sh: ignore file type proc, remove proc from PRUNEPATHS + (this should *really* be changed in upstream package) +* debian.rules: changed variables v and d to complete words version and debian +* debian.control: deleted PACKAGE_REVISION field, modified version field +* cron.find: cd to / before running updatedb +Sun Jan 12 15:24:31 1997 Kevin Dalley +* debian/postinst: corrected permission for /var/lib/locate in postinst again. + --- findutils-4.4.0.orig/debian/findutils.postinst +++ findutils-4.4.0/debian/findutils.postinst @@ -0,0 +1,34 @@ +#! /bin/sh +set -e + +if [ "$1" = "configure" ]; then + # up to 4.1.7-2 locatedb was in non-FHS-dir /var/lib/locate + if dpkg --compare-versions "$2" le-nl "4.1.7-2" ; then + if [ -f /var/lib/locate/locatedb ]; then + mv /var/lib/locate/locatedb /var/cache/locate/ + rmdir /var/lib/locate 2>/dev/null || true + fi + fi + # Remove locatedb if we are upgrading from findutils with included locate. + + # Sadly it does not really work to *not* do this if locate is going to be + # installed. "apt-get install locate" will first completely upgrade + # findutils (including running this script) before even _unpacking_ locate. + # Therefore # dpkg-query -W -f='${Status}'locate will be + # "something ok not-installed" when this script is run. + + if [ -d /var/cache/locate/ ] && \ + dpkg --compare-versions "$2" le-nl "4.2.31-1" && \ + locatestatus=`dpkg-query -W -f='${Status}' locate 2> /dev/null` ; then + locatestatus=`echo $locatestatus | cut -f3 -d\ ` + case "$locatestatus" in + not-installed | config-files) + rm -f /var/cache/locate/locatedb + rmdir --ignore-fail-on-non-empty /var/cache/locate/ + ;; + esac + fi +fi + +#DEBHELPER# +# vim:tabstop=2:expandtab:shiftwidth=2 --- findutils-4.4.0.orig/debian/compat +++ findutils-4.4.0/debian/compat @@ -0,0 +1 @@ +4 --- findutils-4.4.0.orig/debian/locate.README.debian +++ findutils-4.4.0/debian/locate.README.debian @@ -0,0 +1,72 @@ +Debian README for GNU locate/updatedb. + +The database is updated daily by running /etc/cron.daily/locate. +Customizations can be made by either editing this file directly (Since +it is a dpkg-conffile changes will be preserved.) or by generating +/etc/updatedb.findutils.cron.local which will be sourced by the cronjob +before running updatedb. + +The cronjob by default runs with nice level 10 and with IONICE_CLASS 3 +(idle). Using IONICE_CLASS is a trade-off between locate database +consistency and friendliness to other processes. The nicer we are, the +less impact we have on system performance when updating the database, +because we generally spread our usage out more. Spreading the usage out +a bit more means that updating the database takes longer and the result +is a slightly less consistent view of the filesystem. Since it is not +possible to get a perfectly consistent view anyway, using IONICE_CLASS=3 +is normally reasonable. + +------------------------------- +Questions and examples +-------------------------------- + +My systems slows down everyday at bootup, how can I stop the daily +updatedb-invocations? + +* Generate a new file /etc/updatedb.findutils.cron.local that consists of + the single line "exit 0" (without the quotes). + +* Uninstall locate. + +* Edit /etc/cron.daily/locate. It is a dpkg conffile and your changes won't be + overwritten. + +Q: How can I stop /etc/cron.daily/locate from using ionice? +A: add UPDATDB_NO_IONICE=yes to /etc/updatedb.findutils.cron.local + +Examples: +* Run weekly instead of daily: + Add this to the head of /etc/cron.daily/locate + #---------- + if [ -d /var/cache/locate ] ; then + # locatedb is younger than 7 days + [ -n "`find /var/cache/locate -name locatedb -mtime -7`" ] && exit 0 + fi + #---------- + To run every other day on would use "2" instead of "7". + +* Disable updatedb completely: + Either delete /etc/cron.daily/locate or add "exit 0" as the second line of + /etc/cron.daily/locate + +* On a laptop only update the locate database if running on AC-power: + Add "on_ac_power || exit 0" as the second line of /etc/cron.daily/locate. + If you are using anacron for running cron.daily there is no need for + changing /etc/cron.daily/locate, anacron will by default not execute the + jobs when the system is running on battery. + +* Some people wish to have updatedb only include mount points which are + automatically mounted by "mount -a", which mounts devices listed in + /etc/fstab. + + The following lines may be added to /etc/cron.daily/locate (or to a newly + generated /etc/updatedb.findutils.cron.local) to exclude non-automatic mount + points from updatedb. + + # mount points not to be scanned (regexp matching lines into /etc/fstab) + EXCLUDE_MOINT_POINTS=noauto + EXCLUDE_PATH=`awk "/^#/ {next}; /$EXCLUDE_MOINT_POINTS/ {print \\$2}" < /etc/fstab | tr '\012' ' '` + PRUNEPATHS="$PRUNEPATHS $EXCLUDE_PATH" + + This suggestion is due to Eric Delaunay + --- findutils-4.4.0.orig/debian/findutils.docs +++ findutils-4.4.0/debian/findutils.docs @@ -0,0 +1,3 @@ +NEWS +README +TODO --- findutils-4.4.0.orig/debian/locate.dirs +++ findutils-4.4.0/debian/locate.dirs @@ -0,0 +1,4 @@ +etc/cron.daily +usr/bin +usr/share/man/man5 +usr/share/man/man1 --- findutils-4.4.0.orig/debian/locate.postrm +++ findutils-4.4.0/debian/locate.postrm @@ -0,0 +1,12 @@ +#! /bin/sh +set -e + +if [ "$1" = "purge" ]; then + if [ -e /var/cache/locate/locatedb ] ; then + rm /var/cache/locate/locatedb + rmdir /var/cache/locate/ || true + fi +fi + +#DEBHELPER# +# vim:tabstop=2:expandtab:shiftwidth=2 --- findutils-4.4.0.orig/debian/findutils.manpages +++ findutils-4.4.0/debian/findutils.manpages @@ -0,0 +1,2 @@ +debian/tmp/usr/share/man/man1/find.1* +debian/tmp/usr/share/man/man1/xargs.1* --- findutils-4.4.0.orig/debian/locate-cron.daily +++ findutils-4.4.0/debian/locate-cron.daily @@ -0,0 +1,72 @@ +#! /bin/sh + +set -e + +# cron script to update the `locatedb' database. +# +# Written by Ian A. Murdock and +# Kevin Dalley + +# Please consult updatedb(1) and /usr/share/doc/locate/README.Debian + +[ -e /usr/bin/updatedb.findutils ] || exit 0 + +if [ "$(id -u)" != "0" ]; then + echo "You must be root." + exit 1 +fi + +# Global options for invocations of find(1) +FINDOPTIONS='-ignore_readdir_race' +# filesystems which are pruned from updatedb database +PRUNEFS="NFS nfs nfs4 afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf" +# paths which are pruned from updatedb database +PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /sfs /media /var/lib/schroot/mount" +# netpaths which are added +NETPATHS="" +# run find as this user +LOCALUSER="nobody" +# cron.daily/find: run at this priority -- higher number means lower priority +# (this is relative to the default which cron sets, which is usually +5) +NICE=10 + +# I/O priority +# 1 for real time, 2 for best-effort, 3 for idle ("3" only allowed for root) +IONICE_CLASS=3 +# 0-7 (only valid for IONICE_CLASS 1 and 2), 0=highest, 7=lowest +IONICE_PRIORITY=7 + +# allow keeping local customizations in a separate file +if [ -r /etc/updatedb.findutils.cron.local ] ; then + . /etc/updatedb.findutils.cron.local +fi +export FINDOPTIONS PRUNEFS PRUNEPATHS NETPATHS LOCALUSER + +# Set the task to run with desired I/O priority if possible +# Linux supports io scheduling priorities and classes since +# 2.6.13 with the CFQ io scheduler +if [ -x /usr/bin/ionice ] && [ "${UPDATDB_NO_IONICE}" = "" ]; then + # don't run ionice if kernel version < 2.6.13 + KVER=$(uname -r) + case "$KVER" in + 2.[012345]*) ;; + 2.6.[0-9]) ;; + 2.6.[0-9].*) ;; + 2.6.1[012]*) ;; + *) + # Avoid providing "-n" when IONICE_CLASS isn't 1 or 2 + case "$IONICE_CLASS" in + 1|2) priority="-n ${IONICE_PRIORITY:-7}" ;; + *) priority="" ;; + esac + ionice -c $IONICE_CLASS $priority -p $$ > /dev/null 2>&1 || true + ;; + esac +fi + +if getent passwd $LOCALUSER > /dev/null ; then + cd / && nice -n ${NICE:-10} updatedb.findutils 2>/dev/null +else + echo "User $LOCALUSER does not exist." + exit 1 +fi --- findutils-4.4.0.orig/debian/locate.install +++ findutils-4.4.0/debian/locate.install @@ -0,0 +1,2 @@ +debian/tmp/var/cache/locate var/cache +debian/tmp/usr/lib/locate/* usr/lib/locate --- findutils-4.4.0.orig/debian/watch +++ findutils-4.4.0/debian/watch @@ -0,0 +1,2 @@ +version=2 +ftp://ftp.gnu.org/gnu/findutils/findutils-([\d\.\d]+)\.tar\.gz --- findutils-4.4.0.orig/debian/findutils.NEWS +++ findutils-4.4.0/debian/findutils.NEWS @@ -0,0 +1,48 @@ +findutils (4.2.31-2) unstable; urgency=low + + * locate is no longer included in the findutils package. It has been split + off to a separate package "locate". (There are alternative implementations + available, too; see mlocate or slocate.) + + -- Andreas Metzler Sat, 2 Jun 2007 10:53:46 +0200 + +findutils (4.2.25-1) unstable; urgency=low + + * The GNU-extension "find -perm +MODE" has been withdrawn in GNU findutils + 4.1.22 because it is incompatible with POSIX. The new syntax + "find ... -perm /MODE" has been introduced instead. + + Old usages will still continue to work, so long as they do not conflict + with POSIX. However a big number of usages _do_ conflict. + + E.g. -perm +u+x used to be (and -perm /u+x still should be) treated as + the mode "u+x", which maps to 0100, then returning true for ALL files + that have the u+x bit set regardless of the state of their other bits. + Now, per POSIX, +u+x is treated as the valid mode "+u+x" (which is + identical to "+u,+x", and again maps to 0111 & 07777). Find therefore + returns true on files that are EXACTLY that mode (ie a file that has NO + read or write permissions, but all three execute permissions). + + The ONLY character that can appear in a valid mode but which cannot + directly follow '+' according to POSIX is 'a'. So in terms of backwards + compatibility, EVERY symbolic mode, except for those starting with a + leading 'a', are affected by the change in findutils semantics to be + POSIX compliant, + + [Large parts of this entry are quoted from a comment by Eric Blake in + savannah bug #14619] + + * WORKAROUNDS: + + If you are using find -perm +... you have got the following options: + + - Use numerical instead of symbolic notation, e.g. "find . -perm +022" + instead of "find . -perm +g+w,o+w". Symbolic modes are not affected by + this change. + - Specify the mode in a different way if possible. e.g. "-perm -u+x" + instead of "-perm +u+x". + - use the new syntax -perm /... instead of -perm +MODE. If you use this + syntax in a Debian package, you'll need to depend on findutils + (>= 4.2.25). + + -- Andreas Metzler Sat, 8 Oct 2005 11:16:45 +0200 --- findutils-4.4.0.orig/debian/locate.postinst +++ findutils-4.4.0/debian/locate.postinst @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +update-alternatives --quiet --install /usr/bin/locate locate /usr/bin/locate.findutils 20 \ + --slave /usr/share/man/man1/locate.1.gz locate.1.gz /usr/share/man/man1/locate.findutils.1.gz \ + --slave /usr/bin/updatedb updatedb /usr/bin/updatedb.findutils \ + --slave /usr/share/man/man1/updatedb.1.gz updatedb.1.gz /usr/share/man/man1/updatedb.findutils.1.gz + + + +#DEBHELPER# +# vim:tabstop=2:expandtab:shiftwidth=2 --- findutils-4.4.0.orig/debian/findutils.install +++ findutils-4.4.0/debian/findutils.install @@ -0,0 +1,3 @@ +debian/tmp/usr/share/locale/* usr/share/locale +debian/tmp/usr/bin/xargs usr/bin +debian/tmp/usr/bin/*find usr/bin --- findutils-4.4.0.orig/debian/control +++ findutils-4.4.0/debian/control @@ -0,0 +1,33 @@ +Source: findutils +Section: utils +Priority: required +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Andreas Metzler +Uploaders: Chuan-kai Lin +Build-Depends: texinfo, debhelper (>> 4.0.0), dpatch, autotools-dev, dejagnu +Standards-Version: 3.7.3 +Vcs-Svn: svn://svn.debian.org/svn/pkg-findutils/trunk +Vcs-Browser: http://svn.debian.org/wsvn/pkg-findutils/trunk/ +Homepage: http://savannah.gnu.org/projects/findutils/ + +Package: findutils +Architecture: any +Essential: yes +Pre-Depends: ${shlibs:Depends} +Depends: ${misc:Depends} +Suggests: mlocate|locate|slocate +Description: utilities for finding files--find, xargs + GNU findutils provides utilities to find files meeting specified + criteria and perform various actions on the files which are found. + This package contains 'find' and 'xargs'; however, 'locate' has + been split off into a separate package. + +Package: locate +Architecture: any +Priority: optional +Depends: ${shlibs:Depends},${misc:Depends}, findutils (>> 4.2.31-1) +Conflicts: slocate (<= 3.1-1.1) +Replaces: findutils (<< 4.2.31-2) +Description: maintain and query an index of a directory tree + updatedb generates an index of files and directories. GNU locate can be used + to quickly query this index. --- findutils-4.4.0.orig/debian/findutils.doc-base +++ findutils-4.4.0/debian/findutils.doc-base @@ -0,0 +1,10 @@ +Document: findutils +Title: findutils +Abstract: utilities for finding files--find, xargs, and locate + These utilities find files meeting specified criteria and perform + various actions on the files which are found. +Section: File Management + +Format: info +Index: /usr/share/info/find.info.gz +Files: /usr/share/info/find.info* --- findutils-4.4.0.orig/debian/copyright +++ findutils-4.4.0/debian/copyright @@ -0,0 +1,78 @@ +It was downloaded from ftp://ftp.gnu.org/gnu/findutils + +Debian maintainer history: The original package was put together by +Ian Murdock , afterwards Kevin Dalley + took over. 2003-07 Andreas Metzler + followed. + +Upstream Authors: +* GNU find was written by Eric Decker , +with enhancements by David MacKenzie , +Jay Plett , +and Tim Wood . +The idea for -print0 and xargs -0 came from +Dan Bernstein . +Improvements have been made by James Youngman . + +* GNU xargs +was originally written by Mike Rendell, with enhancements by David +MacKenzie. Modifications by James Youngman Dmitry V. Levin + +* GNU locate and its associated utilities were originally +written by James Woods, with enhancements by David MacKenzie, James Youngman +and Bas van Gompel. + +Upstream's AUTHORS lists these major contributors: +Eric B. Decker +Michael Rendell +David J. MacKenzie +Jim Meyering +Tim Wood +Kevin Dalley +Paul Eggert +James Youngman +Jay Plett +Paul Sheer +Dmitry V. Levin +Bas van Gompel +Eric Blake + +Current upstream maintainer is James Youngman . + +---------------------------- + Copyright (C) 1990, 91, 92, 93, 94, 2000, + 2003, 2004, 2005, 2007 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +---------------------------- + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +============================================= +DOCUMENTATION +---------------------------- +Copyright (C) 1994, 1996, 1998, 2000, 2001, 2003, 2004, 2005, 2006, +2007 Free Software Foundation, Inc. + +Permission is granted to copy, distribute and/or modify this document +under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no +Invariant Sections, with no Front-Cover Texts, and with no Back-Cover +Texts. A copy of the license is included in the section entitled +``GNU Free Documentation License.'' +---------------------------- + +On Debian GNU/Linux systems, the complete text of the GNU Free Documentation +License, Version 1.2 can be found in `/usr/share/common-licenses/GFDL-1.2'. --- findutils-4.4.0.orig/debian/locate.prerm +++ findutils-4.4.0/debian/locate.prerm @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ "$1" != "upgrade" ]; then + update-alternatives --remove locate /usr/bin/locate.findutils +fi + + +#DEBHELPER# +# vim:tabstop=2:expandtab:shiftwidth=2 --- findutils-4.4.0.orig/debian/rules +++ findutils-4.4.0/debian/rules @@ -0,0 +1,131 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Include dpatch stuff. +include /usr/share/dpatch/dpatch.make + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_HOST_GNU_TYPE) +else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +config.status: patch-stamp configure + rm -f config.guess config.sub + ln -s /usr/share/misc/config.sub /usr/share/misc/config.guess . + + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" ./configure $(confflags) \ + --prefix=/usr --localstatedir=/var/cache/locate \ + --enable-d_type-optimisation \ + --libexecdir='$${prefix}/lib/locate' \ + --mandir='$${prefix}/share/man' \ + --infodir='$${prefix}/share/info' + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) +ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) + $(MAKE) check +endif + touch build-stamp + +clean: clean1 unpatch +clean1: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.guess config.sub doc/find.info* + +# ifneq "$(wildcard /usr/share/misc/config.sub)" "" +# cp -f /usr/share/misc/config.sub config.sub +# endif +# ifneq "$(wildcard /usr/share/misc/config.guess)" "" +# cp -f /usr/share/misc/config.guess config.guess +# endif + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/findutils. + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + install -m755 $(CURDIR)/debian/locate-cron.daily \ + $(CURDIR)/debian/locate/etc/cron.daily/locate + install -m755 $(CURDIR)/debian/tmp/usr/bin/updatedb \ + $(CURDIR)/debian/locate/usr/bin/updatedb.findutils + install -m755 $(CURDIR)/debian/tmp/usr/bin/locate \ + $(CURDIR)/debian/locate/usr/bin/locate.findutils + install -m644 $(CURDIR)/debian/tmp/usr/share/man/man1/locate.1 \ + $(CURDIR)/debian/locate/usr/share/man/man1/locate.findutils.1 + install -m644 $(CURDIR)/debian/tmp/usr/share/man/man1/updatedb.1 \ + $(CURDIR)/debian/locate/usr/share/man/man1/updatedb.findutils.1 + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install +# dh_installmenu +# dh_installdebconf +# # we have to install the cron script manually, it has the wrong filename +# dh_installcron + dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb +# dh_shlibdeps -- -dPre-Depends + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- findutils-4.4.0.orig/debian/findutils.preinst +++ findutils-4.4.0/debian/findutils.preinst @@ -0,0 +1,74 @@ +#!/bin/sh + +set -e + +# Inspired from +# http://wiki.debian.org/DpkgConffileHandling +# Move contents from dpkg-conffile to optional (not dpkg-managed) file +mv_with_comment_conffile() { + PKGNAME="$1" + CONFFILE="$2" + OPTIONALCONFIG="$3" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" = "$old_md5sum" ]; then + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + else + if [ -e "$OPTIONALCONFIG" ] ; then + # $CONFFILE has been removed, but user has already generated + # non-dpkgconffile OPTIONALCONFIG + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo generating "$OPTIONALCONFIG" from user modified "$CONFFILE" + { echo "# Generated from $CONFFILE when upgrading $PKGNAME" + cat "$CONFFILE" ; } \ + > "$OPTIONALCONFIG" + chmod --reference="$CONFFILE" "$OPTIONALCONFIG" + echo "Saving $CONFFILE as $CONFFILE.dpkg-bak ..." + mv "$CONFFILE" "$CONFFILE".dpkg-bak + fi + fi + fi +} + + +# Remove a no-longer used conffile +# http://wiki.debian.org/DpkgConffileHandling +rm_conffile() { + PKGNAME="$1" + CONFFILE="$2" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} + +case "$1" in + install|upgrade) + if dpkg --compare-versions "$2" lt-nl "4.2.31-2"; then + # delete if unchanged, rename otherwise. + mv_with_comment_conffile findutils "/etc/updatedb.conf" \ + /etc/updatedb.findutils.cron.local + rm_conffile findutils "/etc/cron.daily/find" + fi + ;; +esac + + + +#DEBHELPER# +# vim:tabstop=2:expandtab:shiftwidth=2 --- findutils-4.4.0.orig/debian/findutils.info +++ findutils-4.4.0/debian/findutils.info @@ -0,0 +1 @@ +doc/find.info* --- findutils-4.4.0.orig/debian/locate.preinst +++ findutils-4.4.0/debian/locate.preinst @@ -0,0 +1,36 @@ +#!/bin/sh + +set -e + +# Remove a no-longer used conffile +# http://wiki.debian.org/DpkgConffileHandling +rm_conffile() { + PKGNAME="$1" + CONFFILE="$2" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} + +case "$1" in + install|upgrade) + if dpkg --compare-versions "$2" le-nl "4.2.31-2"; then + rm_conffile locate "/etc/cron.daily/find" + fi + ;; +esac + + + +#DEBHELPER# +# vim:tabstop=2:expandtab:shiftwidth=2 --- findutils-4.4.0.orig/debian/findutils.links +++ findutils-4.4.0/debian/findutils.links @@ -0,0 +1 @@ +/usr/share/man/man1/find.1.gz /usr/share/man/man1/oldfind.1.gz