Skip to content

Comments

Run apps/progs.pl from the build tree#11184

Closed
romen wants to merge 1 commit intoopenssl:masterfrom
romen:prog.pl_fix
Closed

Run apps/progs.pl from the build tree#11184
romen wants to merge 1 commit intoopenssl:masterfrom
romen:prog.pl_fix

Conversation

@romen
Copy link
Member

@romen romen commented Feb 26, 2020

apps/progs.pl is optimized to be run from the build tree, but make update currently runs it from the src tree.

This can lead to failures in out-of-tree builds if the build tree is nested deeper than the src tree compared to the common ancestor node.

This commit fixes the Makefile template to run apps/progs.pl from the build tree instead.

`apps/progs.pl` is optimized to be run from the build tree, but `make
update` currently runs it from the src tree.

This can lead to failures in out-of-tree builds if the build tree is
nested deeper than the src tree compared to the common ancestor
node.

This commit fixes the Makefile template to run `apps/progs.pl` from the
build tree instead.
@romen romen added branch: master Applies to master branch severity: urgent Fixes an urgent issue (exempt from 24h grace period) labels Feb 26, 2020
@romen romen requested a review from levitte February 26, 2020 12:13
@romen
Copy link
Member Author

romen commented Feb 26, 2020

I am marking as urgent as my default build toolchain is now testing also out-of-tree builds and this can trigger failures, so I believe it fits the criteria of breing a fix for an issue breaking master builds.

Ping @levitte to evaluate if this fix matches what he has in mind and to evaluate if he agrees with the urgent label.

@romen
Copy link
Member Author

romen commented Feb 26, 2020

None of our CIs detected this failure, given that some scripts are adapted to be run from the src tree and some are adapted to be run from the build tree, should we have some build configuration target in which the out-of-tree builds are tested with different relative nesting depths for the src and build trees to verify that this kind of problem does not stay hidden in the future?

@romen romen added the approval: review pending This pull request needs review by a committer label Feb 26, 2020
@levitte
Copy link
Member

levitte commented Feb 26, 2020

Hahaha, I took this a step further, see #11185

@levitte
Copy link
Member

levitte commented Feb 26, 2020

Good idea regarding the nesting levels. That's a simple change in .travis.yml

@levitte
Copy link
Member

levitte commented Feb 26, 2020

For a Travis fix, see #11186

@romen
Copy link
Member Author

romen commented Feb 26, 2020

Mine was just a local hack, while #11185 seems a more well-thought solution (even though I don't fully understand the changes): I am closing this in favor of #11185

@romen romen closed this Feb 26, 2020
romen added a commit to romen/openssl that referenced this pull request Jun 12, 2020
Change relative nesting depth of the OOT build_dir

Build failures seem to depend on what is the relative nesting level
between $srcdir and $blddir. This seems potentially related to:

- openssl#11184
- openssl#11185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: review pending This pull request needs review by a committer branch: master Applies to master branch severity: urgent Fixes an urgent issue (exempt from 24h grace period)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants