Solved www/yarn caused games/anki build to crash in poudriere

I'm posting my solution to a possibly unique problem in case anyone else may run across this.

The problem was that building games/anki with ports-mgmt/poudriere failed. The log of the build indicated the problem occurred while www/yarn was fetching things (even though the poudriere web interface listed it as "bad C++ code").

The error in yarn was
Code:
Error: The `onCancel` handler was attached after the promise settled.

The solution was to delete the package and rebuild www/yarn-node24 (which anki depends on) using the -C option in poudriere. Thus:

Code:
poudriere bulk -j myjail -p mytree -C www/yarn-node24

After doing that, games/anki built without a problem

This solution may apply to other ports which depend on www/yarn
 
Back
Top