-
Notifications
You must be signed in to change notification settings - Fork 40
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
Upstream bug: users and groups created during install of packages now respect ROOT #209
Comments
Thanks! This sounds like ebuilds may have incorrect dependencies (it's an issue when installing from binpkgs too). Just got up though so let me have a think 🤔 Is there an example set of steps I can play with? |
cc @Mord3rca |
Hey ! |
We discussed this a bit in #gentoo-base on IRC and I think we need some logs to properly understand it. Could you file a bug on Gentoo's Bugzilla with that information? (inc. e.g an example ebuild, and some steps to repro). Needing BROOT to contain things in order to do e.g. fowners is considered normal and something we've been doing for ages. I'm not against a change along the lines @Mord3rca suggests in principle, I think, but would need to see it in more detail? Everything but point 2. should be handled by dependencies and point 2 seems like it should be handled by baselayout. |
@thesamesam Good news ! I've started a full rebuild (not of this, just to be clear) with my modification in eclasses + my hook for getpwnam / getgroupnam etc and it seems to do the trick for |
Thanks for the swift replies!
Any ebuild that creates a user/group and then tries to Simple test ebuild
Given the example ebuild above: Original behavior:
Current behavior
The user is created at
Not sure I follow, could you elaborate please?
Not sure what you mean with
Point 2 is a nice to have and I can work around that fairly easy by making sure the paths |
Hello, @edannenberg regarding your workaround for the Also, for your test build, be sure to install |
Sorry, I meant to reply to this sooner. Another option would be to support both behaviours via some ENV, the kubler patches should make this fairly easy to implement I think. |
This commit breaks the build for uncached packages that create users/groups.
Problems:
fowners
will still look on the host for the user.ROOT
which is not always true for our use case. Not handled gracefully currently and fails the build.* To make matters worse the behavior is now inconsistent, as binary packages still create any new users/groups on the host.@thesamesam Could this be reverted for now until all the edge cases are fleshed out? Right now it does more harm then good as its much harder to work around then with the old behavior.
The text was updated successfully, but these errors were encountered: