Debian Bug report logs -
#512917
dh_bash-completion: unexpected behaviour
Reported by: gregor herrmann <gregoa@debian.org>
Date: Sat, 24 Jan 2009 23:51:04 UTC
Severity: wishlist
Tags: confirmed
Found in version bash-completion/20080705
Fixed in version bash-completion/1:1.0-1
Done: David Paleino <d.paleino@gmail.com>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#512917; Package bash-completion.
(Sat, 24 Jan 2009 23:51:06 GMT) (full text, mbox, link).
Acknowledgement sent
to gregor herrmann <gregoa@debian.org>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>.
(Sat, 24 Jan 2009 23:51:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: bash-completion
Version: 20080705
Severity: wishlist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for providing dh_bash-completion, I didn't know about this
tool until a few hours ago.
I still have a tiny complaint: IMO the behaviour of
dh_bash-completion is counter-intuitive because it installs _the
file_ debian/package.bash-completion whereas the other debhelper
helpers act on files _mentioned_ in debian/package.foo. And that
would be easier for dh_bash-completion since I could just name
upstream or debian bash completion files there regardless of where
they are and how they are called.
Please consider changing the behaviour of dh_bash-completion for
future releases.
Cheers,
gregor
- -- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'experimental'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.28.200901192124
Locale: LANG=C, LC_CTYPE=de_AT@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages bash-completion depends on:
ii bash 3.2-4 The GNU Bourne Again SHell
bash-completion recommends no packages.
bash-completion suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkl7qO4ACgkQOzKYnQDzz+QPGQCgjQj1ues3Mx0mLdJ21/To8iiT
l0cAoJr1KuOR+nqCFacMFoxRtKOhmBnp
=wzzt
-----END PGP SIGNATURE-----
Information stored
:
Bug#512917; Package bash-completion.
(Wed, 28 Jan 2009 21:36:05 GMT) (full text, mbox, link).
Acknowledgement sent
to David Paleino <d.paleino@gmail.com>:
Extra info received and filed, but not forwarded.
(Wed, 28 Jan 2009 21:36:05 GMT) (full text, mbox, link).
Message #10 received at 512917-quiet@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Sun, 25 Jan 2009 00:49:03 +0100, gregor herrmann wrote:
> Package: bash-completion
> Version: 20080705
> Severity: wishlist
>
> Thanks for providing dh_bash-completion, I didn't know about this
> tool until a few hours ago.
Eheh, that's some magic by me :-P
> I still have a tiny complaint: IMO the behaviour of
> dh_bash-completion is counter-intuitive because it installs _the
> file_ debian/package.bash-completion whereas the other debhelper
> helpers act on files _mentioned_ in debian/package.foo.
It works the same way as dh_lintian works -- it doesn't seem counter-intuitive
at all, once you read the manpage :-P
But, however, ACK.
> And that would be easier for dh_bash-completion since I could just name
> upstream or debian bash completion files there regardless of where
> they are and how they are called.
>
> Please consider changing the behaviour of dh_bash-completion for
> future releases.
Well.
Would you be against a debian/package.bash-completion-files doing what you are
asking for? Would it be overkill? I don't really want to break other people's
packages already using dh_bash-completion ;-)
Kindly,
David
--
. ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, attachment)]
Information stored
:
Bug#512917; Package bash-completion.
(Wed, 28 Jan 2009 23:12:12 GMT) (full text, mbox, link).
Acknowledgement sent
to gregor herrmann <gregoa@debian.org>:
Extra info received and filed, but not forwarded.
(Wed, 28 Jan 2009 23:12:12 GMT) (full text, mbox, link).
Message #15 received at 512917-quiet@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Wed, 28 Jan 2009 22:33:45 +0100, David Paleino wrote:
> > Thanks for providing dh_bash-completion, I didn't know about this
> > tool until a few hours ago.
> Eheh, that's some magic by me :-P
I saw your name in the manpage :)
> > I still have a tiny complaint: IMO the behaviour of
> > dh_bash-completion is counter-intuitive because it installs _the
> > file_ debian/package.bash-completion whereas the other debhelper
> > helpers act on files _mentioned_ in debian/package.foo.
> It works the same way as dh_lintian works -- it doesn't seem counter-intuitive
> at all, once you read the manpage :-P
I didn't say counter-documentation :)
(And FWIW, I think dh_lintian and dh_bash-completion differ, because
for the former you have exactly one file and that file is Debian
specific, whereas a bash completion file can come from upstream and
can be named in any way.)
> > Please consider changing the behaviour of dh_bash-completion for
> > future releases.
> Would you be against a debian/package.bash-completion-files doing what you are
> asking for? Would it be overkill? I don't really want to break other people's
> packages already using dh_bash-completion ;-)
Ack, changing the behaviour would break packages relying on the
current behaviour.
A nice feature would be to detect if debian/package.bash-completion
_is_ a bash completion snippet or if it just is a list of files :)
Cheers,
gregor
--
.''`. Home: http://info.comodo.priv.at/{,blog/} / GPG Key ID: 0x00F3CFE4
: :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/
`. `' Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
`- NP: Josh With: New kilk cow blues
[signature.asc (application/pgp-signature, inline)]
Information stored
:
Bug#512917; Package bash-completion.
(Thu, 29 Jan 2009 07:54:10 GMT) (full text, mbox, link).
Acknowledgement sent
to David Paleino <d.paleino@gmail.com>:
Extra info received and filed, but not forwarded.
(Thu, 29 Jan 2009 07:54:10 GMT) (full text, mbox, link).
Message #20 received at 512917-quiet@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Thu, 29 Jan 2009 00:07:17 +0100, gregor herrmann wrote:
> On Wed, 28 Jan 2009 22:33:45 +0100, David Paleino wrote:
>
> > > I still have a tiny complaint: IMO the behaviour of
> > > dh_bash-completion is counter-intuitive because it installs _the
> > > file_ debian/package.bash-completion whereas the other debhelper
> > > helpers act on files _mentioned_ in debian/package.foo.
> > It works the same way as dh_lintian works -- it doesn't seem
> > counter-intuitive at all, once you read the manpage :-P
>
> I didn't say counter-documentation :)
>
> (And FWIW, I think dh_lintian and dh_bash-completion differ, because
> for the former you have exactly one file and that file is Debian
> specific, whereas a bash completion file can come from upstream and
> can be named in any way.)
Point for you.
> > > Please consider changing the behaviour of dh_bash-completion for
> > > future releases.
> > Would you be against a debian/package.bash-completion-files doing what you
> > are asking for? Would it be overkill? I don't really want to break other
> > people's packages already using dh_bash-completion ;-)
>
> Ack, changing the behaviour would break packages relying on the
> current behaviour.
> A nice feature would be to detect if debian/package.bash-completion
> _is_ a bash completion snippet or if it just is a list of files :)
Ok, I'll work on this, keep in touch! :-)
David
--
. ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, attachment)]
Information stored
:
Bug#512917; Package bash-completion.
(Thu, 29 Jan 2009 13:57:15 GMT) (full text, mbox, link).
Acknowledgement sent
to David Paleino <d.paleino@gmail.com>:
Extra info received and filed, but not forwarded.
(Thu, 29 Jan 2009 13:57:15 GMT) (full text, mbox, link).
Message #25 received at 512917-quiet@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hello Gregor,
On Sun, 25 Jan 2009 00:49:03 +0100, gregor herrmann wrote:
> Please consider changing the behaviour of dh_bash-completion for
> future releases.
Would you mind helping in some beta-testing? :)
The release is far from being done, thus we have all the time to fix things.
http://bzr.debian.org/loggerhead/bash-completion/current/revision/1291?
Cheers,
David
--
. ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, attachment)]
Tags added: pending, confirmed
Request was from David Paleino <d.paleino@gmail.com>
to control@bugs.debian.org.
(Thu, 29 Jan 2009 14:03:02 GMT) (full text, mbox, link).
Information stored
:
Bug#512917; Package bash-completion.
(Thu, 29 Jan 2009 16:33:02 GMT) (full text, mbox, link).
Acknowledgement sent
to gregor herrmann <gregoa@debian.org>:
Extra info received and filed, but not forwarded.
(Thu, 29 Jan 2009 16:33:02 GMT) (full text, mbox, link).
Message #32 received at 512917-quiet@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Thu, 29 Jan 2009 14:53:33 +0100, David Paleino wrote:
> > Please consider changing the behaviour of dh_bash-completion for
> > future releases.
> Would you mind helping in some beta-testing? :)
Sure!
> http://bzr.debian.org/loggerhead/bash-completion/current/revision/1291?
That was quick, thanks!
I've tried all three possibilities (using a snippet, naming a source file
and naming a source file + install file), and: all three work -
congratulations!
The only glitch I had when listing a file (with or without install
name) is a lintian warning (executable-not-elf-or-script) because the
original permissions are taken (which are 755 in my test case); the
"snippet version" sets them to 644. The following trivial patch fixes
this problem:
--- dh_bash-completion~ 2009-01-29 17:24:19.000000000 +0100
+++ dh_bash-completion 2009-01-29 17:25:39.000000000 +0100
@@ -93,7 +93,7 @@
}
foreach my $src (@filelist) {
- doit("install", "-p", $src, "$bc_dir/$name");
+ doit("install", "-p", "-m644", $src, "$bc_dir/$name");
}
}
}
But besides that it looks really nice!
Cheers,
gregor
--
.''`. Home: http://info.comodo.priv.at/{,blog/} / GPG Key ID: 0x00F3CFE4
: :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/
`. `' Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
`- NP: U2: Grace
[signature.asc (application/pgp-signature, inline)]
Reply sent
to David Paleino <d.paleino@gmail.com>:
You have taken responsibility.
(Sat, 04 Apr 2009 14:09:24 GMT) (full text, mbox, link).
Notification sent
to gregor herrmann <gregoa@debian.org>:
Bug acknowledged by developer.
(Sat, 04 Apr 2009 14:09:24 GMT) (full text, mbox, link).
Message #37 received at 512917-close@bugs.debian.org (full text, mbox, reply):
Source: bash-completion
Source-Version: 1:1.0-1
We believe that the bug you reported is fixed in the latest version of
bash-completion, which is due to be installed in the Debian FTP archive:
bash-completion_1.0-1.diff.gz
to pool/main/b/bash-completion/bash-completion_1.0-1.diff.gz
bash-completion_1.0-1.dsc
to pool/main/b/bash-completion/bash-completion_1.0-1.dsc
bash-completion_1.0-1_all.deb
to pool/main/b/bash-completion/bash-completion_1.0-1_all.deb
bash-completion_1.0.orig.tar.gz
to pool/main/b/bash-completion/bash-completion_1.0.orig.tar.gz
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 512917@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
David Paleino <d.paleino@gmail.com> (supplier of updated bash-completion 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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 03 Apr 2009 14:21:43 +0200
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 1:1.0-1
Distribution: unstable
Urgency: low
Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>
Changed-By: David Paleino <d.paleino@gmail.com>
Description:
bash-completion - programmable completion for the bash shell
Closes: 272660 322238 360628 361535 489927 491856 492328 492476 494292 495142 495883 496162 496828 497074 497597 498105 499780 500316 501473 501843 502664 502804 502885 503317 503317 504141 504547 504650 506560 511789 511790 512556 512823 512917 516614 521041
Changes:
bash-completion (1:1.0-1) unstable; urgency=low
.
* New upstream release:
- also see /usr/share/doc/bash-completion/CHANGES.gz
- fix man -l completing filenames (Closes: #497074)
- (Partly) fixed java classes completion (Closes: #496828). Look for
FIXME in source.
- dump to /dev/null error message from look(1) with no arguments
(Closes: #495142)
- set ssh as default for rsync (was rsh) (Closes: #492328)
- added .oga, .ogv, .ogx to mplayer completion (Closes: #496162)
- added .epub to unzip|zipinfo completion (Closes: #492476)
- added ssh-copy-id completion (Closes: #491856)
- moved ssh completion to separate file (Closes: #360628)
- bogus completion when mounting subdirs fixed (Closes: #322238)
- fix `apt-cache showsrc` completing only on source package names
(Closes: #361535)
- fixed bugs with gdb completion:
- when an empty directory is in $PATH (thanks to Morita Sho)
(Closes: #497597)
- when a non-existing directory is in $PATH (Closes: #499780)
- fix missing completion for "-n" and "-e" (we were using echo, now
using printf) (thanks to Morita Sho) (Closes: #498105)
- fixed gpg completion --@(export|@(?(l|nr|nrl)sign|edit)-key))
(Closes: #500316)
- fixed .cb[rz] completion for evince (Closes: #502885)
- added gpg2 completion (Closes: #489927)
- fixed mplayer -skin completion (Closes: #501473)
- fixed errors with POSIX enabled (Closes: #502804)
- fixed dpkg-source wrong exit() with return() (Closes: #503317)
- added --schedule-only to aptitude's completion (Closes: #502664)
- added build-dep to aptitude's completion (Closes: #495883)
- added support for `-F configfile' to _known_hosts(), ssh, scp and
sftp, thanks to Freddy Vulto (Closes: #504141)
- fixed sed quoting bug in _known_hosts(), thanks to Freddy Vulto
(Closes: #504650)
- allow for comments in known_hosts files (Closes: #511789)
- fixed perl -I/-x completion, thanks to Freddy Vulto
(Closes: #504547)
- README updated: explain how to use bash-completion correctly.
(Closes: #506560)
- added qdbus completion, thanks to Terence Simpson (LP: #257903)
- fixed completion of environment variables, thanks to Morita Sho
(Closes: #272660)
- fix dpkg completion bug: it listed only non-Essential packages
(Closes: #511790)
- fixed _dpkg_source completion (Closes: #503317)
- remove unused UNAME local variable in _info() (Closes: #501843)
- added .zip to jar completions (Closes: #521041)
- Merge from Ubuntu:
+ consume error messages in configure completion (LP: #223882)
(Mika Fischer)
+ quote $xspec in _filedir_xspec in case it is empty, which would
cause errors if there was no match under failglob. (LP: #194419)
(Mika Fischer)
- Ville Skyttä:
+ remove duplicate cpio completion, thanks to Freddy Vulto
(Closes: #512823)
+ fix awk error in "modprobe -r /" completion (Closes: #512556)
- Jakob Unterwurzacher:
+ ps2pdf can run on .pdf files as well.
(Closes: #516614, LP: #316943)
* debian/links fixed (Closes: #494292)
* debian/control:
- fixed typo in the long description
- added Vcs-* fields
- Standards-Version to 3.8.1
- DMUA set
- removed Luk Claes from Uploaders
- Homepage added
* debian/install:
- correctly install contrib/* under /etc/bash_completion.d/
* debian/copyright updated
* debian/extra/dh_bash-completion:
- updated to support a list of files in debian/<package>.bash-completion
(Closes: #512917)
* debian/rules:
- install upstream CHANGES and AUTHORS too
Checksums-Sha1:
977d1414ca3556a4ad46aa2b48b9ca8e6e86a603 1308 bash-completion_1.0-1.dsc
61040795731f5ff509c46e818a1edf0a7a93e11d 143578 bash-completion_1.0.orig.tar.gz
49c583802082e3aa9a761fb0da0d5ec257f257bb 9002 bash-completion_1.0-1.diff.gz
cb38e807d9b23e84b866e6e9d24814991a61836a 103010 bash-completion_1.0-1_all.deb
Checksums-Sha256:
d369f9436c02262d3de898564cd9b5269ace760cf6b7e0632e3b251ac431f2b5 1308 bash-completion_1.0-1.dsc
bd96e7d2858f02783046908a984993736f1189d07d82e9ce4b465068dd7187ef 143578 bash-completion_1.0.orig.tar.gz
04c46eff31bf9dfb9e79f417bd79706b6dc67888461ab05128b29cff78c9556b 9002 bash-completion_1.0-1.diff.gz
81ab4b27a2158e787ea39c7da34619858a5df6b6251ba24d8bda6592feed46f4 103010 bash-completion_1.0-1_all.deb
Files:
6cb01d355c4519f911820b2b7c0feb53 1308 shells standard bash-completion_1.0-1.dsc
cd1c5648272917fbe0eef4ba30bb93f4 143578 shells standard bash-completion_1.0.orig.tar.gz
e78d5e31ed66fb5e97c77ea7c9f1b343 9002 shells standard bash-completion_1.0-1.diff.gz
aefc9e1c8db0f4f2b61557c2e207ca0c 103010 shells standard bash-completion_1.0-1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAknXYZAACgkQ5UTeB5t8Mo0jGACfQVygJmdQ3v4i/dymRnZSVnhA
qHoAnjcS99HMQgFHzQ2NnNAY1OPvlPK6
=6i7t
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 13 May 2009 07:27:48 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 09:59:56 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.