From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Rosset Subject: bug#38148: [PATCH 1/5] gnu: python-pyqt: Substitute the full path of Date: Tue, 14 Jan 2020 03:04:59 -0800 Message-ID: <20200114110459.13912-1-mike.rosset@gmail.com> References: <20191109100530.zdfrewfmengq7pud@hooch.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48995) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irK1N-00063B-P0 for bug-guix@gnu.org; Tue, 14 Jan 2020 06:06:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irK1K-0000Le-An for bug-guix@gnu.org; Tue, 14 Jan 2020 06:06:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54726) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1irK1K-0000L0-6t for bug-guix@gnu.org; Tue, 14 Jan 2020 06:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1irK1K-0004FA-2U for bug-guix@gnu.org; Tue, 14 Jan 2020 06:06:02 -0500 In-Reply-To: <20191109100530.zdfrewfmengq7pud@hooch.localdomain> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 38148@debbugs.gnu.org Cc: mike.rosset@gmail.com * gnu/packages/qt.scm (python-pyqt)[phases]: When building python-pyqtwebengine qprinter.h can not be found. This substitutes the full path of qprinter.h in the qprinter sip specification file. --- gnu/packages/qt.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index 514577678e..9f289aa6df 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -1947,6 +1947,17 @@ module provides support functions to the automatically generated code.") ,@%gnu-build-system-modules) #:phases (modify-phases %standard-phases + ;; When building python-pyqtwebengine can not be + ;; included. Here we substitute the full path to the header in the + ;; store. + (add-before 'configure 'substitute-source + (lambda* (#:key inputs #:allow-other-keys) + (let* ((qtbase (assoc-ref inputs "qtbase")) + (qtprinter.h (string-append "\"" qtbase "/include/qt5/QtPrintSupport/qprinter.h\""))) + (substitute* "sip/QtPrintSupport/qprinter.sip" + (("") + qtprinter.h)) + #t))) (replace 'configure (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) -- 2.24.1