Debian Bug report logs - #669180
bash-completion: please replace /etc/bash_completion symlink with a script

version graph

Package: bash-completion; Maintainer for bash-completion is Gabriel F. T. Gomes <gabriel@debian.org>; Source for bash-completion is src:bash-completion (PTS, buildd, popcon).

Reported by: Jonathan Nieder <jrnieder@gmail.com>

Date: Tue, 17 Apr 2012 23:24:01 UTC

Severity: wishlist

Tags: patch

Found in version bash-completion/1:1.99-3

Fixed in version bash-completion/1:2.0-1

Done: David Paleino <dapal@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#669180; Package bash-completion. (Tue, 17 Apr 2012 23:24:04 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Tue, 17 Apr 2012 23:24:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jonathan Nieder <jrnieder@gmail.com>
To: submit@bugs.debian.org
Subject: bash-completion: please replace /etc/bash_completion symlink with a script
Date: Tue, 17 Apr 2012 18:20:52 -0500
Package: bash-completion
Version: 1:1.99-3
Severity: wishlist
Tags: patch

Hi,

As described in <http://bugs.debian.org/648319>, on Debian
/etc/bash_completion is a symlink to
/usr/share/bash-completion/bash_completion so old scripts and .bashrc
files can use

	. /etc/bash_completion

like they have always done.  The completion lib in its upstream
version uses the BASH_SOURCE variable to find itself and its helpers
and ends up trying to find these things in /etc instead of
/usr/share/bash-completion/.  And in Debian we patch it to resolve the
symlink so it can find the helpers in the right place.

Since last January, I have been using an alternative fix instead:
namely my /etc/bash_completion is a simple file with the following
content:

	. /usr/share/bash-completion/bash_completion

This way:

 - BASH_SOURCE is as the completion script expects to find it; no
   need to differ from the upstream source or risk resolving one
   symlink too many if some admin decides to divert the
   bash_completion script and replace it with a symlink to somewhere
   else

 - /etc/bash_completion can remain a conffile

 - anyone who customized their /etc/bash_completion in squeeze will
   get the usual prompt about customized configuration files when
   they upgrade

It seems to work fine.  What do you think?

Patch at http://bugs.debian.org/648319#83

Thanks,
Jonathan




Reply sent to David Paleino <dapal@debian.org>:
You have taken responsibility. (Sun, 17 Jun 2012 19:21:16 GMT) (full text, mbox, link).


Notification sent to Jonathan Nieder <jrnieder@gmail.com>:
Bug acknowledged by developer. (Sun, 17 Jun 2012 19:21:16 GMT) (full text, mbox, link).


Message #10 received at 669180-close@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: 669180-close@bugs.debian.org
Subject: Bug#669180: fixed in bash-completion 1:2.0-1
Date: Sun, 17 Jun 2012 19:17:10 +0000
Source: bash-completion
Source-Version: 1:2.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_2.0-1.debian.tar.gz
  to main/b/bash-completion/bash-completion_2.0-1.debian.tar.gz
bash-completion_2.0-1.dsc
  to main/b/bash-completion/bash-completion_2.0-1.dsc
bash-completion_2.0-1_all.deb
  to main/b/bash-completion/bash-completion_2.0-1_all.deb
bash-completion_2.0.orig.tar.bz2
  to main/b/bash-completion/bash-completion_2.0.orig.tar.bz2



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 669180@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Paleino <dapal@debian.org> (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: Sun, 17 Jun 2012 21:08:02 +0200
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 1:2.0-1
Distribution: unstable
Urgency: low
Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>
Changed-By: David Paleino <dapal@debian.org>
Description: 
 bash-completion - programmable completion for the bash shell
Closes: 446355 659395 662203 666055 669178 669180
Changes: 
 bash-completion (1:2.0-1) unstable; urgency=low
 .
   [ David Paleino ]
   * New upstream version
     - Recognise symlinks to directories as directories (Closes: #666055)
     - sudo -e should list filenames instead of commands (Closes: #446355)
     - ri completion: defines function outside _* namespace (Closes: #669178)
     - overrides lyx's bash-completion (Closes: #662203)
     - complete 'apt-get changelog' (Closes: #659395)
     - sudo su {user} -c "sss failing because of quotation (LP: #783136)
     - scp and rsync error on local path completion (LP: #772571)
   * Standards-Version bump to 3.9.3, no changes needed
   * Updated debian/copyright
   * Added Pre-Depends on dpkg because of dpkg-maintscript-helper
 .
   [ Jonathan Nieder ]
   * Replace /etc/bash_completion symlink with a shim script (Closes: #669180)
   * Remove no longer needed symlink-issue patch
   * Remove /etc/bash_completion symlink to make room for shim script
     on upgrade from versions 1:1.99-2 and 1:1.99-3.
Checksums-Sha1: 
 9f34597df875e48bffabf7a59291ac0d137bd7a3 1387 bash-completion_2.0-1.dsc
 3011add35574b4042c04b95fc0fd0f14006adc69 250560 bash-completion_2.0.orig.tar.bz2
 7457f2fc33399f1e1ebd24d3ec633f6481d149e2 13549 bash-completion_2.0-1.debian.tar.gz
 c23b4d629664e0330add7dbc5e706b2f2dcdd92a 192736 bash-completion_2.0-1_all.deb
Checksums-Sha256: 
 1e476e5924a0815e910f94f7a662c03209ea9516f5628146d2df930b1b2b5239 1387 bash-completion_2.0-1.dsc
 e5a490a4301dfb228361bdca2ffca597958e47dd6056005ef9393a5852af5804 250560 bash-completion_2.0.orig.tar.bz2
 b768f9e5f618c7d8b2541846ea218db8cb60a6482adc34f7c1e54a862b67200a 13549 bash-completion_2.0-1.debian.tar.gz
 b2bfbd9c432de43114dd13e7889635bb87d993b2c1fb1398a36cadbe52d907ee 192736 bash-completion_2.0-1_all.deb
Files: 
 cbf8549f58eda160abbd4f0d52c541ee 1387 shells standard bash-completion_2.0-1.dsc
 0d903f398be8c8f24bc5ffa6f86127f8 250560 shells standard bash-completion_2.0.orig.tar.bz2
 b21c9bcc63ed40ccd695f223cf3a6337 13549 shells standard bash-completion_2.0-1.debian.tar.gz
 0733a3423e3af8a589210263ebbdd898 192736 shells standard bash-completion_2.0-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk/eK3wACgkQ5qqQFxOSsXTr9wCeN5ifbF5MKIgDINo6Ik6Njs8c
jfkAn348ew/z/EByrLUOkUMdhoi/AzsP
=axw2
-----END PGP SIGNATURE-----





Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#669180; Package bash-completion. (Sun, 17 Jun 2012 19:48:03 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Sun, 17 Jun 2012 19:48:03 GMT) (full text, mbox, link).


Message #15 received at 669180@bugs.debian.org (full text, mbox, reply):

From: Jonathan Nieder <jrnieder@gmail.com>
To: 669180@bugs.debian.org
Subject: Re: bash-completion: please replace /etc/bash_completion symlink with a script
Date: Sun, 17 Jun 2012 14:45:07 -0500
David Paleino wrote:

>  bash-completion (1:2.0-1) unstable; urgency=low

Oh, nice!  Thanks for preparing it.




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 26 Jul 2012 07:37:57 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 10:02:19 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.