Description of problem: mock fails because the mockbuild user can't read the .src.rpm. Version-Release number of selected component (if applicable): mock-1.2.14 How reproducible: Always Steps to Reproduce: 1. chmod 640 /tmp/pl-gcc-4.9.3-1.el7.src.rpm 2. mock -r epel-7-x86_64 --rebuild /tmp/pl-gcc-4.9.3-1.el7.src.rpm 3. Actual results: ERROR: Command failed. See logs for output. # /usr/bin/systemd-nspawn -q -M 80cfcb408a6a414ba6c893293f11c766 -D /var/lib/mock/epel-7-x86_64/root /bin/su -l mockbuild -c /bin/rpm -Uvh --nodeps /builddir/build/originals/pl-gcc-4.9.3-1.el7.src.rpm [build2 SPECS]$ sudo /usr/bin/systemd-nspawn -q -M 80cfcb408a6a414ba6c893293f11c766 -D /var/lib/mock/epel-7-x86_64/root -bash-4.2# ls -l /builddir/build/originals/pl-gcc-4.9.3-1.el7.src.rpm -rw-r-----. 1 root root 124343301 Jan 26 08:27 /builddir/build/originals/pl-gcc-4.9.3-1.el7.src.rpm Expected results: SRPM should be copied to the /buildroot with 644. Additional info: Build is successful when permissions on /tmp/pl-gcc-4.9.3-1.el7.src.rpm are 644
I'm have no familiarity with the code base, but if I was to take a stab at this... I think the shutil.copy2() call on line 370 (copy_srpm_into_chroot function) in backend.py could be replaced with shutil.copyfile(). According the the python documentation, copyfile() will copy the file contents, ignoring file metadata and permission bits. I don't think it's important to preserve metadata or permission bits (but since copy2() is being used, perhaps someone felt it was). If the file metadata is important, you could always just issue os.chmod() after shutil.copy2(). I would be willing to provide a patch with either approach if that would be helpful.
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase
Fixed by commit * 6829caa copy just content of SRPM not the attributes [RHBZ#1301985]
mock-1.2.16-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-89209fd48b
mock-1.2.18-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-70cdc0c410
mock-1.2.18-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-3d9f899f6a
mock-1.2.18-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-de15171a43
mock-1.2.18-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-9e2f372208
mock-1.2.18-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-70cdc0c410
mock-1.2.18-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-9e2f372208
mock-1.2.18-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-3d9f899f6a
mock-1.2.16-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-89209fd48b
mock-1.2.18-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-de15171a43
mock-1.2.18-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.18-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.18-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.2.18-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.