-
Notifications
You must be signed in to change notification settings - Fork 166
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
Don't reset CFLAGS on python recipe #5594
base: master
Are you sure you want to change the base?
Conversation
@@ -54,7 +54,7 @@ esac | |||
if [[ $OPENSSL_ROOT ]]; then | |||
export CPATH="$OPENSSL_ROOT/include:$OPENSSL_ROOT/include/openssl:$CPATH" | |||
export CPPFLAGS="-I$OPENSSL_ROOT/include -I$OPENSSL_ROOT/include/openssl $CPPFLAGS" | |||
export CFLAGS="-I$OPENSSL_ROOT/include -I$OPENSSL_ROOT/include/openssl" |
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.
Maybe what we should do is really drop CFLAFS, since most likely CPPFLAGS is enough. Could you check?
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.
The compilation without CFLAGS ends successfully, but I get a crash on env activation with this error:
alienv enter Python/latest-ubuntu2204_x86-64-o2
Loading Python/latest-ubuntu2204_x86-64-o2
Module ERROR: /home/admin/test_openssl_py/sw/ubuntu2204_x86-64/Python/v3.9.16-local1/bin/python3: error while loading shared libraries: libcrypt.so.2: cannot open shared object file: No such file or directory
while executing
"exec $PKG_ROOT/bin/python3 -c "import certifi; print(certifi.where())""
(file "/home/admin/test_openssl_py/sw/MODULES/ubuntu2204_x86-64/Python/latest-ubuntu2204_x86-64-o2" line 26)
Please contact <root@localhost>
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.
Ok, then it's needed...
@ktf is this okay to merge? |
Yes. Do we have any other Python change which we can merge at the same time (so to avoid too many rebuilds?). |
I think we currently build without -O2 when using our own OpenSSL, seems like an oversight