From patchwork Mon May 20 08:58:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herman Rimm X-Patchwork-Id: 27733 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id F304427BBE2; Mon, 20 May 2024 10:03:25 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 9BA2827BBEA for ; Mon, 20 May 2024 10:03:21 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8yv4-0001gQ-3S; Mon, 20 May 2024 05:02:58 -0400 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 1s8ytM-0000YJ-Ue for guix-patches@gnu.org; Mon, 20 May 2024 05:01:12 -0400 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 1s8ytM-0006p4-Mc for guix-patches@gnu.org; Mon, 20 May 2024 05:01:12 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8ytR-0007HS-4G; Mon, 20 May 2024 05:01:17 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71076] [PATCH 33/81] gnu: Add rust-android-logger-0.13. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Mon, 20 May 2024 09:01:17 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71076 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71076@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 71076-submit@debbugs.gnu.org id=B71076.171619566027542 (code B ref 71076); Mon, 20 May 2024 09:01:17 +0000 Received: (at 71076) by debbugs.gnu.org; 20 May 2024 09:01:00 +0000 Received: from localhost ([127.0.0.1]:41183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8yt9-0007A7-Q1 for submit@debbugs.gnu.org; Mon, 20 May 2024 05:01:00 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:43493 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8ysU-00072t-W2 for 71076@debbugs.gnu.org; Mon, 20 May 2024 05:00:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1716195607; 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=XhymF6LP7MZqVJ73r/TZZEHDpPYDLrFBdaxFQCLfv90=; b=sqAOmLlfGM5ixUwetGdi3cktIyeW1HBqWgQ+EdaTQEV2mPHmW0NPfwrEoKFtXBjw2P4eHa +NL3OFmn/qwPqbFGhzL4x9axXIKPRlUZDrsniTuUo3aZKXHnK3lHpdEWyt5lKQclZb3dAb LReqIPIyUmtCKGJfR5qI2bRTfv6Afl1Bkdwvg/7D8UIjmJ1kN5yQEZx3tryM9Nd517w45q cpJux9i90VWeUqSH4xPnSfC/dpDopcaAeNc9Ws5laEra1Um59zX1/uFEWmnjf6ZRo0ZvOu FlCCyRhtL6qdO7eqMJpv68zEQysKOCTAbrTBcYW+JnJnue0akAxhYW0sx4T76Q== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 935a6385 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <71076@debbugs.gnu.org>; Mon, 20 May 2024 09:00:07 +0000 (UTC) Date: Mon, 20 May 2024 10:58:38 +0200 Message-ID: <38e9a589bb72dd34ceaeb8cdf37b7d8ef872bdba.1716193123.git.herman@rimm.ee> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches X-Patchwork-Original-From: Herman Rimm via Guix-patches via From: Herman Rimm Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-android-logger-0.13): Add variable. (rust-android-logger-0.11): Inherit from rust-android-logger-0.13. Change-Id: I63838f75071ed3867f3fd36b1a3950fffd4171ed --- gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e7902fec50..9485ed62d4 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1582,8 +1582,34 @@ (define-public rust-android-log-sys-0.1 (base32 "0klq7cp4lm74gjf9p12zdjcr159blbicrfvadmaqvfxbi8njw1dq")))) (arguments `(#:skip-build? #true)))) ;XXX: Android only +(define-public rust-android-logger-0.13 + (package + (name "rust-android-logger") + (version "0.13.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "android_logger" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0bvp6lf39q0zykn70lys562kdb14r9dfm91m79jxq53cfi7i7564")))) + (build-system cargo-build-system) + (arguments + (list + #:cargo-inputs (list rust-android-log-sys-0.3 + rust-env-logger-0.10 + rust-log-0.4 + rust-once-cell-1))) + (home-page "https://github.com/rust-mobile/android_logger-rs") + (synopsis "Logging implementation for @code{log}") + (description + "This package provides a logging implementation for `log` which +hooks to android log output.") + (license (list license:expat license:asl2.0)))) + (define-public rust-android-logger-0.11 (package + (inherit rust-android-logger-0.13) (name "rust-android-logger") (version "0.11.3") (source @@ -1593,18 +1619,11 @@ (define-public rust-android-logger-0.11 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0fl8ix7q1cj73lzy6xcwyrqwpvnx5aaxszawidivv9ra4h6bh6c6")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-android-log-sys" ,rust-android-log-sys-0.2) ("rust-env-logger" ,rust-env-logger-0.10) ("rust-log" ,rust-log-0.4) - ("rust-once-cell" ,rust-once-cell-1)))) - (home-page "https://github.com/rust-mobile/android_logger-rs") - (synopsis "Logging implementation for @code{log}") - (description - "This library is a drop-in replacement for @code{env_logger}. Instead, -it outputs messages to Android's logcat.") - (license (list license:expat license:asl2.0)))) + ("rust-once-cell" ,rust-once-cell-1)))))) (define-public rust-android-logger-0.10 (package