New python eclass can not contain python_optimize in pkg_postinst(). * The new Python eclasses expect the compiled Python files to * be controlled by the Package Manager. For this reason, * the python_optimize function can be used only during src_* phases * (src_install most commonly) and not during pkg_* phases. * ERROR: app-i18n/ibus-anthy-1.5.0 failed (postinst phase): * python_optimize is not to be used in pre/post* phases * * Call stack: * ebuild.sh, line 93: Called pkg_postinst * environment, line 3211: Called python_optimize * environment, line 3693: Called die * The specific snippet of code: * die "python_optimize is not to be used in pre/post* phases"; * * If you need support, post the output of `emerge --info '=app-i18n/ibus-anthy-1.5.0'`, Reproducible: Always Steps to Reproduce: 1. emerge =app-i18n/ibus-anthy-1.5.0 2. 3.
Created attachment 354162 [details, diff] sample patch for ibus-anthy-1.5.0.ebuild move python_optimize to src_install().
fixed. Thank you for your catch.