Skip to content

Conversation

@BKPepe
Copy link
Member

@BKPepe BKPepe commented Dec 29, 2025

Release notes:
https://github.com/pyca/pyopenssl/releases/tag/25.3.0

This one should fix the buildbot failure:

removing build/bdist.linux-aarch64/wheel
Successfully built pyopenssl-23.3.0-py3-none-any.whl
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/python3.13/site-packages/installer/__main__.py", line 98, in <module>
    _main(sys.argv[1:], "python -m installer")
    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/python3.13/site-packages/installer/__main__.py", line 86, in _main
    with WheelFile.open(args.wheel) as source:
         ~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/python3.13/contextlib.py", line 141, in __enter__
    return next(self.gen)
  File "/builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/python3.13/site-packages/installer/sources.py", line 162, in open
    with zipfile.ZipFile(path) as f:
         ~~~~~~~~~~~~~~~^^^^^^
  File "/builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/python3.13/zipfile/__init__.py", line 1367, in __init__
    self.fp = io.open(file, filemode)
              ~~~~~~~^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a53_musl/pypi/pyOpenSSL-23.3.0//openwrt-build/pyOpenSSL-23.3.0-*.whl'

Copilot AI review requested due to automatic review settings December 29, 2025 12:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the python-pyopenssl package from version 23.3.0 to 25.3.0 to resolve a buildbot failure related to wheel file path resolution during installation.

Key Changes

  • Version bump from 23.3.0 to 25.3.0
  • Updated package hash to match the new version's distribution file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Release notes:
https://github.com/pyca/pyopenssl/releases/tag/25.3.0

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
@BKPepe
Copy link
Member Author

BKPepe commented Dec 30, 2025

Cryptography fails.

map=/builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7=cryptography-41.0.7 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro ")
2025-12-30T01:37:43.1633802Z   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
2025-12-30T01:37:43.1634333Z   CRATE_CC_NO_DEFAULTS = None
2025-12-30T01:37:43.1634750Z   CARGO_CFG_TARGET_FEATURE = None
2025-12-30T01:37:43.1641246Z   running: "arm-openwrt-linux-muslgnueabi-gcc" "-Os" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=armv7-a" "-mfpu=vfpv3-d16" "-Os" "-pipe" "-fno-caller-saves" "-fno-plt" "-fhonour-copts" "-mfloat-abi=hard" "-ffile-prefix-map=/builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7=cryptography-41.0.7" "-Wformat" "-Werror=format-security" "-fstack-protector" "-D_FORTIFY_SOURCE=1" "-Wl,-z,now" "-Wl,-z,relro" "-I" "/builder/staging_dir/hostpkg/include/python3.13" "-I" "/builder/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/include" "-Wconversion" "-Wno-error=sign-conversion" "-Wno-unused-parameter" "-DPy_LIMITED_API=0x030700f0" "-o" "/builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7/src/rust/target/armv7-unknown-linux-musleabihf/release/build/cryptography-cffi-a9079b5d3a627d47/out/939618beb6464b99-_openssl.o" "-c" "/builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7/src/rust/target/armv7-unknown-linux-musleabihf/release/build/cryptography-cffi-a9079b5d3a627d47/out/_openssl.c"
2025-12-30T01:37:43.1648920Z   cargo:warning=In file included from /builder/staging_dir/hostpkg/include/python3.13/Python.h:64,
2025-12-30T01:37:43.1650871Z   cargo:warning=                 from /builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7/src/rust/target/armv7-unknown-linux-musleabihf/release/build/cryptography-cffi-a9079b5d3a627d47/out/_openssl.c:57:
2025-12-30T01:37:43.1683581Z   cargo:warning=/builder/staging_dir/hostpkg/include/python3.13/pyport.h:399:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
2025-12-30T01:37:43.1685093Z   cargo:warning=  399 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
2025-12-30T01:37:43.1685892Z   cargo:warning=      |  ^~~~~
2025-12-30T01:37:43.1687732Z   cargo:warning=/builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7/src/rust/target/armv7-unknown-linux-musleabihf/release/build/cryptography-cffi-a9079b5d3a627d47/out/_openssl.c: In function 'Cryptography_DTLSv1_get_timeout':
2025-12-30T01:37:43.1691369Z   cargo:warning=/builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7/src/rust/target/armv7-unknown-linux-musleabihf/release/build/cryptography-cffi-a9079b5d3a627d47/out/_openssl.c:1205:25: warning: conversion from 'suseconds_t' {aka 'long long int'} to 'long int' may change value [-Wconversion]
2025-12-30T01:37:43.1693890Z   cargo:warning= 1205 |             *ptv_usec = tv.tv_usec;
2025-12-30T01:37:43.1694460Z   cargo:warning=      |                         ^~
2025-12-30T01:37:43.1694926Z   exit status: 1
2025-12-30T01:37:43.1695118Z 
2025-12-30T01:37:43.1695253Z   --- stderr
2025-12-30T01:37:43.1695432Z 
2025-12-30T01:37:43.1695437Z 
2025-12-30T01:37:43.1702894Z   error occurred: Command "arm-openwrt-linux-muslgnueabi-gcc" "-Os" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=armv7-a" "-mfpu=vfpv3-d16" "-Os" "-pipe" "-fno-caller-saves" "-fno-plt" "-fhonour-copts" "-mfloat-abi=hard" "-ffile-prefix-map=/builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7=cryptography-41.0.7" "-Wformat" "-Werror=format-security" "-fstack-protector" "-D_FORTIFY_SOURCE=1" "-Wl,-z,now" "-Wl,-z,relro" "-I" "/builder/staging_dir/hostpkg/include/python3.13" "-I" "/builder/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/include" "-Wconversion" "-Wno-error=sign-conversion" "-Wno-unused-parameter" "-DPy_LIMITED_API=0x030700f0" "-o" "/builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7/src/rust/target/armv7-unknown-linux-musleabihf/release/build/cryptography-cffi-a9079b5d3a627d47/out/939618beb6464b99-_openssl.o" "-c" "/builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7/src/rust/target/armv7-unknown-linux-musleabihf/release/build/cryptography-cffi-a9079b5d3a627d47/out/_openssl.c" with args "arm-openwrt-linux-muslgnueabi-gcc" did not execute successfully (status code exit status: 1).
2025-12-30T01:37:43.1710302Z 
2025-12-30T01:37:43.1710310Z 
2025-12-30T01:37:43.1710583Z warning: build failed, waiting for other jobs to finish...
2025-12-30T01:37:46.6244877Z <string>:70: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
2025-12-30T01:37:46.6478833Z 
2025-12-30T01:37:46.6479426Z     =============================DEBUG ASSISTANCE=============================
2025-12-30T01:37:46.6480074Z     If you are seeing a compilation error please try the following steps to
2025-12-30T01:37:46.6480440Z     successfully install cryptography:
2025-12-30T01:37:46.6480792Z     1) Upgrade to the latest pip and try again. This will fix errors for most
2025-12-30T01:37:46.6481232Z        users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2025-12-30T01:37:46.6481895Z     2) Read https://cryptography.io/en/latest/installation/ for specific
2025-12-30T01:37:46.6482255Z        instructions for your platform.
2025-12-30T01:37:46.6482571Z     3) Check our frequently asked questions for more information:
2025-12-30T01:37:46.6482911Z        https://cryptography.io/en/latest/faq/
2025-12-30T01:37:46.6483212Z     4) Ensure you have a recent Rust toolchain installed:
2025-12-30T01:37:46.6483537Z        https://cryptography.io/en/latest/installation/#rust
2025-12-30T01:37:46.6483810Z     
2025-12-30T01:37:46.6483977Z     Python: 3.13.9
2025-12-30T01:37:46.6484222Z     platform: Linux-6.11.0-1018-azure-x86_64-with-glibc2.31
2025-12-30T01:37:46.6484510Z     pip: 25.2
2025-12-30T01:37:46.6484688Z     setuptools: 80.9.0
2025-12-30T01:37:46.6484882Z     setuptools_rust: 1.12.0
2025-12-30T01:37:46.6485157Z     rustc: 1.90.0 (1159e78c4 2025-09-14) (built from a source tarball)
2025-12-30T01:37:46.6485491Z     =============================DEBUG ASSISTANCE=============================
2025-12-30T01:37:46.6485747Z     
2025-12-30T01:37:46.6486568Z error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/rust/Cargo.toml --target armv7-unknown-linux-musleabihf -v --features pyo3/extension-module --profile release --crate-type cdylib --` failed with code 101
2025-12-30T01:37:46.6752099Z 
2025-12-30T01:37:46.6752547Z ERROR Backend subprocess exited when trying to invoke build_wheel
2025-12-30T01:37:46.6917359Z make[2]: *** [Makefile:55: /builder/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pypi/cryptography-41.0.7/.built] Error 1
2025-12-30T01:37:46.6918419Z make[2]: Leaving directory '/feed/lang/python/python-cryptography'
2025-12-30T01:37:46.6921193Z time: package/feeds/packages_ci/python-cryptography/compile#35.37#5.61#15.39
2025-12-30T01:37:46.6929835Z     ERROR: package/feeds/packages_ci/python-cryptography failed to build.
2025-12-30T01:37:46.6935068Z make[1]: *** [package/Makefile:187: package/feeds/packages_ci/python-cryptography/compile] Error 1
2025-12-30T01:37:46.6935678Z make[1]: Leaving directory '/builder'
2025-12-30T01:37:46.6941374Z make: *** [/builder/include/toplevel.mk:226: package/python-pyopenssl/compile] Error 2

More details: #28196

@grosjo
Copy link

grosjo commented Jan 2, 2026

Updating the version does not resolve the issue (same error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants