Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828797 - www-client/firefox-78.15.0 fails to build with Python3.8+ and USE=pgo
Summary: www-client/firefox-78.15.0 fails to build with Python3.8+ and USE=pgo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-10 13:46 UTC by Nick
Modified: 2021-12-11 17:54 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,6.92 KB, application/x-info)
2021-12-10 13:59 UTC, Nick
Details
build log (www-client:firefox-78.15.0:20211210-074802.log.xz,471.21 KB, application/x-xz)
2021-12-10 14:01 UTC, Nick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick 2021-12-10 13:46:22 UTC
The build breaks with
AttributeError: module 'collections' has no attribute 'MutableMapping'

The problem is it picks up the latest python which is incompatible while not honoring 'eselect python' setting:
# eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.9
  [2]   python3.10 (fallback)
  [3]   python3.8 (fallback)

The possible solution is to disable python-3.10 in the ebuild
diff {/usr/local/portage/localovr/www-client/firefox,/usr/portage/www-client/firefox}/firefox-78.15.0.ebuild
10c10
< PYTHON_COMPAT=( python3_{7..9} )
---
> PYTHON_COMPAT=( python3_{7..10} )

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-10 13:53:45 UTC
Note that "eselect python" is for the benefit of users, it doesn't affect the version chosen in ebuilds. PYTHON_*TARGET(S) is used for that.

Please upload the full build.log and emerge --info.
Comment 2 Nick 2021-12-10 13:59:29 UTC
Created attachment 758124 [details]
emerge --info
Comment 3 Nick 2021-12-10 14:01:30 UTC
Created attachment 758125 [details]
build log
Comment 4 Larry the Git Cow gentoo-dev 2021-12-11 17:54:46 UTC
The bug has been closed via the following commit(s):

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

commit 61810f2ce722e484b7dd0baa263b5c7c5efc4256
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-12-11 17:37:27 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-12-11 17:54:32 +0000

    www-client/firefox: fix building against Python3.8+ and USE=pgo
    
    Closes: https://bugs.gentoo.org/828797
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 www-client/firefox/Manifest               | 2 +-
 www-client/firefox/firefox-78.15.0.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)