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
1
u/TheRavagerSw Mar 02 '26 edited Mar 02 '26
I don’t think millions of dollars is that much money for python which is the most used language. If all else fails python can simply do some containarization stuff to run on various linux distros. For big money projects, companies can hire people like you to manage the toolchain and build all the packages.
Hmm, cps seems interesting. It seems you are a contributer too unless I mistake you with other cmake guys here. I like how it works on windows too. I find cmake packages unreadable.
So we meed a build system that only deals with C and C++ with a single backend or builds stuff directly without compiling to ninja for instance. It shouldn't have variables that affect the build, shouldn't parse your flags and only test your compiler etc explicitly. It should have an embeddedable scripting interface like lua, a sane formatter and lsp.
Then we need a package manager that doesn't have any features for languages, just have an embeddeble scripting interface. It should deal cross psckage formats like cps, though still autotools isn't in windows, so the benefit pf cps is minimal as we can't build stuff like icu on msvc.
I know this is fantasy land but this is the idea I think, bare minimum build system and cross platform packaging format language agnostic purist package manager.
Or, any new build system should only care about linux and clang. Most tooling don't run on other platforms anyway and gcc has lost to clang. All new stuff like dpc++ are clang based. I mean it would be way more easier to develop and maintain.
You may point out native compilation setups, but I believe cross compiling always is better and is the future with the entry of arm and riscv into desktop market and maybe soon riscv will enter into mobile too.