-
Notifications
You must be signed in to change notification settings - Fork 6
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 libmagic if not installed #4
Comments
Would a pull request be accepted if it starts solving this issue? |
Hej @koutheir ! |
Sure, I just wanted to know there's a possibility before I start changing stuff.
Building
Support for other operating systems, e.g., FreeBSD, OS X, Windows, etc. |
That would be a huge step forward from what's in place right now!
As long as linking to an existing I'd say go for it and thanks for your help and interest 👍 |
I made some progress on the issue, but it's still on my local machine. I wanted to discuss with you some breaking changes that I intend to do in a future pull request, so that we agree on the ideas before I push some code. |
In order to align this crate to the pseudo-conventions for environment variables, established by crates such as
|
|
If
|
The static building of libraries from sources is based on the external official build system, namely |
I built the following build configurations successfully:
|
I pushed the code on my own fork of the repository, so that you can take a look if you need more details. I plan to make a pull request once we agree on these changes. |
Isn't there any interest in this discussion and future pull request? |
Couple things:
|
I couldn't find a way to make a cargo dependency conditional. If you have an idea how to do so, then please tell me.
I suppose you mean licensing consequences... I don't know, I'm not a lawyer. My contributions are licensed under the public domain, so that's not an issue.
I made no changes to the sources in
I suppose it's possible, but it requires understanding their build system and portability measures. If this is done, then we can also avoid relying on the build systems to build the C sources and generated data. However, this will further complicate
Yes, it's annoying me too. I'm just avoiding macros for the moment, but we might consider factorizing these calls as a cleanup measure.
I've no idea what happens on MacOS.
This definitely needs to be done, but I prefer doing it after the sources seem okay for all reviewers.
True, and that's the price of depending on these official external build systems.
Sure. |
For simplification reasons, we might consider making a new |
Here is my |
See Added documentation for |
Well, it seems no real interest is there for any of this stuff I worked on. I'll keep my changes private. |
In addition to
pkg-config
(#1) another fallback option would be buildinglibmagic
if it is not installed for the target system.This could be done using a Git submodule of file/file.
libmagic
(andfile
) uses the GNU autotools to compile and install.Building
libmagic
on Windows (#2) and OS X (#3) needs to be considered as well.The text was updated successfully, but these errors were encountered: