Red Hat Bugzilla – Bug 230824
mock 0.6.12 won't accept --no-clean
Last modified: 2013-01-09 23:12:45 EST
Description of problem:
mockbuild with --no-clean by mock 0.6.12 immediately
stops with the following error.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rebuild some srpm by mockbuild with --no-clean option
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/state
DEBUG: ensuring dir /var/lib/mock/
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/var/lib/rpm
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/var/log
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/var/lock/rpm
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/dev
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/etc/rpm
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/tmp
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/var/tmp
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/etc/yum.repos.d
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/proc
DEBUG: mounting proc in /var/lib/mock/fedora-development-i386-core/root/proc
DEBUG: Executing /usr/sbin/mock-helper mount -t proc proc
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/dev/pts
DEBUG: mounting devpts in /var/lib/mock/fedora-development-i386-core/root/dev/pts
DEBUG: Executing /usr/sbin/mock-helper mount -t devpts devpts
DEBUG: Executing /usr/sbin/mock-helper chroot
/var/lib/mock/fedora-development-i386-core/root /sbin/runuser - root -c "chown
DEBUG: ensuring dir /var/lib/mock/fedora-development-i386-core/root/etc/yum
Traceback (most recent call last):
File "/usr/bin/mock", line 1046, in <module>
File "/usr/bin/mock", line 1043, in main
File "/usr/bin/mock", line 910, in do_rebuild
File "/usr/bin/mock", line 254, in prep
File "/usr/bin/mock", line 659, in _prep_install
os.symlink('../yum.conf', os.path.join(yumdir, 'yum.conf'))
OSError: [Errno 17] File exists
yum-3.1.3-1.fc7 is broken and currently I use downgraded
mock 0.6.11 doesn't seem to have this problem.
Fixed by removed existing file before symlinking. Next release will contain this
(In reply to comment #2)
> Fixed by removed existing file before symlinking. Next release will contain this
Then when will you really push the _NEXTVERSION_ mock?
Current rawhide mock is still 0.6.12.
Is this bug supposed to be fixed before FC-7?
0.6.14 is in queue to be pushed
(In reply to comment #4)
> 0.6.14 is in queue to be pushed
This problem still persists in Fedora Development (as of 20070530); and the
current repository version is still 0.6.12, which is broken with this error.
Will you please push 0.6.14 as an update soon?
Back from Alaska cruise (didn't have connectivity). I suspect that pushing the
latest version got lost in the core+extras shuffle. I'll get with Jesse today
and see if we can straighten it out quickly.
the --no-clean option works in mock-0.8+