Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

No supported Python implementation in PYTHON_SINGLE_TARGET

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
sam-510
n00b
n00b
Posts: 21
Joined: Wed Nov 08, 2023 11:26 am

No supported Python implementation in PYTHON_SINGLE_TARGET

  • Quote

Post by sam-510 » Wed Nov 08, 2023 3:58 pm

When I try to install the Kopano Core package using the ebuild file, all the dependencies emerge successfully. However, when it comes to Kopano Core itself, I encounter an error. Can someone please help me resolve this issue?

Code: Select all

* Messages for package net-mail/kopanocore-9999:

 * No Python implementation selected for the build. Please set
 * the PYTHON_SINGLE_TARGET variable in your make.conf to one
 * of the following values:
 *
 *
 * ERROR: net-mail/kopanocore-9999::kopano-overlay failed (setup phase):
 *   No supported Python implementation in PYTHON_SINGLE_TARGET.
 *
 * Call stack:
 *                 ebuild.sh, line 136:  Called pkg_setup
 *    kopanocore-9999.ebuild, line  67:  Called python-single-r1_pkg_setup
 *   python-single-r1.eclass, line 452:  Called python_setup
 *   python-single-r1.eclass, line 442:  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 '=net-mail/kopanocore-9999::kopano-overlay'`,
 * the complete build log and the output of `emerge -pqv '=net-mail/kopanocore-9999::kopano-overlay'`.
 * The complete build log is located at '/var/tmp/portage/net-mail/kopanocore-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/kopanocore-9999/temp/die.env'.
 * Working directory: '/var/tmp/portage/net-mail/kopanocore-9999/empty'
 * S: '/var/tmp/portage/net-mail/kopanocore-9999/work/kopanocore-9999'

 * GNU info directory index is up-to-date.
And here is the ebuild file incase anything wrong in that file please correct me

Code: Select all

# cat kopanocore-9999.ebuild
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PHP_EXT_NAME="mapi"
PHP_EXT_INI="yes"
USE_PHP="php8-1"

PYTHON_COMPAT=( python3_7 python3_8  python3_10)

inherit autotools eutils flag-o-matic git-r3 php-ext-source-r3 python-single-r1

DESCRIPTION="Open Source Groupware Solution"
HOMEPAGE="http://kopano.io/"

EGIT_REPO_URI="https://stash.kopano.io/git/KC/kopanocore.git"

#KOPANO_USER=${KOPANO_USER:-kopano}
#KOPANO_GROUP=${KOPANO_GROUP:-kopano}

KOPANO_SERVICES="dagent gateway ical monitor presence search server spooler"

LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror"
IUSE="debug icu kerberos ldap logrotate s3 static tcmalloc"

RDEPEND="${PYTHON_DEPS}
        acct-group/kopano
        acct-user/kopano
        logrotate? ( app-admin/logrotate )
        app-arch/unzip
        app-text/catdoc
        app-text/poppler[utils]
        app-text/xmlto[text]
        dev-libs/boost
        icu? ( dev-libs/icu )
        >=dev-cpp/libvmime-0.9.2[smtp]
        dev-lang/python
        dev-lang/swig
        >=dev-libs/libical-0.44
        dev-libs/libxml2
        dev-libs/openssl
        dev-libs/xapian-bindings[python]
        >=net-libs/gsoap-2.8.39
        net-misc/curl
        sys-fs/e2fsprogs
        sys-libs/zlib
        dev-python/flask
        >=dev-python/python-daemon-1.6
        dev-python/python-dateutil
        dev-python/python-magic
        tcmalloc? ( dev-util/google-perftools )
        s3? ( net-libs/libs3 )
        ldap? ( net-nds/openldap )
        virtual/httpd-php
        kerberos? ( virtual/krb5 )
        virtual/mysql"
DEPEND="${RDEPEND}
        virtual/pkgconfig
        sys-devel/gettext"
#       python_single_target_python2_7? ( dev-python/bsddb3 )

pkg_setup() {
        python-single-r1_pkg_setup

        enewgroup "${KOPANO_GROUP}"
        enewuser "${KOPANO_USER}" -1 -1 "/var/lib/kopano" "${KOPANO_GROUP}"
}

src_unpack() {
        git-r3_src_unpack
}

src_prepare() {
        # prepare php slot folders to make php-ext-source-r3_createinifiles work
        use php_targets_php5-6 && ln -s "${S}/php-ext" "${WORKDIR}/php5.6"
        use php_targets_php7-0 && ln -s "${S}/php7-ext" "${WORKDIR}/php7.0"
        use php_targets_php8-1 && ln -s "${S}/php8-ext" "${WORKDIR}/php8.1"

        epatch "${FILESDIR}/kopanocore-8.2.0-automake.patch"
        use kerberos && epatch "${FILESDIR}/kopanocore-8.2.0-kerberos.patch"
        epatch "${FILESDIR}/kopanocore-8.2.0-php.patch"
#       use python_single_target_python2_7 && epatch "${FILESDIR}/kopanocore-8.2.0-python2_7.patch"
        epatch "${FILESDIR}/kopanocore-8.2.0-search.patch"
        eapply_user
        eautoreconf
}

src_configure() {
        append-flags -fpermissive
        econf \
                --enable-release \
                --enable-unicode \
                --enable-epoll \
                --with-userscript-prefix=/etc/kopano/userscripts \
                --with-quotatemplate-prefix=/etc/kopano/quotamails \
                --with-searchscripts-prefix=/etc/kopano/searchscripts \
                $(use_enable debug) \
                $(use_enable icu) \
                $(use_enable static)
}

src_compile() {
        emake || die "emake failed"
}

src_install() {
        make DESTDIR="${D}" install || die "make install failed"

        php-ext-source-r3_createinifiles

        if use logrotate; then
                insinto /etc/logrotate.d
                newins "${FILESDIR}"/kopano.logrotate kopano || die "Failed to install logrotate"
        else
                rm "${D}/etc/logrotate.d/kopano"
        fi
        if use ldap; then
                insinto /etc/openldap/schema
                doins "${S}"/installer/ldap/kopano.* || die "Failed to install ldap schema files"
        fi

        dodir /etc/kopano
        insinto /etc/kopano
        doins "${S}"/installer/linux/*.cfg || die "Failed to install config files"
        fowners -Rf "${KOPANO_USER}":"root" "/etc/kopano"

        dodir /var/log/kopano
        keepdir /var/log/kopano
        fowners -Rf "${KOPANO_USER}":"root" "/var/log/kopano"

        dodir /var/lib/kopano
        keepdir /var/lib/kopano
        dodir /var/lib/kopano/spooler/plugins
        dodir /var/lib/kopano/dagent/plugins
        fowners -Rf "${KOPANO_USER}":"root" "/var/lib/kopano"

        for service in ${KOPANO_SERVICES}; do
                newconfd "${FILESDIR}/kopano-${service}.confd" "kopano-${service}"
                newinitd "${FILESDIR}/kopano-${service}.initd" "kopano-${service}"
        done
}

pkg_postinst() {
        elog
        elog "Kopano Core has been successfully emerged!"
        elog
        elog "Kopano Core replaces the former ZCP package."
        elog
        elog "Please check the following URL for how to migrate:"
        elog "    https://kb.kopano.io/display/WIKI/Migrating+from+ZCP+to+Kopano"
        elog
}
[Moderator edit: added [code] tags to preserve output layout. -Hu]
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Nov 08, 2023 4:17 pm

Welcome to the forums. This is from an overlay, so the correct forum is Unsupported Software. Moved.

As to your problem:
sam-510 wrote:

Code: Select all

* Messages for package net-mail/kopanocore-9999:

 * No Python implementation selected for the build. Please set
 * the PYTHON_SINGLE_TARGET variable in your make.conf to one
 * of the following values:
What value is this set to currently?
sam-510 wrote:

Code: Select all

PYTHON_COMPAT=( python3_7 python3_8  python3_10)
3.7 and 3.8 are stale and can be dropped. Can 3.11 and 3.12 be added, or is this package incompatible with those versions?
sam-510 wrote:

Code: Select all

src_install() {
        make DESTDIR="${D}" install || die "make install failed"
This should be emake.
Top
sam-510
n00b
n00b
Posts: 21
Joined: Wed Nov 08, 2023 11:26 am

  • Quote

Post by sam-510 » Thu Nov 09, 2023 6:57 am

Thank You for Responding Hu
regarding value this is what i found

Code: Select all

eix kopano
[I] acct-group/kopano [1]
     Available versions:  0-r1
     Installed versions:  0-r1(14:56:35 11/08/23)
     Description:         grafana program group

[I] acct-user/kopano [1]
     Available versions:  0-r1
     Installed versions:  0-r1(14:59:30 11/08/23)
     Description:         kopano program user

* net-mail/kopanocore [1]
     Available versions:  (~)8.6.81^m (~)8.7.20^m (~)9999*l^m {debug icu kerberos ldap logrotate s3 static tcmalloc PHP_TARGETS="php7-4"}
     Homepage:            http://kopano.io/
     Description:         Open Source Groupware Solution

[I] www-apps/kopano-webapp [1]
     Available versions:  (5.1.0) (~)5.1.0^m
       {debug plugin_contactfax plugin_filepreviewer plugin_files plugin_gmaps plugin_mdm plugin_pimfolder plugin_smime vhosts}
     Installed versions:  5.1.0(5.1.0)^m(12:51:18 10/30/23)(-debug -plugin_contactfax -plugin_filepreviewer -plugin_files -plugin_gmaps -plugin_mdm -plugin_pimfolder -plugin_smime -vhosts)
     Homepage:            http://kopano.io/
     Description:         Open Source Groupware Solution
If this is not helpful could you please tell me where i need to check that.
regarding PYTHON_COMPAT i try to change versions but expecting same error
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Nov 09, 2023 1:05 pm

That is not helpful, as it has no reference to PYTHON_SINGLE_TARGET. Fortunately, your post in the other thread includes emerge --info output, which is helpful. Your PYTHON_SINGLE_TARGET is set to python3_11, which is reasonable for a Gentoo current as of today. However, as I noted in this thread, your target ebuild lacks support for Python newer than 3.10, hence your error. Please update the ebuild to be compatible with 3.11 (and preferably 3.12), then try again. Alternately, you could set an older PYTHON_SINGLE_TARGET for this ebuild, but that may have a cascade effect, and is only delaying the inevitable.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy