From: Zheng Junjie <zhengjunjie@iscas.ac.cn>
To: Ashvith Shetty <ashvithshetty10@gmail.com>
Cc: Rutherther <rutherther@ditigal.xyz>, 75159@debbugs.gnu.org
Subject: [bug#75159] [PATCH v0 1/4] guix: qt: add inputs and outputs build variables in qt-build
Date: Sat, 28 Dec 2024 20:49:40 +0800 [thread overview]
Message-ID: <87r05st1jv.fsf@iscas.ac.cn> (raw)
In-Reply-To: <20241228104424.4001-1-ashvith@noreply.codeberg.org> (Ashvith Shetty's message of "Sat, 28 Dec 2024 16:14:03 +0530")
[-- Attachment #1: Type: text/plain, Size: 4512 bytes --]
Ashvith Shetty <ashvithshetty10@gmail.com> writes:
> From: Rutherther <rutherther@ditigal.xyz>
>
> 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->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)))
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2024-12-28 12:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-28 10:18 [bug#75159] [PATCH v0 0/4] Add corectrl and corectrl-helper-service-type Ashvith Shetty
2024-12-28 10:44 ` [bug#75159] [PATCH v0 1/4] guix: qt: add inputs and outputs build variables in qt-build Ashvith Shetty
2024-12-28 10:44 ` [bug#75159] [PATCH v0 2/4] gnu: Add trompeloeil Ashvith Shetty
2024-12-28 10:44 ` [bug#75159] [PATCH v0 3/4] gnu: Add corectrl Ashvith Shetty
2024-12-28 10:44 ` [bug#75159] [PATCH v0 4/4] services: Add corectrl-helper-service-type Ashvith Shetty
2024-12-28 12:49 ` Zheng Junjie [this message]
2024-12-28 15:30 ` [bug#75159] [PATCH v1 0/5] Add corectrl and corectrl-helper-service-type Ashvith Shetty
2024-12-28 15:30 ` [bug#75159] [PATCH v1 1/5] guix: qt: add inputs and outputs build variables in qt-build Ashvith Shetty
2024-12-30 7:03 ` Zheng Junjie
2024-12-28 15:30 ` [bug#75159] [PATCH v1 2/5] gnu: Add trompeloeil Ashvith Shetty
2024-12-30 6:38 ` Zheng Junjie
2024-12-28 15:30 ` [bug#75159] [PATCH v1 3/5] gnu: Add corectrl Ashvith Shetty
2024-12-30 6:50 ` Zheng Junjie
2024-12-30 7:48 ` Zheng Junjie
2024-12-28 15:30 ` [bug#75159] [PATCH v1 4/5] services: Add corectrl-helper-service-type Ashvith Shetty
2024-12-30 7:00 ` Zheng Junjie
2024-12-28 15:30 ` [bug#75159] [PATCH v1 5/5] guix: qt: Revert to gexp-based inputs and outputs Ashvith Shetty
2024-12-31 18:09 ` [bug#75159] [PATCH v2 0/3] Add corectrl and corectrl-helper-service-type Ashvith Shetty
2024-12-31 18:09 ` [bug#75159] [PATCH v2 1/3] gnu: Add trompeloeil Ashvith Shetty
2024-12-31 18:09 ` [bug#75159] [PATCH v2 2/3] gnu: Add corectrl Ashvith Shetty
2024-12-31 18:09 ` [bug#75159] [PATCH v2 3/3] services: Add corectrl-helper-service-type Ashvith Shetty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r05st1jv.fsf@iscas.ac.cn \
--to=zhengjunjie@iscas.ac.cn \
--cc=75159@debbugs.gnu.org \
--cc=ashvithshetty10@gmail.com \
--cc=rutherther@ditigal.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).