The cause is that #9921 introduced new defines, but without re-running autogen.sh, they wouldn’t be found. This change makes sure that autoheader is re-run (as it’s supposed to be) any time configure.ac is touched.
Also, this undoes #4322, as it would introduce an infinite loop otherwise. I suspect that these convenience targets get very little use anymore, but we can always add back hard-coded ones if necessary.
build: remove wonky auto top-level convenience targets
These were meant to help build subdir targets from the top builddir, but cause
infinite recursion when going the other way.
If anyone actually uses these, we can add back specific targets.
3577603701
build: fix bitcoin-config.h regeneration after touching build files
This was a long-standing and annoying problem.
If autogen.sh was not manually run after touching configure.ac,
bitcoin-config.h would not be properly regenerated. This causes very subtle
problems when configure appears to enable a new value, but it does not end up
reflected in the build.
91ab8f5a99
fanquake added the label
Build system
on Apr 18, 2017
laanwj
commented at 7:56 am on April 19, 2017:
member
Also, this undoes #4322, as it would introduce an infinite loop otherwise. I suspect that these convenience targets get very little use anymore, but we can always add back hard-coded ones if necessary.
Which ones does this prevent use of? I use make src/bitcoind a lot.
theuni
commented at 3:29 pm on April 19, 2017:
member
laanwj
commented at 7:10 am on April 20, 2017:
member
@laanwj Only obscure targets. The bins are still listed there explicitly:
Sounds good to me then.
laanwj
commented at 11:17 am on April 20, 2017:
member
This change makes sure that autoheader is re-run (as it’s supposed to be) any time configure.ac is touched.
Something that makes me wonder: shouldn’t the entire process re-run when configure.ac is touched? Or is that the effect of this - was autoheader the only step missing for that?
theuni
commented at 2:17 pm on April 20, 2017:
member
Yes, that should be the case now. For some reason automake doesn’t push the autoheader rules down to subdirs, so it was never re-triggered if you build from src/.
Thinking about it now, we should probably backport this for 0.14.2 as well, since switching branches is one of the most common ways this problem can show up.
laanwj
commented at 4:10 pm on April 20, 2017:
member
Thinking about it now, we should probably backport this for 0.14.2 as well, since switching branches is one of the most common ways this problem can show up.
Good point - I don’t switch branches anymore for this reason (among others). I just have a git-worktree checkout per branch.
laanwj
commented at 4:13 pm on April 20, 2017:
member
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-11-21 21:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me