Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700340 - media-libs/mlt-6.18.0 python_fix_shebang: EPYTHON unset (pkg_setup not called?)
Summary: media-libs/mlt-6.18.0 python_fix_shebang: EPYTHON unset (pkg_setup not called?)
Status: RESOLVED DUPLICATE of bug 700318
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-17 10:34 UTC by Andrew Ammerlaan
Modified: 2019-11-17 10:44 UTC (History)
2 users (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 Andrew Ammerlaan gentoo-dev 2019-11-17 10:34:59 UTC
media-libs/mlt-6.18.0 ebuild fails to start compilation:
>>> Emerging (1 of 1) media-libs/mlt-6.18.0::gentoo
* mlt-6.18.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking mlt-6.18.0.tar.gz to /var/tmp/portage/media-libs/mlt-6.18.0/work
>>> Source unpacked in /var/tmp/portage/media-libs/mlt-6.18.0/work
>>> Preparing source in /var/tmp/portage/media-libs/mlt-6.18.0/work/mlt-6.18.0 ...
* Applying mlt-6.10.0-swig-underlinking.patch ...                                                                                                                                                 [ ok ]
* ERROR: media-libs/mlt-6.18.0::gentoo failed (prepare phase):
*   python_fix_shebang: EPYTHON unset (pkg_setup not called?)
* 
* Call stack:
*     ebuild.sh, line  125:  Called src_prepare
*   environment, line 2618:  Called python_fix_shebang 'src/swig/python'
*   environment, line 1919:  Called die
* The specific snippet of code:
*       [[ -n ${EPYTHON} ]] || die "${FUNCNAME}: EPYTHON unset (pkg_setup not called?)";

The workaround is to add USE="python" for mlt. I suspect that this line in the ebuild:
"python_fix_shebang src/swig/python"
might need to be prepended by a 'if use python' statement.
Comment 1 Larry the Git Cow gentoo-dev 2019-11-17 10:39:14 UTC
The bug has been closed via the following commit(s):

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

commit 864613c0f925cf31a09490630273e0781eba7103
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-11-17 10:37:48 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-11-17 10:38:49 +0000

    media-libs/mlt: Conditionalise python_fix_shebang
    
    Closes: https://bugs.gentoo.org/700340
    Package-Manager: Portage-2.3.79, Repoman-2.3.18
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-libs/mlt/mlt-6.18.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-11-17 10:43:28 UTC

*** This bug has been marked as a duplicate of bug 700318 ***