by bmn__ · 9y ago · 0 comments
It would be a completely unacceptable situation for application A1 to depend on DB abstraction library v0.8651, A2 on v0.8653, A3 on v0.8670, A4 on v0.87…
How do you ship this to your distro users? Almost always there is no easy way to install several libraries of the same name but different versions in parallel, and it's never supported by the distro auto-packaging tools.
Patching to use the latest version of the dependencies and verifying the patched version works ok is a huge burden on package maintainers. The application author knows the code much better!
The current solution of specifying minimum versions of dependencies exists not because we like the suffering caused by occasional breakage. No, it exists because it is a practical, working solution for the real world that is the best balanced trade-off.
In PHP we usually have a version range in libraries' dependencies and lock file that specifies exact dependency versions for the entire application. So you can be sure that you get tested combinantion of libraries.
Some do. Some others target the versions shipped in a stable Linux distribution.
And even if the upstream don't test some combinations of versions, distributions will test what they ship.
How can they check future versions of libraries that will match the range?
How is this possible is beyond my comprehension. Someone, anyone break something and I have no standard way to bypass "dll hell" (putting space problems aside)? what the actual f.
/usr/lib/perl5/vendor_perl
/usr/lib/python*/site-packages
/usr/lib64/ruby/gems/*/gems
/usr/lib64/node_modules
You have only one version of each library. This is the exact opposite of DLL hell.