chiark / gitweb /
debian: Declare that we need clap 3, with +derive
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 12 Jan 2023 18:20:28 +0000 (18:20 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 12 Jan 2023 18:21:41 +0000 (18:21 +0000)
Recently, Debian unstable changed so that "clap" is clap 4.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/control
debian/update-build-deps

index 82b2820f643860bfe7d1aaedb337205735bb3698..be235c36c5f2d5b2751212b1971ecbdb072a41b7 100644 (file)
@@ -10,7 +10,7 @@ Build-Depends: debhelper (>= 12), cargo, rustc, python3-sphinx,
 # debian/update-build-deps manages these:
     librust-backtrace-dev <!upstream-cargo>,
     librust-base64-dev <!upstream-cargo>,
-    librust-clap-dev <!upstream-cargo>,
+    librust-clap-3+derive-dev <!upstream-cargo>,
     librust-easy-ext-dev <!upstream-cargo>,
     librust-educe-dev <!upstream-cargo>,
     librust-either-dev <!upstream-cargo>,
index 6faff720dfd9b51928ae4f663af0445dfa409e56..856af2c3ee095e4f900d60949412dcd63243d77d 100755 (executable)
@@ -5,10 +5,12 @@ open I, "debian/control" or die $!;
 open O, ">debian/control.new" or die $!;
 
 our %need_features = qw(
+    clap +derive
     env-logger +default
                      );
-+our %replace = (
-               );
+our %replace = (
+    clap => 'librust-clap-3+derive-dev',
+              );
 
 while (<I>) {
   if (m{^\# debian/update-build-deps}i...m{^\S}) {