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
CentOS8 build fail: error: 'SOFTHSM2_PATH' undeclared #5397
Comments
Please install |
Hi, although installing softhsm is a valid workaround I think it is not necessary to require it. Please try if with the following patch bye,
|
Wouldn't it be better to handle this closer to https://github.com/SSSD/sssd/blob/master/src/external/test_ca.m4#L38 ? And perhaps this could be handled together with #5329 |
Hi, how would you like to handle it in the configure check? I think not setting How the missing module should be handled depends imo on the individual use case and should be handled where it is needed, so in this case in
Sure, did we already come to a solution what a suitable fix for #5329 would be? E.g. grep bye, |
Alas the patch doesn't apply for me to master:
|
Ok, agree.
But I don't fully understand your patch either. Missing So tests still will be run but with "" as a path? How is it expected to work?
Well, taken above into consideration, I revoke this assumption. |
No, it does. In https://github.com/SSSD/sssd/blob/master/src/external/test_ca.m4#L61 BUILD_TEST_CA is only defined if SOFTHSM2_PATH is set and in the following lines HAVE_TEST_CA is only set if BUILD_TEST_CA is set. bye, |
ah, sorry, I didn't took the patch from plain master but from some working branch which also modified the file. Please try:
HTH bye, |
Then perhaps it's cleaner to wrap corresponding test functions into |
Just tried, and have a clean build and all (non skipped) tests pass!
|
Hi, thanks for the confirmation. bye, |
Hi, yes, that would be possible. Currently only the As an alternative all code which depends on the presence of the test CA can be move into a separate file or even in a separate test. bye, |
…ded paths Right now building SSSD in archs different from amd64 (at least in debian and derivatives) won't ever get the test_CA built because libsofthsm2 won't be found (leading also to SSSD#5397 at times). As per this, until they won't provide a pkg-config file: - Prioritize looking for libsofthsm2 in configured libdir (will help the developer case when using custom prefixes with custom softhsm2) - Fallback to /usr prefixes, supporting any arch (not only x86_64)
…ded paths Right now building SSSD in archs different from amd64 (at least in debian and derivatives) won't ever get the test_CA built because libsofthsm2 won't be found (leading also to SSSD#5397 at times). As per this, until they won't provide a pkg-config file: - Prioritize looking for libsofthsm2 in configured libdir (will help the developer case when using custom prefixes with custom softhsm2) - Fallback to /usr prefixes, supporting any arch (not only x86_64)
…ded paths Right now building SSSD in archs different from amd64 (at least in debian and derivatives) won't ever get the test_CA built because libsofthsm2 won't be found (leading also to SSSD#5397 at times). As per this, until they won't provide a pkg-config file: - Prioritize looking for libsofthsm2 in configured libdir (will help the developer case when using custom prefixes with custom softhsm2) - Fallback to /usr prefixes, supporting any arch (not only x86_64)
…ded paths Right now building SSSD in archs different from amd64 (at least in debian and derivatives) won't ever get the test_CA built because libsofthsm2 won't be found (leading also to SSSD#5397 at times). As per this, until they won't provide a pkg-config file: - Prioritize looking for libsofthsm2 in configured libdir (will help the developer case when using custom prefixes with custom softhsm2) - Fallback to /usr prefixes, supporting any arch (not only x86_64)
…ded paths Right now building SSSD in archs different from amd64 (at least in debian and derivatives) won't ever get the test_CA built because libsofthsm2 won't be found (leading also to #5397 at times). As per this, until they won't provide a pkg-config file: - Prioritize looking for libsofthsm2 in configured libdir (will help the developer case when using custom prefixes with custom softhsm2) - Fallback to /usr prefixes, supporting any arch (not only x86_64) Reviewed-by: Sumit Bose <sbose@redhat.com>
…ded paths Right now building SSSD in archs different from amd64 (at least in debian and derivatives) won't ever get the test_CA built because libsofthsm2 won't be found (leading also to SSSD#5397 at times). As per this, until they won't provide a pkg-config file: - Prioritize looking for libsofthsm2 in configured libdir (will help the developer case when using custom prefixes with custom softhsm2) - Fallback to /usr prefixes, supporting any arch (not only x86_64) Reviewed-by: Sumit Bose <sbose@redhat.com>
Fixed: #5438 |
When building on CentOS8 as follows, "make check" fails.
There is missing configure.ac checks to ensure the SOFTHSM2_PATH is declared.
The text was updated successfully, but these errors were encountered: