Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the value for CRYPTO_LIBS flag correctly #257

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

sahanaprasad07
Copy link
Contributor

@sahanaprasad07 sahanaprasad07 commented Jul 4, 2023

Currently value for CRYPTO_LIBS has a bogus value.

PKG_CHECK_MODULES automatically creates _LIBS flag (See ). This was missing for [CRYPTO].

Due do this, rpmlint -i test on the rpm had 106 warning like:

pkcs11-provider.x86_64: W: undefined-non-weak-symbol /usr/lib64/ossl-modules/pkcs11.so ASN1_INTEGER_it»·(/usr/lib64/ossl-modules/pkcs11.so)

And libcrypto.so was missing in Requires

Requires

pkcs11-provider (rpmlib, GLIBC filtered):
libc.so.6()(64bit)
rtld(GNU_HASH)

This PR fixes the above issues.

[root@vm-10-0-187-0 packaging]# ldd /usr/lib64/ossl-modules/pkcs11.so
linux-vdso.so.1 (0x00007fffecf29000)
libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007f109b000000)
libc.so.6 => /lib64/libc.so.6 (0x00007f109ac00000)
libz.so.1 => /lib64/libz.so.1 (0x00007f109b5f6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f109b65f000)
[root@vm-10-0-187-0 packaging]# rpmlint -i pkcs11-provider
======================================================================================================== rpmlint session starts =======================================================================================================
rpmlint: 2.4.0
configuration:
/usr/lib/python3.11/site-packages/rpmlint/configdefaults.toml
/etc/xdg/rpmlint/fedora-legacy-licenses.toml
/etc/xdg/rpmlint/fedora-spdx-licenses.toml
/etc/xdg/rpmlint/fedora.toml
/etc/xdg/rpmlint/scoring.toml
/etc/xdg/rpmlint/users-groups.toml
/etc/xdg/rpmlint/warn-on-functions.toml
checks: 31, packages: 1

========================================================================= 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness; has taken 0.0 s

@sahanaprasad07 sahanaprasad07 requested a review from simo5 July 6, 2023 08:57
Copy link
Member

@simo5 simo5 left a comment

Choose a reason for hiding this comment

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

LGTM

@simo5 simo5 merged commit 2802dd9 into latchset:main Jul 7, 2023
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