-
Notifications
You must be signed in to change notification settings - Fork 231
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
FileNotFoundError: [Errno 2] No such file or directory: '/bin/rpm' #1293
Comments
Did you try this approach https://github.com/hhorak/mock-example ? This is what people building SCL usually do. |
It fails even without the --defines, mock --rebuild /home/dieu/rpmbuild/SRPMS/okay-release-1-10.mga9.src.rpm --resultdir=~/rpmbuild/RPMS/"%(dist)s"/"%(target_arch)s"/ -r okay8 --enable-network --trace --disable-plugin=selinux --no-cleanup-after Fails, I can find some useful log:
I can confirm that '/builddir/build/originals/okay-release-1-10.mga9.src.rpm' exists in the rootjail. |
Thank you for the report. This is weird. How come Note the traceback:
It is very short. Who calls |
Short description of the problem
Can't build a SRPM. I have tried multiple
Output of
rpm -q mock
Steps to reproduce issue
mock --define "scl php73" --define '_scl_prefix /opt/remi' --rebuild /home/dieu/rpmbuild/SRPMS/signalwire-client-c-2.2.0-1.mga9.src.rpm --resultdir=~/rpmbuild/RPMS/"%(dist)s"/"%(target_arch)s"/ -r okay8 --verbose --verbose --enable-network --trace --yum --no-clean
Do not forget to mention full commandline with the mock command you executed.
mock --define "scl php73" --define '_scl_prefix /opt/remi' --rebuild /home/dieu/rpmbuild/SRPMS/signalwire-client-c-2.2.0-1.mga9.src.rpm --resultdir=~/rpmbuild/RPMS/"%(dist)s"/"%(target_arch)s"/ -r okay8 --verbose --verbose --enable-network --trace --yum --no-clean
Any additional notes
Output of `mock --debug-config`
The text was updated successfully, but these errors were encountered: