Summary: | dev-util/pkgcheck: warn about usage of doins for icons instead of newicon/doicon | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jonas Stein <jstein> |
Component: | Current packages | Assignee: | Michał Górny <mgorny> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | CC: | jstein, ulm |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=606854 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jonas Stein
![]() newicon and doicon are defined in the eutils eclass. https://devmanual.gentoo.org/eclass-reference/eutils.eclass/ AFAIK there are no further EAPI restrictions in this case. This seems a bit dubious to me. doicon/newicon are convenience functions. If an ebuild calls doins/newins in an appropriate way instead, I don't see any reason to flag that as a QA failure. Mike, that is interesting. When I discussed this with other developers before writing the ticket, the tenor was "never use doins for icons". Perhaps we should at least clarify our documentation on this. Best, JS IMHO, there is nothing wrong with using doins to install icons. You would have a valid argument if doicon was a package manager function. There also is a tradeoff between using doicon and inheriting a large eclass, or using insinto and doins which may require one additional of code. I would leave that decision to the maintainer. 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. I still think this isn't valid, by comment #4. (In reply to Ulrich Müller from comment #6) > I still think this isn't valid, by comment #4. Fine with me, I just wanted to do the closing separate from the moving. |