Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701202 - gnome-extra/gnome-dvb-daemon-0.2.90 failed (postinst phase): python_optimize is not to be used in pre/post* phases
Summary: gnome-extra/gnome-dvb-daemon-0.2.90 failed (postinst phase): python_optimize...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 702414 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-11-26 12:30 UTC by Amel Hodzic
Modified: 2020-02-02 10:35 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amel Hodzic 2019-11-26 12:30:24 UTC
The package gets installed, /var/tmp/portage/gnome-extra/gnome-dvb-daemon is cleared, no build log left.  Seeing that there are similar bugs for other ebuilds, this should be straight-forward to fix.


* Messages for package gnome-extra/gnome-dvb-daemon-0.2.90:

 * FAILED postinst: 1
 * 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: gnome-extra/gnome-dvb-daemon-0.2.90::gentoo failed (postinst phase):
 *   python_optimize is not to be used in pre/post* phases
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called pkg_postinst
 *   environment, line 2681:  Called python_optimize
 *   environment, line 3434:  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 '=gnome-extra/gnome-dvb-daemon-0.2.90::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=gnome-extra/gnome-dvb-daemon-0.2.90::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/gnome-extra/gnome-dvb-daemon-0.2.90/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gnome-extra/gnome-dvb-daemon-0.2.90/temp/environment'.
 * Working directory: '/var/tmp/portage/gnome-extra/gnome-dvb-daemon-0.2.90/homedir'
 * S: '/var/tmp/portage/gnome-extra/gnome-dvb-daemon-0.2.90/work/gnome-dvb-daemon-0.2.90'
Comment 1 Mart Raudsepp gentoo-dev 2020-02-02 10:07:49 UTC
*** Bug 702414 has been marked as a duplicate of this bug. ***
Comment 2 Larry the Git Cow gentoo-dev 2020-02-02 10:35:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7b8844a7ac6d277e655573ab35e0176ffce41d4

commit a7b8844a7ac6d277e655573ab35e0176ffce41d4
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2020-02-02 10:20:16 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2020-02-02 10:35:23 +0000

    gnome-extra/gnome-dvb-daemon: EAPI6, python-single, py37, other fixes
    
    * Port to EAPI-6 and drop some unnecessary eclass inherits
    * The client code is all in python with shipped modules, so it has
      to be python-single-r1 instead of python-any-r1 (this happened
      to be fine with any due to only one python version supported
    * Add python-3.7 support
    * Drop totem plugin, as it can't function with in-tree totem anymore,
      because it doesn't support plugins changing the UI (in addition,
      the totem plugin was py2-only). Upstream has a grilo plugin now
      instead, but it has never been released before the whole project
      has fallen into de facto unmaintained status
    * Drop useless USE=nls
    * Drop USE=vala that doesn't do anything (the pregenerated C files
      are always used)
    * Fix python module optimization handling
    * Drop questionable libltdl dep
    * Drop perl dep - it appears only used via intltool
    * Standard subslot depend for gobject-introspection
    
    In general I can't get this project to do anything useful, so help
    maintaining and/or testing this welcome, if it has any actual users.
    Or even letting me know how to get this going properly (I do have
    a DVB-T USB device and some terrestial channels available).
    
    Closes: https://bugs.gentoo.org/701202
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Mart Raudsepp <leio@gentoo.org>

 .../gnome-dvb-daemon-0.2.90-r1.ebuild              | 53 ++++++++++++++++++++++
 1 file changed, 53 insertions(+)