From patchwork Mon Oct 30 21:06:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve George X-Patchwork-Id: 55657 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 A829127BBE2; Mon, 30 Oct 2023 21:07:58 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,TVD_SPACE_RATIO autolearn=ham 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 6A89127BBEA for ; Mon, 30 Oct 2023 21:07:56 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxZTu-0005sP-IN; Mon, 30 Oct 2023 17:07:30 -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 1qxZTt-0005s5-5X for guix-patches@gnu.org; Mon, 30 Oct 2023 17:07:29 -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 1qxZTs-0004YZ-Rh for guix-patches@gnu.org; Mon, 30 Oct 2023 17:07:28 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qxZUP-0000fd-Ud; Mon, 30 Oct 2023 17:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66839] [PATCH 03/19] gnu: rust-gethostname-0.4. Resent-From: Steve George Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Mon, 30 Oct 2023 21:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66839 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66839@debbugs.gnu.org Cc: Steve George , efraim@flashner.co.il X-Debbugs-Original-Xcc: efraim@flashner.co.il Received: via spool by 66839-submit@debbugs.gnu.org id=B66839.16987000772556 (code B ref 66839); Mon, 30 Oct 2023 21:08:01 +0000 Received: (at 66839) by debbugs.gnu.org; 30 Oct 2023 21:07:57 +0000 Received: from localhost ([127.0.0.1]:46781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxZUL-0000f8-0G for submit@debbugs.gnu.org; Mon, 30 Oct 2023 17:07:57 -0400 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]:54032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxZUI-0000ej-WB for 66839@debbugs.gnu.org; Mon, 30 Oct 2023 17:07:56 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1qxZTe-00FbHz-VC for 66839@debbugs.gnu.org; Mon, 30 Oct 2023 22:07:14 +0100 Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qxZTe-0001qz-LX for 66839@debbugs.gnu.org; Mon, 30 Oct 2023 22:07:14 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1qxZTa-006vLG-Ci; Mon, 30 Oct 2023 22:07:10 +0100 From: Steve George Date: Mon, 30 Oct 2023 21:06:09 +0000 Message-ID: <4f93e2d70216afc5bafb50cb9ceec8287b5bc691.1698699809.git.steve@futurile.net> 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: , 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-gethostname-0.4): New variable. Change-Id: I113a2ed209cf6285df02df60178310f0cda80741 --- gnu/packages/crates-io.scm | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9983f9ccb2..687a583f20 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -28636,8 +28636,32 @@ (define-public rust-get-if-addrs-sys-0.1 interfaces on the system.") (license (list license:expat license:bsd-3)))) +(define-public rust-gethostname-0.4 + (package + (name "rust-gethostname") + (version "0.4.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "gethostname" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "063qqhznyckwx9n4z4xrmdv10s0fi6kbr17r6bi1yjifki2y0xh1")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags (list "--release" "--" + "--skip=gethostname_matches_system_hostname") + #:cargo-inputs (("rust-libc" ,rust-libc-0.2) + ("rust-windows-targets" ,rust-windows-targets-0.48)))) + (home-page "https://github.com/swsnr/gethostname.rs") + (synopsis "Rust implementation of gethostname for all platforms") + (description "A Rust library that provides @code{gethostname()} for all +platforms.") + (license license:asl2.0))) + (define-public rust-gethostname-0.3 (package + (inherit rust-gethostname-0.4) (name "rust-gethostname") (version "0.3.0") (source @@ -28647,7 +28671,6 @@ (define-public rust-gethostname-0.3 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0xy1wbx5k2bzi4cbaqj9wqgqsbn4f8pm6nsm1d86mibk66xd8rdv")))) - (build-system cargo-build-system) (arguments `(#:cargo-test-flags '("--release" "--" @@ -28655,12 +28678,7 @@ (define-public rust-gethostname-0.3 "--skip=gethostname_matches_system_hostname") #:cargo-inputs (("rust-libc" ,rust-libc-0.2) - ("rust-winapi" ,rust-winapi-0.3)))) - (home-page "https://github.com/swsnr/gethostname.rs") - (synopsis "Gethostname for all platforms") - (description "This library provides @code{gethostname()} for all -platforms.") - (license license:asl2.0))) + ("rust-winapi" ,rust-winapi-0.3)))))) (define-public rust-gethostname-0.2 (package