Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891389 - www-client/firefox-109.0: AttributeError: 'NoneType' object has no attribute 'read' on ppc64
Summary: www-client/firefox-109.0: AttributeError: 'NoneType' object has no attribute ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-19 13:47 UTC by darkbasic
Modified: 2023-07-19 06:23 UTC (History)
0 users

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


Attachments
build.log (build.log,62.22 KB, text/plain)
2023-01-19 13:48 UTC, darkbasic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkbasic 2023-01-19 13:47:33 UTC
0:48.94 Reticulating splines...
 0:49.65  0:00.78 File already read. Skipping: /var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/intl/components/moz.build
 0:50.27  0:01.41 File already read. Skipping: /var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/gfx/angle/targets/angle_common/moz.build
 0:54.44 Traceback (most recent call last):
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/sandbox.py", line 159, in exec_file
 0:54.44     source = six.ensure_text(self._finder.get(path).read())
 0:54.44                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:54.44 AttributeError: 'NoneType' object has no attribute 'read'
 0:54.44 
 0:54.44 During handling of the above exception, another exception occurred:
 0:54.44 
 0:54.44 Traceback (most recent call last):
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1096, in read_mozbuild
 0:54.44     for s in self._read_mozbuild(
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1168, in _read_mozbuild
 0:54.44     sandbox.exec_file(path)
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 239, in exec_file
 0:54.44     Sandbox.exec_file(self, path)
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/sandbox.py", line 161, in exec_file
 0:54.44     raise SandboxLoadError(
 0:54.44 mozbuild.frontend.sandbox.SandboxLoadError: ([], <traceback object at 0x3fff74e0ae80>)
 0:54.44 
 0:54.44 During handling of the above exception, another exception occurred:
 0:54.44 
 0:54.44 Traceback (most recent call last):
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/configure.py", line 346, in <module>
 0:54.44     sys.exit(main(sys.argv))
 0:54.44              ^^^^^^^^^^^^^^
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/configure.py", line 158, in main
 0:54.44     return config_status(config)
 0:54.44            ^^^^^^^^^^^^^^^^^^^^^
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/configure.py", line 297, in config_status
 0:54.44     return config_status(args=[], **sanitized_config)
 0:54.44            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/config_status.py", line 162, in config_status
 0:54.44     definitions = list(definitions)
 0:54.44                   ^^^^^^^^^^^^^^^^^
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/emitter.py", line 150, in emit
 0:54.44     for out in output:
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 924, in read_topsrcdir
 0:54.44     for r in self.read_mozbuild(path, self.config):
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1102, in read_mozbuild
 0:54.44     raise bre
 0:54.44   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1096, in read_mozbuild
 0:54.45     for s in self._read_mozbuild(
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1260, in _read_mozbuild
 0:54.45     for res in self.read_mozbuild(
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1102, in read_mozbuild
 0:54.45     raise bre
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1096, in read_mozbuild
 0:54.45     for s in self._read_mozbuild(
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1260, in _read_mozbuild
 0:54.45     for res in self.read_mozbuild(
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1102, in read_mozbuild
 0:54.45     raise bre
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1096, in read_mozbuild
 0:54.45     for s in self._read_mozbuild(
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1260, in _read_mozbuild
 0:54.45     for res in self.read_mozbuild(
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1102, in read_mozbuild
 0:54.45     raise bre
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1096, in read_mozbuild
 0:54.45     for s in self._read_mozbuild(
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1260, in _read_mozbuild
 0:54.45     for res in self.read_mozbuild(
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1102, in read_mozbuild
 0:54.45     raise bre
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1096, in read_mozbuild
 0:54.45     for s in self._read_mozbuild(
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1260, in _read_mozbuild
 0:54.45     for res in self.read_mozbuild(
 0:54.45   File "/var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/python/mozbuild/mozbuild/frontend/reader.py", line 1115, in read_mozbuild
 0:54.45     raise BuildReaderError(
 0:54.46 mozbuild.frontend.reader.BuildReaderError:
 0:54.46 ==============================
 0:54.46 FATAL ERROR PROCESSING MOZBUILD FILE
 0:54.46 ==============================
 0:54.46 
 0:54.46 The error occurred while processing the following file:
 0:54.46 
 0:54.46     /var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/third_party/libwebrtc/moz.build
 0:54.46 
 0:54.46 The underlying problem is we referenced a path that does not exist. That path is:
 0:54.46 
 0:54.46     /var/tmp/portage/www-client/firefox-109.0/work/firefox-109.0/third_party/libwebrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build
 0:54.46 
 0:54.46 Either create the file if it needs to exist or do not reference it.
 0:54.46 
*** Fix above errors and then restart with "./mach build"
 * ERROR: www-client/firefox-109.0::gentoo failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_configure
 *   environment, line 5610:  Called die
 * The specific snippet of code:
 *       ./mach configure || die

Reproducible: Always
Comment 1 darkbasic 2023-01-19 13:48:37 UTC
Created attachment 848823 [details]
build.log

talos2 ~ # emerge --info
Portage 3.0.43 (python 3.10.9-final-0, default/linux/ppc64le/17.0/desktop/gnome/systemd/merged-usr, gcc-11, glibc-2.36-r5, 6.1.6-gentoo-dist ppc64le)
=================================================================
System uname: Linux-6.1.6-gentoo-dist-ppc64le-POWER9,_altivec_supported-with-glibc2.36
KiB Mem:    65402624 total,  17977096 free
KiB Swap:   16777212 total,  16431832 free
Timestamp of repository gentoo: Thu, 19 Jan 2023 12:47:02 +0000
Head commit of repository gentoo: dec82c38640400328bdcb7816afa8837ac68362c

Timestamp of repository bobwya: Tue, 17 Jan 2023 20:47:33 +0000
Head commit of repository bobwya: 52c0286b2d6cd4023809fdf3c706fb2c54b29b3f

Timestamp of repository guru: Mon, 16 Jan 2023 21:17:23 +0000
Head commit of repository guru: 1c33f1b1e702bca0535f3aad0cc4964b46769257

Timestamp of repository pf4public: Wed, 18 Jan 2023 23:32:03 +0000
Head commit of repository pf4public: c8b970106506cc38805c9123f1ad630aee9ec0e0

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.7.4 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.9::gentoo, 3.11.1::gentoo
dev-lang/rust:             1.66.1::gentoo
dev-util/ccache:           4.7.4::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.64.1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          252.4::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             11.3.1_p20221209::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: True
    sync-git-verify-commit-signature: yes

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/bobwya.git
    masters: gentoo
    volatile: True

darkbasic
    location: /var/db/repos/darkbasic
    masters: gentoo
    volatile: True

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: True

pf4public
    location: /var/db/repos/pf4public
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pf4public.git
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE @FREE unRAR fping freedist"
CBUILD="powerpc64le-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
CHOST="powerpc64le-unknown-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.4/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php7.4/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php7.4/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
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="-O2 -pipe -mcpu=power9 -mtune=power9"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
GENTOO_MIRRORS="https://gentoo.mirror.garr.it/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j32"
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"
SHELL="/bin/bash"
USE="X a52 aac acl alsa bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls nptl ogg opencl opengl openmp pam pango pcre pdf pipewire png policykit ppc64 ppds pulseaudio qt5 readline screencast sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff tracker truetype udev udisks unicode upower usb vaapi vorbis vpx vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zeroconf zlib" ADA_TARGET="gnat_2021" 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_PPC="altivec vsx vsx2 vsx3" 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-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="ppc ppc64 i386 x86_64 arm aarch64" QEMU_USER_TARGETS="ppc ppc64 i386 x86_64 arm aarch64" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon" 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:  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, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-19 22:00:53 UTC
In future, please ansifilter logs to make them easier to read/grep.

You can do this automatically by installing app-text/ansifilter and putting:
PORTAGE_LOG_FILTER_FILE_CMD="bash -c \"ansifilter; exec cat\""
in make.conf
Comment 3 darkbasic 2023-01-20 09:47:25 UTC
Done, thanks!
Comment 4 Joonas Niilola gentoo-dev 2023-01-20 12:54:57 UTC
Right, so need to pass --disable-webrtc on ppc64 (which fedora seems to be doing too).
Comment 5 Larry the Git Cow gentoo-dev 2023-01-23 07:07:17 UTC
The bug has been referenced in the following commit(s):

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

commit f0a36facc56573707efebc07c743e0ed7e8ddd44
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2023-01-23 07:03:26 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2023-01-23 07:04:10 +0000

    www-client/firefox: fix 109 webrtc build on ppc64le
    
    Bug: https://bugs.gentoo.org/891389
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 ...bmo-1775202-ppc64-webrtc-missing-conditions-109.patch | 16 ++++++++++++++++
 www-client/firefox/firefox-109.0.ebuild                  |  7 +++++++
 2 files changed, 23 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2023-01-24 10:01:37 UTC
The bug has been referenced in the following commit(s):

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

commit d361fad3aa2fb3229d5ec972268ec52da37f5abc
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-01-24 09:51:51 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-01-24 10:01:30 +0000

    www-client/firefox: update patchset for 109.0
    
     - include gcc-13 fixes,
     - include updated webrtc patch on ppc64.
    
    Closes: https://bugs.gentoo.org/891643
    Bug: https://bugs.gentoo.org/891389
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

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