5 ms·
> This is also why 99% of rust documentation starts with telling you to install rust-up from out of repo third party sources: your local repository rust, no mat
by throwaway894345 5y ago
> This is also why 99% of rust documentation starts with telling you to install rust-up from out of repo third party sources: your local repository rust, no matter how new, is already out of date.
I don't see the problem. This seems like further evidence that distro package managers aren't the way forward. They can't keep up, they rarely have a sufficiently broad or up-to-date collection of packages, and when you integrate third party channels it can break other software ("run 'apt-get -f' to fix your dependencies" has never ever worked for me). Generally language-specific package managers work just fine.
- zxzax 5y agoThat really has nothing to do with language-specific versus distro packaging. If you replaced a bunch of rust crates with random modified builds from a third party, you would probably see the same types of breakage.
- throwaway894345 5y ago> If you replaced a bunch of rust crates with random modified builds from a third party, you would probably see the same types of breakage. I wouldn't need to do that in Rust because Rust programs are typically statically compiled. If I install some third-party program, it doesn't break a bunch of software that I installed via `cargo install`, nor does it prevent me from `cargo install`ing new packages (whether or not I can install a given package doesn't depend on the state of the packages that are already installed on my system). Maybe the real reason that distro package managers are unpleasant is that they opt to dynamically link everything by default?
- zxzax 5y agoYou can also statically link debian packages, though conventionally they aren't built like that.
- bombela 5y ago> Maybe the real reason that distro package managers are unpleasant is that they opt to dynamically link everything by default? This. Seriously if things weren't such a tangled mess. I could just do `apt install potato@v2.1` and life would just be so good and simple.
- eeZah7Ux 5y agoDistributions do dynamic linking and also unbundle dependencies in order to have only one copy of each library. This is crucial for security. Otherwise backporting security fixes and/or rebuilding would become impossible.
- ex_amazon_sde 5y ago> This seems like further evidence that distro package managers aren't the way forward On the contrary, distributions are here to stay and they are growing their adoption on many platforms including hi-end "IoT" and cars. No sensible organization runs bleeding edge OSes on their airplanes, power plants, payment processors, industrial plants and so on... This also applies to not pulling random packages from random github repos using some language-specific package manager hoping they don't contain backdoors. Case in point: the CIP project https://www.cip-project.org/ https://www.cip-project.org/ aims to backport security fixes to Linux for 25 years after each CIP-approved release. This is because people expect to run the same kernel/OS for 30+ years.
- throwaway894345 5y ago> On the contrary, distributions are here to stay Seems like you misunderstood me. I said distro package managers, not distros. You even quoted me... > No sensible organization runs bleeding edge OSes on their airplanes, power plants, payment processors, industrial plants and so on... Most organizations don't run all of those things, and you don't need a bleeding edge distro to install up-to-date software. > This also applies to not pulling random packages from random github repos using some language-specific package manager hoping they don't contain backdoors. The obvious false dichotomy being that you either have to pull ancient software from a distro package repo or you depend on random packages. As though it's impossible to install vetted software with a language package manager. > This is because people expect to run the same kernel/OS for 30+ years. Right, but we're not talking about kernels, we're talking about the packages in repos.
- sk1459 5y agoI would not consider the contents of crates.io to be “vetted software”. If the burden is on the developer to carefully evaluate literally hundreds of dependencies, which may each be written in their own package-specific micro language of macros and present in several versions, then I think that’s a pretty substantial cost to bear. More likely, that expensive, unglamorous work will be papered over and ignored.
- 5y ago
- jll29 5y agoI love the convenience package managers provide, but I have to agree that they often include terribly out-of-date packages e.g. for Clang, LaTeX, Rust, so serious users often need to resort to using other sources or special package repositories (and these are often down, discontinued etc). This is in no way meant to diminish package managers or maintainers, which have brought great positive change to Linux. Just saying there is still a lot of work ahead, too.