From 2c94ad560187ec2a882d9d5805a396e0919e93de Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Fri, 24 Apr 2020 15:22:56 +0100 Subject: [PATCH] sys-cluster/singularity: do not install bash-completion rules Singularity installs them into the compatibility directory (/etc/bash_completions.d), moreover they might be automatically generated but they are still badly broken (confirmed to affect quite a few commands which have got nothing to do with singularity). With apologies to everyone who will end up emerge a revbump just to get rid of a single shell file. Signed-off-by: Marek Szuba --- ...larity-3.5.3.ebuild => singularity-3.5.3-r1.ebuild} | 10 ++++++++++ 1 file changed, 10 insertions(+) rename sys-cluster/singularity/{singularity-3.5.3.ebuild => singularity-3.5.3-r1.ebuild} (69%) diff --git a/sys-cluster/singularity/singularity-3.5.3.ebuild b/sys-cluster/singularity/singularity-3.5.3-r1.ebuild similarity index 69% rename from sys-cluster/singularity/singularity-3.5.3.ebuild rename to sys-cluster/singularity/singularity-3.5.3-r1.ebuild index 2a51a4074fcd..16834ae083a3 100644 --- a/sys-cluster/singularity/singularity-3.5.3.ebuild +++ b/sys-cluster/singularity/singularity-3.5.3-r1.ebuild @@ -52,6 +52,16 @@ src_install() { emake DESTDIR="${ED}" -C builddir install keepdir /var/singularity/mnt/session + # As of version 3.5.3 this seems to be very much broken, affecting + # commands which have got nothing to do with singularity (example: + # completion on 'udisks mount -b /dev/' rejects all files from that + # directory other than 'autofs'). Moreover, this should go into + # $(get_bashcompdir) (from bash-completion-r1.eclass) rather than /etc. + # Hopefully temporary, which is why we delete this at install time + # instead of patching build scripts not to generate bash-completion + # data in the first place. + rm -rf "${ED}"/etc/bash_completion.d || die + dodoc README.md CONTRIBUTORS.md CONTRIBUTING.md if use examples; then dodoc -r examples -- 2.26.2