14 ms·
Debian discusses vendoring again
- matkoniecz 6y agoNote "SubscriberLink" and "The following subscription-only content has been made available to you by an LWN subscriber." You are likely not supposed to post it to HN
- detaro 6y agohttps://lwn.net/op/FAQ.lwn https://lwn.net/op/FAQ.lwn says > Where is it appropriate to post a subscriber link? > Almost anywhere. Private mail, messages to project mailing lists, and blog entries are all appropriate. As long as people do not use subscriber links as a way to defeat our attempts to gain subscribers, we are happy to see them shared.
- matkoniecz 6y agoThanks! I was unaware about such approach, thanks for clarification! "subscription-only content" confused me and I failed to parse "has been made available to you by an LWN subscriber". It is the first time when I see such approach explicitly encouraged and I really like it. Hopefully it is going well for LWN.
- superkuh 6y agoThis futureshock is a result of the rapid pace of new features implemented within commonly used libraries and immediately used by devs. The rapid pace is good for commerce and servers but it's bad for the desktop. Commerce pays almost all the devs (except those wonderful people at debian) so futureshock will continue. The symptoms of this inbalance in development incentives versus user incentives express themselves as containerization and vendoring.
- chalst 6y agoI'm surprised the option of moving the package to contrib got so little support. Many of these packages don't seem a good fit for Debian stable and its security-patch model.
- JoshTriplett 6y agocontrib is for software that doesn't fit into a fully FOSS ecosystem. It's not for sidestepping security or quality concerns. I wouldn't want to see FOSS with no proprietary dependencies stuffed into contrib because of packaging issues.
- chalst 6y agoIt is hard to audit DFSG compliance for software whose build process pulls in dependencies at run time.
- nikisweeting 6y agoArchiveBox is fully FOSS but is almost unpackagable on stable because it depends on a mix of both pip, packages, npm, and chromium (which is only distributed via snap). The core value provided by ArchiveBox is the integration of these disparate tools into a single UX, so it's stuck in contrib/ppa for the foreseeable future. This is just one example of a FOSS package that doesn't fit neatly into Debian's distribution model, but there are many others.
- jcelerier 6y agothen.. they should just make a new "vendored" repo for that kind of software ?
- rezonant 6y agoSpeaking as a seasoned Node.js dev, if they think they can handle Node's nested vendored packaging system using flat debian packaging and guarantee correct behavior of the app they are sorely mistaken. It's a fools errand. The sheer amount of effort being proposed here is astounding.
- zaarn 6y agoIf all you have is a hammer... It's not the first time debian package policies seem backwards and trying to shove a square peg through a round hole. I hope the solution does not end up being "make APT do it" because APT is a terrible package manager to begin with (I hate every second that I had to fight APT over how to handle PIP packages that I would very much like installed globally).
- bbarnett 6y agoapt is an incredible package manager. Don't blame the hammer, blame the carpenter. The problem here is packaging, and maintainer decisions. And yes, I'm familiar with the issues here, and the bugs filed. I think it was handled... improperly as well.
- tpetry 6y agoI don‘t understand why debian wants to package nodejs libraries? There is already a package manager for nodejs. Why do they have to package it again? The same applies for php or python libraries, both ecosystems do have their own package managers.
- hashmush 6y agoThey're talking about "application projects" which I understood as actual programs, not libraries. As a user I don't care if the tools I'm using are written in C, Python or JS, so I shouldn't have to remember which package manager to use, Debian should include them all.
- erik_seaberg 6y agoThey don’t want twenty .deb node apps to depend on twenty different versions of the same library, because backporting security fixes to each of them years from now could be a nightmare.
- nikisweeting 6y agoWhy is Debian responsible for backporting security fixes for the thousands of deb packages available? Shouldn't that responsibility be handed to the package authors/maintainers themselves?
- scbrg 6y agoDebian are the package maintainers.
- nikisweeting 6y agoRight, and therein lies the rub. Unless Debian wants to "boil the ocean" and burn a ludicrous amount of effort on repackaging every last npm and pip package for Debian, that position seems unsustainable long-term. I'm of the opinion that Debian should create more distribution channels (that are available by default) where they are not the maintainers, and old releases are not forced to stay patched in order to remain installable.
- deleted 6y ago[deleted]
- iforgotpassword 6y ago> By trying to shoehorn node/go modules into Debian packages we are creating busy work with almost no value. Another problem, at least with python I've encountered this, is that the debian packages sometimes seem to fight what you downloaded via pip. It's not made to work together. I'm not a python dev so it was very confusing to figure out what is going on, and I wouldn't be surprised if it would be similar if you mix npm and deb packages for js libs. They don't know of each other and can't know which libs were anyway provided by the other, then search paths are unknown to the user etc. I think I went through similar pain when I had to get some ruby project going. My gut feeling is that it would be best if debian only supplied the package of the software in question and let's the "native" dependency management tool handle all the libs, but I guess that would get the debian folks the feeling of loss of control, as it indeed makes it impossible to backport a fix for specific libs; rather you'd have to fiddle with the dependency tree somehow.
- initplus 6y agoSure they may have to fiddle with the dependency tree, but Node & Go both have well defined dependency formats (go.mod, package.json). It should be relatively easy to record the go.mod/package.json when these applications are built, and issue mass dependency bump & rebuilds if some security issue comes up. Really seems like the best of both worlds, and less work than trying to wrangle the entire set of node/go deps & a selection of versions into the Debian repos. I mean Debian apparently has ~160,000 packages, while npm alone has over 1,000,000!
- erik_seaberg 6y ago> mass dependency bump That’s not an option for Debian stable. They intentionally backport security and stability patches, and avoid other changes that might break prod without a really good reason. https://www.debian.org/doc/manuals/debian-faq/choosing.en.html#s3.1 https://www.debian.org/doc/manuals/debian-faq/choosing.en.ht...
- initplus 6y agoThe situation with backporting security fixes is still the same. Debian could backport the fix to any node/go lib the same way they backport security fixes to C libs. The only difference is that a backported fix in a language that uses vendored dependencies rather than .so's needs to have all depending packages rebuilt.
- initplus 6y agoI am worried here that the alternative we'll end up with is applications that rely on vendoring will end up distributed entirely outside the Debian repositories... hopefully with go get/npm install, hopefully not with "download it from my website!"... But either way you lose a lot of the benefits that being officially in the Debian repos would bring. Devs want to distribute their software to users, and they aren't going to chase down rabbit holes to get it packaged to comply with every different distributions set of available dependency versions. Really this idea that a distro (even a large well maintained one like Debian) has the resources to package a set of known versions of go/node packages for common open source software seems wrong? If they aren't going to package every exact version that's required, how is it going to be possible to test for compatibility? There is no way. And no dev is going to downgrade some random dependency of their app just to comply with with Debian's set of available versions. Developers hate this versioning issue with languages like C\C++ on Linux, it's a huge pain. And that's partially why dependency management in languages like Go/Node work the way they do. A multitude of distros with slightly different versions of every lib you use is a huge headache to dev for, so people have designed languages to avoid that issue.
- JoshTriplett 6y agoThis was exactly my concern. I believe that Debian packages should avoid vendoring when possible, but that means it must be possible to package the individual modules, even if there are multiple versions, and even if there are many small dependencies.
- jillesvangurp 6y agoThat's already the reality for most of this century. Openjdk, go, rust, docker, npm/yarn, etc. all provide up to date Debian, Red Hat, etc. packages for what they offer. There's zero advantage to sticking with the distribution specific versions of those packages which are typically out of date and come with distribution specific issues (including stability and security issues). Debian's claims to adding value in terms of security and stability to those vendor provided packages are IMHO dubious at best. At best they sort of ship security patches with significant delays by trying to keep up with their stable release channels. Worst case they botch the job, ship them years late, or introduce new bugs repackaging the software (I experienced all of that at some point). When it comes to supporting outdated versions of e.g. JDKs, there are several companies specializing in that that actually work with Oracle to provide patched, tested, and certified JDKs (e.g. Amazon Coretto, Azul, or Adopt OpenJDK). Of course for Java, licensing the test suite is also a thing. Debian is probably not a licensee given the weird restrictive licensing for that. Which implies their packages don't actually receive the same level of testing as before mentioned ways of getting a supported JDK. On development machines, I tend to use things like pyenv, jenv, sdkman, nvm, etc. to create project specific installations. Installing any project specific stuff globally is just unprofessional at this point and completely unnecessary. Also, aligning the same versions of runtimes, libraries, tools, etc. with your colleagues using mac, windows, and misc. Linux distributions is probably a good thing. Especially when that also lines up with what you are using in production. Such development tools of course have no reason to exist on a production server. Which is why docker is so nice since you pre-package exactly what you need at build time rather than just in time installing run-time dependencies at deploy time and hoping that will still work the same way five years later. Clean separation of infrastructure deployment and software deployment and understanding that these are two things that happen at separate points in time is core to this. Debian package management is not appropriate for the latter. Shipping tested, fully integrated, self-contained binary images is the best way to ship software to production these days. You sidestep distribution specific packaging issues entirely that way and all of the subtle issues that happen when these distributions are updated. If you still want Debian package management, you can use it in docker form of course.
- prepperdev 6y agoDebian policy is very sane (no network access during build), but it does seem like modern software just assumes that the Internet is always available, and all dependencies (including transitive) are out there. The assumption is a bit fragile, as proven by the the left-pad incident ([1]). I hope that whatever the outcome of the discussion in Debian will be, it would keep the basic policy in place: not relying on things outside of the immediate control during package builds. 1. https://evertpot.com/npm-revoke-breaks-the-build/ https://evertpot.com/npm-revoke-breaks-the-build/
- JoshTriplett 6y agoI don't think that aspect of Debian Policy is in any danger of changing, nor should it.
- cbmuser 6y agoIt’s also not very Debian-specific. It applies to openSUSE as well, for example.
- BelenusMordred 6y agoDebian is incredibly conservative about versioning/updates and faces a lot of pressure to move faster. I hope they keep the same pace or even slow down. The world will keep turning.
- cbmuser 6y ago> Debian policy is very sane (no network access during build) openaSUSE has that policy, too. And I’m pretty sure the same applies for Fedora. You don’t want to rely on external dependencies during build that you can’t control. That would be a huge security problem.
- arp242 6y agoThe whole "download during build" thing is a minor issue; k8s, for example, puts all their dependencies in the /vendor/ directory, and AFAIK many toolchains support this or something like it. And even if they don't, this is something that can be worked around in various ways. The real issue is whether or not to use that vendor directory, or to always use generic Debian-provided versions of those dependencies, or some mix of both. This is less of a purely technical issue like the above, and more of a UX/"how should Debian behave"-kind of issue.
- initplus 6y agoI'm not entirely sure the security argument makes sense here. If a library is API compatible, does it matter if it's been vendored or not? If it's not vendored, you release the new build and be done. But if it's been vendored into 20 packages, you just need to bump the vendored version & rebuild those packages. The languages we are discussing where vendoring is common have simple build processes, and well defined dependency management mechanisms (go.mod, package.json). So it's not difficult to bump the version of a dependency and rebuild a package in those languages. A large part of the work here should even be able to be automated.
- viraptor 6y ago> The languages we are discussing where vendoring is common have simple build processes For most packages, yes. But then you've got kubernetes. Or openstack. Or keras/tensorflow stack. They are significantly harder to deal with than anything else and essentially could build their own distributions around themselves. Or pandas+scipy+numpy+mpl which lots of people just give up on and use conda.
- zeckalpha 6y ago> Kali Linux, which is a Debian derivative that is focused on penetration testing and security auditing. Kali Linux does not have the same restrictions on downloading during builds that Debian has The security auditing distribution has less auditable requirements around building packages?
- luch 6y agoThis is the magic of "offensive" security, where you don't really bother with your own security posture :D you know what they say, the cobbler's children are the worst shod ...
- erik_seaberg 6y agoI think Kali is trying to offer the latest versions of each tool, because a pentest box that randomly breaks isn’t as serious as prod servers.
- raesene9 6y agoyeah but the challenge that's being referred to (I think) is that having an unauditable supply chain on a security distribution is, in itself a security risk. You've got to imagine that Kali linux is a very tempting target for supply chain attacks, if you can compromise a load of security testers, you might get access to all sorts of information....
- PeterisP 6y agoIt's not supposed to have any information or allow compromising security testers - it's never supposed to be used as someone's personal machine, it is intended to be used as a read-only live image or a disposable VM; you spin it up, launch a tool, note the results and wipe the machine, going back to a known state. As you say, supply chain attacks are very much possible especially because you're intentionally running various third party exploits and malware which you are not going to be able to vet - so you don't expect it to be secure, you don't even bother trying to secure it or trying to verify if it's been broken - you always treat it as something toxic that should be isolated and have limited, transient access to any data.
- viraptor 6y agoI haven't seen it mentioned in that discussion, but it's the vendoring is interesting from the reproducible builds point of view, especially the recent solarwind incident. The dependencies become one step removed from their upstream distribution and potentially patched. Tracking what you're actually running becomes a harder problem than just looking at package version. With vendoring we'll see Debian security bulletins for X-1.2.3 which actually mean that the vendored Y-3.4.5 is vulnerable. And if you're monitoring some other vulnerabilities feed, Y will not show up as a package on your system at all.
- angrygoat 6y agoA snippet of a quote from Pirate Praveen in the article. > All the current trends are making it easy for developers to ship code directly to users. Which encourages more isolation instead of collaboration between projects. This is where I would respectfully disagree. As a dev, packaged libraries from the system are often fine – until I hit a snag, and need to work with the devs from another project to work out a fix. With cargo/node/yarn/poetry/gopkg/... I can send a PR to another project, get that merged, and vendor in the fix while all of that is happening. If I can't do that, I'm left with hacky workarounds, as upstreaming a fix and then waiting up to 12 months (if I'm on a six-month release tempo OS) for the fix to be available to me is just not practical. Being able to work on a quick turnaround with dependencies to fix stuff is one of the huge wins with modern build tools.
- ohazi 6y agoEven as an engineer, I usually draw a line between "stuff I like to hack on" and "core system components that I'd rather not touch." I'm fine pulling a dependency from nightly for a project I'm working on, or because some program I use has a cool new feature I want to play with. But I probably wouldn't do that with, say, openssh. I can certainly sympathize with this: > and then waiting up to 12 months (if I'm on a six-month release tempo OS) for the fix to be available but the needs of system administrators are not the same as the needs of developers. That's why my development machine is on a rolling release, but my servers run Debian stable with as few out-of-repository extras as possible. Those servers are really fucking reliable, and I don't need a massive team to manage them. Maybe this sort of "boring" system administration isn't as popular as it used to be with all of that newfangled container orchestration stuff, but this is the core of the vendoring argument. Installing who-knows-what from who-knows-where can work if you're Google, but it really sucks if you're one person trying to run a small server and have it not explode every time you poke at it.
- wbl 6y agoThe point of vendoring and not using dynamic linking is to avoid spooky action at a distance that screws up everything.
- 6y ago
- newpavlov 6y agoIt's a very reasonable policy to require an ability to build everything offline without accessing language "native" repositories. But I think a big problem is that Debian requires that each library was a separate package. For classic C/C++ libraries it's not a problem, since for historical reasons (lack of a good, standard language package manager and thus high-level of pain caused by additional dependencies) they had relatively big libraries. Meanwhile in new languages, good tooling (cargo, NPM, etc.) makes "micro-library" approach quite viable and convinient (to the point of abuse, see leftpad). And packaging an application with sometimes several hundred dependencies is clearly a Sisyphean task. I think, that instead of vendoring, Debian should instead adopt a different packaging policy, which would allow them to package whole dependency trees into a single package. This should make it much easier for them to package applications written in Rust and similar languages.
- RcouF1uZ4gsC 6y ago> For classic C/C++ libraries it's not a problem, since for historical reasons (lack of a good, standard language package manager and thus high-level of pain caused by additional dependencies) This is also one of the big reasons why header-only C++ libraries are so popular.
- jillesvangurp 6y agoWell, C/C++ historically had no separate dependency management making linux distributions effectively the de-facto package management for C/C++. Other languages do have package managers and not using those is typically not a choice developers make. I agree vendoring npm, maven, pip, etc. dependencies for the purpose of reusing them in other packages that need them (as opposed to just vendoring the correct versions with those packages) is something that probably adds negative value. It's just not worth the added complexity of trying to even make that work correctly. Also package locking is a thing with most of these package managers meaning that anything else by definition is the wrong version.
- giovannibajo1 6y ago> I think, that instead of vendoring, Debian should instead adopt a different packaging policy, which would allow them to package whole dependency trees into a single package. I'm not sure how this is different from what I call vendoring, and I think this is indeed the solution. In Go, there's "go mod vendor" which automatically creates a tree called "vendor" with a copy of all the sources needed to build the application, and from that moment on, building the application transparently uses the vendored copy of all dependencies. In my ideal world, Debian would run "go mod vendor" and bundle the resulting tree a source DEB package (notice that the binary DEB package would still be "vendored" because go embraces static linking anyway). If the Debian maintainer of that application wants to "beat upstream" at releasing security fixes, they will have a monitor on those dependencies' security updates, and then whenever they want, update the required dependencies, revendor and ship the security update. What I totally disagree with is having "go-crc16" as a Debian package. I'm not even sure who would benefit from that, surely not Go developers that will install packages through the go package manager and decide and test their own dependencies without even knowing what Debian is shipping.
- l0b0 6y agoI hope Nix (or something like it) starts eating market share from other package managers, Docker, and the like. Nix solves this sort of thing at the cost of one of the cheapest things available, disk space. Every discussion about it mentions how complex it is; I remember giving up on creating a .deb after a few days of looking into that fractal of complexity, versus producing a Nix package within the first day of looking at the language.
- Foxboron 6y agoI don't think nix solves this. You are still left with having to deal with security issues, updates and tracking on pr package basis instead of once for the entire ecosystem. Admittedly, this is a hard problem. And the languages that does use vendoring makes it hard to programatically inspect all of this. But what do you do if say the python library requests has a severe HTTP parsing issue which allows ACE? How many packages would you need to patch on nix? How many packages would you need to patch on Debian, Arch, Fedora, OpenSuse?
- l0b0 6y agoDo you mean as a package maintainer or as an end user? I expect automation and reproducible builds to make this near trivial as a maintainer. As an end user binary diffs will be helpful (not sure if Nix supports them yet), but modern hardware and network connections can easily upgrade a thousand small packages in less than a minute.
- Foxboron 6y agoReproducible as in build environments or deterministic binaries? Nix has only reproducible build environments. Package maintainer. For the end-user there is no practical difference between a container and nix, and you see how well the container ecosystem is currently handling security updates on their distributed images. The problem is not distributing the fix, it's getting the fix patched.
- Blikkentrekker 6y agoGentoo probably solves it better. The developers allow multiple versions of the same library when there are problems and they have deemed it necessary, but libraries where it makes no real sense are not multislotted accordingly. When developers realize that two packages need a different version of the same library due to issues that should not be, they multislot the library in response or if it be trivial patch whatever package relies on faulty behavior.
- shp0ngle 6y agoRelated article (linked in this one) from earlier this year, about Kubernetes and its Go dependencies https://news.ycombinator.com/item?id=24948591 https://news.ycombinator.com/item?id=24948591
- GlitchMr 6y agoDebian already provides multiple versions for Rust crates, I don't see why such an approach wouldn't be viable for Node.js packages. For example, Debian for nom crate provides versions 3, 4 and 5: https://packages.debian.org/sid/librust-nom-3-dev https://packages.debian.org/sid/librust-nom-3-dev https://packages.debian.org/sid/librust-nom-4-dev https://packages.debian.org/sid/librust-nom-4-dev https://packages.debian.org/sid/librust-nom-dev https://packages.debian.org/sid/librust-nom-dev
- eclipseo76 6y agoI think it all boil down to manpower. Rust crates need a limited set of compat packages and have a way smaller ecosystem than nodejs. Node developers tend to use as many dependencies they can, resulting in hundreds of deps per app. Rust programs have generally less than 10 direct dependencies, and at worst less than a hundred indirect dependencies, so it is still manageable.
- wscott 6y agoRust is funny because it is perfectly possible to build a single binary that links multiple versions of the same library. Happens when a transitive dependency is written assuming the older API of a library.
- mlang23 6y ago"One package manger to rule them all"... pip/gem/npm/cargo/cabal&stack/whatnot all pose the same issue. From a distributors point of view, I get why you dont want to solve all these problems. From a user point of view, there is no good reason why I should learn more then one package manager. Itsa a dilemma. A similar thing is happening with ~/.local/ When I started with Linux 25 years ago, it was totally normal to know and do the configure/make/make install dance. 10 years later, most of what I wanted to use was available as a packge. And if it wasn't, I actually built one. These days, I have a 3G ~/.local/ directory. It has become normal again to build stuff locally and just drop it into ~/.local/. And in fact, sometimes it is way easier to do so then to try and find a current version packaged by your distribution.
- aww_dang 6y ago>totally normal to know and do the configure/make/make install dance I always cringe when the readme starts with something something Docker. "Don't try building this yourself", is an unfortunate norm for opensrc.
- marcosdumay 6y agoI usually give up on the software if the INSTALL file only has references to Docker. A few times I try really hard not giving up, but the reality is that Docker-only is highly correlated with non-working, so up to now I have eventually given up on every piece of Docker-only software I have met.
- mlang23 6y agoSame here. There are exceptions to everything, but to me it feels like if someone distributes their work via Docker they are actually not on top of the complexity they are trying to deal with. Pushing that complexity into something like a Docker image doesn't make it go away. At best, a bit chunk of bloat is generated with at least trashes your disk cache. At worst, a big hunk of unmaintained software is waiting in a corner to be taken apart and hacked to pieces. Docker images have an air of really big bit graves.
- nanna 6y agoI recently returned to Debian after a long hiatus in Ubuntu. This time, I'm using Guix as my package manager. It's a wonderful combo. Bleeding edge, reproducable, roll-backable, any version I choose, packages if I want them via Guix. Apt and the occasional .deb file as a fallback or for system services (nginx etc). And Debian as the no-bs, no-snap, solid foundation of everything. To me this is the future.
- twentydollars 6y agohmmm, this is your desktop or a server?
- nanna 6y agoDesktop, to be fair.
- pabs3 6y agoHave you considered GuixSD (Guix as an OS instead of just package manager) instead of Debian?
- nanna 6y agoI have.... it was a bit too much of a leap for me at the moment. And also I rely for work on proprietary software such as MS Teams which I wasn't sure I could install on GuixSD?
- IceWreck 6y agoFedora has separate packages for libraries. But for nodejs, packaging induvidual libs lead to a huge clusterfuck of difficult to maintain packages. Now theyve decided that nodejs based packages would have compiled/binary nodejs modules for now. https://fedoraproject.org/wiki/Changes/NodejsLibrariesBundleByDefault https://fedoraproject.org/wiki/Changes/NodejsLibrariesBundle...
- eclipseo76 6y agoAnd for Golang, we try to unbundle, we have around 1,600 go libraries packaged. Some package are still bundled like k8s though due to depndency hell.
- choeger 6y agoPersonally I believe that vendoring is just the lazy approach by developers that do not want to care about the eco system their software runs in. Consequently, their software will probably not be maintained for a long time (Red Hat offers 10 years of support, for instance). It's a shame but it seems like the cool kids simply tend to ignore sustainability in software development. Since npm,pip,go,cargo, etc. are open source projects, would it not be simpler to add a "debian mode" to them? In that mode, the tool could collaborate with the system package manager and follow any policies the distribution might have.
- zozbot234 6y ago> Personally I believe that vendoring is just the lazy approach by developers that do not want to care about the eco system their software runs in. I have to agree. If your dependency is used by more than one package within the distribution, it should be split out and not vendored - ultimately, this will reduce the total workload on package maintainers. This however does not mean that distros should be splitting every dependency into a separate package by default, much less have a separate package in the archive for each build configuration - there's no need to litter the distribution repo with idiosyncratic packages that will never have more than a single project/app/library depending on them, and that's precisely where a vendoring/bundling focused approach might be appropriate. Such dependencies are more like individual source-level or object files, that have always been "bundled" as part of a self-contained application.
- Blikkentrekker 6y agoThe problem is that in the real world despite promises of semantic versioning, breaking often occurs which makes it impossible for two packages to depend on the same version of another library though in theory they should.
- ernesth 6y agoDebian used to manage and package programs from the real world. It is obviously easier to create breaking changes that will not be discovered in dynamic languages. But in the real world, where everybody do unit tests, it is difficult to understand what kind of new problems were not already encountered 20 years ago.
- quietbritishjim 6y agoA friendly reminder that if you enjoyed this article, please consider subscribing to LWN. It's an excellent news source and they employ people full time so need real money in order to survive. Normally articles are restricted to subscribers initially, and are made available to everyone a week after being posted. But subscribers can make Subscriber Links that let non-subscribers read a specific article straight away. I've noticed a lot of subscriber links (like this one) posted to HN recently - there's nothing wrong with that but, again, please remember to subscribe if you like them.
- SEJeff 6y agoJonathan Corbet (the founder and head cheese @ lwn) is an exceedingly nice guy and as a result of all of his work, ended up as a maintainer of much of the linux kernel documentation. He's one of those real unsung heroes of linux and also does things like the "Linux Kernel Development Report". Super good people and very professional all around.
- psanford 6y agoI love that every year my LWN subscription expires and they don't auto renew it. Its such a nice way to treat your customers that differentiates LWN from most other media companies.
- hodgesrm 6y agoLWN is my favorite paid subscription of all time. It feels as if you are making the world a better place when you type in the credit card number to renew. I paid for another year just this morning, so the sensation is fresh.
- wyldfire 6y agoDo they have a bitcoin/monero donation address? I'd donate today.
- ncmncm 6y agoI start with the assumption that Node.js is, itself, not fixable at the distro level, end of story. But, what about the rest? The problem to solve is things like Go packages that want to static-link their dependencies. One way forward is to consider programs that want to static-link as being, effectively, scripts. So, like scripts, they are not packaged as complete executables. Their dependencies do not refer to a specific version, but provide a link to where to get any specific version wanted. The thing in /usr/bin is a script that checks for a cached build and, if needed: invokes the build tool, which uses local copies where found and usable, and downloads updates where needed, and links. A package- or dist-upgrade doesn't pull new versions of dependencies; it just notes where local, cached copies are stale, and flushes. On next execution -- exactly as with scripts -- invalidated builds are scrapped, and rebuilt. It means that to use a Go program, you need a Go toolchain, but that is not a large burden. It means that the responsibility of the package system is only to flush caches when breaking or security updates happen. The target itself arranges to be able to start up quickly, on the 2nd run, much like the Python packages we already deal with.
- Ericson2314 6y agoFine-grain depedencies are crucial, but vendoring is terrible. Check out https://github.com/kolloch/crate2nix/ https://github.com/kolloch/crate2nix/ https://github.com/input-output-hk/haskell.nix https://github.com/input-output-hk/haskell.nix for technical solutions to getting the best of both worlds. Sorry, but there's just no way DPkg/APT and RPM/Yum are going to keep up here very well.
- makz 6y agoWhat if linux distributions stop packaging stuff altogether? Most of the time it seems to create more trouble than it's worth (for the developers and mantainers of such distributions). Maybe just provide a base system and package management tools but leave the packaging to third parties. We can see that already with repositories such as EPEL and others more specialized.
- 3np 6y agoMost about any distribution you can configure your own repositories. Realistically, you could set up a minimal arch and host your own aur (there are projects for this). This is basically what the aur is. Or Debian ppas if you’re looking for more self-contained bundles. And there’s always gentoo. I think what you want kind of exists and is in practice already :) Personally I find A LOT of value in distributions and it’s an IOU’s that others do too - otherwise they wouldn’t have the significance they do today.
- ogre_codes 6y agoThis is a bit of a pet peeve with Linux packaging systems. I want application X. $ sudo apt-get install appX This is going to instal 463 packages do you want to continue (y/n)? # HELL NO Seems like every time a language starts to get popular, this is an issue until you have 8 or 9 sets of language tools piled up that you never use.
- tpoacher 6y agoLook, I need that leftpad import, ok?
- ogre_codes 6y agoThat's not even getting into NPM or node!
- Too 6y agoLook for a appX-minimal package and add —-no-install-recommends. Don’t ask why these are not the defaults.
- bfrog 6y agoNix seems to effectively have solved this, by more or less vendoring everything, but in a way that still allows shared usage. Having made a few deb and rom packages in my life, I don't miss it. At all.
- npsimons 6y agoI haven't been through a lot of comments here or at the link, but I'll bring up something I ran into in what I realize now was an early version of "vendoring": over a decade ago I was playing around with https://www.ros.org/ https://www.ros.org/, and there were no distribution packages, so I went with the vendor method, and I distinctly remember it downloading gobs of stuff and building it, only to break here and there. It was fucking terrible to work with and I only did it because it was R&D, not a production grade project, and I was being paid full time for it. Vendoring "build" processes, IME, are incredibly prone to breakage, and that alone is reason I won't bother with them for a lot of production stuff. Debian is stable - I can "apt install $PACKAGE" and not have to worry about some random library being pulled from the latest GitHub version breaking the whole gorram build.
- symlinkk 6y agoIt’s unsustainable to expect package maintainers to create packages and backport security fixes for every piece of software in existence, and big ecosystems like Node.js make this blindingly obvious. Developers should be able to just ship software directly to users, without package maintainers standing in the middle. Hopefully Snap or Flatpak solves this!
- rbanffy 6y agoI believe that one lesson here is that it's not because it's now possible to have a thousand dependencies that you should have a thousand dependencies. It'll make your sysadmins very sad. I don't want the latest libraries on my servers. I want my servers to be boring and not change often. I want them to run the time-proven, battle-tested and well-understood software, because I don't want to be the first to debug those. There are people better at that than me. If, and only if, there's a blocker bug in a distro-provided package, I'll think of vendoring it in. And then only if there is no plausible workaround. Of course, I also do testing against the latest stuff so I'm not caught off-guard when the future breaks my apps.
- PeterisP 6y agoIMHO for these ecosystems we're seeing a swap in priorities between OS/distro and app - instead of having the server as the main unit, which provides certain libraries and certain apps, the approach is to have a box (very likely virtualised or containerised) that's essentially "SuperWebApp v1.23" and the server is only there to support that particular single app. The server/os/distro/admin does not tell what library version the app should use; the app tells which library version it prefers, and either packages it with itself or pulls it at installation time. If something else needs a different version - then that something else should be somewhere else, isolated from the environment that's tailored for that app only. You don't go looking for the package of that app version for Debian release that you have; you don't try to run a 2025 version of the app on a 2021 long term support version of the distro, instead you choose the app version that you want to have, and pick the Debian (or something else) version that the particular version of the app wants; Also, an app like that does not expect to be treated as a composition with a thousand dependencies, it wants to be treated as a monolith black box. If there's a bug (security or not) in a dependency of SuperWebApp v1.23, you treat it in exactly the same as if there's a bug in the app itself - you deploy the update that the app vendor provides. In that context, a long-term support OS is required for the things that the app itself does not want to support (e.g. kernel and core libraries) - the app developer is not upstream for the distro, instead the app developer includes a distro (likely a long-term support version) as an upstream dependency packaged with the app VM or container. If you need to go from "SuperWebApp v1.23" to "SuperWebApp v1.24", then the server can be treated as disposable, and everything either replaced fully or transformed in a noncompatible way to fit the new requirements - because, after all, that app is the only app that determines what else the server should have. Cattle, not pets; replaceable, not cared for.
- jancsika 6y agoIf upstream has decided to vendor, I only see two sensible options: * package the vendored software in Debian, and annotate the category of vendored packages so it's clear to the user they cannot follow the normal Debian policies. I've been bitten by the lack of such feedback wrt Firefox ESR. My frustration would have gone away completely if the package manager told me, "Hey, we don't have the volunteer energy to properly package this complex piece of software and its various dependencies. If you install it, it's your job to deal with any problems arising from the discrepancy between Debian's support period and Mozilla's support period." As it is, Debian's policy advertises a level of stability (or "inertia" as people on this thread seem to refer to it) that isn't supported by the exceptions it makes for what are probably two of the most popular packages-- Chromium and Firefox. * do not package software that is vendored upstream I can understand either route, and I'm sure there are reasonable arguments for either side. What I cannot understand-- and what I find borderline manipulative-- is pretending there's some third option where Debian volunteers roll up their sleeves and spend massive amounts of their limited time/cognitive load manually fudging around with vendored software to get it in a state that matches Debian's general packaging policy. There's already been a story posted about two devs approaching what looked to me like burnout over their failed efforts to package the same piece of vendored software. Edit: clarification