View previous topic :: View next topic |
Author |
Message |
samo Guru
Joined: 13 Mar 2004 Posts: 489
|
Posted: Mon Feb 10, 2020 8:41 pm Post subject: Problems with python targets [SOLVED] |
|
|
Hi,
I'm trying to emerge seafile-pro-server from then pentoo overlay. But I have problems to fulfill the python dependencies correctly.
Code: | # emerge -1a seafile-pro-server
These are the packages that would be merged, in order:
Calculating dependencies... done!
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by seafile-pro-server (argument)
>=www-apps/seafile-pro-server-7.0.13 -python_targets_python2_7
Would you like to add these changes to your config files? [Yes/No] |
After adding the suggested line I'm running into the next problem:
Code: | # emerge -1a seafile-pro-server
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ~] www-apps/seafile-pro-server-7.0.13 USE="-fuse" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="-python2_7"
Would you like to merge these packages? [Yes/No] Yes
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) www-apps/seafile-pro-server-7.0.13::pentoo
* The implementation chosen as PYTHON_SINGLE_TARGET must be added
* to PYTHON_TARGETS as well. This is in order to ensure that
* dependencies are satisfied correctly. We're sorry
* for the inconvenience.
* ERROR: www-apps/seafile-pro-server-7.0.13::pentoo failed (setup phase):
* Build target (python2_7) not in PYTHON_TARGETS.
*
* Call stack:
* ebuild.sh, line 125: Called pkg_setup
* ebuild.sh, line 362: Called python-single-r1_pkg_setup
* python-single-r1.eclass, line 620: Called python_setup
* python-single-r1.eclass, line 595: Called die
* The specific snippet of code:
* die "Build target (${impl}) not in PYTHON_TARGETS."
*
... |
The ebuild looks as follows:
Code: | # cat /var/lib/layman/pentoo/www-apps/seafile-pro-server/seafile-pro-server-7.0.13.ebuild
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit autotools python-single-r1
DESCRIPTION="Meta package for Seafile Pro Edition, file sync share solution"
HOMEPAGE="https://github.com/haiwen/seafile-server/ http://www.seafile.com/"
LICENSE="GPL-2+-with-openssl-exception"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="fuse"
#list of deps ./ci/requirements.txt
RDEPEND="${PYTHON_DEPS}
fuse? ( sys-fs/fuse:* )
sys-libs/libselinux
dev-libs/nss
dev-python/ldap3[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
dev-python/mysql-python[${PYTHON_USEDEP}]
dev-python/python-memcached[${PYTHON_USEDEP}]
>=dev-python/requests-2.8.0[${PYTHON_USEDEP}]
=dev-python/pillow-6*[${PYTHON_USEDEP}]
virtual/jre:*"
DEPEND="
${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]" |
It requires python 2.7. But why I have to set -python_targets_python2_7?
BR |
|
Back to top |
|
|
samo Guru
Joined: 13 Mar 2004 Posts: 489
|
Posted: Tue Feb 11, 2020 10:50 pm Post subject: |
|
|
After a reboot I could emerge seafile-pro-server without problems. |
|
Back to top |
|
|
dantrell l33t
Joined: 01 Jun 2007 Posts: 915 Location: Earth
|
Posted: Tue Feb 11, 2020 11:27 pm Post subject: Re: Problems with python targets [SOLVED] |
|
|
samo wrote: | It requires python 2.7. But why I have to set -python_targets_python2_7? |
For the record, this issue is (probably) due to changes in the python-single-r1 eclass.
For details see: No more PYTHON_TARGETS in single-r1. _________________ Dantrell B. |
|
Back to top |
|
|
|