build source packages in a chroot too hardy-glasgall-dev 0.1.25_glasgall1
authorAdam Glasgall <glasgall@mit.edu>
Sat, 13 Jul 2013 03:49:54 +0000 (23:49 -0400)
committerAdam Glasgall <glasgall@mit.edu>
Sat, 13 Jul 2013 04:04:49 +0000 (00:04 -0400)
debian/changelog
invirtibuilder

index bcb180f..05878d4 100644 (file)
@@ -1,3 +1,10 @@
+invirt-dev (0.1.25~glasgall1) unstable; urgency=low
+
+  * Build source packages in a chroot as well so that they can take
+    advantage of newer debhelper et al versions.
+
+ -- Adam Glasgall <glasgall@mit.edu>  Fri, 12 Jul 2013 23:48:06 -0400
+
 invirt-dev (0.1.24) unstable; urgency=low
 
   *  Use opcode "auto" for build zephyrs
index fd1417f..4e73484 100755 (executable)
@@ -389,7 +389,9 @@ def build():
                     # If we were, we could use debuild and get nice
                     # environment scrubbing. Since we're not, debuild
                     # complains about not having an orig.tar.gz
-                    logAndRun(['dpkg-buildpackage', '-us', '-uc', '-S'],
+                    logAndRun(['schroot', '-c', 
+                               '%s-amd64-sbuild' % (b.pocketToDistro(pocket),), 
+                               '--', 'dpkg-buildpackage', '-us', '-uc', '-S'],
                               cwd=packagedir)
 
                     db.failed_stage = 'building binary packages'