Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945857 - mail-client/thunderbird-128.5.1 fails to build: /usr/lib/python3.12/site-packages' is not in the subpath ...
Summary: mail-client/thunderbird-128.5.1 fails to build: /usr/lib/python3.12/site-pack...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 945849 945850
  Show dependency tree
 
Reported: 2024-12-04 12:13 UTC by Michelangelo Scopelliti
Modified: 2024-12-10 12:20 UTC (History)
13 users (show)

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


Attachments
build log (thunderbird-128.5.1:20241204-120432.log.gz,5.99 KB, application/gzip)
2024-12-04 12:13 UTC, Michelangelo Scopelliti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michelangelo Scopelliti 2024-12-04 12:13:32 UTC
Created attachment 913293 [details]
build log

After a system upgrade, I'm not able to build thunderbird any more. The bug report refers to 128.5.1, but I have the same results trying to rebuild 128.5.0.

[ebuild     U ] mail-client/thunderbird-128.5.1 [128.5.0] USE="X clang dbus eme-free hwaccel libproxy lto pulseaudio rust-extensions system-av1 system-harfbuzz system-jpeg system-libevent system-librnp system-libvpx system-webp wayland -debug -hardened -jack (-pgo) (-selinux) -sndio (-system-icu) -system-png -wifi" L10N="it -af -ar -ast -be -bg -br -ca -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -es-AR -es-ES -es-MX -et -eu -fi -fr -fy -ga -gd -gl -he -hr -hsb -hu -id -is -ja -ka -kab -kk -ko -lt -lv -ms -nb -nl -nn -pa -pl -pt-BR -pt-PT -rm -ro -ru -sk -sl -sq -sr -sv -th -tr -uk -uz -vi -zh-CN -zh-TW" LLVM_SLOT="19 -17 -18"

fails in the configure phase, with details

ValueError: '/usr/lib/python3.12/site-packages' is not in the subpath of '/var/tmp/portage/mail-client/thunderbird-128.5.1/work/thunderbird_build/srcdirs/thunderbird-128.5.1-f8987be1a4e5/_virtualenvs/build'

  File "/var/tmp/portage/mail-client/thunderbird-128.5.1/work/thunderbird-128.5.1/python/mozbuild/mozbuild/build_commands.py", line 255, in configure
    return driver.configure(
           ^^^^^^^^^^^^^^^^^
  File "/var/tmp/portage/mail-client/thunderbird-128.5.1/work/thunderbird-128.5.1/python/mozbuild/mozbuild/controller/building.py", line 1610, in configure
    build_site.ensure()
  File "/var/tmp/portage/mail-client/thunderbird-128.5.1/work/thunderbird-128.5.1/python/mach/mach/site.py", line 563, in ensure
    result = self._up_to_date()
             ^^^^^^^^^^^^^^^^^^
  File "/var/tmp/portage/mail-client/thunderbird-128.5.1/work/thunderbird-128.5.1/python/mach/mach/site.py", line 800, in _up_to_date
    pthfile_lines = self._pthfile_lines()
                    ^^^^^^^^^^^^^^^^^^^^^
  File "/var/tmp/portage/mail-client/thunderbird-128.5.1/work/thunderbird-128.5.1/python/mach/mach/site.py", line 790, in _pthfile_lines
    _deprioritize_venv_packages(self._virtualenv, self._populate_virtualenv)
  File "/var/tmp/portage/mail-client/thunderbird-128.5.1/work/thunderbird-128.5.1/python/mach/mach/site.py", line 1244, in _deprioritize_venv_packages
    for site_packages_dir in virtualenv.site_packages_dirs()
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/tmp/portage/mail-client/thunderbird-128.5.1/work/thunderbird-128.5.1/python/mach/mach/site.py", line 853, in site_packages_dirs
    platlib = self.resolve_sysconfig_packages_path("platlib")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/tmp/portage/mail-client/thunderbird-128.5.1/work/thunderbird-128.5.1/python/mach/mach/site.py", line 843, in resolve_sysconfig_packages_path
    relative_path = path.relative_to(data_path)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/pathlib.py", line 682, in relative_to
    raise ValueError(f"{str(self)!r} is not in the subpath of {str(other)!r}")

------

emerge --info '=mail-client/thunderbird-128.5.1::gentoo'

Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0, gcc-14, glibc-2.40-r5, 6.12.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.12.1-gentoo-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.40
KiB Mem:    65759544 total,  32330624 free
KiB Swap:  100663292 total, 100663292 free
Timestamp of repository gentoo: Wed, 04 Dec 2024 11:03:45 +0000
Head commit of repository gentoo: 0fd804aa082077464407a245116c1717e560e7c8

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.8::gentoo, 3.13.1::gentoo
dev-lang/rust:             1.83.0::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.40::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           18.1.8-r6::gentoo, 19.1.5::gentoo
sys-devel/gcc:             14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             18.1.8::gentoo, 19.1.5::gentoo
sys-devel/llvm:            18.1.8-r6::gentoo, 19.1.5::gentoo
sys-kernel/linux-headers:  6.11::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

kernelpanic
    location: /var/db/repos/kernelpanic
    masters: gentoo
    priority: 0
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.mirror.garr.it/releases/amd64/binpackages/23.0/x86-64-v3

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=native -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live clean-logs compress-build-logs config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict strict-keepdir unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-march=native -mtune=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.UTF-8"
LDFLAGS="-fuse-ld=mold -Wl,-O2 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,x86-64-v3"
LEX="flex"
MAKEOPTS="-j32 -l33"
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"
RUSTFLAGS="-C target-cpu=native -C opt-level=2 -C link-args=-fuse-ld=mold -C link-args=-Wl,-O2 -C link-args=-Wl,--as-needed -C link-args=-Wl,-z,pack-relative-relocs -C link-args=-Wl,-z,x86-64-v3"
SHELL="/bin/bash"
USE="X acl acpi alsa amd64 amr ao archive avif bluray boost branding brotli bzip2 cairo caps cdda cet clang crypt cups curl dbus djvu drm dvb dvd egl elogind encode eps eselect-ldso exif fdk ffmpeg fftw flac fontconfig fortran fribidi gdbm gif gimp gles2 gmp gsm gtk harfbuzz heif http2 hwaccel iconv icu imlib inotify ipv6 jbig jemalloc jit jpeg jpeg2k jpegxl lapack latex lcms libass libproxy libsamplerate libtirpc llvm lto lz4 lzip lzma lzo mng mp3 multilib natspec ncurses nls offensive ogg openal opencl opencv openexr opengl openmp openssl opus pam pango pcre pdf pipewire png policykit postproc postscript pulseaudio raw readline rubberband seccomp smp sndfile sound sox speex spell ssl svg tbb test-rust theora threads tiff truetype udev udisks unicode usb v4l vaapi vdpau vidstab vim-syntax vorbis vpx vulkan wavpack wayland webp wmf x264 x265 xattr xcb xdg xetex xml xpm xv xvid zeroconf zip zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" OPENMPI_FABRICS="knem" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="aarch64 arm x86_64" QEMU_USER_TARGETS="aarch64 arm x86_64" RUBY_TARGETS="ruby33" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-04 12:16:59 UTC
This might be new Python related.
Comment 2 Joonas Niilola gentoo-dev 2024-12-04 12:27:01 UTC
Yeah, I built thunderbird-128.5.1 yesterday using python-3.12.7_p1.
Comment 3 dave@dave3.xyz 2024-12-04 19:03:23 UTC
This issue happened to me when trying to build with python-3.12.8
Comment 4 tt_1 2024-12-04 19:16:31 UTC
I had a similar error with firefox, solved by downgrading to python-3.12.7_p1
Comment 5 Fernando Cunha 2024-12-05 12:53:58 UTC
Thanks, will downgrade python to temporarily resolve it. It happens with firefox-133 also
Comment 6 Gary E. Miller 2024-12-07 00:42:50 UTC
#MeToo
Comment 7 Greg Kubaryk 2024-12-07 00:49:56 UTC
(In reply to Gary E. Miller from comment #6)
> #MeToo

You can add yourself to the CC list of a bug without leaving a comment by using the "Add me to CC list" checkbox.
Comment 8 Larry the Git Cow gentoo-dev 2024-12-07 11:27:02 UTC
The bug has been referenced in the following commit(s):

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

commit b8d345dfd9f4670b75e9b9bc1e4a583590c4fc8c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-07 11:24:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-07 11:26:46 +0000

    profiles: mask =dev-lang/python-3.12.8 and =dev-lang/python-3.13.1
    
    3.12.8 and 3.13.1 break Mozilla's build system `mach` which is used in
    firefox, thunderbird, and spidermonkey. It's not clear if it's a CPython
    bug or a Mozilla bug (I've informed both sides) but the CVEs fixed in
    these security releases are rather minor indeed, especially when weighed
    against those packages being unbuildable.
    
    LLVM 19 and Rust 1.82.0 got stabled last night together with a default
    change to LLVM 19 which means more users will hit this too as they have
    to rebuild FF and friends.
    
    Done as lesser of two evils after discussion w/ mgorny.
    
    Bug: https://bugs.gentoo.org/945857
    Bug: https://bugs.gentoo.org/945882
    Bug: https://bugs.gentoo.org/946002
    Bug: https://bugs.gentoo.org/945850
    Bug: https://bugs.gentoo.org/945849
    Bug: https://bugs.gentoo.org/945845
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 9 Andrew Aladjev 2024-12-08 12:49:18 UTC
Hello, I want just to notice that I've reproduced this issue for thunderbird and firefox on alpine. So this issue looks like platform independent.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-08 21:51:19 UTC
(In reply to Andrew Aladjev from comment #9)
> Hello, I want just to notice that I've reproduced this issue for thunderbird
> and firefox on alpine. So this issue looks like platform independent.

Thanks, but the problem is clear and well-understood at this point (and reported upstream to Mozilla).
Comment 11 Larry the Git Cow gentoo-dev 2024-12-09 06:44:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=016bc9e46bca1972c3135baf0b13457a3f294f4e

commit 016bc9e46bca1972c3135baf0b13457a3f294f4e
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2024-12-09 06:42:26 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-12-09 06:44:17 +0000

    mail-client/thunderbird: fix python-3.12.8 issue on 128.5.0
    
     - include a patch from upstream bug #1935621.
    
    Closes: https://bugs.gentoo.org/945857
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 mail-client/thunderbird/Manifest                   | 1 -
 mail-client/thunderbird/thunderbird-128.5.0.ebuild | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit ed5a69683c8b73b528fe720a98316232378b06d4
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2024-12-09 06:41:37 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-12-09 06:44:17 +0000

    mail-client/thunderbird: fix python-3.12.8 issue on 128.5.1
    
     - include a patch from upstream bug #1935621.
    
    Bug: https://bugs.gentoo.org/945857
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 mail-client/thunderbird/Manifest                   | 1 +
 mail-client/thunderbird/thunderbird-128.5.1.ebuild | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Comment 12 Larry the Git Cow gentoo-dev 2024-12-10 07:29:35 UTC
The bug has been referenced in the following commit(s):

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

commit dc748f0c28bf1de31edeb0c62de5ce2c4662e2c1
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2024-12-10 07:26:25 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-12-10 07:26:25 +0000

    profiles: unmask =dev-lang/python-3.12.8 and =dev-lang/python-3.13.1
    
     - Mozilla stack, both latest stable and unstable, is handled with an upstream
       patch for these python versions.
    
    Bug: https://bugs.gentoo.org/945857
    Bug: https://bugs.gentoo.org/945882
    Bug: https://bugs.gentoo.org/946002
    Bug: https://bugs.gentoo.org/945850
    Bug: https://bugs.gentoo.org/945849
    Bug: https://bugs.gentoo.org/945845
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 profiles/package.mask | 10 ----------
 1 file changed, 10 deletions(-)