• trevor (any/all) @lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 hours ago

    On the other hand, I feel like many of the headaches of packaging and using packages could have been avoided if static linking were the default. Sure, things like openssl should probably be dynamically linked for more immediate updates when security issues arise, but most of the other third-party libraries for applications should be statically linked.

    Otherwise, we end up reinventing static linking for decades, which is what things like Flatpak, AppImages, Snaps (🤢), and presumably Toolpaks exist to solve.

    Yes, Flatpaks and Snaps (🤢) also provide application sandboxes, but it would be much better if they could focus more on sandboxing than also having to worry about dependency management for application libraries.

    Arguably, if static linking were the default, Toolpaks wouldn’t be necessary either, even for immutable systems, because static binaries can be easily installed to a mutable part of the system.