-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support linking to system-installed libwebp #17
Comments
there is no plan to support linking the system libwebp from pkg-config. I think the current approach is more predictable and easy to use. do you mind mentioning if there is a special need for linking the system libwebp? |
It has been a while so the specific project eludes me for the moment, but packaging for Linux generally prefers supplying the system library than building and static linking a EDIT: I think I was packaging https://github.com/woelper/oculante/ and noticed that the final package doesn't dynlink to the provided |
so sorry for the late reply, I forgot until saw another issue😂 yes, cpp lib often uses lib which the system supplies, and may come with a lot of problems eg. deps version conflict and needing some special install sequence sometimes. welcome to remind if you meet any problems with using |
This would be useful for distributions packaging rust applications to be able to provide a centralized CVE management. |
yes, it is true. it does indeed be a problem. but in other words, using static links allows people to just update this single lib. Let me think about it. |
We have a user who can't compile Fractal at all because of how libwebp-sys vendors libwebp:
My educated guess is that libwebp vendored inside libwebp-sys conflicts with shared libwebp that gtk4 links to. Really, please consider adding support for linking dynamically with system libraries. Besides creating a major security risk, loading two versions of the same library into a single problem is never a good idea. |
Hi @mgorny ,
I don't think that's what caused it. libwebp-sys compiles to generate static link libraries from the vendor and set the I'm unaware of any modification system ld path like could you provide more information I do not realize or how to reproduce it? or try to test if this branch works |
I haven't hit it myself, gotten a report from user. However, since Gentoo has a hard security policy against vendoring libraries, I don't see a point in trying to get unsupported and disallowed setup to work. My suggestion, however, would be not to name this crate |
Allow looking for libwebp via
pkg-config
and then using the system version if availableThe text was updated successfully, but these errors were encountered: