Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828482 - dev-python/sqlalchemy: missing dependency on dev-python/greenlet from 'pip check' in www-client/firefox build
Summary: dev-python/sqlalchemy: missing dependency on dev-python/greenlet from 'pip ch...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-06 21:16 UTC by maxi_kroeg
Modified: 2021-12-10 00:03 UTC (History)
6 users (show)

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


Attachments
firefox 95.0.0 build log (www-client:firefox-95.0:20211206-202359.log.xz,4.16 KB, application/x-xz)
2021-12-06 21:16 UTC, maxi_kroeg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maxi_kroeg 2021-12-06 21:16:15 UTC
Created attachment 757583 [details]
firefox 95.0.0 build log

firefox-95.0.0 did not compile without manually installing greenlet, which apparently is required by sqlalchemy.

It is compiling now after I emerged greenlet first.

emerge --info:

Portage 3.0.28 (python 3.9.8-final-0, default/linux/amd64/17.1/desktop, gcc-11.2.1, glibc-2.33-r7, 5.15.5-gentoo x86_64)
=================================================================
System uname: Linux-5.15.5-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1100T_Processor-with-glibc2.33
KiB Mem:    16350832 total,   5779868 free
KiB Swap:   16777212 total,  16276468 free
Timestamp of repository gentoo: Mon, 06 Dec 2021 19:30:01 +0000
Head commit of repository gentoo: 1396fdcf8db5a47da2a6da801c0a746fbbdf7ddd
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
distcc 3.4 x86_64-pc-linux-gnu [disabled]
ccache version 4.4.2 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r3::gentoo
dev-lang/python:          3.9.8::gentoo
dev-lang/rust:            1.56.1::gentoo
dev-util/ccache:          4.4.2::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.44.8::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            8.4.0-r2::gentoo, 8.5.0-r1::gentoo, 9.3.0-r2::gentoo, 9.4.0::gentoo, 10.3.0-r2::gentoo, 11.2.1_p20211127::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:

electron
    location: /var/lib/layman/electron
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=6 --ask --tree"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ https://ftp.fau.de/gentoo https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ https://mirror.leaseweb.com/gentoo/ https://mirror.netcologne.de/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/https://ftp.gwdg.de/pub/linux/gentoo/ https://ftp.tu-ilmenau.de/mirror/gentoo/ https://ftp.uni-hannover.de/gentoo/ https://packages.hs-regensburg.de/gentoo-distfiles/ https://mirrors.ircam.fr/pub/gentoo-distfiles/ https://mirrors.soeasyto.com/distfiles.gentoo.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -l6"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 bluray branding bzip2 cairo cdda cdr cleartype cli corefonts crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg jumbo-build lcms libglvnd libnotify libtirpc mad mmx mmxext mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png pni policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr sse sse2 sse3 ssl startup-notification svg tiff truetype type3 udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-06 23:37:56 UTC
- Need to sed it out on hppa/ia64?
- Need to stable a newer version I suppose
Comment 2 Andrey Grozin gentoo-dev 2021-12-07 12:05:56 UTC
I have dev-python/greenlet-1.1.2 installed. However, compiling firefox-95.0 fails in exactly the same way.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-12-07 12:39:44 UTC
Let's strip the dep entirely since the package works without it.
Comment 4 Andrey Grozin gentoo-dev 2021-12-07 14:25:26 UTC
I get exactly the same

Traceback (most recent call last):
  File "/var/tmp/portage/www-client/firefox-95.0/work/firefox-95.0/./mach", line 167, in <module>
    main(sys.argv[1:])
  File "/var/tmp/portage/www-client/firefox-95.0/work/firefox-95.0/./mach", line 159, in main
    mach = check_and_get_mach(os.path.dirname(os.path.realpath(__file__)))
  File "/var/tmp/portage/www-client/firefox-95.0/work/firefox-95.0/./mach", line 146, in check_and_get_mach
    return load_mach(dir_path, mach_path)
  File "/var/tmp/portage/www-client/firefox-95.0/work/firefox-95.0/./mach", line 134, in load_mach
    return mach_initialize.initialize(dir_path)
  File "/var/tmp/portage/www-client/firefox-95.0/work/firefox-95.0/build/mach_initialize.py", line 291, in initialize
    _activate_python_environment(topsrcdir)
  File "/var/tmp/portage/www-client/firefox-95.0/work/firefox-95.0/build/mach_initialize.py", line 233, in _activate_python_environment
    raise Exception(
Exception: According to "pip check", the current Python environment has package-compatibility issues.

as in the attached build log. But I have dev-python/greenlet-1.1.2 installed. I don't have dev-python/sqlalchemy installed. Why is this bug related to dev-python/sqlalchemy? Does firefix need it?
Comment 5 Larry the Git Cow gentoo-dev 2021-12-08 00:39:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20edee675a7688b6c022160112a098a0fe828b0d

commit 20edee675a7688b6c022160112a098a0fe828b0d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-08 00:35:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-08 00:39:13 +0000

    dev-python/sqlalchemy: disable greenlet dependency conditionally
    
    We should try pull it in on arches where it's possible
    but we shouldn't hard require it given most things
    work fine without it.
    
    Some applications do need it though, so do this
    conditionally so they can depend on it rather
    than ending up being broken by depcleans
    or requiring people to put it in world files.
    
    Closes: https://bugs.gentoo.org/828482
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/sqlalchemy-1.4.27-drop-greenlet.patch    | 49 ++++++++++++++++++++++
 ....4.27-r2.ebuild => sqlalchemy-1.4.27-r3.ebuild} | 12 +++++-
 2 files changed, 59 insertions(+), 2 deletions(-)
Comment 6 Larry the Git Cow gentoo-dev 2021-12-08 00:41:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=125f99ce283bc3aa4e897c2ae840552ab32e37f2

commit 125f99ce283bc3aa4e897c2ae840552ab32e37f2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-08 00:41:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-08 00:41:07 +0000

    dev-python/sqlalchemy: add use description for asyncio
    
    Bug: https://bugs.gentoo.org/828482
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/sqlalchemy/metadata.xml | 3 +++
 1 file changed, 3 insertions(+)