On 2020.10.20 16:57, Alec Ten Harmsel wrote:
On Tue, Oct 20, 2020, at 14:01, Anton wrote:
> Hi there,
>
> I am taking on maintaining a package in gentoo-sci overlay. What are
> good ways to test that my ebuild works before creating a pull
request?
>
> I am thinking to install a Gentoo Prefix, snapshot its "vanilla"
state,
> and run `emerge $mypackage` in the vanilla Prefix as a test. Are
there
> better strategies?
Generally, I just `sudo ebuild <path/to/software.ebuild> clean
install merge'
and test that it works directly on my system. I only proxy-maintain 1
package,
though, so others will probably have much better workflows.
Alec
Using ebuild instead of emerge is probably not a sufficient test. It
does not check for dependencies, and I don't know what other subtle
differences there are. It's probably also good to run repoman on the
ebuild.
Jack