On 2023/01/25 14:25, Bjorn Ketelaars wrote:
> Upstream of borgbackup is slowly moving towards 2.0.0, which will be a
> major breaking release that is not compatible with existing repos.
> Additionally, some borg 1.x commands that supported working on a repo
> AND on an archive have been split into 2 commands, some others were
> renamed. (Breaking) changes are detailed in
> https://borgbackup.readthedocs.io/en/2.0.0b4/changes.html#version-2-0-0b4-2022-11-27.
> 
> Another change is that this new release will use EVP_aes_256_ocb, which
> is not provided by LibreSSL. As such, OpenSSL is used, which is linked
> statically to avoid conflicting with shared libcrypto from the base OS
> pulled in via dependencies.

This fails on i386. It can be built with "MAKE_ENV = LDFLAGS=-Wl,-znotext";
I offer no opinion on how bad an idea that is, but we did already use it for
various other ports, mostly which have asm that uses a large number of 
registers.

Full log below, here's the interesting bit:

-----
creating build/temp.openbsd-7.2-i386-cpython-310/src/borg/crypto
cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe 
-fPIC -O2 -pipe -O2 -pipe -O2 -pipe -fPIC -I/usr/local/include/eopenssl11 
-I/usr/local/include/python3.10 -c src/borg/crypto/low_level.c -o 
build/temp.openbsd-7.2-i386-cpython-310/src/borg/crypto/low_level.o -Wall 
-Wextra -Wpointer-arith
src/borg/crypto/low_level.c:7516:5: warning: code will never be executed 
[-Wunreachable-code]
    PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length, 
expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d", 
(Py_ssize_t)(0x80), (Py_ssize_t)(0x80));
    ^~~~~~~~~~~~
1 warning generated.
cc -shared -fPIC -L/usr/local/lib/ -O2 -pipe 
build/temp.openbsd-7.2-i386-cpython-310/src/borg/crypto/low_level.o 
/usr/local/lib/eopenssl11/libcrypto.a -L/usr/local/lib -o 
build/lib.openbsd-7.2-i386-cpython-310/borg/crypto/low_level.cpython-310.so
ld.lld: error: relocation R_386_PC32 cannot be used against symbol 
OPENSSL_ia32cap_P; recompile with -fPIC
>>> defined in /usr/local/lib/eopenssl11/libcrypto.a(cryptlib.o)
>>> referenced by rc4-586.s
>>>               rc4-586.o:(RC4_set_key) in archive 
>>> /usr/local/lib/eopenssl11/libcrypto.a

ld.lld: error: relocation R_386_PC32 cannot be used against symbol 
OPENSSL_ia32cap_P; recompile with -fPIC
>>> defined in /usr/local/lib/eopenssl11/libcrypto.a(cryptlib.o)
>>> referenced by rc4-586.s
>>>               rc4-586.o:(RC4_options) in archive 
>>> /usr/local/lib/eopenssl11/libcrypto.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/pobj/borgbackup-2.0.0b4/bin/cc' failed with exit code 1
-----




>>> Building on i386-3 under sysutils/borgbackup/2.0
         BDEPENDS = 
[archivers/zstd;security/openssl/1.1;devel/py-wheel,python3;lang/python/3.10;devel/py-setuptools,python3;devel/py-setuptools_scm,python3;devel/py-build,python3;lang/cython,python3;devel/py-installer,python3;sysutils/xxhash;devel/py-pkgconfig,python3;archivers/lz4]
         DIST = [sysutils/borgbackup/2.0:borgbackup-2.0.0b4.tar.gz]
         FULLPKGNAME = borgbackup-2.0.0b4
         RDEPENDS = 
[archivers/zstd;net/py-msgpack,python3;lang/python/3.10;sysutils/py-packaging,python3;security/py-argon2-cffi,python3;archivers/lz4;sysutils/xxhash]
(Junk lock obtained for i386-3 at 1674955285.50)
>>> Running depends in sysutils/borgbackup/2.0 at 1674955285.52
   last junk was in sysutils/consul-template
/usr/sbin/pkg_add -aI -Drepair lz4-1.9.4 openssl-1.1.1sp6v0 py3-build-0.10.0 
py3-cython-0.29.32p1v0 py3-installer-0.6.0 py3-pkgconfig-1.5.5p1 
py3-setuptools-64.0.3p0v0 py3-setuptools_scm-7.1.0 py3-wheel-0.38.4p0 
xxhash-0.8.1p0 zstd-1.5.2
was: /usr/sbin/pkg_add -aI -Drepair lz4-1.9.4 openssl-1.1.1sp6v0 
py3-build-0.10.0 py3-cython-0.29.32p1v0 py3-installer-0.6.0 
py3-pkgconfig-1.5.5p1 py3-setuptools-64.0.3p0v0 py3-setuptools_scm-7.1.0 
py3-wheel-0.38.4p0 python-3.10.9p0 xxhash-0.8.1p0 zstd-1.5.2
/usr/sbin/pkg_add -aI -Drepair lz4-1.9.4 openssl-1.1.1sp6v0 py3-build-0.10.0 
py3-cython-0.29.32p1v0 py3-installer-0.6.0 py3-pkgconfig-1.5.5p1 
py3-setuptools-64.0.3p0v0 py3-setuptools_scm-7.1.0 py3-wheel-0.38.4p0 
xxhash-0.8.1p0 zstd-1.5.2
--- +openssl-1.1.1sp6v0 -------------------
You may wish to add /usr/local/lib/eopenssl11/man to /etc/man.conf
>>> Running show-prepare-results in sysutils/borgbackup/2.0 at 1674955293.26
===> sysutils/borgbackup/2.0
===> borgbackup-2.0.0b4 depends on: py3-pkgconfig-* -> py3-pkgconfig-1.5.5p1
===> borgbackup-2.0.0b4 depends on: py3-cython-* -> py3-cython-0.29.32p1v0
===> borgbackup-2.0.0b4 depends on: openssl->=1.1.0v0,<1.2v0 -> 
openssl-1.1.1sp6v0
===> borgbackup-2.0.0b4 depends on: python->=3.10,<3.11 -> python-3.10.9p0
===> borgbackup-2.0.0b4 depends on: py3-build-* -> py3-build-0.10.0
===> borgbackup-2.0.0b4 depends on: py3-installer-* -> py3-installer-0.6.0
===> borgbackup-2.0.0b4 depends on: py3-setuptools-* -> 
py3-setuptools-64.0.3p0v0
===> borgbackup-2.0.0b4 depends on: py3-wheel-* -> py3-wheel-0.38.4p0
===> borgbackup-2.0.0b4 depends on: py3-setuptools_scm-* -> 
py3-setuptools_scm-7.1.0
===> borgbackup-2.0.0b4 depends on: lz4-* -> lz4-1.9.4
===> borgbackup-2.0.0b4 depends on: zstd-* -> zstd-1.5.2
===> borgbackup-2.0.0b4 depends on: xxhash-* -> xxhash-0.8.1p0
===>  Verifying specs:  lz4 xxhash zstd
===>  found lz4.3.2 xxhash.0.3 zstd.6.1
lz4-1.9.4
openssl-1.1.1sp6v0
py3-build-0.10.0
py3-cython-0.29.32p1v0
py3-installer-0.6.0
py3-pkgconfig-1.5.5p1
py3-setuptools-64.0.3p0v0
py3-setuptools_scm-7.1.0
py3-wheel-0.38.4p0
python-3.10.9p0
xxhash-0.8.1p0
zstd-1.5.2
(Junk lock released for i386-3 at 1674955296.58)
distfiles size=2874820
>>> Running patch in sysutils/borgbackup/2.0 at 1674955296.60
===> sysutils/borgbackup/2.0
===>  Checking files for borgbackup-2.0.0b4
`/mnt/distfiles/borgbackup-2.0.0b4.tar.gz' is up to date.
>> (SHA256) borgbackup-2.0.0b4.tar.gz: OK
===>  Extracting for borgbackup-2.0.0b4
===>  Patching for borgbackup-2.0.0b4
===>  Compiler link: clang -> /usr/bin/clang
===>  Compiler link: clang++ -> /usr/bin/clang++
===>  Compiler link: cc -> /usr/bin/cc
===>  Compiler link: c++ -> /usr/bin/c++
>>> Running configure in sysutils/borgbackup/2.0 at 1674955297.64
===> sysutils/borgbackup/2.0
===>  Generating configure for borgbackup-2.0.0b4
===>  Configuring for borgbackup-2.0.0b4
>>> Running build in sysutils/borgbackup/2.0 at 1674955297.98
===> sysutils/borgbackup/2.0
===>  Building for borgbackup-2.0.0b4
* Getting build dependencies for wheel...
Detected and preferring liblz4 [via pkg-config]
Detected and preferring libzstd [via pkg-config]
Detected and preferring libxxhash [via pkg-config]
* Building wheel...
Detected and preferring liblz4 [via pkg-config]
Detected and preferring libzstd [via pkg-config]
Detected and preferring libxxhash [via pkg-config]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.openbsd-7.2-i386-cpython-310
creating build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/__init__.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/__main__.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/_version.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/archive.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/cache.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/constants.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/fuse.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/fuse_impl.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/locking.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/logger.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/manifest.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/patterns.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/platformflags.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/remote.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/repoobj.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/repository.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/selftest.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/upgrade.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/version.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/xattr.py -> build/lib.openbsd-7.2-i386-cpython-310/borg
creating build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/__init__.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/_common.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/benchmark_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/check_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/compact_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/config_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/create_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/debug_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/delete_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/diff_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/extract_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/help_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/info_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/key_cmds.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/list_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/lock_cmds.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/mount_cmds.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/prune_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/rcompress_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/rcreate_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/rdelete_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/recreate_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/rename_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/rinfo_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/rlist_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/serve_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/tar_cmds.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
copying src/borg/archiver/transfer_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/archiver
creating build/lib.openbsd-7.2-i386-cpython-310/borg/crypto
copying src/borg/crypto/__init__.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/crypto
copying src/borg/crypto/file_integrity.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/crypto
copying src/borg/crypto/key.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/crypto
copying src/borg/crypto/keymanager.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/crypto
copying src/borg/crypto/nonces.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/crypto
creating build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/__init__.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/checks.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/datastruct.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/errors.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/fs.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/lrucache.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/misc.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/msgpack.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/nanorst.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/parseformat.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/passphrase.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/process.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/progress.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/shellpattern.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/time.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
copying src/borg/helpers/yes_no.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/helpers
creating build/lib.openbsd-7.2-i386-cpython-310/borg/platform
copying src/borg/platform/__init__.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/platform
copying src/borg/platform/base.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/platform
copying src/borg/platform/xattr.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/platform
creating build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/__init__.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/archive.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/benchmark.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/cache.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/checksums.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/chunker.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/chunker_pytest.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/chunker_slow.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/compress.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/crypto.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/efficient_collection_queue.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/file_integrity.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/hashindex.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/helpers.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/item.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/key.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/locking.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/logger.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/lrucache.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/nanorst.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/nonces.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/patterns.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/platform.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/remote.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/repoobj.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/repository.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/shellpattern.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/version.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
copying src/borg/testsuite/xattr.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite
creating build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/__init__.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/argparsing.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/benchmark_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/bypass_lock_option.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/check_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/checks.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/config_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/corruption.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/create_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/debug_cmds.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/delete_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/diff_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/disk_full.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/extract_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/help_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/info_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/key_cmds.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/list_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/lock_cmds.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/mount_cmds.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/patterns.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/prune_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/rcompress_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/rcreate_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/rdelete_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/recreate_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/rename_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/return_codes.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/rinfo_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/rlist_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/tar_cmds.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
copying src/borg/testsuite/archiver/transfer_cmd.py -> 
build/lib.openbsd-7.2-i386-cpython-310/borg/testsuite/archiver
running egg_info
writing src/borgbackup.egg-info/PKG-INFO
writing dependency_links to src/borgbackup.egg-info/dependency_links.txt
writing entry points to src/borgbackup.egg-info/entry_points.txt
writing requirements to src/borgbackup.egg-info/requires.txt
writing top-level names to src/borgbackup.egg-info/top_level.txt
reading manifest file 'src/borgbackup.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching '.coafile'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.gitattributes'
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching 'Vagrantfile'
no previously-included directories found matching '.github'
adding license file 'LICENSE'
writing manifest file 'src/borgbackup.egg-info/SOURCES.txt'
copying src/borg/checksums.pyi -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/chunker.pyi -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/compress.pyi -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/hashindex.pyi -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/item.pyi -> build/lib.openbsd-7.2-i386-cpython-310/borg
copying src/borg/paperkey.html -> build/lib.openbsd-7.2-i386-cpython-310/borg
running build_ext
building 'borg.crypto.low_level' extension
creating build/temp.openbsd-7.2-i386-cpython-310
creating build/temp.openbsd-7.2-i386-cpython-310/src
creating build/temp.openbsd-7.2-i386-cpython-310/src/borg
creating build/temp.openbsd-7.2-i386-cpython-310/src/borg/crypto
cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe 
-fPIC -O2 -pipe -O2 -pipe -O2 -pipe -fPIC -I/usr/local/include/eopenssl11 
-I/usr/local/include/python3.10 -c src/borg/crypto/low_level.c -o 
build/temp.openbsd-7.2-i386-cpython-310/src/borg/crypto/low_level.o -Wall 
-Wextra -Wpointer-arith
src/borg/crypto/low_level.c:7516:5: warning: code will never be executed 
[-Wunreachable-code]
    PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length, 
expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d", 
(Py_ssize_t)(0x80), (Py_ssize_t)(0x80));
    ^~~~~~~~~~~~
1 warning generated.
cc -shared -fPIC -L/usr/local/lib/ -O2 -pipe 
build/temp.openbsd-7.2-i386-cpython-310/src/borg/crypto/low_level.o 
/usr/local/lib/eopenssl11/libcrypto.a -L/usr/local/lib -o 
build/lib.openbsd-7.2-i386-cpython-310/borg/crypto/low_level.cpython-310.so
ld.lld: error: relocation R_386_PC32 cannot be used against symbol 
OPENSSL_ia32cap_P; recompile with -fPIC
>>> defined in /usr/local/lib/eopenssl11/libcrypto.a(cryptlib.o)
>>> referenced by rc4-586.s
>>>               rc4-586.o:(RC4_set_key) in archive 
>>> /usr/local/lib/eopenssl11/libcrypto.a

ld.lld: error: relocation R_386_PC32 cannot be used against symbol 
OPENSSL_ia32cap_P; recompile with -fPIC
>>> defined in /usr/local/lib/eopenssl11/libcrypto.a(cryptlib.o)
>>> referenced by rc4-586.s
>>>               rc4-586.o:(RC4_options) in archive 
>>> /usr/local/lib/eopenssl11/libcrypto.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/pobj/borgbackup-2.0.0b4/bin/cc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
*** Error 1 in sysutils/borgbackup/2.0 
(/usr/ports/lang/python/python.port.mk:361 'do-build': @:;  cd 
/pobj/borgbackup-2.0.0b4/borgbackup-2....)
*** Error 2 in sysutils/borgbackup/2.0 
(/usr/ports/infrastructure/mk/bsd.port.mk:2956 
'/pobj/borgbackup-2.0.0b4/.build_done': @cd /usr/ports...)
*** Error 2 in sysutils/borgbackup/2.0 
(/usr/ports/infrastructure/mk/bsd.port.mk:2600 'build': 
@lock=borgbackup-2.0.0b4;  export _LOCKS_HELD...)
===> Exiting sysutils/borgbackup/2.0 with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:137 'build': @: 
${echo_msg:=echo};  : ${target:=build};  for i in ; do  eval...)
>>> Ended at 1674955308.50
max_stuck=2.88/depends=7.75/show-prepare-results=3.33/patch=1.04/configure=0.34/build=10.54
Error: job failed with 512 on i386-3 at 1674955308

Reply via email to