Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526274 - dev-python/starcluster-0.93.3-r1: incorrect name for bashcomp
Summary: dev-python/starcluster-0.93.3-r1: incorrect name for bashcomp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Delaney (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: bashcomp2
  Show dependency tree
 
Reported: 2014-10-21 16:04 UTC by Michał Górny
Modified: 2014-10-22 15:56 UTC (History)
1 user (show)

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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-21 16:04:56 UTC
* Problems with installed bash completions were found:
 * 
 * 	starcluster-completion.sh: incorrect name, no completions for 'starcluster-completion.sh' command defined.
 * 	starcluster: missing alias (symlink) for completed command.
 * 
 * For more details on installing bash-completions, please see:
 * https://wiki.gentoo.org/wiki/Bash/Installing_completion_files

It should be installed as 'starcluster', not 'starcluster-completion.sh'.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2014-10-22 06:11:47 UTC
One of the few packages I added and never removed me from maintainer.  This works but does it suffice?


@@ -48,9 +47,13 @@
 		return $exit_status
 	}
 	use epydoc && mkdocs
+	cd completion || die
+	mv starcluster-completion.sh starcluster
 }
+
 python_install() {
-	dobashcomp "${S}"/completion/${PN}-completion.sh ${PN}
+	distutils-r1_python_install
+	dobashcomp "${S}"/completion/${PN} ${PN}
 
 	use doc && dohtml -r docs/sphinx/_build/html/
 	if use epydoc; then

What I expected to work didn't so I'm not committing this at this point.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2014-10-22 07:27:07 UTC
hmmm; bashcomp_alias, leaked by that other related new bug
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-22 07:39:26 UTC
No need to rename the file in sources. Just use 'newbashcomp' instead of 'dobashcomp', since you are already passing parameters like for the former...
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2014-10-22 15:56:35 UTC
*starcluster-0.93.3-r2 (22 Oct 2014)

  22 Oct 2014; Ian Delaney <idella4@gentoo.org> +starcluster-0.93.3-r2.ebuild,
  -starcluster-0.93.3-r1.ebuild, -starcluster-0.93.3.ebuild:
  revbump; substitute dobashcomp with newbashcomp, fixes Bug #526274, rm prior
  ebuilds