by orra · 5y ago · 0 comments
Agreed. It's really not a panacea. When you upgrade a library, you probably want to restart the running applications that depend upon this. Dynamic linking won't save you.
The solution is having a graph of your dependencies! IIRC, NixOS gets this right. I don't think Debian's apt did?
That's an orthogonal issue. You need to restart affected services nevertheless, whether it was linked statically or bundled in nix.
I wish people stopped repeating this red herring restart argument against dynamic linking every time the topic is brought up.
Nix and language package managers just don't really play well together.
[1] https://manpages.debian.org/buster/debian-goodies/checkresta...
Given that it's in a goodies package though, I assume it's not integrated with apt—at least by default.
I'm thinking of that apt prompt that says "There are services installed on your system which need to be restarted when certain libraries, such as libpam, libc, and libssl, are upgraded." I presume then that uses a hardcoded list of important services.