Giter VIP home page Giter VIP logo

Comments (5)

mmulet avatar mmulet commented on September 1, 2024 1

Found the source of the error. It's a bug with std::proccess::Command.
tldr;
Create a dummy file named configure in the project root directory and everything works.

Actual Explanation:
In the current version of rust (1.49.0 at time of writing) the std::proccess::Command constructor std::process::Command::new takes in a &str as an argument. This argument is then interpreted in a OS dependent way.
On macOS, but not Linux, std::proccess::Command::new will attempt to find the command if it is a relative path. However, this is not the location of the actual command because we use the .current_dir() method to change the current working directory.
So, on macOS, at std::proccess::Command::new the relative path you pass in must be a valid path relative to the working directory of the calling proccess and a valid path relative to the directory passed to .current_dir().

I will create a bug report for the rust standard library, but in the meantime you can fix this with an ease workaround:
Create a dummy file named configure in the project root directory. This way the relative path will be valid in both contexts.

from sixel-sys.

mmulet avatar mmulet commented on September 1, 2024

For future reference here is the rust bug report: rust-lang/rust#80819

from sixel-sys.

mmulet avatar mmulet commented on September 1, 2024

PR for fix:rust-lang/rust#80537

from sixel-sys.

AdnoC avatar AdnoC commented on September 1, 2024

I haven't touched this in a while, but I'll fix when I have the time.

from sixel-sys.

pjschinske avatar pjschinske commented on September 1, 2024

I seem to be getting this bug on Archlinux and FreeBSD, even after creating the configure file as it is in mmulet's commit. Am I missing something?

from sixel-sys.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.