Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 920834

Summary: dev-lang/ghc-9.2.8 missing bash completion symlink
Product: Gentoo Linux Reporter: Attila Tóth <atoth>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ghc-9.2.8.ebuild.1.diff

Description Attila Tóth 2023-12-27 23:05:11 UTC
* Problems with installed bash completions were found:
 *
 *      ghci: missing alias (symlink) for completed command.
 *
 * For more details on installing bash-completions, please see:
 * https://wiki.gentoo.org/wiki/Bash/Installing_completion_files

Reproducible: Always




Adding "bashcomp_alias ghc ghci" to the bash completion section solves the warning:
--- ghc-9.2.8.ebuild-orig       2023-12-27 11:10:23.000000000 +0100
+++ ghc-9.2.8.ebuild-dwok       2023-12-27 11:11:31.663711076 +0100
@@ -925,6 +925,7 @@ src_install() {
                if ! is_crosscompile; then
                        newbashcomp "${FILESDIR}"/ghc-bash-completion ghc-pkg
                        newbashcomp utils/completion/ghc.bash         ghc
+                       bashcomp_alias ghc ghci
                fi
        fi
Comment 1 Attila Tóth 2023-12-27 23:05:54 UTC
Created attachment 880784 [details, diff]
ghc-9.2.8.ebuild.1.diff

Proposed change solves the warning.