Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519242 - net-misc/dahdi-2.9.0-r1 installs bash completion script in /etc/bash_completion.d/ instead of /usr/share/bash-completion/
Summary: net-misc/dahdi-2.9.0-r1 installs bash completion script in /etc/bash_completi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-06 18:59 UTC by KK
Modified: 2018-06-14 12:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KK 2014-08-06 18:59:25 UTC
dahdi-2.9.0-r1 stores the bash_completion script "dahdi" under /etc/bash_completion.d. The standard path under gentoo however, which is also honoured by "eselect bashcomp", is /usr/share/bash-completion.

Reproducible: Always

Steps to Reproduce:
1. # emerge dahdi--2.9.0-r1
2. # eselect bashcomp enable dahdi

Both the directory /etc/bash_completion.d and the file dahdi therein belong to dahdi-2.9.0.1 (which incidentially should also be 2.9.0-r1 instead):

# equery belongs /etc/bash_completion.d
 * Searching for /etc/bash_completion.d/ ...
net-misc/dahdi-tools-2.9.0.1 (/etc/bash_completion.d)

# equery belongs /etc/bash_completion.d/dahdi
 * Searching for /etc/bash_completion.d/dahdi ...
net-misc/dahdi-tools-2.9.0.1 (/etc/bash_completion.d/dahdi)
Actual Results:  
Error: /usr/share/bash-completion/dahdi doesn't exist

Expected Results:  
No error message and bash-completion for dahdi being enabled

temporary workaround:

ln -s / cp / mv /etc/bash_completion.d/dahdi /usr/share/bash-completion
Comment 1 Jaco Kroon 2018-06-08 13:14:28 UTC
Still an issue with dahdi-tools-2.10.2.

@ Tony, simplest possible fix is to in src_install just add BASH_COMP_DIR=/usr/share/bash-completion onto the emake DESTDIR="${D}" install line, eg:

emake DESTDIR="${D}" BASH_COMP_DIR=/usr/share/bash-completion install

This simple change will close this for us.
Comment 2 Larry the Git Cow gentoo-dev 2018-06-14 12:02:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a077c2296ba1188e38394c4585e0d514b5b7eef5

commit a077c2296ba1188e38394c4585e0d514b5b7eef5
Author:     Tony Vroon <chainsaw@gentoo.org>
AuthorDate: 2018-06-14 12:02:37 +0000
Commit:     Tony Vroon <chainsaw@gentoo.org>
CommitDate: 2018-06-14 12:02:48 +0000

    net-misc/dahdi-tools: Version bump to 2.11.1
    
    Ebuild updates by Jaco Kroon.
    
    Closes: https://bugs.gentoo.org/519242
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 net-misc/dahdi-tools/Manifest                      |  1 +
 net-misc/dahdi-tools/dahdi-tools-2.11.1.ebuild     | 53 ++++++++++++++++++++++
 .../files/dahdi-nondigium-blacklist.patch          | 12 +++++
 3 files changed, 66 insertions(+)