I just noticed this change: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc452109e2076f5c0a2903ee594e3399bf12d2aa Maybe if repoman could show a warning when some widely used vars like this one are not set properly it would be easier to fix them earlier and not repeat the error in the future :) Thanks
I think that repoman should not hardcode list of such variables, and instead relevant eclasses should check type of variable. python-r1.eclass, python-single-r1.eclass and python-any-r1.eclass already contain: if ! declare -p PYTHON_COMPAT &>/dev/null; then die 'PYTHON_COMPAT not declared.' fi I suggest that they additionally contain this check: if [[ $(declare -p PYTHON_COMPAT) != "declare -a"* ]]; then die 'PYTHON_COMPAT should be an array' fi
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #1) repoman has the ability to probe eclass documentation and check for missing inherits. there's no reason it couldn't be expanded to include type details.
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #1) > I suggest that they additionally contain this check: > > if [[ $(declare -p PYTHON_COMPAT) != "declare -a"* ]]; then > die 'PYTHON_COMPAT should be an array' > fi Thanks for the suggestion. https://github.com/gentoo/gentoo/pull/319
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.