Changes

From SME Server
Jump to navigationJump to search
no edit summary
Line 2: Line 2:     
:''This can be misleading. The build box can be the same, eg COS6 x64 for all ISOs, it is only the mock image that needs to match the ISO, and this is magically handled by the mock configs''
 
:''This can be misleading. The build box can be the same, eg COS6 x64 for all ISOs, it is only the mock image that needs to match the ISO, and this is magically handled by the mock configs''
 +
 +
For clarification read http://bugs.contribs.org/show_bug.cgi?id=7675#c37
 +
 +
'''The corresponding version' refers to either a cos5 install or a cos5 mock env.  Building packages does require the same 'corresponding version'  You can't easily build sme8 packages on a cos6 box.  But with mock you can because you can create a small chroot of cos5 to build the packages.  We use the same trick to build the ISO.  The ISO mock creates a minimal cos5 with the correct packages to build the ISO.''
      Line 14: Line 18:     
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/build', '/build' ))
 
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/build', '/build' ))
 +
 +
 +
Also note http://bugs.contribs.org/show_bug.cgi?id=7675#c61
 +
 +
There is also an update to /usr/lib/python2.6/site-packages/mockbuild/mounts.py that needs to happen so loop devices get mounted correctly.
 +
 +
<nowiki>
 +
@@ -83,6 +83,9 @@
 +
    decorate(traceLog())
 +
    def mount(self):
 +
+        if not os.path.isdir(self.srcpath) and not os.path.isfile(self.srcpath):
 +
+            mockbuild.util.touch(self.bindpath)
 +
+
 +
        if not self.mounted:
 +
            cmd = ['/bin/mount', '-n',
 +
                    '--bind', self.srcpath, self.bindpath ]
 +
</nowiki>

Navigation menu