Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 735248 - app-text/stardict: need py3 port
Summary: app-text/stardict: need py3 port
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andrew Savchenko
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: py3-tracker, python-3-incompatible
  Show dependency tree
 
Reported: 2020-08-02 12:33 UTC by Michał Górny
Modified: 2020-09-19 08:04 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge--info.txt,5.46 KB, text/plain)
2020-09-13 09:12 UTC, George Tarasov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-08-02 12:33:41 UTC
Please port to py3.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-23 13:00:38 UTC
ping.
Comment 2 Andrew Savchenko gentoo-dev 2020-08-23 13:40:57 UTC
In stardict python is a very optional dependency: it is needed only for a small subset of USE=tools when USE=python is also enabled. No need to hurry.
Comment 3 George Tarasov 2020-09-13 09:12:56 UTC
Created attachment 660024 [details]
emerge --info
Comment 4 George Tarasov 2020-09-13 09:13:39 UTC
The =app-text/stardict-3.0.6-r3 was built with python2_7 previously. And, the python2_7 was in PYTHON_SINGLE_TARGET. Now i'm trying to migrate to python3. I set 

PYTHON_TARGETS="python3_7 python3_8"
PYTHON_SINGLE_TARGET="python3_7"

to the make.conf and 

>=app-text/stardict-3.0.6-r3 -gucharmap -htmlparse -powerwordparse -wikiparse -wordnet PYTHON_SINGLE_TARGET: -*

to the package.use (switch off all the default use flags).

During the build I get the following error.

 * Package:    app-text/stardict-3.0.6-r3
 * Repository: gentoo
 * Maintainer: bircoph@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU xdxfparse
 * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv usersandbox
 * No Python implementation selected for the build. Please set
 * the PYTHON_SINGLE_TARGET variable in your make.conf to one
 * of the following values:
 * 
 * python2_7

 * ERROR: app-text/stardict-3.0.6-r3::gentoo failed (setup phase):
 *   No supported Python implementation in PYTHON_SINGLE_TARGET.
 * 
 * Call stack:
 *                 ebuild.sh, line 125:  Called pkg_setup
 *                 ebuild.sh, line 355:  Called python-single-r1_pkg_setup
 *   python-single-r1.eclass, line 525:  Called python_setup
 *   python-single-r1.eclass, line 515:  Called die
 * The specific snippet of code:
 *   		die "No supported Python implementation in PYTHON_SINGLE_TARGET."
 * 
 * If you need support, post the output of `emerge --info '=app-text/stardict-3.0.6-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/stardict-3.0.6-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/stardict-3.0.6-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/stardict-3.0.6-r3/temp/die.env'.
 * Working directory: '/var/tmp/portage/app-text/stardict-3.0.6-r3/homedir'
 * S: '/var/tmp/portage/app-text/stardict-3.0.6-r3/work/stardict-3.0.6'

So it's required that python2_7 must be set in PYTHON_SINGLE_TARGET :(
emerge info is in attached file.
Comment 5 Andrew Savchenko gentoo-dev 2020-09-13 10:22:26 UTC
(In reply to George Tarasov from comment #4)
> The =app-text/stardict-3.0.6-r3 was built with python2_7 previously. And,
> the python2_7 was in PYTHON_SINGLE_TARGET. Now i'm trying to migrate to
> python3. I set 
> 
> PYTHON_TARGETS="python3_7 python3_8"
> PYTHON_SINGLE_TARGET="python3_7"
> 
> to the make.conf and 
> 
> >=app-text/stardict-3.0.6-r3 -gucharmap -htmlparse -powerwordparse -wikiparse -wordnet PYTHON_SINGLE_TARGET: -*
> 
> to the package.use (switch off all the default use flags).
> 
> During the build I get the following error.
> 
>  * Package:    app-text/stardict-3.0.6-r3
>  * Repository: gentoo
>  * Maintainer: bircoph@gentoo.org
>  * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
> xdxfparse
>  * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv
> usersandbox
>  * No Python implementation selected for the build. Please set
>  * the PYTHON_SINGLE_TARGET variable in your make.conf to one
>  * of the following values:
>  * 
>  * python2_7
> 
>  * ERROR: app-text/stardict-3.0.6-r3::gentoo failed (setup phase):
>  *   No supported Python implementation in PYTHON_SINGLE_TARGET.
>  * 
>  * Call stack:
>  *                 ebuild.sh, line 125:  Called pkg_setup
>  *                 ebuild.sh, line 355:  Called python-single-r1_pkg_setup
>  *   python-single-r1.eclass, line 525:  Called python_setup
>  *   python-single-r1.eclass, line 515:  Called die
>  * The specific snippet of code:
>  *   		die "No supported Python implementation in PYTHON_SINGLE_TARGET."
>  * 
>  * If you need support, post the output of `emerge --info
> '=app-text/stardict-3.0.6-r3::gentoo'`,
>  * the complete build log and the output of `emerge -pqv
> '=app-text/stardict-3.0.6-r3::gentoo'`.
>  * The complete build log is located at
> '/var/tmp/portage/app-text/stardict-3.0.6-r3/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/app-text/stardict-3.0.6-r3/temp/die.env'.
>  * Working directory: '/var/tmp/portage/app-text/stardict-3.0.6-r3/homedir'
>  * S: '/var/tmp/portage/app-text/stardict-3.0.6-r3/work/stardict-3.0.6'
> 
> So it's required that python2_7 must be set in PYTHON_SINGLE_TARGET :(
> emerge info is in attached file.

Just build it with USE="-python": you will have just a few less tools.
Comment 6 Larry the Git Cow gentoo-dev 2020-09-19 08:04:46 UTC
The bug has been closed via the following commit(s):

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

commit 68496933adcb964398fd00f85adc8d703266a771
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-09-19 07:53:03 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-09-19 08:04:41 +0000

    app-text/stardict: Eradicate python2
    
    Closes: https://bugs.gentoo.org/735248
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 ...ict-3.0.6-r3.ebuild => stardict-3.0.6-r4.ebuild} | 21 ++-------------------
 ....ebuild => stardict-4.0.0_pre20170304-r1.ebuild} | 21 ++-------------------
 2 files changed, 4 insertions(+), 38 deletions(-)