Comments (5)
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.
For future reference here is the rust bug report: rust-lang/rust#80819
from sixel-sys.
PR for fix:rust-lang/rust#80537
from sixel-sys.
I haven't touched this in a while, but I'll fix when I have the time.
from sixel-sys.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sixel-sys.