Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734352 - sci-geosciences/gpsd-3.20 USE=-python - src_compile(): ERROR: EPYTHON unset in escons
Summary: sci-geosciences/gpsd-3.20 USE=-python - src_compile(): ERROR: EPYTHON unset i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-07-29 07:46 UTC by Thomas Bettler
Modified: 2020-09-25 17:51 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 Thomas Bettler 2020-07-29 07:46:27 UTC
Compiling gpsd-3.20 without python USE flag complains about python_setup not being called prior to escons usage.

>>> Compiling source in /var/tmp/portage/sci-geosciences/gpsd-3.20/work/gpsd-3.20 ...
 * EPYTHON is unset while calling escons. This most likely means that
 * the ebuild did not call the appropriate eclass function before calling scons.
 * Please ensure that python_setup is called before escons, or that escons
 * is used within python_foreach_impl as appropriate.
 * ERROR: sci-geosciences/gpsd-3.20::gentoo failed (compile phase):
 *   EPYTHON unset in escons
Comment 1 Larry the Git Cow gentoo-dev 2020-09-25 17:51:59 UTC
The bug has been closed via the following commit(s):

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

commit 0b7a6ea689c896fa26dbc857f5e8c13628596a0d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-09-25 17:46:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-09-25 17:46:55 +0000

    sci-geosciences/gpsd: call python_setup uncondiitonally
    
    python_setup is called by the distutils machinery
    when USE=python, but wasn't in the USE=-python case
    until now.
    
    We need this because we're using (e)scons to build.
    
    Closes: https://bugs.gentoo.org/734352
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-geosciences/gpsd/gpsd-3.21.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)