-
Notifications
You must be signed in to change notification settings - Fork 319
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
Allow installing recommended/optional dependencies for some packages #2364
Comments
PS: Another more common package would be fail2ban which in Debian recommends nftables/iptables, python3-pyinotify and python3-systemd where one might only note too late that some deps are not installed |
There's way too many use cases like this for us to support all of them. I'd just use a prepare script for this where you can enable recommend dependencies for a few packages. |
There is another "Debian" way for this: create an |
The problem I have with a prepare script is that it makes the packages not show up in the manifest as far as I understand (which is already annoying enough for some packages we have to install via pip). I come to the realization that to enable recommended/weak deps for some packages one obviously needs to know for which packages they want to do this beforehand. Once at this point I can also simply look up what the relevant deps are and simply list them on my own. Maybe even putting a comment beforehand to signify this and as a reminder to check the list once in a while (e.g. when raising the used distro release). This might also be favorable in general as not all recommended deps are always desired, e.g. for the above example of fail2ban I do not care about whois. |
Currently the
WithRecommends=
is a very binary approach. Sadly this does not work for all packages which offer some minimal functionality without the recommended deps but are commonly used with them.An example would be pre-bookworm
python3-coverage
which can generate HTML reports but requires jQuery for that. In that case I worked with upstream to completely remove the jQuery dependency but that is not always sensible.It would be great to be able to enable more dependencies for some of the packages. I hoped there might be some query pattern (e.g.
?suggested-by(python3-coverage)
) but alas there is none. I have not looked further intoDependencies=
though I think it might be possible to define an image with only the packages which should have dependencies in them and pull them in viaExtraTrees=
though that is very convoluted and ugly (if it even works) and has disadvantages for manifest generation etc.My though would be to either add a new
PackagesWithRecommends=
option or allowWithRecommends=
to receive a list of packages which should be installed with their recommended/optional deps.The text was updated successfully, but these errors were encountered: