--- findutils-4.2.31.orig/debian/README.debian +++ findutils-4.2.31/debian/README.debian @@ -0,0 +1,50 @@ +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/updatedb.conf to exclude +non-automatic mount points from updatedb. Add before the +"export PRUNEPATHS" line in /etc/updatedb.conf. + +# 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 + + + +> The problem is NOT +> updatedb, rather it's actually caused by the "checksecurity" call in +> /etc/cron.daily/standard. The easy fix for this is to mount your NFS +> stuff nosuid and nodev so it ignores them. + +-------------------------------- + +My systems slows down everyday at bootup, how can I stop the daily +updatedb-invocations? + +Edit /etc/updatedb.conf or even /etc/cron.daily/find. Both files +are dpkg conffiles and you changes won't be overwritten. + +Examples: +* Run weekly instead of daily: + Add this to the head of /etc/updatedb.conf + #---------- + 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/find or add "exit 0" as the second line of + /etc/cron.daily/find + +* 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/find. + If you are using anacron for running cron.daily there is no need for + changing /etc/cron.daily/find, anacron will by default not execute the + jobs when the system is running on battery. --- findutils-4.2.31.orig/debian/control +++ findutils-4.2.31/debian/control @@ -0,0 +1,18 @@ +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.2 + +Package: findutils +Architecture: any +Essential: yes +Pre-Depends: ${shlibs:Depends} +Depends: ${misc:Depends} +Description: 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. + --- findutils-4.2.31.orig/debian/rules +++ findutils-4.2.31/debian/rules @@ -0,0 +1,125 @@ +#!/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. + -$(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/findutils + install -m755 $(CURDIR)/debian/find-cron.daily \ + $(CURDIR)/debian/findutils/etc/cron.daily/find + install -m644 debian/updatedb.conf $(CURDIR)/debian/findutils/etc/ + + +# 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.2.31.orig/debian/watch +++ findutils-4.2.31/debian/watch @@ -0,0 +1,2 @@ +version=2 +ftp://alpha.gnu.org/gnu/findutils/findutils-([\d\.\d]+)\.tar\.gz --- findutils-4.2.31.orig/debian/updatedb.conf +++ findutils-4.2.31/debian/updatedb.conf @@ -0,0 +1,29 @@ +# This file sets environment variables which are used by updatedb + +# Global options for invocations of find(1) +FINDOPTIONS='-ignore_readdir_race' +export FINDOPTIONS +# 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" +export PRUNEFS +# paths which are pruned from updatedb database +PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /sfs /media" +export PRUNEPATHS +# netpaths which are added +NETPATHS="" +export NETPATHS +# run find as this user +LOCALUSER="nobody" +export LOCALUSER +# 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 +export NICE +# cron.daily: I/O priority +# 1 for real time, 2 for best-effort (3 for idle is only allowed for root!) +IONICE_CLASS=2 +export IONICE_CLASS +# 0-7 (for IONICE_CLASS 1 and 2 only), 0=highest, 7=lowest +IONICE_PRIORITY=7 +export IONICE_PRIORITY + --- findutils-4.2.31.orig/debian/README.source +++ findutils-4.2.31/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.2.31.orig/debian/changelog +++ findutils-4.2.31/debian/changelog @@ -0,0 +1,750 @@ +findutils (4.2.31-1ubuntu2.1) gutsy-proposed; urgency=low + + * Fix ionice priority option flag in cron.daily script. (LP: #152692) + + -- Basilio A. Kublik Sat, 08 Dec 2007 19:06:47 -0300 + +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.2.31.orig/debian/findutils.postrm +++ findutils-4.2.31/debian/findutils.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.2.31.orig/debian/find-cron.daily +++ findutils-4.2.31/debian/find-cron.daily @@ -0,0 +1,19 @@ +#! /bin/sh +# +# cron script to update the `locatedb' database. +# +# Written by Ian A. Murdock and +# Kevin Dalley + +LOCALUSER="nobody" +export LOCALUSER +if [ -f /etc/updatedb.conf ]; then + . /etc/updatedb.conf +fi + +if getent passwd $LOCALUSER > /dev/null ; then + cd / && nice -n ${NICE:-10} ionice -c ${IONICE_CLASS:-2} -n ${IONICE_PRIORITY:-7} updatedb 2>/dev/null +else + echo "User $LOCALUSER does not exist." + exit 1 +fi --- findutils-4.2.31.orig/debian/findutils.postinst +++ findutils-4.2.31/debian/findutils.postinst @@ -0,0 +1,15 @@ +#! /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 +fi + +#DEBHELPER# +# vim:tabstop=2:expandtab:shiftwidth=2 --- findutils-4.2.31.orig/debian/compat +++ findutils-4.2.31/debian/compat @@ -0,0 +1 @@ +4 --- findutils-4.2.31.orig/debian/copyright +++ findutils-4.2.31/debian/copyright @@ -0,0 +1,37 @@ +It was downloaded from ftp://alpha.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 originally written by Eric Decker, with +enhancements by David MacKenzie, Jay Plett and Tim Wood. GNU xargs +was originally written by Mike Rendell, with enhancements by David +MacKenzie. GNU locate and its associated utilities were originally +written by James Woods, with enhancements by David MacKenzie. The +idea for `find -print0' and `xargs -0' came from Dan Bernstein. +Current upstream maintainer is James Youngman . + +Copyright: + Copyright (C) 1990, 1991, 1992, 1993, 1994, 2000, 2001, 2003, + 2004, 2005 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 2, 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, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- findutils-4.2.31.orig/debian/findutils.doc-base +++ findutils-4.2.31/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: Apps/Tools + +Format: info +Index: /usr/share/info/find.info.gz +Files: /usr/share/info/find.info* --- findutils-4.2.31.orig/debian/findutils.NEWS +++ findutils-4.2.31/debian/findutils.NEWS @@ -0,0 +1,40 @@ +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.2.31.orig/debian/findutils.dirs +++ findutils-4.2.31/debian/findutils.dirs @@ -0,0 +1,2 @@ +etc/cron.daily +usr/bin --- findutils-4.2.31.orig/debian/findutils.docs +++ findutils-4.2.31/debian/findutils.docs @@ -0,0 +1,4 @@ +NEWS +README +README-alpha +TODO --- findutils-4.2.31.orig/debian/findutils.info +++ findutils-4.2.31/debian/findutils.info @@ -0,0 +1 @@ +doc/find.info*