Your message dated Sat, 30 May 2009 11:48:51 +0000
with message-id <[email protected]>
and subject line Bug#466662: fixed in dlocate 1.0
has caused the Debian Bug report #466662,
regarding 'man dlocate' example fails: "dlocate -l '^.. libc5'"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
466662: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466662
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dlocate
Version: 0.94
Severity: normal
% man dlocate | grep -n -C 2 "dlocate -l '^.. libc5'"
51- Extended regular expression are allowed. For example,
52-
53: dlocate -l '^.. libc5'
54-
55- will list all the package names starting with `libc5'.
A test of the above:
# dump example to /tmp/foo
% F=/tmp/foo
% dlocate -l '^.. libc5' > $F
# lines and size?
% wc -cl $F
32169 2190365 /tmp/foo
# what's in there?
% head /tmp/foo
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-=================-=================-====================================================
pn 3270-common <none> (no description available)
pn 3c5x9utils <none> (no description available)
pn 3dchess <none> (no description available)
ii 3ddesktop 0.2.9-6 "Three-dimensional" desktop switcher
pn 3dwm-clock <none> (no description available)
Compare to:
% dpkg -l libc5
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-=================-=================-==================================================
ii libc5 5.4.46-15 The Linux C library version 5
(run-time libraries)
'htop' (while "dlocate -l '^.. libc5'" is running) shows:
egrep -- ^..|libc5 /var/lib/dlocate/dpkg-list
That is, the " " (space) got replaced by a "|", ('egrep' logical
'OR'). So 'egrep' dumps the whole of 'dpkg-list', then 'dlocate'
reformats it.
The " " is replaced with a "|" here:
% grep -n -m 1 'PKGS_REGEXP=' /usr/bin/dlocate
148:PKGS_REGEXP=$(echo "$PKGS" | sed -e 's/ /|/g')
A look at the code shows the '-l' switch parser is part of a complex
'for' loop. The '-l' switch should eat the next argument, but that
won't work in a 'for' loop. Some ad hoc variable action follows, (e.g.
line #148).
Is there some reason not to use 'getopts', or even 'set' & 'shift'?
(If I understood the switch parsing code better, I'd attach a patch.)
Hope this helps...
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Versions of packages dlocate depends on:
ii dctrl-tools [grep-dctrl] 2.12 Command-line tools to process Debi
ii dpkg 1.14.16.6 package maintenance system for Deb
ii findutils 4.2.33-1 utilities for finding files--find,
ii locate 4.2.33-1 maintain and query an index of a d
ii perl 5.8.8-12 Larry Wall's Practical Extraction
dlocate recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: dlocate
Source-Version: 1.0
We believe that the bug you reported is fixed in the latest version of
dlocate, which is due to be installed in the Debian FTP archive:
dlocate_1.0.dsc
to pool/main/d/dlocate/dlocate_1.0.dsc
dlocate_1.0.tar.gz
to pool/main/d/dlocate/dlocate_1.0.tar.gz
dlocate_1.0_all.deb
to pool/main/d/dlocate/dlocate_1.0_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Craig Sanders <[email protected]> (supplier of updated dlocate package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sat, 30 May 2009 16:53:51 +1000
Source: dlocate
Binary: dlocate
Architecture: source all
Version: 1.0
Distribution: unstable
Urgency: low
Maintainer: Craig Sanders <[email protected]>
Changed-By: Craig Sanders <[email protected]>
Description:
dlocate - fast alternative to dpkg -L and dpkg -S
Closes: 49922 466662 494651 494673 501870 505997 512446 513470 518309 523501
Changes:
dlocate (1.0) unstable; urgency=low
.
* no longer use frcode and locate, see discussion in 494673. removed
dependency on locate package. (Closes: #505997, #494651, #494673)
* added support for several GNU grep options, -E, -F, -G, -P, and -w
* the extra grep options obsolete the request for shell glob patterns
(Closes: #49922)
* checked for empty $PKGS (Closes: #523501)
* fixed '-man' option, so that it doesn't break on man directories with
locales
* tired of people filing the same bug because they misunderstand the purpose
of '-man'. added 'sort -u'. (Closes: #501870)
* updated and fixed dlocate.1 man page (Closes: #518309)
* corrected 'dlocate -l' example in man page (Closes: #466662)
* moved man pages for dpkg-hold, dpkg-unhold, dpkg-purge, dpkg-remove to
section 8 (Closes: #512446)
* added --verbose option to aid in debugging dlocate
* fixed bug that broke support for multiple packages in most commands
* fixed '-s' command so that it only calls grep-dctrl once if there are
multiple package names
* applied following 6 lintian fixes from era eriksson: (Closes: #513470)
* debian/control: revert dependency on awk; as per Lintian error,
it is in practice essential, and should not be declared
* debian/copyright: add copyright year; disambiguate license as GPL v2
(fix lintian warning)
* debian/rules: move binary-arch commands to binary-indep; do not ignore
errors from "make clean" (fix lintian warnings)
* debian/changelog: fix typo in 0.96.1 s/dancy/dency/ (fix lintian warning)
* debian/postinst: don't use explicit path for /usr/sbin (fix lintian
warning)
* debian/postrm: add -e flag (fix lintian warning)
Checksums-Sha1:
305ea6a207a8073b1090e12eea51f6667b38c56b 683 dlocate_1.0.dsc
4cb84953028e25b0fe2f7a9be38943a8ecb1f4e8 36544 dlocate_1.0.tar.gz
e0f59394157ce1590e03ba0fb6d095a47e0c4eab 20172 dlocate_1.0_all.deb
Checksums-Sha256:
d317e27b1372891684495372399cc4144c78e8803c7435e1008aeaf924ed050c 683
dlocate_1.0.dsc
e0ecac3b651fd9dcebaf900aab88d23e94713bbce526f87c7890febd70da7375 36544
dlocate_1.0.tar.gz
d8e33720d26e8b52d4a7f490c7a13e10dcebe3c8f56bc56fd11c1244b28093c7 20172
dlocate_1.0_all.deb
Files:
bddbc804eb0748fd92490c0a3f12c2f5 683 utils optional dlocate_1.0.dsc
ffe6f95a7306256cac513f3e5b1793ef 36544 utils optional dlocate_1.0.tar.gz
92ffd6360871a713a741b612d6ad16dc 20172 utils optional dlocate_1.0_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkohBB4ACgkQ7DJoEM1WJvDfJwCffy6J5k89TUGKpWqJkQcSkvwQ
EcgAnj8SzwgpykWiT0auEkEAN2BYFgZr
=G71/
-----END PGP SIGNATURE-----
--- End Message ---