From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yNdkClb0b2d89gAA62LTzQ:P1 (envelope-from ) for ; Sat, 28 Dec 2024 12:51:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yNdkClb0b2d89gAA62LTzQ (envelope-from ) for ; Sat, 28 Dec 2024 13:51:34 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=KwLM39Gg; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735390294; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=vt+SIoYQJXo5LU/+ODB2hi1YpHf5qX5AZ6Hxm+PF0g8=; b=RmxbUI1q78NB6BdYn5IYlPA0ruYSnmFoJ8CT8fBgVznSpNG2cIE7J4qrI4x7HaGSw5jDpP PJrgaYBGLYz2jHxlrCXTaGBV3vMPex3KglbtKMIQ8ye9hpvUM35NcTeBvjfQNO0K9eZpYX Zp91GuruEQGhsNiYk7x5tulI+FziBECiaB/GnmxWxiO4m3/vqZSSPh+au8abm8cSztZYHX sKSJdaLnNKJqIVZIHp77bj8d/anF9fp/9CUQHDJiqAkLO+DTvQDaNbn3xPLgx0yKE2T0hU 7m1BHVKHR1NfZLowbaY6+vb+daMMTp0tGgnmqNmUALgjxv34857HZHgLmF3H0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=KwLM39Gg; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735390294; a=rsa-sha256; cv=none; b=f4NzxglqqxfQLswbaMeNueuo8vY6AD525XLOGZpeVQUW0K0Kn6D2qJ/uG73z2rin+77JTP dL9CdQKK7EVZcCCHG+hu9wv6L8R05y6ErfqRc2piq2jiBIGj5NN2NKPlL/ucWACnkxoPeV 2hIefcQnDlpvLEkL7+PXUfFoHgzIYuJoXJRNXgexq4E43yjpd1RIfPsoQCn5BPv/kcEgUI 9sKZYbBaMC7yyLUiADsyW6+STQjE/XG37vSGjRdEXEpD/NdSaSQsd3qpeZLbm0CEqk/8Xg 3trhwyuWDBUergTMNgEmT39VlJd9fNeczn86GFrOGVq8dr2rA+vCEhP5CoF1FQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E493D32A84 for ; Sat, 28 Dec 2024 13:51:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRWHc-0006NZ-FF; Sat, 28 Dec 2024 07:51:08 -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 ) id 1tRWHY-0006NE-CU for guix-patches@gnu.org; Sat, 28 Dec 2024 07:51:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRWHY-00048w-3i for guix-patches@gnu.org; Sat, 28 Dec 2024 07:51:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=vt+SIoYQJXo5LU/+ODB2hi1YpHf5qX5AZ6Hxm+PF0g8=; b=KwLM39GguGAskNOqfj61Uz4SzrdoWgkJYzns+NuK7HBW37rfc+/0NXNuV4DezStUBZAJvpOBqEMH7kQdUb8EreXbJMotnZ7Dx7mHi9iKLwjZZa1hj+6h95JOT9WI4CLJHX52ZPT8kiwX3TBt5e7U4KTwYiZliCNXntR5k+GlZxa0YxmTIh/mj435dd6JQUW6thPn0jRi5PHubxSjPg+AaCzDq5GFCr5odADkHAkVnnrX5Ul/mvF4Y1oYtPttx4PLgfOLJGvb0GOeYzc0P5waYT0X14on8wtfqFj61fA49zPiljtfQfl/UEmDD9AMZn+BWLV23uZyYVdefomH/cI4ug==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRWHW-0003Og-U1 for guix-patches@gnu.org; Sat, 28 Dec 2024 07:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75159] [PATCH v0 1/4] guix: qt: add inputs and outputs build variables in qt-build Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 28 Dec 2024 12:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75159 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ashvith Shetty Cc: Rutherther , 75159@debbugs.gnu.org Received: via spool by 75159-submit@debbugs.gnu.org id=B75159.173539020712605 (code B ref 75159); Sat, 28 Dec 2024 12:51:02 +0000 Received: (at 75159) by debbugs.gnu.org; 28 Dec 2024 12:50:07 +0000 Received: from localhost ([127.0.0.1]:49713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRWGd-0003HE-32 for submit@debbugs.gnu.org; Sat, 28 Dec 2024 07:50:07 -0500 Received: from smtp81.cstnet.cn ([159.226.251.81]:60232 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRWGa-0003GT-2G for 75159@debbugs.gnu.org; Sat, 28 Dec 2024 07:50:06 -0500 Received: from m (unknown [107.174.64.25]) by APP-03 (Coremail) with SMTP id rQCowAA3IDPq829ntBVuBA--.11507S2; Sat, 28 Dec 2024 20:49:51 +0800 (CST) From: Zheng Junjie In-Reply-To: <20241228104424.4001-1-ashvith@noreply.codeberg.org> (Ashvith Shetty's message of "Sat, 28 Dec 2024 16:14:03 +0530") References: <20241228102102.922-1-ashvith@noreply.codeberg.org> <20241228104424.4001-1-ashvith@noreply.codeberg.org> User-Agent: mu4e 1.12.7; emacs 30.0.92 Date: Sat, 28 Dec 2024 20:49:40 +0800 Message-ID: <87r05st1jv.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-CM-TRANSID: rQCowAA3IDPq829ntBVuBA--.11507S2 X-Coremail-Antispam: 1UD129KBjvJXoWxWw4UtF15AF47Kw1UXr4Dtwb_yoW5ur15pa nYkF43Krs8Jr17JrsFgFn2qrn8Gws2kw1jya1SvF12y34Yvr929rWfK3WfXrWayw1rua4U Wr1Syw17ur97XrDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUyEb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wASzI0EjI02j7Aq F2xKxwAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4 A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCF04k20xvY 0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I 0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAI cVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcV CF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIE c7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU5PpnJUUUUU== X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.66 X-Spam-Score: -8.66 X-Migadu-Queue-Id: E493D32A84 X-TUID: n7tc++cUg+I4 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ashvith Shetty writes: > From: Rutherther > > 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. see https://mail.gnu.org/archive/html/guix-devel/2024-12/msg00124.html Things like %outputs are outdated, please use gexp related > > * 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 builder > (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->s= exp > - 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-specificat= ion->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-i= nputs > + #: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))))) >=20=20 > (mlet %store-monad ((guile (package->derivation (or guile (default-gui= le)) > system #:graft? #f))) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmdv8+QACgkQO1qpk+Gi 3/A4AhAAjzlIVPDP4irSgyKR343ZravChXy5mBx6GkiM39DEsH48dzXs0Aztjevl JMbmvFDUxa0STuT2eLDsjVuoAYiQrANOuxENUmWVLYxyp6rx070451b3sCM44rGG fUkzYbzV/Tpo17aMnC/iX6I37+oKspTqTfoDsHnU9cGVTpfxfAL3+6OElwR5cY7H EDn1pki56DuSJc/GSw1d+bOjUi9WxjW1l3mP5bXavlQP/P9ksJK7LHWIHjHkPydo 3Y7A3aJYQ4hfKjvXkDYhkCEIQNLbs1H6cCWZ946M5/24IPOM+k8VQ7OOqlxy/SbW FAEjgL3+/grhTR6MdDxeBmF3NUhJPx3jwoQp6iWJdAm/EEEg92BLsudvx+dlRIAn 2p1iQaA0rRwyWxt4WaBiQpsh3/G/Ps16+YvrX85FHuhFrGLc6inRvc/O6YLhi6kD 7Gd0Yfhx3xcNcn3x8KvqZF8BVyeOLu72qqpvJk4OPx2S+WZ1ZG3bG1gd8ykqRyzs /WkDKcmF57cdUKmw6Cucd3lkbyNERvcIOBfbStMw9qAb0kROLtluXNsc6ue8E+Jl 2FNVN0xCJtCQBELNnSoLUWNoPF7sQCCXYV8567NWtf9nlYZ0j6PHtocwLuBRTf0y frCK+8C5AmFH8C5loudU4ljejfZaZK0oW8WzI8zIzX+Wcs2G4cE= =JR51 -----END PGP SIGNATURE----- --=-=-=--