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

Fails to build when patching from git #228

Open
dangeross opened this issue Jan 19, 2024 · 0 comments
Open

Fails to build when patching from git #228

dangeross opened this issue Jan 19, 2024 · 0 comments

Comments

@dangeross
Copy link

I'm having trouble building from a patch when the source is git. The patching works fine when the patch is defined as a path. I first thought it was my forked repo that was causing the error, but even patching from this repo causes the same error.

[dependencies]
openssl = { version = "0.10.62", features = ["vendored"] }

[patch.crates-io]
openssl-src = { git = "https://github.com/alexcrichton/openssl-src-rs.git", tag = "300.2.1+3.2.0" }
error: failed to run custom build command for `openssl-sys v0.9.98`

Caused by:
  process didn't exit successfully: `/Users/dangross/Source/Projects/breez-sdk/libs/sdk-wasm/target/release/build/openssl-sys-9b34fa47009423a2/build-script-main` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=WASM32_WASMER_WASI_OPENSSL_NO_VENDOR
  WASM32_WASMER_WASI_OPENSSL_NO_VENDOR unset
  cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
  OPENSSL_NO_VENDOR unset

  --- stderr
  thread 'main' panicked at /Users/dangross/.cargo/git/checkouts/openssl-src-rs-2e32af6c1ebd97b1/47d047a/src/lib.rs:644:35:
  called `Result::unwrap()` on an `Err` value: Error { kind: InvalidInput, message: "the source path is neither a regular file nor a symlink to a regular file" }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

It is failing on this line:

fs::copy(&path, &dst).unwrap();

Error { kind: InvalidInput, message: "the source path is neither a regular file nor a symlink to a regular file" }

when copying openssl/cloudflare-quiche/fuzz/mayhem/qpack_decode/corpus which is a symlink to the openssl/cloudflare-quiche/fuzz/corpus/qpack_decode directory.

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