-
Notifications
You must be signed in to change notification settings - Fork 12
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
Is there a way around libbsd as a hard dependency? #32
Comments
it is very possible that we can remove it, at least on some platforms. i'll need look at it and try to figure out why it was originally included -- it might be required on only certain platforms. |
Is there any data I can provide to help?
|
meson has a core option Doing a stock build of libsixel results in:
Noting that
libbsd.so disappeared from the final binary! It is totally unused.
Of the handful of remaining hits, 11 are hyperlinks in README.md, one is a person's email address in a license file, and... 4 are the parts of meson.build under discussion, 1 is the installation of libbsd-dev in github CI. Any actual uses of libbsd would surely require adding a header Based on a quick grep through commit logs (hindered by yet more checked-in generated files produced by |
probably! i'll verify your conclusions and try to excise this this weekend. thanks! |
hey eli! i know you from the Arch mailing lists. agreed with the analysis here.
yeah. with all due respect to the original author, there were a lot of questionable practices at work.
i'm probably going to add this. |
libbsd has been purged from the Meson configuration. i've removed all autotools-generated files i saw. |
Great, happy to help! You don't need to add anything for asneeded though -- it is after all a default. I suppose if you like you could make that core option explicitly set, but it would only make a difference if, for some reason, meson would one day switch the default value. We have no intention of changing that. |
yep, came to this same conclusion. i've just cut 1.10.2. it drops the libbsd dependency, and is the first release to be signed. |
Cool, release signing is always nice :) although this doesn't have anything to do with me personally. Since you mention it... Alternatively this is a convenient git alias that uses the same deterministic rules to generate the tarball as github itself performs: https://github.com/eli-schwartz/dotfiles/blob/a4c7b88965c09e55d121bd7a648d72ef8e1633d5/.config/git/config#L40 |
Thanks to both of you @eli-schwartz @dankamongmen :) |
Hi!
Is there any way we could avoid libbsd as a hard dependency?
Having libmd and libbsd around on a source distro makes everything link to it, once a user uninstalls it he has to rebuild crucial parts of the system and might need to do a recovery boot.
As a port maintainer for CRUX, I decided to try and avoid pulling in libbsd as a dependency.
Thanks for the fork and continued work on libsixel!
Best regards,
Tim
Edit: For a quick test, I deleted the part of meson.build entirely - it build fine and img2sixel works as expected. Am I missing anything?
The text was updated successfully, but these errors were encountered: