-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[openssl] Fix installation of openssl[core,tools] #31171
Conversation
Do not try to install file that does not exist. Fixes microsoft#31170 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
if("tools" IN_LIST FEATURES) | ||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}") | ||
file(RENAME "${CURRENT_PACKAGES_DIR}/openssl.cnf" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/openssl.cnf") | ||
file(RENAME "${CURRENT_PACKAGES_DIR}/fipsmodule.cnf" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/fipsmodule.cnf") | ||
if("fips" IN_LIST FEATURES) | ||
file(RENAME "${CURRENT_PACKAGES_DIR}/fipsmodule.cnf" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/fipsmodule.cnf") | ||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are creating the next bug...
The fips-related lines must be moved out of the tools-related block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Shouldn't this command be limited to when both tools and fips are enabled? The file is explicitly deleted when tools is not enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With my patch the file is installed into tools iff both tools and fips are enabled. It is deleted when fips is enabled but tools not, And it is never generated if fips is not enabled. Which of these cases do you want to have handled differently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should it be deleted at all for openssl[fips]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should it be deleted at all for
openssl[fips]
?
I see, it is about to be copied to the tools directory.
Latest vcpkg openssl port broken right now. See microsoft/vcpkg#31171 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Latest vcpkg openssl port broken right now. See microsoft/vcpkg#31171 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Latest vcpkg openssl port broken right now. See microsoft/vcpkg#31171 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Do not try to install file that does not exist. Fixes microsoft#31170 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Do not try to install file that does not exist.
Fixes #31170
./vcpkg x-add-version --all
and committing the result.