Repoman currently does not warn about stuff such as cd ${ED} This is potentially dangerous, as ${ED}, ${D} and a stack of other variables can potentially contain spaces. This is also somewhat inconsistent behaviour as OPTIONS+=" --boost-build=${EPREFIX}/usr/share/boost-build --prefix=\"${ED}usr\"" for instance causes repoman to warn about "Unquoted Variable on line: 174". Reproducible: Always
(In reply to David Seifert from comment #0) > Repoman currently does not warn about stuff such as > > cd ${ED} This works for me. floppym@naomi foo % cat foo-0.ebuild EAPI=6 src_install() { cd ${ED} } floppym@naomi foo % repoman full RepoMan scours the neighborhood... ... ebuild.minorsyn 1 app-misc/foo/foo-0.ebuild: Unquoted Variable on line: 3 ...
(In reply to Mike Gilbert from comment #1) > (In reply to David Seifert from comment #0) > > Repoman currently does not warn about stuff such as > > > > cd ${ED} > > This works for me. Yeah it works for me too. Can we get a sample ebuild that reproduces the problem? The code responsible for this is the EbuildQuote class: https://gitweb.gentoo.org/proj/portage.git/tree/repoman/pym/repoman/modules/scan/ebuild/checks.py?h=repoman-2.3.1#n153
It looks like ${ED} gets detected, but not ${ED%/}.
repoman support has been removed per bug 835013. Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.
pkgcheck now has UnquotedVariable.