Message ID | cover.1706619961.git.herman@rimm.ee |
---|---|
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 8A71427BBE9; Tue, 30 Jan 2024 15:05:30 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 928E027BBE2 for <patchwork@mira.cbaines.net>; Tue, 30 Jan 2024 15:05:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1rUpfW-00064q-Hd; Tue, 30 Jan 2024 10:04:58 -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 <Debian-debbugs@debbugs.gnu.org>) id 1rUpfT-000649-3w for guix-patches@gnu.org; Tue, 30 Jan 2024 10:04:55 -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 <Debian-debbugs@debbugs.gnu.org>) id 1rUpfS-0001BU-P9 for guix-patches@gnu.org; Tue, 30 Jan 2024 10:04:54 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rUpfa-00074J-EX; Tue, 30 Jan 2024 10:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68819] [PATCH 00/49 rust-team] Update i3status-rust to 0.32.3. Resent-From: Herman Rimm <herman@rimm.ee> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Tue, 30 Jan 2024 15:05:02 +0000 Resent-Message-ID: <handler.68819.B.170662704827087@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68819 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68819@debbugs.gnu.org Cc: Herman Rimm <herman@rimm.ee>, Efraim Flashner <efraim@flashner.co.il> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Efraim Flashner <efraim@flashner.co.il> Received: via spool by submit@debbugs.gnu.org id=B.170662704827087 (code B ref -1); Tue, 30 Jan 2024 15:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Jan 2024 15:04:08 +0000 Received: from localhost ([127.0.0.1]:36125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1rUpeh-00072p-JG for submit@debbugs.gnu.org; Tue, 30 Jan 2024 10:04:08 -0500 Received: from lists.gnu.org ([2001:470:142::17]:35268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <herman@rimm.ee>) id 1rUpef-00072L-2m for submit@debbugs.gnu.org; Tue, 30 Jan 2024 10:04:05 -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 <herman@rimm.ee>) id 1rUpeQ-00055o-9w for guix-patches@gnu.org; Tue, 30 Jan 2024 10:03:50 -0500 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117] helo=email.rimm.ee) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <herman@rimm.ee>) id 1rUpeO-0000wV-6m for guix-patches@gnu.org; Tue, 30 Jan 2024 10:03:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1706627021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=wHcmfHsM9YaAaAvt5DBnEMNu6irf038Ak+X9dcFtX5k=; b=E5H2IC+lcSwl3FnD4g45ZxMSafMd1/3AkiddGbYWETam3Wa0tNVczioZCXXzcUSvVcdI5f 3BbuE1QeR1sx8R5OkpuxldPjNkHl/sP40vItfhLDM4SRj0eTf5ImlZ80mTsyWSUMeIctzE /WKmG84LD/23ZWJZXVehfkh90MiPRen28wNZz1AfXsgcaMUbI9wMzq1naR4IO9a3rsrDs+ 8xIwyu9JF6l6NXHUVD9vaxaI0NWWRAzp0EisLSzxnJd/CqhmYtah0MXERwU9WKSMAdGEat HQU1bQGA18cqzWM4WpMVJF4bocPzcr+OgL/2zS623bal0IRYEaQ9hJjdQ9EIvA== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id b901191e (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Tue, 30 Jan 2024 15:03:41 +0000 (UTC) Date: Tue, 30 Jan 2024 16:03:34 +0100 Message-ID: <cover.1706619961.git.herman@rimm.ee> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=81.205.150.117; envelope-from=herman@rimm.ee; helo=email.rimm.ee X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_PBL=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TVD_RCVD_IP=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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> Reply-to: Herman Rimm <herman@rimm.ee> X-ACL-Warn: , Herman Rimm via Guix-patches <guix-patches@gnu.org> From: Herman Rimm via Guix-patches via <guix-patches@gnu.org> 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 |
Series |
Update i3status-rust to 0.32.3.
|
|
Message
Herman Rimm
Jan. 30, 2024, 3:03 p.m. UTC
Hi rust-team, When I started using Guix, my i3status-rust config was for a newer version, now I got around to updating the package. I understand why noone had updated it, as it was quite tedious. Anyway, I added the dependencies required for the new version. Some notes: I shortened synopses and punctuated descriptions, but mostly left the #:cargo-inputs indentation as guix import had generated it. I want guix import crate to generate appropriate indentation. rust-arrow2 and rust-tera are patched and build with rust-chrono-tz-0.8 so that it can replace rust-chrono-tz-0.6 in a single commit. rust-zbus-3 and rust-zbus-macros-3 dependency are updated in a single commit, instead of relaxing rust-zbus-3 dependency versioning. Enabled tests on rust-notmuch. Although ordered-stream-0.2 is not adjacent to ordered-stream-0.1, the latter is removed in a later commit. Lastly, i3status-rust is updated and any dependencies that become unused are removed recursively. Assorted questions: 1. Should rust-from-variants-impl-0.6 be public? 2. I updated wayrs-client to 1.0, because adding a #[macro_use] made the wayrs-scanner-0.12 generate! macro available, so wayrs-client 0.12 would build in isolation, but not as a dependency of i3status-rust. Adding #[macro_export] to the macro in wayrs-scanner-0.12 did not have any effect. Does this issue seem familiar? 3. rust-async-io-2 and rust-async-net-2 form a cyclical dependency, should they be added as separate packages anyway? 4. When to #:skip-build? 5. Why is a rust package name defined when inheriting the same name? Cheers, Herman Herman Rimm (49): gnu: Add rust-async-once-cell-0.5. gnu: Add rust-backon-0.4. gnu: Add rust-calibright-0.1. gnu: Add rust-neli-proc-macros-0.1. gnu: Add rust-neli-0.6. gnu: Add rust-neli-wifi-0.6. gnu: Add rust-chrono-tz-build-0.2. gnu: Replace rust-chrono-tz-0.6 with rust-chrono-tz-0.8. gnu: Add rust-from-variants-impl-0.6. gnu: Add rust-from-variants-0.6. gnu: Add rust-notmuch-0.8. gnu: rust-gethostname-0.2: Update to 0.2.3. gnu: Add rust-maildir-0.6. gnu: Add rust-libsensors-sys-0.2. gnu: Add rust-sensors-0.2. gnu: Add rust-signal-hook-tokio-0.3. gnu: rust-swayipc-types-1: Update to 1.3.1. gnu: Add rust-async-pidfd-0.1. gnu: rust-parking-2: Update to 2.2.0. gnu: Add rust-futures-lite-2. gnu: Add rust-swayipc-async-2. gnu: Add rust-proc-macro-crate-3. gnu: Add rust-wayrs-proto-parser-2 gnu: Add rust-wayrs-scanner-0.13. gnu: Add rust-wayrs-client-1. gnu: Add rust-wayrs-protocols-0.13. gnu: Add rust-event-listener-4. gnu: Add rust-event-listener-strategy-0.4. gnu: Add rust-async-channel-2. gnu: Add rust-async-lock-3. gnu: Add rust-async-io-2 and rust-async-net-2 cyclical dependency. gnu: Add rust-ordered-stream-0.2. gnu: Add rust-xdg-home-1. gnu: Add rust-async-signal-0.2. gnu: Add rust-event-listener-3. gnu: rust-async-process-1: Update to 1.8.1. gnu: rust-async-fs-1: Update to 1.6.0. gnu: rust-zbus-3: Update to 3.14.1. gnu: Add rust-pandoc-0.8. gnu: i3status-rust: Update to 0.32.3. gnu: Deprecate rust-nl80211-0.0.2. gnu: Remove rust-neli-0.4. gnu: Remove rust-notmuch-0.6. gnu: Remove rust-cpuprofiler-0.0. gnu: Remove rust-progress-0.2. gnu: Remove rust-buffering-0.3. gnu: Remove rust-supercow-0.1. gnu: Remove rust-buffering-nocopy-macro-0.1. gnu: Remove rust-ordered-stream-0.1. gnu/local.mk | 1 - gnu/packages/crates-graphics.scm | 88 ++ gnu/packages/crates-io.scm | 1133 ++++++++++++----- ...status-rust-enable-unstable-features.patch | 20 - gnu/packages/rust-apps.scm | 100 +- 5 files changed, 959 insertions(+), 383 deletions(-) delete mode 100644 gnu/packages/patches/i3status-rust-enable-unstable-features.patch base-commit: 36315bde09efa660d38198f666b4e1582cb71db3
Comments
Hi, I sent a a few duplicated patches at 10:52. Why don't all patches show up at the same time on [1] or [2]? Cheers, Herman [1]: https://lists.gnu.org/archive/html/guix-patches/2024-01/index.html [2]: https://issues.guix.gnu.org/68819
Patches pushed to the rust-team branch with a few changes. I'll answer your questions inline. On Tue, Jan 30, 2024 at 04:03:34PM +0100, Herman Rimm wrote: > Hi rust-team, > > When I started using Guix, my i3status-rust config was for a newer > version, now I got around to updating the package. I understand why > noone had updated it, as it was quite tedious. Anyway, I added the > dependencies required for the new version. Some notes: > > I shortened synopses and punctuated descriptions, but mostly left the > #:cargo-inputs indentation as guix import had generated it. I want guix > import crate to generate appropriate indentation. > > rust-arrow2 and rust-tera are patched and build with rust-chrono-tz-0.8 > so that it can replace rust-chrono-tz-0.6 in a single commit. > > rust-zbus-3 and rust-zbus-macros-3 dependency are updated in a single > commit, instead of relaxing rust-zbus-3 dependency versioning. Probably could have updated rust-zbus-macros-3 first and then rust-zbus-3, but if the two commits are next to each other its generally fine. Or doing both in one commit is also fine. > Enabled tests on rust-notmuch. > > Although ordered-stream-0.2 is not adjacent to ordered-stream-0.1, the > latter is removed in a later commit. > > Lastly, i3status-rust is updated and any dependencies that become unused > are removed recursively. > > Assorted questions: > > 1. Should rust-from-variants-impl-0.6 be public? Yes, we have (almost?) all the rust packages as public. > 2. I updated wayrs-client to 1.0, because adding a #[macro_use] made > the wayrs-scanner-0.12 generate! macro available, so wayrs-client 0.12 > would build in isolation, but not as a dependency of i3status-rust. > Adding #[macro_export] to the macro in wayrs-scanner-0.12 did not have > any effect. Does this issue seem familiar? I tried to build i3status-rust with the 0.12 versions but ran into build issues so I left it as you have it. That issue specifically I don't remember seeing, but I haven't played around with it as much as I could have. > 3. rust-async-io-2 and rust-async-net-2 form a cyclical dependency, > should they be added as separate packages anyway? I would generally do it as two separate commits, even though each depends on the other. Doing both in one commit is technically more correct. > 4. When to #:skip-build? I generally do it when a package actually doesn't build (like if it only builds on macOS or on Windows) or if we can't get all the dependencies packaged, like rust-clap-derive-4 (I think) which has a dependency which wants a newer version of nushell. Most of the time I leave a comment about cutting the dependency chain. There was a period where intermediate crates which were imported defaulted to '#:skip-build? #t' but it made it harder to check that the inputs were correct. > 5. Why is a rust package name defined when inheriting the same name? We use the name field as part of the source file-name, and if we leave it as inherited then the name field shows up as undeclared. > Cheers, > Herman > > Herman Rimm (49): > gnu: Add rust-async-once-cell-0.5. > gnu: Add rust-backon-0.4. > gnu: Add rust-calibright-0.1. > gnu: Add rust-neli-proc-macros-0.1. > gnu: Add rust-neli-0.6. > gnu: Add rust-neli-wifi-0.6. > gnu: Add rust-chrono-tz-build-0.2. > gnu: Replace rust-chrono-tz-0.6 with rust-chrono-tz-0.8. > gnu: Add rust-from-variants-impl-0.6. > gnu: Add rust-from-variants-0.6. > gnu: Add rust-notmuch-0.8. > gnu: rust-gethostname-0.2: Update to 0.2.3. > gnu: Add rust-maildir-0.6. > gnu: Add rust-libsensors-sys-0.2. > gnu: Add rust-sensors-0.2. > gnu: Add rust-signal-hook-tokio-0.3. > gnu: rust-swayipc-types-1: Update to 1.3.1. > gnu: Add rust-async-pidfd-0.1. > gnu: rust-parking-2: Update to 2.2.0. > gnu: Add rust-futures-lite-2. > gnu: Add rust-swayipc-async-2. > gnu: Add rust-proc-macro-crate-3. > gnu: Add rust-wayrs-proto-parser-2 > gnu: Add rust-wayrs-scanner-0.13. > gnu: Add rust-wayrs-client-1. > gnu: Add rust-wayrs-protocols-0.13. > gnu: Add rust-event-listener-4. > gnu: Add rust-event-listener-strategy-0.4. > gnu: Add rust-async-channel-2. > gnu: Add rust-async-lock-3. > gnu: Add rust-async-io-2 and rust-async-net-2 cyclical dependency. > gnu: Add rust-ordered-stream-0.2. > gnu: Add rust-xdg-home-1. > gnu: Add rust-async-signal-0.2. > gnu: Add rust-event-listener-3. > gnu: rust-async-process-1: Update to 1.8.1. > gnu: rust-async-fs-1: Update to 1.6.0. > gnu: rust-zbus-3: Update to 3.14.1. > gnu: Add rust-pandoc-0.8. > gnu: i3status-rust: Update to 0.32.3. These ones I left for now in case another package later needs them. > gnu: Deprecate rust-nl80211-0.0.2. > gnu: Remove rust-neli-0.4. > gnu: Remove rust-notmuch-0.6. > gnu: Remove rust-cpuprofiler-0.0. > gnu: Remove rust-progress-0.2. > gnu: Remove rust-buffering-0.3. > gnu: Remove rust-supercow-0.1. > gnu: Remove rust-buffering-nocopy-macro-0.1. > gnu: Remove rust-ordered-stream-0.1. > > gnu/local.mk | 1 - > gnu/packages/crates-graphics.scm | 88 ++ > gnu/packages/crates-io.scm | 1133 ++++++++++++----- > ...status-rust-enable-unstable-features.patch | 20 - > gnu/packages/rust-apps.scm | 100 +- > 5 files changed, 959 insertions(+), 383 deletions(-) > delete mode 100644 gnu/packages/patches/i3status-rust-enable-unstable-features.patch > > > base-commit: 36315bde09efa660d38198f666b4e1582cb71db3 > -- > 2.41.0 > > >