From d96f0b06326c914d5170bedd41490f488d1769d5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 18 Dec 2022 22:33:27 +0000 Subject: [PATCH] Change `cargo-upstream` build-profile to `upstream-cargo` As per debian-devel discussion. Profile now registered under that name. Signed-off-by: Ian Jackson --- debian/control | 64 ++++++++++++++++----------------- debian/rules | 4 +-- debian/source.lintian-overrides | 2 +- debian/update-build-deps | 4 +-- 4 files changed, 37 insertions(+), 37 deletions(-) diff --git a/debian/control b/debian/control index 0c6b718..40257c0 100644 --- a/debian/control +++ b/debian/control @@ -6,38 +6,38 @@ Build-Depends: debhelper (>= 12), cargo, rustc, python3-sphinx, python3-recommonmark, python3-sphinx-markdown-tables, moreutils, libssl-dev (>= 1.1), pkg-config, # debian/update-build-deps manages these: - librust-backtrace-dev , - librust-base64-dev , - librust-clap-dev , - librust-easy-ext-dev , - librust-educe-dev , - librust-either-dev , - librust-env-logger+default-dev , - librust-eyre-dev , - librust-fehler-dev , - librust-futures-dev , - librust-heck-dev , - librust-hyper-dev , - librust-hyper-tls-dev , - librust-indenter-dev , - librust-ipnet-dev , - librust-itertools-dev , - librust-lazy-regex-dev , - librust-lazy-static-dev , - librust-libc-dev , - librust-log-dev , - librust-memchr-dev , - librust-mime-dev , - librust-nix-dev , - librust-parking-lot-dev , - librust-pin-project-lite-dev , - librust-regex-dev , - librust-sha2-dev , - librust-subtle-dev , - librust-syslog-dev , - librust-thiserror-dev , - librust-tokio-dev , - librust-void-dev , + librust-backtrace-dev , + librust-base64-dev , + librust-clap-dev , + librust-easy-ext-dev , + librust-educe-dev , + librust-either-dev , + librust-env-logger+default-dev , + librust-eyre-dev , + librust-fehler-dev , + librust-futures-dev , + librust-heck-dev , + librust-hyper-dev , + librust-hyper-tls-dev , + librust-indenter-dev , + librust-ipnet-dev , + librust-itertools-dev , + librust-lazy-regex-dev , + librust-lazy-static-dev , + librust-libc-dev , + librust-log-dev , + librust-memchr-dev , + librust-mime-dev , + librust-nix-dev , + librust-parking-lot-dev , + librust-pin-project-lite-dev , + librust-regex-dev , + librust-sha2-dev , + librust-subtle-dev , + librust-syslog-dev , + librust-thiserror-dev , + librust-tokio-dev , + librust-void-dev , Standards-Version: 4.6.1 Package: hippotat-client diff --git a/debian/rules b/debian/rules index c98b3f5..292ee9a 100755 --- a/debian/rules +++ b/debian/rules @@ -8,9 +8,9 @@ override_dh_installinit: # For local testing with upstream dependencies: # NAILING_CARGO=nailing-cargo make check -# NAILING_CARGO=nailing-cargo dpkg-buildpackage -Pcargo-upstream -uc - +# NAILING_CARGO=nailing-cargo dpkg-buildpackage -Pupstream-cargo -uc - -ifeq (,$(filter cargo-upstream, $(DEB_BUILD_PROFILES))) +ifeq (,$(filter upstream-cargo, $(DEB_BUILD_PROFILES))) include /usr/share/dpkg/architecture.mk include /usr/share/dpkg/buildflags.mk diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides index fb49316..3b1025c 100644 --- a/debian/source.lintian-overrides +++ b/debian/source.lintian-overrides @@ -1,2 +1,2 @@ # This is registered (at https://wiki.debian.org/BuildProfileSpe): -hippotat source: invalid-profile-name-in-source-relation cargo-upstream * +hippotat source: invalid-profile-name-in-source-relation upstream-cargo * diff --git a/debian/update-build-deps b/debian/update-build-deps index 9edd029..002fca1 100755 --- a/debian/update-build-deps +++ b/debian/update-build-deps @@ -10,7 +10,7 @@ our %need_features = qw( while () { if (m{^\# debian/update-build-deps}i...m{^\S}) { - next if m{^ +librust[-+a-z0-9]+ \,?\s*$}; + next if m{^ +librust[-+a-z0-9]+ \,?\s*$}; if (m{^\S} && !m{^\#}i) { local ($_); open C, "Cargo.toml" or die $!; @@ -21,7 +21,7 @@ while () { next if m{path ?= ?\"}; $p =~ y/_/-/; my $f = $need_features{$p} // ''; - print O " librust-$p$f-dev ,\n" or die $!; + print O " librust-$p$f-dev ,\n" or die $!; } C->error and die $!; } -- 2.30.2