Skip to content

OmniOS r151046 userland is not buildable #3893

@unixbird-ps-storvix

Description

@unixbird-ps-storvix

Build for package/pkg fails because Rust cannot be found although Rust is installed and available.

$ which cargo
/opt/ooce/bin/cargo
$ which rustc
/opt/ooce/bin/rustc

Excerpt from build log of package/pkg:

        × Building wheel for maturin (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> [42 lines of output]
            /tmp/pip-build-env-vvvr491d/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
            !!

                    ********************************************************************************
                    Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).

                    By 2026-Feb-18, you need to update your project and remove deprecated calls
                    or your builds will no longer be supported.

                    See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
                    ********************************************************************************

            !!
              corresp(dist, value, root_dir)
            running bdist_wheel
            running build
            running build_py
            creating build/lib.solaris-2.11-i86pc.64bit-cpython-311/maturin
            copying maturin/__init__.py -> build/lib.solaris-2.11-i86pc.64bit-cpython-311/maturin
            copying maturin/__main__.py -> build/lib.solaris-2.11-i86pc.64bit-cpython-311/maturin
            running egg_info
            writing maturin.egg-info/PKG-INFO
            writing dependency_links to maturin.egg-info/dependency_links.txt
            writing requirements to maturin.egg-info/requires.txt
            writing top-level names to maturin.egg-info/top_level.txt
            reading manifest file 'maturin.egg-info/SOURCES.txt'
            reading manifest template 'MANIFEST.in'
            warning: no files found matching '*.json' under directory 'src/python_interpreter'
            writing manifest file 'maturin.egg-info/SOURCES.txt'
            running build_ext
            running build_rust
            error: can't find Rust compiler

Build for runtime/python-27 fails because the build script is giving unrecognized option to the Python2 module compileall.

Excerpt from build log of runtime/python-27:

[2] -- Setting INSTALLER for setuptools-46.4.0-py2.7.egg-info
[2] Compiling python modules
Running: /usr/bin/python2.7 -m compileall -j0 -f --invalidation-mode timestamp /build/tmp/python2.7/setuptools-46.4.0/library_python-2_setuptools-27_pkg
option -j not recognized
usage: python compileall.py [-l] [-f] [-q] [-d destdir] [-x regexp] [-i list] [directory|file ...]

arguments: zero or more file and directory names to compile; if no arguments given,
           defaults to the equivalent of -l sys.path

options:
-l: don't recurse into subdirectories
-f: force rebuild even if timestamps are up-to-date
-q: output only error messages
-d destdir: directory to prepend to file paths for use in compile-time tracebacks and in
            runtime tracebacks in cases where the source file is unavailable
-x regexp: skip files matching the regular expression regexp; the regexp is searched for
           in the full path of each file considered for compilation
-i file: add all the files and directories listed in file to the list considered for
         compilation; if "-", names are read from stdin
[2] i386 build failed
[2] Time: library/python-2/setuptools-27 - 0h0m3s

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions