Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build breaks if the build directory path contains a whitespace #245

Open
weiznich opened this issue Jul 24, 2024 · 0 comments
Open

Build breaks if the build directory path contains a whitespace #245

weiznich opened this issue Jul 24, 2024 · 0 comments

Comments

@weiznich
Copy link

weiznich commented Jul 24, 2024

Steps to reproduce:

mkdir test\ whitespace
cd test\ whitespace 
cargo new break_openssl
cargo add openssl-sys -F vendored
cargo check

Output (Stderr):

  cp: target 'whitespace/break_openssl/target/debug/build/openssl-sys-465c9c415291fea5/out/openssl-build/install/lib/cmake/OpenSSL/OpenSSLConfig.cmake': No such file or directory
  chmod: cannot access 'whitespace/break_openssl/target/debug/build/openssl-sys-465c9c415291fea5/out/openssl-build/install/lib/cmake/OpenSSL/OpenSSLConfig.cmake': No such file or directory
  cp: target 'whitespace/break_openssl/target/debug/build/openssl-sys-465c9c415291fea5/out/openssl-build/install/lib/cmake/OpenSSL/OpenSSLConfigVersion.cmake': No such file or directory
  chmod: cannot access 'whitespace/break_openssl/target/debug/build/openssl-sys-465c9c415291fea5/out/openssl-build/install/lib/cmake/OpenSSL/OpenSSLConfigVersion.cmake': No such file or directory
  make: *** [Makefile:2514: install_dev] Error 1
  thread 'main' panicked at /home/weiznich/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.3.1+3.3.1/src/lib.rs:621:9:



  Error installing OpenSSL:
      Command: cd "/tmp/test whitespace/break_openssl/target/debug/build/openssl-sys-465c9c415291fea5/out/openssl-build/build/src" && "make" "install_dev"
      Exit status: exit status: 2

It seems like the openssl build scripts are not able to handle paths with whitespaces inside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant