Bug#451750: dlocate: Does not work with split-off locate package
Hi, Andreas Metzler's patch doesn't address the proiblem that dlocate uses /usr/lib/locate/frcode (from findutils or now locate) _when building its database_ (in update-dlocatedb). Maybe we should add a pure Perl implementation of frcode as can be found here: http://jmy.freeshell.org/code/frcode/ Cheers, Roderich -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#451750: dlocate: Does not work with split-off locate package
On Mon, Nov 19, 2007 at 09:54:57AM +0100, Roderich Schupp wrote: Andreas Metzler's patch doesn't address the proiblem that dlocate uses /usr/lib/locate/frcode (from findutils or now locate) _when building its database_ (in update-dlocatedb). Maybe we should add a pure Perl implementation of frcode as can be found here: http://jmy.freeshell.org/code/frcode/ it makes more sense to just depend on locate. 1. dlocate requires locate from findutils (soon to be in a locate package) anyway. 2. there's no license on that perl implementation on frcode. craig -- craig sanders [EMAIL PROTECTED] BOFH excuse #208: Your mail is being routed through Germany ... and they're censoring us. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#451750: dlocate: Does not work with split-off locate package
Package: dlocate Version: 0.5-0.3 Severity: important Tags: patch following a brief discussion o debian-devel locate is going to be split off from the findutils package. http://news.gmane.org/find-root.php?message_id=%3c20071110110222.GA14136%40chistera.yi.org%3e This has already happened in experimental and will soon be done in sid, too. A fix to make dlocate work both with the curent setup and a separate locate package is attached. It would be nice if this fix should be uploaded *before* locate is going to sid. cu andreas -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.' `I sew his ears on from time to time, sure' diff -Nur dlocate-0.5-0.3/debian/changelog dlocate-0.5/debian/changelog --- dlocate-0.5-0.3/debian/changelog 2006-08-31 17:16:40.0 + +++ dlocate-0.5/debian/changelog 2007-11-18 08:04:11.0 + @@ -1,3 +1,11 @@ +dlocate (0.5-0.4) unstable; urgency=low + + * NMU + * GNU locate has been split off to a separate package. Adapt dlocate to work +both with the new and the old setup. + + -- Andreas Metzler [EMAIL PROTECTED] Sun, 18 Nov 2007 08:55:12 +0100 + dlocate (0.5-0.3) unstable; urgency=low * Non-Maintainer Upload. diff -Nur dlocate-0.5-0.3/debian/control dlocate-0.5/debian/control --- dlocate-0.5-0.3/debian/control 2006-08-31 17:11:09.0 + +++ dlocate-0.5/debian/control 2007-11-18 07:57:39.0 + @@ -7,7 +7,7 @@ Package: dlocate Architecture: all -Depends: dctrl-tools | grep-dctrl (= 0.11), dpkg (= 1.8.0), ${perl:Depends} +Depends: dctrl-tools | grep-dctrl (= 0.11), dpkg (= 1.8.0), locate | findutils ( 4.2.31-2), ${perl:Depends} Description: fast alternative to dpkg -L and dpkg -S Uses GNU locate to greatly speed up finding out which package a file belongs to (i.e. a very fast dpkg -S). Many other uses, including diff -Nur dlocate-0.5-0.3/dlocate dlocate-0.5/dlocate --- dlocate-0.5-0.3/dlocate 2006-08-31 17:11:09.0 + +++ dlocate-0.5/dlocate 2007-11-18 08:05:28.0 + @@ -17,9 +17,14 @@ DPKGLIST=/var/lib/dlocate/dpkg-list DPKG_INFO=/var/lib/dpkg/info -LOCATE=/usr/bin/locate -# slocate diverts locate -LOCATE=`/usr/sbin/dpkg-divert --truename /usr/bin/locate` +if [ -x /usr/bin/locate.findutils ] ; then + # locate package is installed + LOCATE=/usr/bin/locate.findutils +else + # slocate diverts locate + LOCATE=`/usr/sbin/dpkg-divert --truename /usr/bin/locate` +fi + OPTION=$1 ; shift signature.asc Description: Digital signature
Bug#451750: dlocate: Does not work with split-off locate package
On Sun, 18 Nov 2007 09:26:09 +0100, Andreas Metzler [EMAIL PROTECTED] said: It would be nice if this fix should be uploaded *before* locate is going to sid. Could somebody who is a Debian Developer please do a MIA check on Craig Sanders, still the owner of dlocate? He might simply be ignoring his dlocate mail, or something, but in any event, judging from several of the open bugs against dlocate, it has been a challenge in the past to get through to him. In fact, the last non-NMU upload of this package was in 1999, although Craig has commented on some bugs as recently as in 2005 IIRC. I'd be happy to act as a co-maintainer or something if that helps at all. I'm not a DD though. /* era */ -- If this were a real .signature, it would suck less. Well, maybe not. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#451750: dlocate: Does not work with split-off locate package
On Sun, 18 Nov 2007 09:26:09 +0100, Andreas Metzler [EMAIL PROTECTED] said: following a brief discussion o debian-devel locate is going to be split off from the findutils package. [http://tinyurl.com/2s32v3] This has already happened in experimental and will soon be done in sid, too. A fix to make dlocate work both with the curent setup and a separate locate package is attached. ... +if [ -x /usr/bin/locate.findutils ] ; then + # locate package is installed + LOCATE=/usr/bin/locate.findutils +else + # slocate diverts locate + LOCATE=`/usr/sbin/dpkg-divert --truename /usr/bin/locate` +fi If I understood the discussion on the mailing list correctly, the new slocate would use the alternatives mechanism, too, and you are now requiring a suitable version of locate to be installed, so isn't the slocate case dead code under these circumstances? Sure, it's required for the transition phase (if somebody has findutils 4.2.31-2 and slocate), but wouldn't it be simpler to say Conflicts: slocate = older than this transition? ... Hmm, or add a comment that this could be changed in lenny+1 to conflict with slocate = old and remove this case from the code? Just thinking out loud here; sorry for the interruption. /* era */ -- If this were a real .signature, it would suck less. Well, maybe not. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]