Depends' makefiles do not like paths with spaces #23895

issue sinetek opened this issue on December 29, 2021
  1. sinetek commented at 3:54 PM on December 29, 2021: contributor

    Hi there, issue with the depends makefiles is that they bomb out when invoked within a path with spaces.

    $ git clone https://github.com/bitcoin/bitcoin bitcoin\ upstream $ cd bitcoin\ upstream/depends $ make download-win

    [phil@ depends]$ make download-win
    sha256sum: /home/phil/work/bitcoin: No such file or directory
    sha256sum: upstream/depends/patches/qt/qt.pro: No such file or directory
    sha256sum: /home/phil/work/bitcoin: No such file or directory
    sha256sum: upstream/depends/patches/qt/qttools_src.pro: No such file or directory
    sha256sum: /home/phil/work/bitcoin: No such file or directory
    sha256sum: upstream/depends/patches/qt/fix_qt_pkgconfig.patch: No such file or directory
    sha256sum: /home/phil/work/bitcoin: No such file or directory
    sha256sum: upstream/depends/patches/qt/mac-qmake.conf: No such file or directory
    sha256sum: /home/phil/work/bitcoin: No such file or directory
    sha256sum: upstream/depends/patches/qt/fix_no_printer.patch: No such file or directory
    sha256sum: /home/phil/work/bitcoin: No such file or directory
    sha256sum: upstream/depends/patches/qt/no-xlib.patch: No such file or directory
    sha256sum: /home/phil/work/bitcoin: No such file or directory
    sha256sum: upstream/depends/patches/qt/dont_hardcode_x86_64.patch: No such file or directory
    sha256sum: /home/phil/work/bitcoin: No such file or directory
    sha256sum: upstream/depends/patches/qt/fix_montery_include.patch: No such file or directory
    sha256sum: /home/phil/work/bitcoin: No such file or directory
    sha256sum: upstream/depends/patches/qt/fix_android_jni_static.patch: No such file or directory
    sha256sum: /home/phil/work/bitcoin: No such file or directory
    

    Expected behavior: Make downloads the files and doesn't crash uselessly.

  2. sinetek added the label Bug on Dec 29, 2021
  3. sinetek commented at 3:56 PM on December 29, 2021: contributor

    I am trying to fix this myself but the Makefiles are pretty obfuscated, I don't understand much. What is invoking sha256sum?

  4. hebasto commented at 4:10 PM on December 29, 2021: member

    Also #12528.

    I don't think it is ever possible to use spaces in development environment paths with our current set of building tools.

  5. sinetek commented at 4:17 PM on December 29, 2021: contributor

    Also #12528.

    I don't think it is ever possible to use spaces in development environment paths with our current set of building tools.

    Certainly works for the main build. There's many reasons why one might want this, for instance organizing files on the computer.

  6. hebasto commented at 5:06 PM on December 29, 2021: member

    Also #12528. I don't think it is ever possible to use spaces in development environment paths with our current set of building tools.

    Certainly works for the main build.

    $ cd bitcoin\ upstream/depends $ make download-win

    I mean, using depends as it is assumed from your example in the OP.

    If this assumption is correct, this issue is a duplicate of #12528.

  7. fanquake commented at 12:50 AM on December 30, 2021: member

    This is not a problem we can / are going to solve. It's an underlying limitation of the tools we use in our build system. I'd suggest renaming your directory to anything other than a name with a space in it. i.e bitcoin_upstream, bitcoin-upstream etc.

  8. fanquake closed this on Dec 30, 2021

  9. sinetek commented at 1:39 PM on December 31, 2021: contributor

    Not going to reopen this issue, but the solution I found is to use a different space character that is not meaningful to Make, such as the following. https://www.compart.com/en/unicode/U+2005 It is a hack, but I really want spaces in this folder name.

  10. DrahtBot locked this on Dec 31, 2022
Labels

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-13 18:14 UTC

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