[doc] build: warn against spaces in working directory #15441
pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2019/02/build_discourage_space changing 5 files +15 −2-
Sjors commented at 1:27 pm on February 19, 2019: member
-
laanwj commented at 2:07 pm on February 19, 2019: memberI think we should fix this instead of warn against it
-
Sjors commented at 2:30 pm on February 19, 2019: memberFrom my understanding that would involve fixing
protobuf
andlibtool
. We could of course leave those tickets open even after this warning. -
laanwj commented at 2:38 pm on February 19, 2019: member
fixing
protobuf
andlibtool
So is this only an issue when building
depends
? I agree that is out of scope, and should probably be documented with depends then, but I think our own project should probably be spaces-safe. -
MarcoFalke commented at 3:08 pm on February 19, 2019: memberAre there upstream issues about the packages in depends that won’t build with spaces in paths?
-
practicalswift commented at 3:36 pm on February 19, 2019: contributorCould test for this when running the
configure
script and warn if the unfortunate conditions are met? -
Sjors commented at 4:20 pm on February 19, 2019: memberI don’t think it’s just depends. The first issue I found was
make install
failing on macOS, I don’t think that involved depends. The second issue is depends. -
MarcoFalke commented at 7:47 pm on February 19, 2019: member
With a space in the working directory I can not even start to compile depends (it would fail in the download step)
Is it worth to fix that?
-
fanquake added the label Docs on Feb 19, 2019
-
DrahtBot commented at 8:53 pm on May 6, 2019: member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
No conflicts as of last run.
-
DrahtBot added the label Needs rebase on Jun 29, 2019
-
Sjors force-pushed on Jul 5, 2019
-
DrahtBot removed the label Needs rebase on Jul 7, 2019
-
BlockMechanic commented at 11:04 pm on July 8, 2019: contributoris there at least a temporay work around , beyond exporting a path with no spaces? I ask beacuse to view code i use the combination of github for linux and sublime text, of which github adds a variable with a sapce to the path.
-
DrahtBot added the label Needs rebase on Feb 5, 2020
-
Sjors force-pushed on Feb 10, 2020
-
Sjors force-pushed on Feb 10, 2020
-
[doc] build: warn against spaces in working directory
In particular libtool and protobuf can't handle this, and make install on at least macOS will fail.
-
Sjors force-pushed on Feb 10, 2020
-
Sjors commented at 1:00 pm on February 10, 2020: member
Rebased. As much I prefer the underlying problem to be solved, it’s still there… E.g. on macOS when calling
make
independs
:0Fetching biplist-1.0.3.tar.gz from https://bitcoincore.org/depends-sources 1 % Total % Received % Xferd Average Speed Time Time Time Current 2 Dload Upload Total Spent Left Speed 3 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file /Volumes/SSD/dev/bitcoin 4Warning: space/depends/work/download/native_biplist-1.0.3/biplist-1.0.3.tar.gz. 5Warning: temp: No such file or directory 6 75 21258 75 16055 0 0 29085 0 --:--:-- --:--:-- --:--:-- 29085 7curl: (23) Failed writing body (0 != 16055) 8make: *** [space/depends/sources/download-stamps/.stamp_fetched-native_biplist-biplist-1.0.3.tar.gz.hash] Error 23
-
DrahtBot removed the label Needs rebase on Feb 10, 2020
-
fanquake commented at 0:46 am on February 28, 2020: member
I’m not convinced this is something we need to have in our documentation, and the fact that it hasn’t come up apart from the issues you’ve opened might also point to that.
We could use our docs to warn everyone about every issue they might run into when compiling an autotools based C++ project, as well provide troubleshooting for their package manager (i.e #18070), but I think our READMEs should only contain instructions that are actually related to building Bitcoin Core, and we should work on the assumption that anyone reading them has a working development environment.
-
Sjors commented at 8:31 am on February 28, 2020: memberIt’s uncommon for people to have spaces in their development environment path; it happened to me because I moved everything to an external SSD drive that had a bad default name. But I wouldn’t consider that a broken environment.
-
Sjors closed this on Apr 23, 2020
-
DrahtBot locked this on Feb 15, 2022
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-12-04 18:12 UTC
More mirrored repositories can be found on mirror.b10c.me