Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478120 - =app-i18n/ibus-anthy-1.5.0 - ERROR: app-i18n/ibus-anthy-1.5.0 failed (postinst phase): python_optimize is not to be used in pre/post* phases
Summary: =app-i18n/ibus-anthy-1.5.0 - ERROR: app-i18n/ibus-anthy-1.5.0 failed (postins...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-07-25 11:37 UTC by Yuta SATOH
Modified: 2013-07-28 10:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sample patch for ibus-anthy-1.5.0.ebuild (478120.patch,445 bytes, patch)
2013-07-25 11:40 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2013-07-25 11:37:52 UTC
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.
Comment 1 Yuta SATOH 2013-07-25 11:40:19 UTC
Created attachment 354162 [details, diff]
sample patch for ibus-anthy-1.5.0.ebuild

move python_optimize to src_install().
Comment 2 Naohiro Aota gentoo-dev 2013-07-28 10:58:02 UTC
fixed. Thank you for your catch.