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

emerge: allow --onlydeps merge if root package(s) masked by license #1087

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tgbugs
Copy link
Contributor

@tgbugs tgbugs commented Sep 4, 2023

This commit makes it possible to merge dependencies for packages that are masked by license since the masked package is not actually going to be installed.

@tgbugs
Copy link
Contributor Author

tgbugs commented Sep 5, 2023

Hrm. For some reason when I test this in a musl docker image I don't see the same behavior I see on my development system with emerge --onlydeps -ep media-fonts/corefonts. Looks like I will have to do a bit more digging :/.

As such, this is NOT ready for merge.

if onlydeps and self._dynamic_config._needed_license_changes:
# needed license changes should only be fatal for packages that
# would actually be installed
return True, myfavorites
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've ignored non-license autounmask changes here. It would only make sense to return True here if there were no non-license autounmask changes. Ultimately, I think it will be much cleaner to set empty LICENSE metadata for the onlydeps package instance, rather than trigger autoumask for a LICENSE that you intend to ignore anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting license metadata to empty is an excellent suggestion. I'll look into it. Thanks!

@thesamesam thesamesam marked this pull request as draft September 9, 2023 23:50
This commit makes it possible to merge dependencies for packages that
are masked by license since the masked package is not actually going
to be installed.

Signed-off-by: Tom Gillespie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants