Live data from Hacker News

The C-Shaped Hole in Package Management

nesbitt.io

1–10 of 77 posts

Re: The C-Shaped Hole in Package Management

#3
post #2

Please don't. C packaging in distros is working fine and doesn't need to turn into crap like the other language-specific package managers. If you don't know how to use pkgconf then that's your problem.

^ This.

Plus, we already have great C package management. Its called CMake.

Re: The C-Shaped Hole in Package Management

#4
post #3
post #2

Please don't. C packaging in distros is working fine and doesn't need to turn into crap like the other language-specific package managers. If you don't know how to use pkgconf then that's your problem.

^ This. Plus, we already have great C package management. Its called CMake.

I hate autotools, but I have stockholm syndrome so I still use it.

Re: The C-Shaped Hole in Package Management

#6
post #2

Please don't. C packaging in distros is working fine and doesn't need to turn into crap like the other language-specific package managers. If you don't know how to use pkgconf then that's your problem.

I agree entirely. C doesn't need this. That I don't have to deal with such a thing has become a new and surprising advantage of the language for me.

Re: The C-Shaped Hole in Package Management

#7
post #2

Please don't. C packaging in distros is working fine and doesn't need to turn into crap like the other language-specific package managers. If you don't know how to use pkgconf then that's your problem.

When I used to work with C many years ago, it was basically: download the headers and the binary file for your platform from the official website, place them in the header/lib paths, update the linker step in the Makefile, #include where it's needed, then use the library functions. It was a little bit more work than typing "npm install", but not so much as to cause headaches.

Re: The C-Shaped Hole in Package Management

#8
post #4
post #3

Earlier quoted context omitted.

^ This. Plus, we already have great C package management. Its called CMake.

I hate autotools, but I have stockholm syndrome so I still use it.

Its not so hard once you learn it. Of course, you will carry that trauma with you, and rightly so. ;)

Re: The C-Shaped Hole in Package Management

#9
> Conan and vcpkg exist now and are actively maintained

I am not sure if it is just me, but I seem to constantly run into broken vcpkg packages with bad security patches that keep them from compiling, cmake scripts that can't find the binaries, missing headers and other fun issues.

Re: The C-Shaped Hole in Package Management

#10
post #7
post #2

Please don't. C packaging in distros is working fine and doesn't need to turn into crap like the other language-specific package managers. If you don't know how to use pkgconf then that's your problem.

When I used to work with C many years ago, it was basically: download the headers and the binary file for your platform from the official website, place them in the header/lib paths, update the linker step in the Makefile, #include where it's needed, then use the library functions. It was a little bit more work than typing "npm install", but not so much as to cause headaches.

And with header only libraries (like stb) its even less than that.

I primarily write C nowadays to regain sanity from doing my day job, and the fact that there is zero bit rot and setup/fixing/middling to get things running is in stark contrast to the horrors I have to deal with professionally.

Post reply on HN