Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 818835

Summary: dev-lang/spidermonkey-78.14.0 (and possibly others) needs python[ssl] at build time
Product: Gentoo Linux Reporter: Andreas K. Hüttel <dilfridge>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED FIXED    
Severity: normal CC: releng
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas K. Hüttel archtester gentoo-dev 2021-10-18 19:02:30 UTC
>>> Jobs: 0 of 59 complete, 1 failed                Load avg: 5.44, 3.71, 2.82
 * Package:    dev-lang/spidermonkey-78.14.0
 * Repository: gentoo
 * Maintainer: mozilla@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc jit kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Checking for at least 6400 MiB disk space at "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/temp" ...
 [ ok ]
 * Using LLVM slot 12 to build
 * Using python3.9 to build
Unable to configure loopback interface: Operation not permitted
>>> Unpacking source...
>>> Unpacking firefox-78.14.0esr.source.tar.xz to /var/tmp/portage/dev-lang/spidermonkey-78.14.0/work
>>> Unpacking firefox-78esr-patches-17.tar.xz to /var/tmp/portage/dev-lang/spidermonkey-78.14.0/work
>>> Unpacking spidermonkey-78-patches-04.tar.xz to /var/tmp/portage/dev-lang/spidermonkey-78.14.0/work
>>> Source unpacked in /var/tmp/portage/dev-lang/spidermonkey-78.14.0/work
Unable to configure loopback interface: Operation not permitted
>>> Preparing source in /var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/js/src ...
 * Applying patches from /var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-patches ...
 *   0001-Don-t-use-build-id.patch ...
 [ ok ]
 *   0002-Fortify-sources-properly.patch ...
 [ ok ]
 *   0003-Check-additional-plugins-dir.patch ...
 [ ok ]
 *   0004-bmo-847568-Support-system-harfbuzz.patch ...
 [ ok ]
 *   0005-bmo-847568-Support-system-graphite2.patch ...
 [ ok ]
 *   0006-bmo-1559213-Support-system-av1.patch ...
 [ ok ]
 *   0007-bmo-878089-Don-t-fail-when-TERM-is-not-set.patch ...
 [ ok ]
 *   0008-bmo-1516803-Fix-building-sandbox.patch ...
 [ ok ]
 *   0009-Fix-building-spellchecker-when-using-GCC-and-PGO.patch ...
 [ ok ]
 *   0010-bmo-1526653-Include-struct-definitions-for-user_vfp-.patch ...
 [ ok ]
 *   0011-musl-Support-custom-vendor-strings.patch ...
 [ ok ]
 *   0012-musl-Add-alternate-name-for-private-siginfo-struct-m.patch ...
 [ ok ]
 *   0013-musl-Fix-syscall-wrappers.patch ...
 [ ok ]
 *   0014-musl-Only-use-system-heap-reporter-with-glibc.patch ...
 [ ok ]
 *   0015-musl-Set-pthread-name-for-non-glibc-systems.patch ...
 [ ok ]
 *   0016-musl-getcontext-is-only-avaliable-on-glibc-systems.patch ...
 [ ok ]
 *   0017-musl-sys-auvx.h-avaliable-on-more-then-just-glibc-sy.patch ...
 [ ok ]
 *   0018-musl-make-SYS_fork-non-fatal-musl-uses-it-for-fork-2.patch ...
 [ ok ]
 *   0019-Make-PGO-use-toolchain.patch ...
 [ ok ]
 *   0020-bmo-1516081-Disable-watchdog-during-PGO-builds.patch ...
 [ ok ]
 *   0021-bmo-1516803-force-one-LTO-partition-for-sandbox-when.patch ...
 [ ok ]
 *   0022-bmo-1196777-Set-GDK_FOCUS_CHANGE_MASK.patch ...
 [ ok ]
 *   0023-Wayland-Disable-FFVPX-with-VAAPI.patch ...
 [ ok ]
 *   0024-VAAPI-Add-extra-frames.patch ...
 [ ok ]
 *   0025-Fix-building-with-PGO-when-using-GCC.patch ...
 [ ok ]
 *   0026-bmo-1634213-Wayland-Use-dmabuf-WebGL-surfaces-by-def.patch ...
 [ ok ]
 *   0027-libaom-Use-NEON_FLAGS-instead-of-VPX_ASFLAGS-for-lib.patch ...
 [ ok ]
 *   0028-bmo-1650299-Unify-the-inclusion-of-the-ICU-data-file.patch ...
 [ ok ]
 *   0029-bmo-1264836-Automatically-convert-the-little-endian-.patch ...
 [ ok ]
 *   0030-bmo-1651207-Build-the-ICU-data-through-an-assembly-f.patch ...
 [ ok ]
 *   0031-Add-support-for-PipeWire-0.3.patch ...
 [ ok ]
 *   0032-geckodriver-Build-regex-with-unicode-feature.patch ...
 [ ok ]
 *   0033-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch ...
 [ ok ]
 *   0034-Make-elfhack-use-toolchain.patch ...
 [ ok ]
 *   0035-bmo-1561207-Make-dbus-optional.patch ...
 [ ok ]
 *   0036-bmo-1643201-Cherry-pick-some-servo-changes-to-derive.patch ...
 [ ok ]
 *   0037-bmo-1653339-Teach-style_derive-s-map_type_params-abo.patch ...
 [ ok ]
 *   0038-bmo-1684365-Add-a-null-pointer-check-so-that-Firefox.patch ...
 [ ok ]
 *   0039-bmo-1694575-Don-t-include-mozalloc.h-from-the-iosfwd.patch ...
 [ ok ]
 *   0040-JIT-Add-atomic-operations-support-for-ia64.patch ...
 [ ok ]
 *   0041-bmo-1318905-Make-SpiderMonkey-build-on-Linux-RISC-V.patch ...
 [ ok ]
 *   0042-bmo-1661027-Update-cc-crate-to-v1.0.59.patch ...
 [ ok ]
 *   0043-bmo-1712947-Don-t-pass-neon-flags-to-rustc-when-usin.patch ...
 [ ok ]
 *   0044-bmo-1646135-Disable-HW-WR-on-Nvidia-prop.-drivers-on.patch ...
 [ ok ]
 *   0045-bmo-1715254-Deny-clone3-to-force-glibc-fallback.patch ...
 [ ok ]
 *   0046-bmo-1721326-Allow-dynamic-PTHREAD_STACK_MIN.patch ...
 [ ok ]
 *   0047-bmo-1663550-Fix-the-alignment-of-the-stack-for-the-s.patch ...
 [ ok ]
 *   0048-bmo-1721326-Use-small-stack-for-DoClone.patch ...
 [ ok ]
 * Applying patches from /var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/spidermonkey-patches ...
 *   0001-build-Add-soname-switch-to-linker-regardless-of-Oper.patch ...
 [ ok ]
 *   0002-build-Copy-headers-on-install-instead-of-symlinking.patch ...
 [ ok ]
 *   0003-build-Don-t-fail-when-passing-standardized-autotools.patch ...
 [ ok ]
 *   0004-tests-Increase-the-test-timeout-for-slower-builds.patch ...
 [ ok ]
 *   0005-JIT-Fix-virtual-address-length-on-ia64.patch ...
 [ ok ]
 *   0006-bmo-1644600-Export-SharedArrayRawBufferRefs.patch ...
 [ ok ]
 * Removing pre-built binaries ...
third_party/python/psutil/psutil/_psutil_posix.so
third_party/python/psutil/psutil/_psutil_linux.so
third_party/python/psutil/build/temp.linux-x86_64-2.7/psutil/_psutil_common.o
third_party/python/psutil/build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
third_party/python/psutil/build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o
third_party/python/psutil/build/lib.linux-x86_64-2.7/psutil/_psutil_posix.so
third_party/python/psutil/build/lib.linux-x86_64-2.7/psutil/_psutil_linux.so
 * Running 'autoconf' ...
 [ ok ]
>>> Source prepared.
Unable to configure loopback interface: Operation not permitted
>>> Configuring source in /var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/js/src ...
 * Current CFLAGS:    -O2 -pipe
 * Current CXXFLAGS:  -O2 -pipe
 * Current LDFLAGS:   -Wl,-O1 -Wl,--as-needed
 * Current RUSTFLAGS: 
 * Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ...
 * Build CFLAGS:    -O2 -pipe
 * Build CXXFLAGS:  -O2 -pipe -fno-tree-loop-vectorize
 * Build LDFLAGS:   -Wl,-O1 -Wl,--as-needed
 * Build RUSTFLAGS: 
 * econf: updating firefox-78.14.0/nsprpub/build/autoconf/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating firefox-78.14.0/nsprpub/build/autoconf/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating firefox-78.14.0/js/src/ctypes/libffi/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating firefox-78.14.0/js/src/ctypes/libffi/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating firefox-78.14.0/js/src/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating firefox-78.14.0/js/src/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating firefox-78.14.0/build/autoconf/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating firefox-78.14.0/build/autoconf/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating firefox-78.14.0/modules/freetype2/builds/unix/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating firefox-78.14.0/modules/freetype2/builds/unix/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating firefox-78.14.0/intl/icu/source/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating firefox-78.14.0/intl/icu/source/config.sub with /usr/share/gnuconfig/config.sub
/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/js/src/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --disable-jemalloc --disable-optimize --disable-strip --enable-readline --enable-shared-js --with-intl-api --with-system-icu --with-system-nspr --with-system-zlib --with-toolchain-prefix=x86_64-pc-linux-gnu- --disable-debug --enable-jit --disable-tests --enable-rust-simd XARGS=/usr/bin/xargs
Creating Python 3 environment
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/third_party/python/virtualenv/virtualenv.py", line 55, in <module>
    run()
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/third_party/python/virtualenv/virtualenv.py", line 49, in run
    from virtualenv.__main__ import run as run_virtualenv
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/third_party/python/virtualenv/virtualenv/__init__.py", line 3, in <module>
    from .run import cli_run, session_via_cli
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/third_party/python/virtualenv/virtualenv/run/__init__.py", line 9, in <module>
    from ..seed.wheels.periodic_update import manual_upgrade
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/third_party/python/virtualenv/virtualenv/seed/wheels/__init__.py", line 3, in <module>
    from .acquire import get_wheel, pip_wheel_env_run
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/third_party/python/virtualenv/virtualenv/seed/wheels/acquire.py", line 15, in <module>
    from .bundle import from_bundle
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/third_party/python/virtualenv/virtualenv/seed/wheels/bundle.py", line 6, in <module>
    from .periodic_update import periodic_update
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/third_party/python/virtualenv/virtualenv/seed/wheels/periodic_update.py", line 10, in <module>
    import ssl
  File "/usr/lib/python3.9/ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/js/src/../../configure.py", line 181, in <module>
    sys.exit(main(sys.argv))
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/js/src/../../configure.py", line 52, in main
    sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/configure/__init__.py", line 445, in run
    self.include_file(path)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/configure/__init__.py", line 436, in include_file
    exec_(code, self)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/util.py", line 53, in exec_
    exec(object, globals, locals)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/moz.configure", line 7, in <module>
    include('build/moz.configure/init.configure')
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/configure/__init__.py", line 773, in include_impl
    self.include_file(what)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/configure/__init__.py", line 436, in include_file
    exec_(code, self)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/util.py", line 53, in exec_
    exec(object, globals, locals)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/build/moz.configure/init.configure", line 258, in <module>
    def virtualenv_python3(env_python, virtualenv_name, build_env, mozconfig, help):
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/configure/__init__.py", line 756, in decorator
    depends = DependsFunction(self, func, dependencies, when=when)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/configure/__init__.py", line 129, in __init__
    sandbox._value_for(self)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/configure/__init__.py", line 542, in _value_for
    return self._value_for_depends(obj)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/util.py", line 1018, in method_call
    cache[args] = self.func(instance, *args)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/configure/__init__.py", line 551, in _value_for_depends
    value = obj.result()
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/util.py", line 1018, in method_call
    cache[args] = self.func(instance, *args)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/configure/__init__.py", line 155, in result
    return self._func(*resolved_args)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/configure/__init__.py", line 1205, in wrapped
    return new_func(*args, **kwargs)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/build/moz.configure/init.configure", line 362, in virtualenv_python3
    manager.build(python)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/virtualenv.py", line 491, in build
    self.create(python)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/python/mozbuild/mozbuild/virtualenv.py", line 251, in create
    raise Exception(
Exception: Failed to create virtualenv: /var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/build/_virtualenvs/init_py3 (virtualenv.py retcode: 1)

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/build/config.log
 * ERROR: dev-lang/spidermonkey-78.14.0::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line  127:  Called src_configure
 *             environment, line 3547:  Called econf '--host=x86_64-pc-linux-gnu' '--target=x86_64-pc-linux-gnu' '--disable-jemalloc' '--disable-optimize' '--disable-strip' '--enable-readline' '--enable-shared-js' '--with-intl-api' '--with-system-icu' '--with-system-nspr' '--with-system-zlib' '--with-toolchain-prefix=x86_64-pc-linux-gnu-' '--disable-debug' '--enable-jit' '--disable-tests' '--enable-rust-simd' 'XARGS=/usr/bin/xargs'
 *        phase-helpers.sh, line  711:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/spidermonkey-78.14.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/spidermonkey-78.14.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/spidermonkey-78.14.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/spidermonkey-78.14.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/build'
 * S: '/var/tmp/portage/dev-lang/spidermonkey-78.14.0/work/firefox-78.14.0/js/src'
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2021-10-18 19:07:08 UTC
This failure happened when updating a stage2 to a stage3 with desktop profile (releng experiment). Nevertheless the bug is real.

Python 3.9 has ssl useflag still unset and is scheduled for rebuild after spidermonkey...
Comment 2 Larry the Git Cow gentoo-dev 2021-10-23 00:33:42 UTC
The bug has been closed via the following commit(s):

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

commit bd3a235deeff060963e2fdf5fac7c59ad0ac0df5
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-10-22 23:51:06 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-10-23 00:33:36 +0000

    dev-lang/spidermonkey: require python[ssl]
    
    Closes: https://bugs.gentoo.org/818835
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-lang/spidermonkey/spidermonkey-68.12.0.ebuild | 1 +
 dev-lang/spidermonkey/spidermonkey-78.15.0.ebuild | 1 +
 2 files changed, 2 insertions(+)