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
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.
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(+)