Re:Ask HN: Why does every package+module system become a Rub...
by pjc50 on Monday January 30, 2023 @10:18AM
(#34580720)
Debian packages can have pre/postinstall scripts that mutate the overall state of the system in arbitrary ways. This is both (a) necessary to make some thing work and (b) ruins the theoretical model.
[ Parent
| on HN ]
Re:Ask HN: Why does every package+module system become a Rub...
by Nursie on Monday January 30, 2023 @10:43AM
(#34581138)
Those dirty practicalities breaking my perfect mental model again!
(This is a huge issue in our field in all sorts of ways, and a constant source of both pain and compromise)
Re:Ask HN: Why does every package+module system become a Rub...
by pxc on Monday January 30, 2023 @02:45PM
(#34585342)
Alternatively: that pesky lack of discipline obstructing my optimizations and features again.
Re:Ask HN: Why does every package+module system become a Rub...
by marcosdumay on Monday January 30, 2023 @10:44AM
(#34581146)
> This is ... necessary to make some thing work
Things work in NixOS without the need of any of that. So, no it is not necessary.
It's a need created purely from the other directives of the Debian organization.
Re:Ask HN: Why does every package+module system become a Rub...
by hiljusti on Monday January 30, 2023 @12:36PM
(#34583349)
Not necessary, but certainly it's easier to implement and get stuff done. It starts to break down and show its cracks the larger and larger it gets, though.
The difference between almost all Linux or BSD packaging systems and nixpkgs is like the difference between dynamic and compile-time-type-checked programming languages.
Re:Ask HN: Why does every package+module system become a Rub...
by pxc on Monday January 30, 2023 @02:43PM
(#34585324)
You can have a much more conventional package manager without pre- or post-install hooks. One ex-Debian developer created such a package manager as a research project, presumably to prove a point to other Debian people with the same head-in-the-sand attitude about the state of Debian's package tooling.
It doesn't require the same kind of patching as Nix does (although sometimes patching does help avoid requiring those scripts).
Check it out: https://distr1.org/