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

secbox build tries to invoke 'sudo', fails #16

Open
Fbonazzi opened this issue Jan 21, 2022 · 3 comments
Open

secbox build tries to invoke 'sudo', fails #16

Fbonazzi opened this issue Jan 21, 2022 · 3 comments

Comments

@Fbonazzi
Copy link

Hi,

when I try to compile a package locally using oscb (default secbox alias for osc build --ccache --cpio-bulk-download --download-api-only), the build stage fails with
sudo: No such file or directory: 'sudo'

Steps to reproduce:

  1. osc co security:SELinux/selinux-policy
  2. cd security:SELinux/selinux-policy
  3. oscb
@StayPirate
Copy link
Owner

First of all, I want to highlight that I never compiled a package with osc before.
According to the following line:

cmd = sucmd + cmd

I tried to set the option su-wrapper as follow

[general]
[...]
su-wrapper = bash -c

The error is gone, could you try and let me know if that's enough?

@Fbonazzi
Copy link
Author

That error is gone, now I am getting this error:

[    0s] /usr/lib/build/createzyppdeps --cachedir=/var/cache/build zypp://repo-non-oss
[    0s] could not determine repo type for 'repo-non-oss'

but I think we are firmly outside the scope of secbox. Thanks, I'll close this

@Fbonazzi
Copy link
Author

Reopening just to let you know that actually I think the last error above is due to secbox, because it works fine in native osc. I think there are some permission issues stemming from how osc actually builds stuff as root.

@Fbonazzi Fbonazzi reopened this Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants