-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Bug in Configure out-of-tree directory path computation #22853
Comments
I agree with bspencer. https://github.com/openssl/openssl/pull/23482/files#diff-6defafa2caa65304173956e3fbc26b6947c50bc769c08c3da32c1032fa6519d4 solved the problem for me. And I think b8e98c3 did not actually fix the root cause of the problem. |
I agree, that does look pretty odd. Also, there are actually more bugs in there. For paths that are known to be directories, |
Configure was recently made to process this sort of line: DEPEND[generated]=util/perl|OpenSSL/something.pm Unfortunately, in processing such lines, the order in which paths were recomputed caused some resulting paths to be faulty under some circumstances. This change fixes that. Fixes openssl#22853
Please try #23500 |
... and apologies for the wait. For some reason, this went under my radar for a bit. |
Configure was recently made to process this sort of line: DEPEND[generated]=util/perl|OpenSSL/something.pm Unfortunately, in processing such lines, the order in which paths were recomputed caused some resulting paths to be faulty under some circumstances. This change fixes that. Fixes #22853 Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #23500)
Configure was recently made to process this sort of line: DEPEND[generated]=util/perl|OpenSSL/something.pm Unfortunately, in processing such lines, the order in which paths were recomputed caused some resulting paths to be faulty under some circumstances. This change fixes that. Fixes openssl#22853 Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from openssl#23500) (cherry picked from commit 64cae40)
I think there's a bug in OpenSSL 3.2.0's
Configure
script that breaks out-of-tree configuration generation when the source tree is "several parent directories" away (and likely in other circumstances) and the source tree's parents to that same depth are not owned by you.For example, with a freshly checked out copy of the
openssl-3.2.0
tag:I think this is caused by a small mistake in
Configure
on line 2476 (on the openssl-3.2.0 tag).I think the
$d
variable needs to be computed using the original value of$i
obtained from the regex match, before$i
was recomputed by passing throughcleanfile()
. Changing this locally seemed to work for many different configuration targets and seems to produce the intended value in$d
, although I couldn't be sure (thus I haven't prepared a PR).The text was updated successfully, but these errors were encountered: