lzanini / mdbook-katex

A preprocessor for mdBook, rendering LaTex equations to HTML at build time.
MIT License
195 stars 34 forks source link

[stack-overflow-signed.patch] NotFound for libquickjs-sys v0.9.0 #69

Closed ayoubelmhamdi closed 1 year ago

ayoubelmhamdi commented 1 year ago

i can not build mdbook from source, i'm new with rust, i do not know to to update correctly from v0.9.0 to last version v0.10.0.

cargo install --git "https://github.com/lzanini/mdbook-katex"
error: failed to run custom build command for `libquickjs-sys v0.9.0`

Caused by:
  process didn't exit successfully: `/data/projects/rust/mdbook-katex/target/debug/build/libquickjs-sys-82026ba1eb3da8ec/build-script-build` (exit status: 101)
  --- stderr
  Applying patches...
  Applying "stack-overflow-signed.patch"...
  thread 'main' panicked at 'Could not apply patches: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/mhamdi/.cargo/registry/src/github.com-1ecc6299db9ec823/libquickjs-sys-0.9.0/build.rs:133:14
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
SichangHe commented 1 year ago

Could you read the README and try the install method stated there?

ayoubelmhamdi commented 1 year ago

Yes, I am in the process of building mdbook-katex from the source code. However, I am currently facing an issue with building it manually using cargo on Void Linux. The cargo install command has also failed.

cargo install mdbook-katex
SichangHe commented 1 year ago

I am not sure what is happening here. Maybe your Rust installation has some problems. Maybe our dependency quickjs somehow does not support Void.

Here are the things that you can try to get a working mdbook-katex:

Besides that, I would also like you to provide more information about the platform you are on. I don't have a Void machine so I cannot currently test this out. And, the full output from the compilation process might be helpful.

SichangHe commented 1 year ago

I searched the quickjs-rs code base and I now think this patch is no longer being used.

SichangHe commented 1 year ago

Closing due to inactivity.