You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command of invirtualenv --deploy_conf deploy.conf create_package rpm
should just work without elevation
Current Behavior
However, it fails with
error: failed to create directory %{_specdir}: /rpmbuild/SPECS: Permission denied
...
File "/home/jkenny/.pyenv/versions/3.8.2/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/rpmbuild', '-ba', 'package.spec']' returned non-zero exit status 1.
Possible Solution
One solution to work around this is to make a /rpmbuild directory and set permission to allow this to work. However this requires sudo right which one may not have and is an undocumented step to have this tool work.
Ideally, an option can be passed to rpmbuild to build in the current directory ie rpmbuild --define "_topdir <somedir>" ...
The docs should be updated to explain the been to create a directory, or the tool should not build in an area that requires elevated permission.
The text was updated successfully, but these errors were encountered:
Expected Behavior
The command of
invirtualenv --deploy_conf deploy.conf create_package rpm
should just work without elevation
Current Behavior
However, it fails with
Possible Solution
One solution to work around this is to make a /rpmbuild directory and set permission to allow this to work. However this requires sudo right which one may not have and is an undocumented step to have this tool work.
Ideally, an option can be passed to rpmbuild to build in the current directory ie
rpmbuild --define "_topdir <somedir>" ...
The docs should be updated to explain the been to create a directory, or the tool should not build in an area that requires elevated permission.
The text was updated successfully, but these errors were encountered: