Patchwork [buildbot,3/6] fix out-of-tree build

login
register
mail settings
Submitter Gerd Hoffmann
Date Feb. 1, 2013, 2:02 p.m.
Message ID <1359727345-10477-4-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/217494/
State New
Headers show

Comments

Gerd Hoffmann - Feb. 1, 2013, 2:02 p.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 qemu-master.cfg |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/qemu-master.cfg b/qemu-master.cfg
index 4c45f23..dc5a7a8 100644
--- a/qemu-master.cfg
+++ b/qemu-master.cfg
@@ -690,11 +690,13 @@  def create_build_factory(repourl, branch="HEAD",
                   timeout=2400, mode='copy', retry=(5 * 60, 3),
                   locks=repo_locks_from_url(repourl)))
     workdir = f.workdir
+    configure = "./configure"
     if outoftree:
         f.addStep(ShellCommand(command="mkdir -p outoftree",
                                env={'LANG': 'C'}))
         workdir = os.path.join(workdir, 'outoftree')
-    f.addStep(Configure(command=["./configure"] + list(configure_args),
+        configure = "../configure"
+    f.addStep(Configure(command=[configure] + list(configure_args),
                         env={'LANG': 'C'}, workdir=workdir))
     f.addStep(Compile(command=[make, "CFLAGS=-O2"],
                       env={'LANG': 'C'},