Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

let dpkg know that we have a c-compiler? #14

Closed
emmanuelthome opened this issue Sep 11, 2021 · 3 comments
Closed

let dpkg know that we have a c-compiler? #14

emmanuelthome opened this issue Sep 11, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@emmanuelthome
Copy link

I like your work!

I came across a slight infelicity this morning. When you want to apt install extra packages, some might depend on a C compiler being around. libtool is one of them.

Under debian, libtool is marked as depending on the virtual package c-compiler, which can be provided by a variety of compilers. Presently, on bullseye this pulls gcc-10 by default.

The sad thing is that your images do have a compiler, of course, and this pull of gcc seems largely unneeded. Would you welcome a modification that creates a phony intermediate package that provides the c-compiler dependency (along with the required symlinks and alternatives set up) ?

@silkeh
Copy link
Owner

silkeh commented May 7, 2022

Sorry for the late response.

Would you welcome a modification that creates a phony intermediate package that provides the c-compiler dependency (along with the required symlinks and alternatives set up) ?

Yes! A dummy package (using equivs or equivalent) is definitely welcome!

@silkeh silkeh added the help wanted Extra attention is needed label May 7, 2022
@silkeh
Copy link
Owner

silkeh commented Nov 5, 2022

The images now install the clang package from the LLVM Debian repository, which provides c++-compiler, c-compiler, and objc-compiler. This should mean that dpkg knows we have a C compiler, but let me know if it doesn't work.

@silkeh silkeh closed this as completed Nov 5, 2022
@emmanuelthome
Copy link
Author

Hi!

That makes perfect sense and solves the problem indeed.

There is still the (comparatively minor) problem that libtool, for example, depends on the cpp package, and that there is no compiler-agnostic virtual package (like c-compiler) that cpp would be a provider of. It's not a big deal because we're only talking about pulling a few MB, versus a few dozen MB for a full-blown compiler. Furthermore, I would really say that this is a debian bug, not your bug.

FWIW, my solution was here, and it's freakin ugly. If/when I get back to this, I would definitely check what equivs would allow me to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants