Control: tags -1 + patch

On Saturday, October 03 2015, I wrote:

> When using --buildsystem=qmake together with --builddirectory, an error
> is issued because the qmake.pm module does not create the build
> directory automatically:
>
>   dh_auto_configure: error: unable to chdir to _build
>
> I already have a fix for that; I will post the patch as soon as I
> receive the bug number to mention it on the changelog.

As promised, here is the patch.

Thank you,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/

From 3f04e77892c77a93562f797a88c67c47922db895 Mon Sep 17 00:00:00 2001
From: Sergio Durigan Junior <[email protected]>
Date: Sat, 3 Oct 2015 01:17:09 -0400
Subject: [PATCH] qmake.pm: mkdir builddir before starting to configure

Closes: #800738
---
 Debian/Debhelper/Buildsystem/qmake.pm | 1 +
 debian/changelog                      | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/Debian/Debhelper/Buildsystem/qmake.pm b/Debian/Debhelper/Buildsystem/qmake.pm
index 21accb7..dfe43b0 100644
--- a/Debian/Debhelper/Buildsystem/qmake.pm
+++ b/Debian/Debhelper/Buildsystem/qmake.pm
@@ -68,6 +68,7 @@ sub configure {
 	push @flags, "QMAKE_STRIP=:";
 	push @flags, "PREFIX=/usr";
 
+   	$this->mkdir_builddir();
 	$this->doit_in_builddir($qmake, @options, @flags, @_);
 }
 
diff --git a/debian/changelog b/debian/changelog
index 4aa7ead..e91e4c1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -98,6 +98,9 @@ debhelper (9.20150811+unreleased) UNRELEASED; urgency=medium
   * Update Portuguese translation (Américo Monteiro)
     (Closes: #790820)
 
+  [ Sergio Durigan Junior ]
+  * qmake.pm: mkdir builddir before starting to configure (Closes: #800738)
+
  -- Paul Tagliamonte <[email protected]>  Fri, 14 Aug 2015 21:25:16 +0200
 
 debhelper (9.20150811) unstable; urgency=medium
-- 
2.5.3

Attachment: signature.asc
Description: PGP signature

Reply via email to