[Bug 265060] archivers/py-borgbackup: Fails with error 'Undefined symbol "static_assert"' when installed via pkg

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 06 Jul 2022 11:20:53 UTC

            Bug ID: 265060
           Summary: archivers/py-borgbackup: Fails with error 'Undefined
                    symbol "static_assert"' when installed via pkg
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: freebsd-bugzilla-10a4271f-48f8-4424-a4e0-388fcb519c16@
                CC: jjuanino@gmail.com
             Flags: maintainer-feedback?(jjuanino@gmail.com)
                CC: jjuanino@gmail.com

When executing borg installed from the latest binary package (pkg install
py39-borgbackup), I get the error:

> borg
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/borg/archiver.py", line 40, in
    from .algorithms.checksums import crc32
Undefined symbol "static_assert"

Happens as all users, including root.

When building a package via the ports collection and then installing (make
package; pkg install...), it works without issue.

All other installed packages are via binary package - pkg update / pkg upgrade
shows everything is current, repo URL is

Previously worked fine with Python 3.8.

OS: FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212
Kernel: GENERIC amd64

> pkg info | grep py39
py39-arrow-1.2.2               Better dates and times for Python
py39-attrs-21.4.0              Python attributes without boilerplate
py39-borgbackup-1.1.18         Deduplicating backup program
py39-borgmatic-1.5.24          Wrapper script for Borg backup software
py39-certifi-2022.5.18.1       Mozilla SSL certificates
py39-cffi-1.15.0_1             Foreign Function Interface for Python calling C
py39-charset-normalizer-2.0.12 Real First Universal Charset Detector
py39-colorama-0.4.4            Cross-platform API to print colored terminal
text from Python applications
py39-cryptography-3.4.8        Cryptographic recipes and primitives for Python
py39-dateutil-2.8.2            Extensions to the standard Python datetime
py39-dnspython-2.2.1,1         DNS toolkit for Python
py39-docopt-0.6.2_1            Pythonic argument parser, that will make you
py39-funcsigs-1.0.2            Python function signatures from PEP362
py39-idna-3.3                  Internationalized Domain Names in Applications
py39-importlib-metadata-4.8.1  Read metadata from Python packages
py39-importlib-resources-5.4.0_1 Read resources from Python packages
py39-jsonschema-4.6.0_1        JSON Schema validation for Python
py39-llfuse-1.3.8              Python bindings for low-level FUSE API
py39-logfury-0.1.2             Toolkit for logging of library method calls
py39-markdown-3.3.7            Python implementation of Markdown
py39-openssl-20.0.1,1          Python interface to the OpenSSL library
py39-packaging-21.3            Core utilities for Python packages
py39-pycparser-2.21            C parser in Python
py39-pykwalify-1.8.0           Python library and CLI for JSON/YAML schema
py39-pyparsing-3.0.9           General parsing module for Python
py39-pyrsistent-0.14.11_1      Persistent/Functional/Immutable data structures
py39-pysocks-1.7.1             Python SOCKS module
py39-requests-2.28.0           Python HTTP for Humans
py39-ruamel.yaml-0.16.12       YAML 1.2 loader/dumper package for Python
py39-ruamel.yaml.clib-0.2.6    C version of reader, parser and emitter for
py39-setuptools-62.1.0_1       Python packages installer
py39-six-1.16.0                Python 2 and 3 compatibility utilities
py39-sqlite3-3.9.13_7          Standard Python binding to the SQLite3 library
(Python 3.9)
py39-tqdm-4.64.0               Fast, extensible progress bar for Python
py39-urllib3-1.26.9,1          HTTP library with thread-safe connection
pooling, file post, and more
py39-zipp-3.4.0                Backport of pathlib-compatible object wrapper
for zip files

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