bad861736d
Portage, when used through its API, doesn't seem to source all the ebuild
variables, in our case, the triggering variable was "LICENSE" which was
not set properly when calling portage.doebuild("setup"). The buggy package
is "net-wireless/broadcom-sta" which contain check_license into pkg_setup.