X-Loop: help-debbugs@HIDDEN Subject: [bug#74695] [PATCH 0/1] qt-build-system: Wrap with build variables to allow %outputs in arguments Resent-From: Rutherther <rutherther@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: maxim.cournoyer@HIDDEN, iyzsong@HIDDEN, guix-patches@HIDDEN Resent-Date: Wed, 04 Dec 2024 19:14:01 +0000 Resent-Message-ID: <handler.74695.B.17333396248343 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 74695 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74695 <at> debbugs.gnu.org Cc: Rutherther <rutherther@HIDDEN>, Maxim Cournoyer <maxim.cournoyer@HIDDEN>, =?UTF-8?Q?=C3=A5=C2=AE=C2=8B=C3=A6=C2=96=C2=87=C3=A6=C2=AD=C2=A6?= <iyzsong@HIDDEN> X-Debbugs-Original-To: guix-patches@HIDDEN X-Debbugs-Original-Xcc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, =?UTF-8?Q?=C3=A5=C2=AE=C2=8B=C3=A6=C2=96=C2=87=C3=A6=C2=AD=C2=A6?= <iyzsong@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.17333396248343 (code B ref -1); Wed, 04 Dec 2024 19:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Dec 2024 19:13:44 +0000 Received: from localhost ([127.0.0.1]:36888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tIuoh-0002AV-TQ for submit <at> debbugs.gnu.org; Wed, 04 Dec 2024 14:13:44 -0500 Received: from lists.gnu.org ([209.51.188.17]:59356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rutherther@HIDDEN>) id 1tIuof-0002AJ-V6 for submit <at> debbugs.gnu.org; Wed, 04 Dec 2024 14:13:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <rutherther@HIDDEN>) id 1tIuoc-0006c1-06 for guix-patches@HIDDEN; Wed, 04 Dec 2024 14:13:38 -0500 Received: from ditigal.xyz ([2a01:4f8:1c1b:6a1c::] helo=mail.ditigal.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <rutherther@HIDDEN>) id 1tIuoZ-0006EO-QL for guix-patches@HIDDEN; Wed, 04 Dec 2024 14:13:37 -0500 Received: by cerebrum (OpenSMTPD) with ESMTPSA id 7e64a2e6 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Wed, 4 Dec 2024 19:13:30 +0000 (UTC) From: Rutherther <rutherther@HIDDEN> Date: Wed, 4 Dec 2024 20:13:27 +0100 Message-ID: <cover.1733339135.git.rutherther@HIDDEN> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ditigal.xyz; i=@ditigal.xyz; q=dns/txt; s=20240917; t=1733339610; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : from; bh=mPY3TwIbkF9b1G8YmrgFaTaO79WsMkRpl1OmUCRqO+w=; b=e0QgEK31bQ36qDc0ePVHW3aArthgPW3mMBcdV8gOc+jxelG7UhP19w0HdCL2as/dhtHXE Vm9vLccJUO8vLONzgMSn1wvFftFt6W+kRMMCaoIV8kErXf5eIjxfkLeQJMmJE178SYoZ0HV R3NqkQY/C4k4rtjkyocs6jNCo4oTi6g= Received-SPF: pass client-ip=2a01:4f8:1c1b:6a1c::; envelope-from=rutherther@HIDDEN; helo=mail.ditigal.xyz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) It is impossible to refer to %outputs in arguments like #:configure-flags (ie. `(assoc-ref %outputs "out")` leads to unbound-variable %outputs). I think the issue is in qt using different system than build systems such as cmake or gnu. Since I am unsure about the reason for qt not having the same structure, I am submitting this to guix devel for discussion, as well as opening a patch in case this is fine to be merged. If not, could someone please explain what the reason behind not adding inputs and outputs is, and what is the alternative? Regards, Rutherther Rutherther (1): guix: qt: add inputs and outputs build variables in qt-build guix/build-system/qt.scm | 54 +++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 26 deletions(-) base-commit: 006679d1e6ca7acea0629b4f019c8cf89cde08be -- 2.46.0
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Rutherther <rutherther@HIDDEN> Subject: bug#74695: Acknowledgement ([PATCH 0/1] qt-build-system: Wrap with build variables to allow %outputs in arguments) Message-ID: <handler.74695.B.17333396248343.ack <at> debbugs.gnu.org> References: <cover.1733339135.git.rutherther@HIDDEN> X-Gnu-PR-Message: ack 74695 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 74695 <at> debbugs.gnu.org Date: Wed, 04 Dec 2024 19:14:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. As you requested using X-Debbugs-CC, your message was also forwarded to Maxim Cournoyer <maxim.cournoyer@HIDDEN>, =C3=A5=C2=AE=C2=8B=C3=A6=C2= =96=C2=87=C3=A6=C2=AD=C2=A6 <iyzsong@HIDDEN> (after having been given a bug report number, if it did not have one). Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 74695 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 74695: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74695 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: [bug#74695] [PATCH 1/1] guix: qt: add inputs and outputs build variables in qt-build Resent-From: Rutherther <rutherther@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: maxim.cournoyer@HIDDEN, iyzsong@HIDDEN, guix-patches@HIDDEN Resent-Date: Wed, 04 Dec 2024 19:17:01 +0000 Resent-Message-ID: <handler.74695.B74695.17333397719057 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 74695 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74695 <at> debbugs.gnu.org Cc: Rutherther <rutherther@HIDDEN>, Maxim Cournoyer <maxim.cournoyer@HIDDEN>, =?UTF-8?Q?=C3=A5=C2=AE=C2=8B=C3=A6=C2=96=C2=87=C3=A6=C2=AD=C2=A6?= <iyzsong@HIDDEN> X-Debbugs-Original-Xcc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, =?UTF-8?Q?=C3=A5=C2=AE=C2=8B=C3=A6=C2=96=C2=87=C3=A6=C2=AD=C2=A6?= <iyzsong@HIDDEN> Received: via spool by 74695-submit <at> debbugs.gnu.org id=B74695.17333397719057 (code B ref 74695); Wed, 04 Dec 2024 19:17:01 +0000 Received: (at 74695) by debbugs.gnu.org; 4 Dec 2024 19:16:11 +0000 Received: from localhost ([127.0.0.1]:36903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tIur4-0002M1-LO for submit <at> debbugs.gnu.org; Wed, 04 Dec 2024 14:16:11 -0500 Received: from ditigal.xyz ([78.46.201.50]:42640 helo=mail.ditigal.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rutherther@HIDDEN>) id 1tIur3-0002Lk-0q for 74695 <at> debbugs.gnu.org; Wed, 04 Dec 2024 14:16:09 -0500 Received: by cerebrum (OpenSMTPD) with ESMTPSA id 99c60681 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Wed, 4 Dec 2024 19:16:01 +0000 (UTC) From: Rutherther <rutherther@HIDDEN> Date: Wed, 4 Dec 2024 20:15:36 +0100 Message-ID: <5ca3416dfabd3dfd5643a6f656c1d02fa3f37e61.1733339135.git.rutherther@HIDDEN> X-Mailer: git-send-email 2.46.0 In-Reply-To: <cover.1733339135.git.rutherther@HIDDEN> References: <cover.1733339135.git.rutherther@HIDDEN> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ditigal.xyz; i=@ditigal.xyz; q=dns/txt; s=20240917; t=1733339761; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : from; bh=ZLSz8gNRak0o62zakjpxS3jorT/54MFcdQVLnvDjuOY=; b=NJGqHkAskSFI+XdF9iHA+CY62UoDjLU/67JNqX2+1W7Op5G2bdviuhrGOdW5mzTcyIfaw n+vDxF8jNxO6ILvwGZEjA4qpSaBvSXmdlvmVL721fNOIqQ8uDkrfXte/w9I0lmO/4+zZCv7 0bflosK8OuHdXIX7XQPl5j3Hd/kAzos= X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Qt build doesn't provide build-variables of inputs and outputs, so it's not possible to refer to %outputs in arguments of a package that uses qt-build-system. This patch unifies qt-build-system's behavior with other build systems like cmake-build-system or gnu-build-system. * guix/build-system/qt.scm (qt-build): Wrap with with-build-variables to provide variables to arguments Change-Id: I65853a5831ce7b5dc7ebe10807c6e61bb89cab36 --- guix/build-system/qt.scm | 54 +++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/guix/build-system/qt.scm b/guix/build-system/qt.scm index d1f721c54e..5f9a5019ae 100644 --- a/guix/build-system/qt.scm +++ b/guix/build-system/qt.scm @@ -152,32 +152,34 @@ (define* (qt-build name inputs (with-imported-modules imported-modules #~(begin (use-modules #$@(sexp->gexp modules)) - (qt-build #:source #+source - #:system #$system - #:outputs #$(outputs->gexp outputs) - #:inputs #$(input-tuples->gexp inputs) - #:search-paths '#$(sexp->gexp - (map search-path-specification->sexp - search-paths)) - #:phases #$(if (pair? phases) - (sexp->gexp phases) - phases) - #:qtbase #+qtbase - #:qt-wrap-excluded-outputs #$qt-wrap-excluded-outputs - #:qt-wrap-excluded-inputs #$qt-wrap-excluded-inputs - #:configure-flags #$configure-flags - #:make-flags #$make-flags - #:out-of-source? #$out-of-source? - #:build-type #$build-type - #:tests? #$tests? - #:test-target #$test-target - #:parallel-build? #$parallel-build? - #:parallel-tests? #$parallel-tests? - #:validate-runpath? #$validate-runpath? - #:patch-shebangs? #$patch-shebangs? - #:strip-binaries? #$strip-binaries? - #:strip-flags #$strip-flags - #:strip-directories #$strip-directories)))) + + #$(with-build-variables inputs outputs + #~(qt-build #:source #+source + #:system #$system + #:outputs %outputs + #:inputs %build-inputs + #:search-paths '#$(sexp->gexp + (map search-path-specification->sexp + search-paths)) + #:phases #$(if (pair? phases) + (sexp->gexp phases) + phases) + #:qtbase #+qtbase + #:qt-wrap-excluded-outputs #$qt-wrap-excluded-outputs + #:qt-wrap-excluded-inputs #$qt-wrap-excluded-inputs + #:configure-flags #$configure-flags + #:make-flags #$make-flags + #:out-of-source? #$out-of-source? + #:build-type #$build-type + #:tests? #$tests? + #:test-target #$test-target + #:parallel-build? #$parallel-build? + #:parallel-tests? #$parallel-tests? + #:validate-runpath? #$validate-runpath? + #:patch-shebangs? #$patch-shebangs? + #:strip-binaries? #$strip-binaries? + #:strip-flags #$strip-flags + #:strip-directories #$strip-directories))))) (mlet %store-monad ((guile (package->derivation (or guile (default-guile)) system #:graft? #f))) -- 2.46.0
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.