Message ID | 20220308173127.21218-8-trzickel@illegalaliensfrom.space |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4FBB727BBEA; Tue, 8 Mar 2022 17:32:48 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 209B027BBE9 for <patchwork@mira.cbaines.net>; Tue, 8 Mar 2022 17:32:48 +0000 (GMT) Received: from localhost ([::1]:36224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1nRdhX-0007Mn-97 for patchwork@mira.cbaines.net; Tue, 08 Mar 2022 12:32:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nRdgr-0006Ft-IX for guix-patches@gnu.org; Tue, 08 Mar 2022 12:32:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nRdgr-000325-7q for guix-patches@gnu.org; Tue, 08 Mar 2022 12:32:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nRdgr-0007W5-4G for guix-patches@gnu.org; Tue, 08 Mar 2022 12:32:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54299] [PATCH 09/27] added rust-ndk-context@0.1 Resent-From: Till Robin Zickel <trzickel@illegalaliensfrom.space> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 08 Mar 2022 17:32:05 +0000 Resent-Message-ID: <handler.54299.B54299.164676070628623@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54299 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54299@debbugs.gnu.org Received: via spool by 54299-submit@debbugs.gnu.org id=B54299.164676070628623 (code B ref 54299); Tue, 08 Mar 2022 17:32:05 +0000 Received: (at 54299) by debbugs.gnu.org; 8 Mar 2022 17:31:46 +0000 Received: from localhost ([127.0.0.1]:57633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1nRdgX-0007RV-SS for submit@debbugs.gnu.org; Tue, 08 Mar 2022 12:31:46 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:51736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <trzickel@illegalaliensfrom.space>) id 1nRdgT-0007P5-0E for 54299@debbugs.gnu.org; Tue, 08 Mar 2022 12:31:41 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4KCj6v1VCPz9sbG for <54299@debbugs.gnu.org>; Tue, 8 Mar 2022 18:31:35 +0100 (CET) From: Till Robin Zickel <trzickel@illegalaliensfrom.space> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=illegalaliensfrom.space; s=MBO0001; t=1646760694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5S6uy28oFbrvAI7FwTquZ8nBXckbAnGLPL89c7ip+YE=; b=YsnD1Wz19PayaA0wnbL96tYffmu3KFQi2+zjoVTdtlO9odRBY2U9RHYd2a+rQS4rUXbCF3 RhQehI1MbD2NZEsWm+skHlND6Qxr2bz33TQzOLE280huiGT7M3dSWxoK9HCFbs7JW1ltxz dk/RZ28Fhazc7rydSDwqPAaC3tzoVHrNOZsnZqhB7UEI48vue7uajKkQZZyWf/YUU8LUI0 Aogt4aaRlRaadMhdOhldy5WfRfu66+qqaAvodyPFBNtYONH6+1bIpLxX/u2k60Kyfvp7d/ eKLS+vSK6YSef/LJQU61LoheFVqHk2lYtKGveEeIFztJg8rHaN4PP/jHSMT7sA== Date: Tue, 8 Mar 2022 18:31:09 +0100 Message-Id: <20220308173127.21218-8-trzickel@illegalaliensfrom.space> In-Reply-To: <20220308173127.21218-1-trzickel@illegalaliensfrom.space> References: <20220308173127.21218-1-trzickel@illegalaliensfrom.space> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
None
|
|
Commit Message
Till Robin Zickel
March 8, 2022, 5:31 p.m. UTC
--- gnu/packages/crates-io.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
Comments
Till Robin Zickel schreef op di 08-03-2022 om 18:31 [+0100]: > + (arguments > + `(#:skip-build? #t)) Why? > + (home-page "https://github.com/rust-windowing/android-ndk-rs") > + (synopsis "Rust on Android") Guix currently doesn't really support non-Linux Android features at all currently, so this package seems currently pointless, what is the reason for packaging it? Greetings, Maxime.
Till Robin Zickel schreef op zo 20-03-2022 om 22:11 [+0100]:
> This is a library crate, so there is no need to build it, right?
By building it, syntax errors, API mismatches, etc. are detected
earlier, making updating the crate and its dependents less error-prone.
And from (guix)Rust Crates:
Care should be taken to ensure the correct version of
dependencies are used; to this end we try to refrain from skipping
the tests or using ‘#:skip-build?’ when possible.
Additionally, compiling libraries earlier can save compile time later
(*). Imagine having to rebuild glibc and gtk every time a new graphical
application using gtk is packaged ...
(*) There might currently be technical problems with rust and shared
libraries preventing this from working though. Or maybe they have been
resolved, I dunno.
Greetings,
Maxime.
Till Robin Zickel schreef op zo 20-03-2022 om 22:11 [+0100]: > Android is not supported on guix, but the dependency is needed by an > upstream crate and it's not optional afaik. Which upstream crate? If you remove the dependency from the upstream crate, does it fail to build? If so, with what error messages? Greetings, Maxime.
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 633123bc72..57039afa79 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -36498,6 +36498,26 @@ (define-public rust-ndk-sys-0.2 (description "This package provides FFI bindings for the Android NDK.") (license (list license:expat license:asl2.0)))) +(define-public rust-ndk-context-0.1 + (package + (name "rust-ndk-context") + (version "0.1.0") + (source (origin + (method url-fetch) + (uri (crate-uri "ndk-context" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "112q689zc4338xmj55a8nxdlkjmrw34s3xkpy3l1zqiphv35qg2f")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t)) + (home-page "https://github.com/rust-windowing/android-ndk-rs") + (synopsis "Rust on Android") + (description + "Collection of libraries and tools for Rust programming on Android targets") + (license (list license:expat license:asl2.0)))) + (define-public rust-neli-0.4 (package (name "rust-neli")