src/build.h preferred over build/build.h #1841

issue luke-jr opened this issue on September 20, 2012
  1. luke-jr commented at 11:02 AM on September 20, 2012: member

    45771671704f0ed09aec48777c12f0af388d1beb (#1077) moved build.h to a build directory, but if src/build.h exists from previous builds, it is preferred over the new file.

  2. laanwj commented at 11:43 AM on September 20, 2012: member

    Solution: just remove the old build.h file

  3. sipa commented at 12:38 PM on September 20, 2012: member

    The qt builds use build/build.h, the bitcoind builds use obj/build.h. Nothing uses src/build.h anymore, so you can just remove that.

  4. luke-jr commented at 1:15 PM on September 20, 2012: member

    Yes, that is a workaround. It doesn't fix the problem, however, which still lurks quietly for anyone who doesn't know to delete it...

  5. sipa commented at 1:24 PM on September 20, 2012: member

    I'm not sure we should prevent all possible effects of unclean build directories.

  6. luke-jr commented at 1:50 PM on September 20, 2012: member

    It's not as if "make clean" deals with this either. OTOH, maybe it makes sense to prefer a src/build.h for other reasons, history aside.

  7. gavinandresen commented at 2:16 PM on September 20, 2012: contributor

    I see two bugs:

    make clean should remove obj/build.h

    .gitignore should not ignore src/build.h, so 'git status' shows the obsolete src/version.h.

    I'll push a fix for those.

    I agree with @sipa, time moves forward and we don't want to muddy our source or Makefiles for stuff we changed in the past.

  8. gavinandresen commented at 2:30 PM on September 20, 2012: contributor

    Fixes to .gitignore and make clean pushed, I'm going to close this.

  9. gavinandresen closed this on Sep 20, 2012

  10. luke-jr commented at 7:47 PM on September 20, 2012: member

    @gavinandresen Sounds reasonable.

  11. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

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: 2026-04-14 15:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me