This directory is automatically created by the build process (in the build target directory, see #16588) and doesn’t need to be in the repository nor in the tarballs.
Move associated ignore directive to top-level .gitignore
file.
This directory is automatically created by the build process (in the
build target directory, see #16588) and doesn't need to be in the
repository nor in the tarballs.
Move associated ignore directive to top-level `.gitignore` file.
Concept ACK b6e9ff899677770741d94f1cf4f61ebb13fc453f
Tested on Linux Mint 19.2. The version string has been created as expected.
make
creates src/obj
directory and build.h
file in it.
make clean
removes build.h
file. It should remove src/obj
directory as well.
Another approach is to move build.h
file from src/obj
to src
, maybe.
make clean removes build.h file. It should remove src/obj directory as well.
But only if no other files were added? removing a directory recursively in make clean
would be definitely too dangerous.
Another approach is to move build.h file from src/obj to src, maybe.
Eventually, yes, but I don’t really want to change that here. I just don’t want an obj
directory in git. The src
directory is for source and anyhow, it makes no sense in the dividing up of source files.
But only if no other files were added? removing a directory recursively in
make clean
would be definitely too dangerous.
Why recursively? Could be rmdir
.
make clean Erase from the build tree the files built by
make all
.
@laanwj Just to be clear… src/obj/build.h should be in the tarballs
I don’t think so, none of the tarballs I checked had it at least:
0$ for VERSION in 0.15.0 0.16.0 0.17.0 0.18.0 0.18.1rc1 0.18.1; do tar -tvf bitcoin-core-${VERSION}/bitcoin-${VERSION}.tar.gz|grep src/obj ; done
1(…no output…)
src/obj/build.h
isn’t in the tarballs as of now, but it should be. So that we don’t need the weird copying trick here: https://github.com/bitcoin/bitcoin/blob/b499d8576f30d13dfe9000852afe47ee1c28cfbe/contrib/gitian-descriptors/gitian-linux.yml#L168-L177
@laanwj What I’m saying is that src/obj/build.h isn’t in the tarballs as of now, but it should be. So that we don’t need the weird copying trick here:
Not sure; there is just the git commit id in build.h
. And we intentionally don’t embed the git commit id in releases or tarballs (it’s unnecessary: the tag itself exactly identifies the build source). All relevant version information is in configure.ac
and passed by the build system (CLIENT_VERSION_MAJOR
, CLIENT_VERSION_MINOR
, …).
But let’s have this discussion elsewhere, it doesn’t affect this PR.
Gitian builds for commit a7aa809027633556dd3280c6e29ca98eb3235a3d (master):
d6c6331d5bb8779b29ede40450e09c93...
bitcoin-0.18.99-aarch64-linux-gnu-debug.tar.gz9d0aeb3a183854db1894c148684a2967...
bitcoin-0.18.99-aarch64-linux-gnu.tar.gz00eca38f0593c39438c988339b2269ea...
bitcoin-0.18.99-arm-linux-gnueabihf-debug.tar.gz9090d968c576f7f1475774584ae90282...
bitcoin-0.18.99-arm-linux-gnueabihf.tar.gzca12783dfbfccfbb651092c73a2ba6e3...
bitcoin-0.18.99-i686-pc-linux-gnu-debug.tar.gz02a8d0e055409dc70b02bad2d9205aeb...
bitcoin-0.18.99-i686-pc-linux-gnu.tar.gz46055916f6a3f9d4af33692913b104bc...
bitcoin-0.18.99-osx-unsigned.dmgdfd33e16ddc4863ae7f4990f7829d5d5...
bitcoin-0.18.99-osx64.tar.gz98eff308a265524446bd150b39f4964f...
bitcoin-0.18.99-riscv64-linux-gnu-debug.tar.gz6c43910bf13beaab04b26ddf30d1b484...
bitcoin-0.18.99-riscv64-linux-gnu.tar.gze13026deb46aebbe33292943985141c3...
bitcoin-0.18.99-win64-debug.zip5194fe7fcbfd7f58cd22365a6fd2f3c9...
bitcoin-0.18.99-win64-setup-unsigned.exef27d4ffd251e04711eaef6de613b7112...
bitcoin-0.18.99-win64.zip103c1c5781ae61e05e206b43720e0e7d...
bitcoin-0.18.99-x86_64-linux-gnu-debug.tar.gz9202666f7ae4ec6db9f019a1758df34b...
bitcoin-0.18.99-x86_64-linux-gnu.tar.gzcc60c71bbd72244dc34658a615853825...
bitcoin-0.18.99.tar.gz787a2339f4559459644c60b8c1d6faad...
bitcoin-core-linux-0.19-res.yml556de79cee6bc37d1eef47b6e28cf58a...
bitcoin-core-osx-0.19-res.yml80467961539cba0bf375e640e3f68d4a...
bitcoin-core-win-0.19-res.yml3f80f939721b6730a43f44d19ce90091...
linux-build.logbf6fef8be1c084d045ab1ec3ed25c1dc...
osx-build.log0f57059251ce5e72368cf821a7548b76...
win-build.logGitian builds for commit 9deb07469561e28742b2be3977abdc989ae93aab (master and this pull):
145f82e2059dfa2d93325cd8b08a2293...
bitcoin-0.18.99-aarch64-linux-gnu-debug.tar.gz688b0e10ce96980da9219ea824ee894f...
bitcoin-0.18.99-aarch64-linux-gnu.tar.gz76976844ea7231fbaa5581b91066e448...
bitcoin-0.18.99-arm-linux-gnueabihf-debug.tar.gz8e380b9f1e66874dcc98761cdccef433...
bitcoin-0.18.99-arm-linux-gnueabihf.tar.gz7be259aa1e24e339bac5b7b80135e105...
bitcoin-0.18.99-i686-pc-linux-gnu-debug.tar.gz5360a3854c948bab350c1956af4e27e0...
bitcoin-0.18.99-i686-pc-linux-gnu.tar.gz96d2ce49e9e1fc88d3062d32ee38566d...
bitcoin-0.18.99-osx-unsigned.dmge3b031886026ad2b9d695221dbebe8c5...
bitcoin-0.18.99-osx64.tar.gz6f0dab495c5e1c96814ac46f11c47a6e...
bitcoin-0.18.99-riscv64-linux-gnu-debug.tar.gzad195c497e6e628556b2c1fdd86a2122...
bitcoin-0.18.99-riscv64-linux-gnu.tar.gz7295515f4b4810ad85e71a8001120d56...
bitcoin-0.18.99-win64-debug.zip5f4a837bf9dde243335a428d08885113...
bitcoin-0.18.99-win64-setup-unsigned.exea5ac30927a92142833edb302dc09f4cf...
bitcoin-0.18.99-win64.zip761a631d4d359907037419e0aba0bea2...
bitcoin-0.18.99-x86_64-linux-gnu-debug.tar.gz871ff8c8b62c0a05d70383f7f06fbf40...
bitcoin-0.18.99-x86_64-linux-gnu.tar.gz093d6b9e93f24aea90686d94da3bf929...
bitcoin-0.18.99.tar.gz4acce943c06f4d9a797f457e0b757481...
bitcoin-core-linux-0.19-res.ymlb9155b3837fa64160526be35acd14f31...
bitcoin-core-linux-0.19-res.yml.diffc65e15b230c820c1cebc234f15eda12d...
bitcoin-core-osx-0.19-res.yml550b8aa8147a7365d2fe7d6d4a64dcb6...
bitcoin-core-osx-0.19-res.yml.diffbd8091f34e60e4cf50eb36a2415d0f33...
bitcoin-core-win-0.19-res.ymld96e8dbd3436dc0a63e9cca73c2a2cc5...
bitcoin-core-win-0.19-res.yml.diff4a3eeac5f42a9af9021bec23079480a3...
linux-build.loga97615a91c43343a80a15d3f131f7b08...
linux-build.log.diff72d869d6dad229c676c537df56b6b88c...
osx-build.log70f38f854fbe84b6b75b877285b711a5...
osx-build.log.diff56017f7672aca679a6c9d2da46b96b40...
win-build.log2f72a2d7c607f75662132b68c07749d5...
win-build.log.diff