Bug: 2.53.19b1 build fails "No such file or directory" _virtualenvs/init_py3/local/lib/python3.11/dist-packages
Status: UNCONFIRMED
Priority: --
Created: 2024-07-20 18:53:39+00:00
Resolved: 2024-09-05 07:20:30+00:00

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0

Steps to reproduce:

Debian 12, python 3.11.2
unpacked 2.53.19b1.source into /home/uhlar/src/mozilla/seamonkey-2.53.19b1
created .mozconfig:
mk_add_options MOZ_OBJDIR=/home/uhlar/src/mozilla/build-2.53.19b1/
mk_add_options MOZ_MAKE_FLAGS="-j4"
ac_add_options --enable-application=comm/suite
ac_add_options --with-system-nspr
#ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
#ac_add_options --with-system-png
ac_add_options --enable-system-ffi
#ac_add_options --with-system-icu
ac_add_options --enable-calendar
#ac_add_options --enable-default-toolkit=cairo-gtk2-x11
run:
env MACH_USE_SYSTEM_PYTHON=1 ./mach build


Actual results:

 Config object not found by mach.
 0:00.62 Clobber not needed.
 0:00.62 Adding make options from /home/uhlar/src/mozilla/seamonkey-2.53.19b1/.mozconfig
    MOZ_MAKE_FLAGS=-j4
    MOZ_OBJDIR=/home/uhlar/src/mozilla/build-2.53.19b1
    OBJDIR=/home/uhlar/src/mozilla/build-2.53.19b1
    FOUND_MOZCONFIG=/home/uhlar/src/mozilla/seamonkey-2.53.19b1/.mozconfig
    export FOUND_MOZCONFIG
 0:00.63 /usr/bin/gmake -f client.mk MOZ_PARALLEL_BUILD=4 -s configure
 0:00.63 cd /home/uhlar/src/mozilla/build-2.53.19b1
 0:00.63 /home/uhlar/src/mozilla/seamonkey-2.53.19b1/configure
 0:00.99 Creating Python 3 environment
 0:01.51 created virtual environment CPython3.11.2.final.0-64 in 299ms
 0:01.51   creator CPython3Posix(dest=/home/uhlar/src/mozilla/build-2.53.19b1/_virtualenvs/init_py3, clear=False, global=False)
 0:01.51   seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/uhlar/.local/share/virtualenv)
 0:01.51     added seed packages: pip==20.2.2, setuptools==49.6.0, wheel==0.35.1
 0:01.51   activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
 0:01.59 /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
 0:01.59   warnings.warn(
 0:01.61 Traceback (most recent call last):
 0:01.61   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/configure.py", line 171, in <module>
 0:01.61     sys.exit(main(sys.argv))
 0:01.61              ^^^^^^^^^^^^^^
 0:01.61   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/configure.py", line 42, in main
 0:01.61     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
 0:01.61   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/configure/__init__.py", line 446, in run
 0:01.61     self.include_file(path)
 0:01.61   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/configure/__init__.py", line 437, in include_file
 0:01.61     exec_(code, self)
 0:01.61   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/util.py", line 54, in exec_
 0:01.61     exec(object, globals, locals)
 0:01.61   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/moz.configure", line 7, in <module>
 0:01.61     include('build/moz.configure/init.configure')
 0:01.61   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/configure/__init__.py", line 764, in include_impl
 0:01.61     self.include_file(what)
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/configure/__init__.py", line 437, in include_file
 0:01.62     exec_(code, self)
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/util.py", line 54, in exec_
 0:01.62     exec(object, globals, locals)
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/build/moz.configure/init.configure", line 240, in <module>
 0:01.62     @depends('PYTHON3', check_build_environment, mozconfig, '--help')
 0:01.62      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/configure/__init__.py", line 747, in decorator
 0:01.62     depends = DependsFunction(self, func, dependencies, when=when)
 0:01.62               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/configure/__init__.py", line 132, in __init__
 0:01.62     sandbox._value_for(self)
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/configure/__init__.py", line 539, in _value_for
 0:01.62     return self._value_for_depends(obj)
 0:01.62            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/util.py", line 1019, in method_call
 0:01.62     cache[args] = self.func(instance, *args)
 0:01.62                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/configure/__init__.py", line 548, in _value_for_depends
 0:01.62     value = obj.result()
 0:01.62             ^^^^^^^^^^^^
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/util.py", line 1019, in method_call
 0:01.62     cache[args] = self.func(instance, *args)
 0:01.62                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/configure/__init__.py", line 158, in result
 0:01.62     return self._func(*resolved_args)
 0:01.62            ^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/configure/__init__.py", line 1186, in wrapped
 0:01.62     return new_func(*args, **kwargs)
 0:01.62            ^^^^^^^^^^^^^^^^^^^^^^^^^
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/build/moz.configure/init.configure", line 358, in virtualenv_python3
 0:01.62     manager.build(python)
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/virtualenv.py", line 492, in build
 0:01.62     self.create(python)
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/virtualenv.py", line 270, in create
 0:01.62     self._disable_pip_outdated_warning()
 0:01.62   File "/home/uhlar/src/mozilla/seamonkey-2.53.19b1/python/mozbuild/mozbuild/virtualenv.py", line 651, in _disable_pip_outdated_warning
 0:01.62     for file in os.listdir(site_packages)
 0:01.63                 ^^^^^^^^^^^^^^^^^^^^^^^^^
 0:01.63 FileNotFoundError: [Errno 2] No such file or directory: '/home/uhlar/src/mozilla/build-2.53.19b1/_virtualenvs/init_py3/local/lib/python3.11/dist-packages'
 0:01.67 *** Fix above errors and then restart with\
 0:01.67                "./mach build"
 0:01.67 gmake: *** [client.mk:114: configure] Error 1


Expected results:

expected SM to build the same way it did in previous versions

/home/uhlar/src/mozilla/build-2.53.19b1/_virtualenvs/init_py3/
- does not exist

/home/uhlar/.local/share/virtualenv
- was created at the time, does not contain 

with 2.53.18.2 there was BUILD_DIR/_virtualenvs/init_py3/lib/python3/dist-packages