Invalid symbolic links in /usr/share/doc/bash

Bug #370611 reported by Alexander Gieg
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-completion (Debian)
Fix Released
Unknown
bash-completion (Ubuntu)
Fix Released
Low
Unassigned
Declined for Jaunty by Colin Watson

Bug Description

Binary package hint: bash-completion

bash-completion adds two symbolic links to /usr/share/doc/bash, but they point to non existent files, as some dots are missing:

/usr/share/doc/bash/README.bash_completion.gz -> /bash-completion/README.gz
/usr/share/doc/bash/completion-contrib -> /bash-completion/contrib

Evidently, both should be corrected to link in this way:

/usr/share/doc/bash/README.bash_completion.gz -> ../bash-completion/README.gz
/usr/share/doc/bash/completion-contrib -> ../bash-completion/contrib

My system:

- Ubuntu 9.04, updated from 8.10
- bash-completion 20080705ubuntu3

Revision history for this message
YoBoY (yoboy-leguesh) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Changed in bash-completion (Ubuntu):
status: New → Confirmed
summary: - Invalid symbolic links in /usr/doc/share/bash
+ Invalid symbolic links in /usr/share/doc/bash
description: updated
Revision history for this message
Michael Rooney (mrooney) wrote :

As per YoBoY's comment, marking as Triaged with importance Low. Thanks!

Changed in bash-completion (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
tags: added: bitesize packaging
Changed in bash-completion (Ubuntu):
status: Triaged → Confirmed
assignee: nobody → David Stansby (dstansby)
status: Confirmed → In Progress
Revision history for this message
David Stansby (dstansby-deactivatedaccount) wrote :

I'm trying to fix this bug at the moment, but can't understand what Alexander means by

"
Evidently, both should be corrected to link in this way:

/usr/share/doc/bash/README.bash_completion.gz -> ../bash-completion/README.gz
/usr/share/doc/bash/completion-contrib -> ../bash-completion/contrib
"

The current contents of the /debian/links file are as follows:

"
usr/share/doc/bash-completion/contrib usr/share/doc/bash/completion-contrib
usr/share/doc/bash-completion/README.gz usr/share/doc/bash/README.bash_completion.gz
"

Revision history for this message
Alexander Gieg (alexgieg) wrote :

Thanks for looking into this. What I mean is that the two starting dots at destination path are missing. What we currently have is similar to what we'd gets by typing this:

cd /usr/share/doc/bash
sudo ln -s completion-contrib /bash-completion/contrib
sudo ln -s README.bash_completion.gz /bash-completion/README.gz

When it should be, quite literally, this:

cd /usr/share/doc/bash
sudo ln -s completion-contrib ../bash-completion/contrib
sudo ln -s README.bash_completion.gz ../bash-completion/README.gz

I'm not sure how the installation script actually creates these links, so I cannot help at that. But I hope the above helps!

Revision history for this message
Alexander Gieg (alexgieg) wrote :

Oops! I guess I inverted things. Sorry. Here are the two corrected versions:

Wrong:

cd /usr/share/doc/bash
sudo ln -s /bash-completion/contrib completion-contrib
sudo ln -s /bash-completion/README.gz README.bash_completion.gz

Correct:

cd /usr/share/doc/bash
sudo ln -s ../bash-completion/contrib completion-contrib
sudo ln -s ../bash-completion/README.gz README.bash_completion.gz

Revision history for this message
David Stansby (dstansby-deactivatedaccount) wrote :

Thanks for the reply Alexander. I've been looking in the most up to date source file for bash-completion, and the only place I can find references to the files mentioned above is in the /debian/links file that I've attached. After having a look at the source code, I had a look at the contents of my /usr/share/doc/bash directory. It seems that I have symbolic links to both README.bash_completion.gz and completion-contrib, but only the first one actually links to anything. I have checked what they link to, and they do link to the correct files, but I do not have a /usr/share/doc/bash-completion/completion-contrib present, so that's why the second link doesn't work. All of this leads be to believe that this bug has been fixed somewhere between the version that you found this bug in, and the version that I am using. As I am currently on karmic koala, I am using 1:1.0-3. I think what I'll do now is try and get the source for jaunty, and see if I can fix your problem.

Revision history for this message
David Stansby (dstansby-deactivatedaccount) wrote :

Ok, here's the debdiff. I think the problem was that the origional file had ../bash-completion references, when the program hadn't entered the /usr/share/doc/bash directory when creating the symbolic links. That's what seems to have been fixed in the latest version, so I've just applied those changes to the jaunty version. I don't think this needs to be forwarded upstream either, as the fix is present in the karimic version of the package.

Changed in bash-completion (Ubuntu):
assignee: David Stansby (dstansby) → nobody
status: In Progress → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

I've added a link to the corresponding Debian bug.

As you note, this has been fixed in Karmic, so I'm closing the task referring to the current Ubuntu development branch. I don't honestly think this meets the requirements for a stable release update to Jaunty (see https://wiki.ubuntu.com/StableReleaseUpdates), so while we appreciate your effort I think I am obliged to decline the Jaunty task. If you disagree, you can appeal to anyone else in the ubuntu-sru team.

Changed in bash-completion (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
David Stansby (dstansby-deactivatedaccount) wrote :

Thanks for the reply colin. Since this is my first sru patch, I wasn't quote sure whether this was important enough to warrent an update. Thanks for clearing things up for me :)

Changed in bash-completion (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.