home tags events about login
one honk maybe more

benjojo posted 24 Mar 2025 16:50 +0000

I can't be the only one who in debian-like distros, always installs the lib<blah>-dev package, just so I don't have to figure out what mystery extension goes on the end of things

ids1024@fosstodon.or.. replied 24 Mar 2025 16:57 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/bw4SKdz1F127KWH8JC

@benjojo I think that's a perfectly valid and correct way to do things.

Those funny suffixes aren't generally something you need to think about when packaging for Debian, even. You add the -dev package as a build depend, which includes a symlink .so without a version suffix. And dpkg-shlibdeps automatically generates the necessary dependencies for the libraries the binary package links against.

jeroen@secluded.ch replied 24 Mar 2025 16:55 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/cWSWW233H54V4D3ygN

@benjojo @ids1024 that one can solve by building packages with dependencies for your own code. I often have the debian packages building before the code actually does anything as it makes distribution easy: drop in private apt repo that is already configured on hosts I want it on and apt away. But yes, it is a "you" problem. The good thing of a deb is that then upgrades will not remove any dependencies; fortunately Golang code is static thus ... not needed ;)

ids1024@fosstodon.or.. replied 24 Mar 2025 17:02 +0000
in reply to: https://benjojo.co.uk/u/benjojo/h/cWSWW233H54V4D3ygN

@benjojo I guess it's long been a tradition in the Unix world that software is distributed in source form. So it's not necessarily expected that you only install software that has been packaged for Debian, but it is expected that it will otherwise be built from source on Debian.

And there's still not a general expectation of binary compatibility between distros (without using Flatpak, or otherwise bundling libraries). But binaries *might* work, and the right library versions might be present.