[Bug 297292] devel/py-google-re2 fails to build

[email protected] Wed, 05 Aug 2026 05:30:31 +0000
Newsgroups gmane.os.freebsd.devel.ports.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D297292

            Bug ID: 297292
           Summary: devel/py-google-re2 fails to build
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
             Flags: maintainer-feedback?([email protected])
          Assignee: [email protected]

devel/py-google-re2@py312 failed to build while running 'portmaster -af' af=
ter
upgrading FreeBSD from 14.4-RELEASE to 15.1-RELEASE. Later I found that it
fails to build on another host which was already upgraded to FreeBSD 15 for
quite some time with exactly the same error.


Full logs:

jekyll@FreeBSD[~]> sudo portmaster py312-google-re2

=3D=3D=3D>>> Currently installed version: py312-google-re2-1.1.20251105
=3D=3D=3D>>> Port directory: /usr/ports/devel/py-google-re2@py312

=3D=3D=3D>>> Launching 'make checksum' for devel/py-google-re2@py312 in bac=
kground
=3D=3D=3D>>> Gathering dependency list for devel/py-google-re2@py312 from p=
orts
=3D=3D=3D>>> Initial dependency check complete for devel/py-google-re2@py312


=3D=3D=3D>>> Starting build for devel/py-google-re2@py312 <<<=3D=3D=3D

=3D=3D=3D>>> All dependencies are up to date

=3D=3D=3D>  Cleaning for py312-google-re2-1.1.20251105
=3D=3D=3D>  License BSD3CLAUSE accepted by the user
=3D=3D=3D>   py312-google-re2-1.1.20251105 depends on file: /usr/local/sbin=
/pkg -
found
=3D=3D=3D> Fetching all distfiles required by py312-google-re2-1.1.20251105=
 for
building
=3D=3D=3D>  Extracting for py312-google-re2-1.1.20251105
=3D> SHA256 Checksum OK for google_re2-1.1.20251105.tar.gz.
=3D=3D=3D>  Patching for py312-google-re2-1.1.20251105
=3D=3D=3D>  Applying FreeBSD patches for py312-google-re2-1.1.20251105 from
/usr/ports/devel/py-google-re2/files
=3D=3D=3D>   py312-google-re2-1.1.20251105 depends on package: py312-pybind=
11>=3D0 -
found
=3D=3D=3D>   py312-google-re2-1.1.20251105 depends on package: py312-setupt=
ools>=3D0 -
found
=3D=3D=3D>   py312-google-re2-1.1.20251105 depends on package: py312-wheel>=
=3D0 - found
=3D=3D=3D>   py312-google-re2-1.1.20251105 depends on file: /usr/local/bin/=
python3.12
- found
=3D=3D=3D>   py312-google-re2-1.1.20251105 depends on package: py312-build>=
=3D0 - found
=3D=3D=3D>   py312-google-re2-1.1.20251105 depends on package: py312-instal=
ler>=3D0 -
found
=3D=3D=3D>   py312-google-re2-1.1.20251105 depends on shared library: libre=
2.so -
found (/usr/local/lib/libre2.so)
=3D=3D=3D>  Configuring for py312-google-re2-1.1.20251105
=3D=3D=3D>  Building for py312-google-re2-1.1.20251105
* Getting build dependencies for wheel...
/usr/local/lib/python3.12/site-packages/wheel/bdist_wheel.py:4: FutureWarni=
ng:
The 'wheel' package is no longer the canonical location of the 'bdist_wheel'
command, and will be removed in a future release. Please update to setuptoo=
ls
v70.1 or later which contains an integrated version of this command.
  warn(
Traceback (most recent call last):
  File
"/usr/local/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_pr=
ocess.py",
line 389, in <module>
    main()
  File
"/usr/local/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_pr=
ocess.py",
line 373, in main
    json_out["return_val"] =3D hook(**hook_input["kwargs"])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/usr/local/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_pr=
ocess.py",
line 143, in get_requires_for_build_wheel
    return hook(config_settings)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/setuptools/build_meta.py", =
line
177, in get_requires_for_build_wheel
    return self._get_build_requires(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/setuptools/build_meta.py", =
line
159, in _get_build_requires
    self.run_setup()
  File "/usr/local/lib/python3.12/site-packages/setuptools/build_meta.py", =
line
282, in run_setup
    self).run_setup(setup_script=3Dsetup_script)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/setuptools/build_meta.py", =
line
174, in run_setup
    exec(compile(code, __file__, 'exec'), locals())
  File "setup.py", line 130, in <module>
    setuptools.setup(
  File "/usr/local/lib/python3.12/site-packages/setuptools/__init__.py", li=
ne
87, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/setuptools/_distutils/core.=
py",
line 139, in setup
    _setup_distribution =3D dist =3D klass(attrs)
                                 ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/setuptools/dist.py", line 4=
76,
in __init__
    _Distribution.__init__(
  File "/usr/local/lib/python3.12/site-packages/setuptools/_distutils/dist.=
py",
line 275, in __init__
    self.finalize_options()
  File "/usr/local/lib/python3.12/site-packages/setuptools/dist.py", line 8=
99,
in finalize_options
    for ep in sorted(loaded, key=3Dby_order):
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/setuptools/dist.py", line 8=
98,
in <lambda>
    loaded =3D map(lambda e: e.load(), filtered)
                           ^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/metadata/__init__.py", line 205=
, in
load
    module =3D import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in
import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlock=
ed
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_remo=
ved
  File
"/usr/local/lib/python3.12/site-packages/scikit_build_core/setuptools/build=
_cmake.py",
line 43, in <module>
    from ..build._file_processor import each_unignored_file
  File
"/usr/local/lib/python3.12/site-packages/scikit_build_core/build/_file_proc=
essor.py",
line 17, in <module>
    import pathspec
  File "/usr/local/lib/python3.12/site-packages/pathspec/__init__.py", line=
 30,
in <module>
    from .gitignore import (
  File "/usr/local/lib/python3.12/site-packages/pathspec/gitignore.py", line
25, in <module>
    from pathspec._backends.agg import (
  File "/usr/local/lib/python3.12/site-packages/pathspec/_backends/agg.py",
line 27, in <module>
    from .re2.base import (
  File
"/usr/local/lib/python3.12/site-packages/pathspec/_backends/re2/base.py", l=
ine
12, in <module>
    from ._base import (
  File
"/usr/local/lib/python3.12/site-packages/pathspec/_backends/re2/_base.py", =
line
17, in <module>
    import re2
  File
"/usr/ports/devel/py-google-re2/work-py312/google_re2-1.1.20251105/re2/__in=
it__.py",
line 33, in <module>
    from . import _re2
ImportError: cannot import name '_re2' from partially initialized module 'r=
e2'
(most likely due to a circular import)
(/usr/ports/devel/py-google-re2/work-py312/google_re2-1.1.20251105/re2/__in=
it__.py)

TIP pass --env-dir and --sdist-extract-dir to keep the build environment and
sources, then see
https://build.pypa.io/en/stable/how-to/troubleshooting.html#debug-a-failed-=
build
for help debugging a failed build
ERROR Backend subprocess exited when trying to invoke
get_requires_for_build_wheel
*** Error code 1

Stop.
make: stopped making "build" in /usr/ports/devel/py-google-re2

=3D=3D=3D>>> make build failed for devel/py-google-re2@py312
=3D=3D=3D>>> Aborting update


=3D=3D=3D>>> You can restart from the point of failure with this command li=
ne:
       portmaster <flags> devel/py-google-re2@py312

This command has been saved to ~/portmasterfail.txt

--=20
You are receiving this mail because:
You are the assignee for the bug.=