opencryptoki-3.27.0 fails to build on i686 in %build:
usr/lib/common/mech_openssl.c:2766:52: error: passing argument 5 of
'EVP_PKEY_get_octet_string_param' from incompatible pointer type
expected 'size_t *' {aka 'unsigned int *'} but argument is of type
'CK_ULONG *' {aka 'long unsigned int *'}
usr/lib/common/mech_openssl.c:2780:56: error: (likewise)
usr/lib/common/mech_openssl.c:7051:36: error: passing argument 4 of
'openssl_get_key_from_pkey' from incompatible pointer type
CK_ULONG is 'unsigned long' while size_t on ILP32 is 'unsigned int', so
only 32-bit builds break; on LP64 the types coincide. Since GCC 14
-Wincompatible-pointer-types is an error by default.
Both patches are post-v3.27.0 upstream commits (v3.27.0 was tagged
2026-05-13, the fixes landed in June/July 2026), so they are absent from
the 3.27.0-1.el10 import. RHEL 10 does not build i686 and never hit this.
0001 -> 627d27514e7494d36d3d7924e03e4e23ac76bec3
0002 -> ca1ac6235b9d6231578a8487dc441d1ca2a3dfd9
19 lines
520 B
YAML
19 lines
520 B
YAML
actions:
|
|
- modify_release:
|
|
- suffix: ".alma.1"
|
|
enabled: true
|
|
|
|
- changelog_entry:
|
|
- name: "Eduard Abdullin"
|
|
email: "eabdullin@almalinux.org"
|
|
line:
|
|
- "Fix build on i686: size_t vs CK_ULONG pointer incompatibility"
|
|
|
|
- add_files:
|
|
- type: "patch"
|
|
name: "0001-Fix-build-error-on-32-bit-systems-size_t-vs-CK_ULONG.patch"
|
|
number: 1001
|
|
- type: "patch"
|
|
name: "0002-Fix-unused-variable-d_size-Werror-unused-variable-wi.patch"
|
|
number: 1002
|