-
Notifications
You must be signed in to change notification settings - Fork 112
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 source-install to run as non-root user #341
base: master
Are you sure you want to change the base?
Conversation
zypper si fails if not run as root. There's no reason for this requirement, in fact it kills the most obvious use case: Run rpmbuild as non-root user after source-installing it. Signed-off-by: Jan Lindemann <[email protected]>
As you see in the removed code in the PR you linked: zypper si did require root privs before |
No. It required root privileges before commit e40bdd8, correct, but I wrote that it did not before commit 7827e38. This matches my experience: Running |
It depends on the options. If the command does The situation might be different if you are using a chroot environment, where you can write and install packages as non-root user. AFAIR |
Yes, of course, that's the default:
Well, not if they are already installed. That's what
Working in a chroot alone would not save you. You'd have to run under fakeroot / pseudo. Now, that said, what would be a real luxury solution is to have |
I must admit that I usually use As a workaround in the meantime |
Yep, I figured. We run our own build automation on top of plain
That would be nice, thanks! I forgot to mention:
Good idea, thank you. |
I have implemented that, have naively updated the English man page and usage message, and was about to amend this PR, when it dawned on me that, as a consequence of the change, 57 I don't think that the improvement this PR presents would justifiy the effort. But out of interest for your workflow: How should contributions ideally be made in the face of this immense fallout? Is there some release cycle one should adhere to? Development branches PRs should be rebased against? |
zypper si
refuses to run as as non-root user: "Root privileges are required to run this command."I don't see a reason for this requirement. In fact it kills my most obvious use case: Run
rpmbuild
as non-root user after source-installing the package with zypper and editing the sources as needed.This used to be
si
's default behaviour from the start until the restriction was introduced with commit 7827e38 into Zypper.cc, and has then propagated with commit e40bdd8 into sourceinstall.cc. The first commit mentions bsc#1066215 as its reason, but that looks unrelated.This PR reinstantiates the original behaviour and works fine for me.