Description of problem: When building some packages you get a different result depending on if you do a --rebuild or --shell and run the same command Version-Release number of selected component (if applicable): mock-1.1.15-1.el6.noarch How reproducible: Everytime. Steps to Reproduce: 1. mock -r root-x86_64 --no-cleanup-after --rebuild luci-0.23.0-13.el6.src.rpm 2. mock -r root-x86_64 --unpriv --shell 3. (in shell) rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/luci.spec Actual results: The following shows different mod for the file: rpm -qplv luci-0.23.0-13.el6.x86_64.rpm | grep sasl2auth.so -rwxrwxr-x for the package built with --rebuild -rwxr-xr-x for the package built inside shell Expected results: Both files should have -rwxr-xr-x for mods. If you build this package outside mock you end up with the correct result.
Added an explicit umask set before exec'ing shell
mock-1.1.19-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.19-1.el6
mock-1.1.19-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mock-1.1.19-1.fc16
mock-1.0.26-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.26-1.el5
mock-1.1.19-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mock-1.1.19-1.fc15
mock-1.1.19-2.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mock-1.1.19-2.fc15
mock-1.1.19-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.19-2.el6
mock-1.0.26-2.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.26-2.el5
mock-1.1.19-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mock-1.1.19-2.fc16
Package mock-1.1.19-2.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing mock-1.1.19-2.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-0134/mock-1.1.19-2.el6 then log in and leave karma (feedback).
This is not solved in mock-1.1.19-2.el6. The results between building in a unpriv shell (no group w) is still correct and the rebuild results are incorrect (has group w).
It took me a while to realize this but I cannot change this because mock depends on shared group permissions to work in the chroot. Mock switches back and forth between root and unpriv uid/gid and allowing write for the mock group allows it to write log information, packages, etc, into the chroot directory. If you blindly change the umask to 022 when mock is setting up, you get tons of permission denied errors when trying to manipulate the chroot. .
I'm not talking about blindly changing the umask. What this bug is about is that the permissions that a file INSIDE the build rpm have are different. See the original report. The file sasl2auth.so INSIDE the rpm package luci-0.23.0-13.el6.x86_64.rpm have different permissions. Building outside of mock and with unpriv shell both produce the same file permissions for sasl2auth.so of -rwxr-xr-x. Running inside of mock with rebuild produces permissions of -rwxrwxr-x. I'm not sure where or if this can be solved but setting a umask just before the rpmbuild -bb seems like it should fix it. The concern I have is that rpms produced inside of a mock chroot will not come out identical to rpms build outside of mock.
mock-1.1.19-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
See comment 11 and comment 13. This bug isn't fixed and produces different results between inside and outside of mock.
Ok, I'll keep it open and see if I can figure out a way to fix it without breaking everything else.
mock-1.1.20-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mock-1.1.20-1.fc15
mock-1.1.20-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.20-1.el6
mock-1.1.20-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mock-1.1.20-1.fc16
mock-1.0.27-2.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.27-2.el5
Package mock-1.1.20-1.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mock-1.1.20-1.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-1199/mock-1.1.20-1.fc16 then log in and leave karma (feedback).
Please confirm that the latest package contains a fix for this issue. I don't see any mention in the changelog that this issue has been fixed. It appears that the Update System marked this as fixed when it hasn't been.
mock-1.1.20-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.20-1.fc16 does not fix this issue.
mock-1.1.21-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/mock-1.1.21-1.fc15
mock-1.1.21-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.21-1.el6
mock-1.0.28-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/mock-1.0.28-1.el5
mock-1.1.21-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mock-1.1.21-1.fc16
Package mock-1.1.21-1.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing mock-1.1.21-1.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-0387/mock-1.1.21-1.el6 then log in and leave karma (feedback).
mock-1.1.21-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
See comment #22
mock-1.1.21-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.21-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.
mock-1.0.28-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.