From cf2a8f58f78d86815755df7f3be15e87027f2814 Mon Sep 17 00:00:00 2001
From: NoisyCoil <noisycoil@disroot.org>
Date: Mon, 15 Sep 2025 00:12:56 +0200
Subject: [PATCH] bump build-dependencies for crate notify

---
 debian/control                   |  2 +-
 debian/patches/1001_notify.patch | 11 +++++++++++
 debian/patches/series            |  1 +
 3 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/1001_notify.patch

diff --git a/debian/control b/debian/control
index 82a46c82..96243bfc 100644
--- a/debian/control
+++ b/debian/control
@@ -43,7 +43,7 @@ Build-Depends:
  librust-nix-0.29+term-dev,
  librust-nom-7+default-dev,
  librust-notify-rust-4+default-dev,
- librust-notify-6+default-dev,
+ librust-notify-8+default-dev,
  librust-num-cpus-1+default-dev,
  librust-pcre2-0.2+default-dev,
  librust-polling-3+default-dev,
diff --git a/debian/patches/1001_notify.patch b/debian/patches/1001_notify.patch
new file mode 100644
index 00000000..496c493b
--- /dev/null
+++ b/debian/patches/1001_notify.patch
@@ -0,0 +1,11 @@
+--- a/melib/Cargo.toml
++++ b/melib/Cargo.toml
+@@ -37,7 +37,7 @@
+ native-tls = { version = "0.2.3", default-features = false, optional = true }
+ nix = { version = "0.29", default-features = false, features = ["fs", "socket", "dir", "hostname"] }
+ nom = { version = "7" }
+-notify = { version = "6.1.1", optional = true }
++notify = { version = "8", optional = true }
+ polling = { version = "3" }
+ regex = { version = "1" }
+ rusqlite = { version = "^0.29", default-features = false, features = ["array", "modern_sqlite"], optional = true }
diff --git a/debian/patches/series b/debian/patches/series
index d714ea4b..55bcf1ff 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+1001_notify.patch
 2001_assert_cmd.patch
 2001_imap-codec.patch
 2001_linkify.patch
-- 
2.51.0

