[CentOS] Anyone seeing mock breakage after updating to 4.4?

Wed Sep 6 08:47:06 UTC 2006
Konstantin Klimchev <koka at arhgen.ru>

Ralph Angenendt пишет:
> 
> What works for me (Karanbir Singh found this) is adding 
> 
> os.path.join(self.rootdir, 'var/lock/rpm'),
> 
> around line 530 of /usr/bin/mock - works for me with 0.4.x, but
> supposedly also works with 0.6.x.
> 
> You find the lines by searching for "# make chroot dir".
> 

patch for mock-0.6.4:

========================================================================
--- mock.orig   2006-09-05 08:59:59.000000000 +0400
+++ mock        2006-09-06 12:38:04.000000000 +0400
@@ -581,7 +581,8 @@ class Root:
                       os.path.join(self.rootdir, 'etc/rpm'),
                       os.path.join(self.rootdir, 'tmp'),
                       os.path.join(self.rootdir, 'var/tmp'),
-                     os.path.join(self.rootdir, 'etc/yum.repos.d')]:
+                     os.path.join(self.rootdir, 'etc/yum.repos.d'),
+                     os.path.join(self.rootdir, 'var/lock/rpm')]:
              self._ensure_dir(item)

          self._mount()
========================================================================