public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cosmic-randr] f43: Update to 1.0.1
@ 2026-10-08 15:56 Ryan Brue
  0 siblings, 0 replies; only message in thread
From: Ryan Brue @ 2026-10-08 15:56 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/cosmic-randr
Branch : f43
Commit : ebd666e06fae13c780f5ac62cfa6f4f323ec5465
Author : Ryan Brue <ryanbrue.dev@gmail.com>
Date   : 2025-12-30T19:47:26-06:00
Stats  : +17/-452 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/cosmic-randr/c/ebd666e06fae13c780f5ac62cfa6f4f323ec5465?branch=f43

Log:
Update to 1.0.1

---
diff --git a/.gitignore b/.gitignore
index 0dab43e..99a6b41 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,5 @@
 /vendor-1.0.0-beta.9.tar.gz
 /cosmic-randr-1.0.0.tar.gz
 /vendor-1.0.0.tar.gz
+/cosmic-randr-1.0.1.tar.gz
+/vendor-1.0.1.tar.gz

diff --git a/51.patch b/51.patch
deleted file mode 100644
index 65e2832..0000000
--- a/51.patch
+++ /dev/null
@@ -1,434 +0,0 @@
-From d002ab059c72a3fa5eb78d92cef19051234d7c60 Mon Sep 17 00:00:00 2001
-From: Jens Reidel <adrian@travitia.xyz>
-Date: Thu, 11 Dec 2025 05:50:17 +0100
-Subject: [PATCH 1/2] Use Mutex from std
-
-Asynchronous Mutex types are only useful when a lock must be held across
-an await point, see also https://docs.rs/tokio/latest/tokio/sync/struct.Mutex.html#which-kind-of-mutex-should-you-use
-
-Signed-off-by: Jens Reidel <adrian@travitia.xyz>
----
- Cargo.lock         | 50 ----------------------------------------------
- cli/src/main.rs    |  2 +-
- lib/Cargo.toml     |  1 -
- lib/src/channel.rs | 14 ++++++-------
- 4 files changed, 8 insertions(+), 59 deletions(-)
-
-diff --git a/Cargo.lock b/Cargo.lock
-index d659c18..0a9c875 100644
---- a/Cargo.lock
-+++ b/Cargo.lock
-@@ -64,15 +64,6 @@ version = "2.10.0"
- source = "registry+https://github.com/rust-lang/crates.io-index"
- checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
- 
--[[package]]
--name = "branches"
--version = "0.3.0"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "f11502672c5570f77f6bdf573332483f8475bab6a7fda00f1fae8ddb5a6245c0"
--dependencies = [
-- "rustc_version",
--]
--
- [[package]]
- name = "bytes"
- version = "1.11.0"
-@@ -167,7 +158,6 @@ dependencies = [
-  "tracing",
-  "wayland-client",
-  "wayland-protocols-wlr",
-- "xutex",
- ]
- 
- [[package]]
-@@ -193,21 +183,6 @@ dependencies = [
-  "thiserror",
- ]
- 
--[[package]]
--name = "crossbeam-queue"
--version = "0.3.12"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115"
--dependencies = [
-- "crossbeam-utils",
--]
--
--[[package]]
--name = "crossbeam-utils"
--version = "0.8.21"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
--
- [[package]]
- name = "downcast-rs"
- version = "1.2.1"
-@@ -490,15 +465,6 @@ dependencies = [
-  "proc-macro2",
- ]
- 
--[[package]]
--name = "rustc_version"
--version = "0.4.1"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
--dependencies = [
-- "semver",
--]
--
- [[package]]
- name = "rustix"
- version = "1.1.2"
-@@ -512,12 +478,6 @@ dependencies = [
-  "windows-sys 0.61.2",
- ]
- 
--[[package]]
--name = "semver"
--version = "1.0.27"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
--
- [[package]]
- name = "shlex"
- version = "1.3.0"
-@@ -855,13 +815,3 @@ checksum = "c8d71a593cc5c42ad7876e2c1fda56f314f3754c084128833e64f1345ff8a03a"
- dependencies = [
-  "memchr",
- ]
--
--[[package]]
--name = "xutex"
--version = "0.1.3"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "8f7b2794adabee656fae931dc27d457c4e8a83cfe96ad1e1c73de770b8401b57"
--dependencies = [
-- "branches",
-- "crossbeam-queue",
--]
-diff --git a/cli/src/main.rs b/cli/src/main.rs
-index d908f7f..a9673e5 100644
---- a/cli/src/main.rs
-+++ b/cli/src/main.rs
-@@ -315,7 +315,7 @@ impl App {
-     /// Returns error if the message receiver fails, dispach fails, or a configuration failed.
-     async fn receive_config_messages(&mut self) -> Result<(), Box<dyn std::error::Error>> {
-         loop {
--            while let Some(message) = self.message_rx.try_recv().await {
-+            while let Some(message) = self.message_rx.try_recv() {
-                 if config_message(Some(message))? {
-                     return Ok(());
-                 }
-diff --git a/lib/Cargo.toml b/lib/Cargo.toml
-index 77d25c3..7e90b18 100644
---- a/lib/Cargo.toml
-+++ b/lib/Cargo.toml
-@@ -14,7 +14,6 @@ tokio = { version = "1.48.0", default-features = false, features = ["net", "sync
- tracing = "0.1.43"
- wayland-client = "0.31.11"
- wayland-protocols-wlr = { version = "0.3.9", features = [ "client", "wayland-client" ] }
--xutex = "0.1.3"
- 
- [dev-dependencies]
- tokio = { version = "1.48.0", features = ["macros", "rt",] }
-diff --git a/lib/src/channel.rs b/lib/src/channel.rs
-index 47b1818..a5c559e 100644
---- a/lib/src/channel.rs
-+++ b/lib/src/channel.rs
-@@ -4,7 +4,7 @@
- use std::{
-     collections::VecDeque,
-     sync::{
--        Arc,
-+        Arc, Mutex,
-         atomic::{AtomicBool, Ordering},
-     },
- };
-@@ -14,7 +14,7 @@ use super::Message;
- /// Create a channel for receiving messages from cosmic-randr.
- pub fn channel() -> (Sender, Receiver) {
-     let channel = Arc::new(Channel {
--        queue: xutex::AsyncMutex::new(VecDeque::default()),
-+        queue: Mutex::new(VecDeque::default()),
-         notify: tokio::sync::Notify::const_new(),
-         closed: AtomicBool::new(false),
-     });
-@@ -24,7 +24,7 @@ pub fn channel() -> (Sender, Receiver) {
- 
- /// A channel specifically for handling cosmic-randr messages.
- struct Channel {
--    pub(self) queue: xutex::AsyncMutex<VecDeque<Message>>,
-+    pub(self) queue: Mutex<VecDeque<Message>>,
-     pub(self) notify: tokio::sync::Notify,
-     pub(self) closed: AtomicBool,
- }
-@@ -33,7 +33,7 @@ pub struct Sender(Arc<Channel>);
- 
- impl Sender {
-     pub async fn send(&self, message: Message) {
--        self.0.queue.lock().await.push_back(message);
-+        self.0.queue.lock().unwrap().push_back(message);
-         self.0.notify.notify_one();
-     }
- }
-@@ -51,7 +51,7 @@ impl Receiver {
-     /// Returns a value until the sender is dropped.
-     pub async fn recv(&mut self) -> Option<Message> {
-         loop {
--            if let Some(value) = self.0.queue.lock().await.pop_front() {
-+            if let Some(value) = self.0.queue.lock().unwrap().pop_front() {
-                 return Some(value);
-             }
- 
-@@ -63,7 +63,7 @@ impl Receiver {
-         }
-     }
- 
--    pub async fn try_recv(&mut self) -> Option<Message> {
--        self.0.queue.lock().await.pop_front()
-+    pub fn try_recv(&mut self) -> Option<Message> {
-+        self.0.queue.lock().unwrap().pop_front()
-     }
- }
-
-From 9321c41ad74fe483dab68bb8f5d28b0edc334aa5 Mon Sep 17 00:00:00 2001
-From: Jens Reidel <adrian@travitia.xyz>
-Date: Thu, 11 Dec 2025 06:21:06 +0100
-Subject: [PATCH 2/2] Drop unnecessary async from send
-
-The send function in the channel is now sync, which means that we can
-drop futures-lite entirely.
-
-Signed-off-by: Jens Reidel <adrian@travitia.xyz>
----
- Cargo.lock                      | 38 ---------------------------------
- lib/Cargo.toml                  |  1 -
- lib/src/channel.rs              |  6 +++---
- lib/src/context.rs              |  4 ++--
- lib/src/output_configuration.rs | 30 ++++++++++++--------------
- lib/src/output_manager.rs       | 12 +++--------
- lib/src/wl_registry.rs          |  4 +---
- 7 files changed, 23 insertions(+), 72 deletions(-)
-
-diff --git a/Cargo.lock b/Cargo.lock
-index 0a9c875..2b7a28b 100644
---- a/Cargo.lock
-+++ b/Cargo.lock
-@@ -151,7 +151,6 @@ name = "cosmic-randr"
- version = "0.1.0"
- dependencies = [
-  "cosmic-protocols",
-- "futures-lite",
-  "indexmap",
-  "thiserror",
-  "tokio",
-@@ -205,12 +204,6 @@ dependencies = [
-  "windows-sys 0.61.2",
- ]
- 
--[[package]]
--name = "fastrand"
--version = "2.3.0"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
--
- [[package]]
- name = "find-msvc-tools"
- version = "0.1.5"
-@@ -223,31 +216,6 @@ version = "0.3.2"
- source = "registry+https://github.com/rust-lang/crates.io-index"
- checksum = "3f722aa875298d34a0ebb6004699f6f4ea830d36dec8ac2effdbbc840248a096"
- 
--[[package]]
--name = "futures-core"
--version = "0.3.31"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
--
--[[package]]
--name = "futures-io"
--version = "0.3.31"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
--
--[[package]]
--name = "futures-lite"
--version = "2.6.1"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"
--dependencies = [
-- "fastrand",
-- "futures-core",
-- "futures-io",
-- "parking",
-- "pin-project-lite",
--]
--
- [[package]]
- name = "hashbrown"
- version = "0.16.1"
-@@ -420,12 +388,6 @@ version = "1.70.2"
- source = "registry+https://github.com/rust-lang/crates.io-index"
- checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
- 
--[[package]]
--name = "parking"
--version = "2.2.1"
--source = "registry+https://github.com/rust-lang/crates.io-index"
--checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
--
- [[package]]
- name = "pin-project-lite"
- version = "0.2.16"
-diff --git a/lib/Cargo.toml b/lib/Cargo.toml
-index 7e90b18..1e978ea 100644
---- a/lib/Cargo.toml
-+++ b/lib/Cargo.toml
-@@ -7,7 +7,6 @@ edition = "2024"
- 
- [dependencies]
- cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols.git" }
--futures-lite = "2.6.1"
- indexmap = "2.12.1"
- thiserror = "2.0.17"
- tokio = { version = "1.48.0", default-features = false, features = ["net", "sync"] }
-diff --git a/lib/src/channel.rs b/lib/src/channel.rs
-index a5c559e..8e57978 100644
---- a/lib/src/channel.rs
-+++ b/lib/src/channel.rs
-@@ -32,7 +32,7 @@ struct Channel {
- pub struct Sender(Arc<Channel>);
- 
- impl Sender {
--    pub async fn send(&self, message: Message) {
-+    pub fn send(&self, message: Message) {
-         self.0.queue.lock().unwrap().push_back(message);
-         self.0.notify.notify_one();
-     }
-@@ -49,7 +49,7 @@ pub struct Receiver(Arc<Channel>);
- 
- impl Receiver {
-     /// Returns a value until the sender is dropped.
--    pub async fn recv(&mut self) -> Option<Message> {
-+    pub async fn recv(&self) -> Option<Message> {
-         loop {
-             if let Some(value) = self.0.queue.lock().unwrap().pop_front() {
-                 return Some(value);
-@@ -63,7 +63,7 @@ impl Receiver {
-         }
-     }
- 
--    pub fn try_recv(&mut self) -> Option<Message> {
-+    pub fn try_recv(&self) -> Option<Message> {
-         self.0.queue.lock().unwrap().pop_front()
-     }
- }
-diff --git a/lib/src/context.rs b/lib/src/context.rs
-index 7813ae2..fae7c52 100644
---- a/lib/src/context.rs
-+++ b/lib/src/context.rs
-@@ -324,8 +324,8 @@ impl Context {
-             .map_err(Error::from)
-     }
- 
--    pub async fn send(&mut self, event: Message) {
--        self.sender.send(event).await
-+    pub fn send(&mut self, event: Message) {
-+        self.sender.send(event)
-     }
- 
-     pub fn create_output_config(&mut self) -> Configuration {
-diff --git a/lib/src/output_configuration.rs b/lib/src/output_configuration.rs
-index f3f1312..3c7436c 100644
---- a/lib/src/output_configuration.rs
-+++ b/lib/src/output_configuration.rs
-@@ -16,23 +16,21 @@ impl Dispatch<ZwlrOutputConfigurationV1, ()> for Context {
-         _conn: &Connection,
-         _handle: &QueueHandle<Self>,
-     ) {
--        futures_lite::future::block_on(async {
--            match event {
--                Event::Succeeded => {
--                    let _res = state.send(Message::ConfigurationSucceeded).await;
--                    proxy.destroy();
--                }
--                Event::Failed => {
--                    let _res = state.send(Message::ConfigurationFailed).await;
--                    proxy.destroy();
--                }
--                Event::Cancelled => {
--                    let _res = state.send(Message::ConfigurationCancelled).await;
--                    proxy.destroy();
--                }
--                _ => unreachable!(),
-+        match event {
-+            Event::Succeeded => {
-+                let _res = state.send(Message::ConfigurationSucceeded);
-+                proxy.destroy();
-             }
--        });
-+            Event::Failed => {
-+                let _res = state.send(Message::ConfigurationFailed);
-+                proxy.destroy();
-+            }
-+            Event::Cancelled => {
-+                let _res = state.send(Message::ConfigurationCancelled);
-+                proxy.destroy();
-+            }
-+            _ => unreachable!(),
-+        }
-     }
- }
- 
-diff --git a/lib/src/output_manager.rs b/lib/src/output_manager.rs
-index af9f209..aca4e38 100644
---- a/lib/src/output_manager.rs
-+++ b/lib/src/output_manager.rs
-@@ -47,18 +47,14 @@ impl Dispatch<ZwlrOutputManagerV1, ()> for Context {
-                     // `get_head`. Queue sending `ManagerDone` until sync callback.
-                     state.done_queued = true;
-                 } else {
--                    futures_lite::future::block_on(async {
--                        let _res = state.send(Message::ManagerDone).await;
--                    });
-+                    let _res = state.send(Message::ManagerDone);
-                 }
-             }
- 
-             ZwlrOutputManagerEvent::Finished => {
-                 state.output_manager = None;
-                 state.output_manager_serial = 0;
--                futures_lite::future::block_on(async {
--                    let _res = state.send(Message::ManagerFinished).await;
--                });
-+                let _res = state.send(Message::ManagerFinished);
-             }
- 
-             _ => tracing::debug!(?event, "unknown event"),
-@@ -98,9 +94,7 @@ impl Dispatch<WlCallback, ()> for Context {
-                 if state.cosmic_manager_sync_callback.as_ref() == Some(proxy) {
-                     state.cosmic_manager_sync_callback = None;
-                     if state.done_queued {
--                        futures_lite::future::block_on(async {
--                            let _res = state.send(Message::ManagerDone).await;
--                        });
-+                        let _res = state.send(Message::ManagerDone);
-                         state.done_queued = false;
-                     }
-                 }
-diff --git a/lib/src/wl_registry.rs b/lib/src/wl_registry.rs
-index cf09712..939f826 100644
---- a/lib/src/wl_registry.rs
-+++ b/lib/src/wl_registry.rs
-@@ -27,9 +27,7 @@ impl Dispatch<wl_registry::WlRegistry, ()> for Context {
-                         "wlr-output-management protocol version {version} < 2 is not supported"
-                     );
- 
--                    futures_lite::future::block_on(async {
--                        let _ = state.send(Message::Unsupported).await;
--                    });
-+                    let _ = state.send(Message::Unsupported);
- 
-                     return;
-                 }

diff --git a/cosmic-randr.spec b/cosmic-randr.spec
index e55bbb2..1dbca6a 100644
--- a/cosmic-randr.spec
+++ b/cosmic-randr.spec
@@ -7,12 +7,12 @@ ExcludeArch: %{ix86}
 # While our version corresponds to an upstream tag, we still need to define
 # these macros in order to set the VERGEN_GIT_SHA and VERGEN_GIT_COMMIT_DATE
 # environment variables in multiple sections of the spec file.
-%global commit f5923d1ef58b87ef103abe1a0e44460236d8fa36
-%global commitdatestring 2025-12-09 17:20:42 +0100
-%global cosmic_minver 1.0.0
+%global commit 741089cf5e3aa7d5e48042101c1d4cc813b13637
+%global commitdatestring 2025-12-12 15:59:55 -0700
+%global cosmic_minver 1.0.1
 
 Name:           cosmic-randr
-Version: 1.0.0
+Version: 1.0.1
 Release:        %autorelease
 Summary:        Display configuration command line tool
 
@@ -29,9 +29,6 @@ Source1:        vendor-%{version_no_tilde}.tar.gz
 # * mv vendor-config-%%{version_no_tilde}.toml ..
 Source2:        vendor-config-%{version_no_tilde}.toml
 
-# https://github.com/pop-os/cosmic-randr/pull/51
-Patch: https://patch-diff.githubusercontent.com/raw/pop-os/cosmic-randr/pull/51.patch
-
 BuildRequires:  cargo-rpm-macros >= 25
 BuildRequires:  rustc
 BuildRequires:  lld

diff --git a/sources b/sources
index 95f63b7..c37860e 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (cosmic-randr-1.0.0.tar.gz) = 1ae393fc133c7a8e2a4147dcf1d03264777ffae9b53d6bef84bd954cd31ff30d1450d318d6b77cf0e389ae5cd7f425fb542934b087e601a244ac4343dbac33c3
-SHA512 (vendor-1.0.0.tar.gz) = 33c8161adc5fec5111f9b7de7b327659be2bcf315698979d3fbc1c046cd59cf553bfeaa2f362fa8dfee3925d7c23473a7a339c627f92aa72f29db1ffbea2c327
+SHA512 (cosmic-randr-1.0.1.tar.gz) = 174d350ff75b0836c8a4098cc59e0ed41e890455aedaaf0a1ff668531215f09514c27e0b8a7c6c61dab703a8938b3a14e8fe1baed828abdcc10fecef49979470
+SHA512 (vendor-1.0.1.tar.gz) = fc14be66550eae38074765901293921989656290a186ca78292e1901b093af309934c9d6e138e1267bc99455cccff28e159f7b7618d23682035205577e74adcb

diff --git a/vendor-config-1.0.0.toml b/vendor-config-1.0.0.toml
deleted file mode 100644
index 010a01a..0000000
--- a/vendor-config-1.0.0.toml
+++ /dev/null
@@ -1,9 +0,0 @@
-[source.crates-io]
-replace-with = "vendored-sources"
-
-[source."git+https://github.com/pop-os/cosmic-protocols.git"]
-git = "https://github.com/pop-os/cosmic-protocols.git"
-replace-with = "vendored-sources"
-
-[source.vendored-sources]
-directory = "vendor"
\ No newline at end of file

diff --git a/vendor-config-1.0.1.toml b/vendor-config-1.0.1.toml
new file mode 100644
index 0000000..010a01a
--- /dev/null
+++ b/vendor-config-1.0.1.toml
@@ -0,0 +1,9 @@
+[source.crates-io]
+replace-with = "vendored-sources"
+
+[source."git+https://github.com/pop-os/cosmic-protocols.git"]
+git = "https://github.com/pop-os/cosmic-protocols.git"
+replace-with = "vendored-sources"
+
+[source.vendored-sources]
+directory = "vendor"
\ No newline at end of file

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-08 15:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 15:56 [rpms/cosmic-randr] f43: Update to 1.0.1 Ryan Brue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox