r/cpp • u/TheRavagerSw • Feb 28 '26
Language specific package managers are a horrible idea
Package managers should only deal with package cache and have a scripting interface.
Package managers trying to act smart only makes our jobs harder as evidenced by looking at the issue pages of global package registries.
I recommend everyone here to switch to Conan and not use any abstractions for the build systems, disable remote and use a deployment script or using full deploy as an option. It is not ideal, but it doesn't stand in your way.
0
Upvotes
View all comments
Show parent comment
5
u/not_a_novel_account cmake dev Mar 02 '26 edited Mar 02 '26
It has never been normal except for hobbyist Linux C developers and shops which maintain their own distros, like RedHat. It was never even present, much less ubiquitous, among Windows developers let alone professional ones.
Every language except C/C++ has used language packages since CPAN. PyPI, RubyGems, NPM, Crates.io, Hackage, QuickLisp, etc, etc, etc. The only exceptions are languages like Go and Zig, which still don't use system packages (they rely on URLs instead). Effectively every language newer than Perl uses project-local language package managers for development.
When a distro wants to ship an application or service written in one of these languages (at least the ones which support dynamic linking/import at all), they package the dependencies in their repositories, but they make no effort to package anything other than what they need for the applications they ship.
This is true of C/C++ as well. Debian ships libav because Debian ships ffmpeg, they don't ship libraries they don't currently have a use for. The system package manager has never been suitable for general development for this reason among many others. Library ecosystems you're currently building up won't be available there, you need a dedicated mechanism. If you're working with stdexec or Beman or something, you won't find it in your local hometown Linux repo.
In the professional space, where many of the libraries are internal or niche, this was obviously never an option. I can't rely on Debian to ship a low-latency FIX serialization lib, they don't have a use for it. The majority of professional development has always relied on some combination of vendoring, home-grown project packaging, and ad-hoc solutions like super-builds or git submodules. The modern language packaging is slowly filling the space.