chiark / gitweb /
hippotat.git
22 months agoclap: Rename hippotat crate's Opts type to CommonOpts
Ian Jackson [Thu, 15 Jun 2023 19:15:36 +0000 (20:15 +0100)]
clap: Rename hippotat crate's Opts type to CommonOpts

clap 4 seems to index these by bare type name (!)
and panics if they aren't unique (!!)

    running 1 test
    test verify_cli ... FAILED

    failures:

    ---- verify_cli stdout ----
    thread 'verify_cli' panicked at 'Command hippotat: Argument group name must be unique

    'Opts' is already in use', /home/rustcargo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.3.4/src/builder/debug_asserts.rs:278:9
    stack backtrace:
       0: rust_begin_unwind
 at /rustc/071f14baae931e17a5a99366bf216e76384cc4f6/library/std/src/panicking.rs:578:5
       1: core::panicking::panic_fmt
 at /rustc/071f14baae931e17a5a99366bf216e76384cc4f6/library/core/src/panicking.rs:67:14
       2: clap_builder::builder::debug_asserts::assert_app
 at /home/rustcargo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.3.4/src/builder/debug_asserts.rs:278:9
       3: clap_builder::builder::command::Command::_build_self
 at /home/rustcargo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.3.4/src/builder/command.rs:3945:13
       4: clap_builder::builder::command::Command::_build_recursive
 at /home/rustcargo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.3.4/src/builder/command.rs:3843:9
       5: clap_builder::builder::command::Command::build
 at /home/rustcargo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.3.4/src/builder/command.rs:3838:9
       6: clap_builder::builder::command::Command::debug_assert
 at /home/rustcargo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.3.4/src/builder/command.rs:489:9
       7: hippotat::utils::verify_cli
 at ./src/utils.rs:236:3
       8: hippotat::verify_cli
 at ./client/client.rs:383:3
       9: hippotat::verify_cli::{{closure}}
 at ./client/client.rs:382:17
      10: core::ops::function::FnOnce::call_once
 at /rustc/071f14baae931e17a5a99366bf216e76384cc4f6/library/core/src/ops/function.rs:250:5
      11: core::ops::function::FnOnce::call_once
 at /rustc/071f14baae931e17a5a99366bf216e76384cc4f6/library/core/src/ops/function.rs:250:5
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

    failures:
verify_cli

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoclap: Use ArgAction::Append
Ian Jackson [Thu, 15 Jun 2023 19:09:15 +0000 (20:09 +0100)]
clap: Use ArgAction::Append

Gets rid of this 3 to 4 deprecation warning.

The warning's suggestion to use "multiple_occurrences" seems wrong
since that is also deprecated ?!  It links to Arg::action, and
emprically this construction DTRT.

    warning: use of deprecated method `clap::Arg::<'help>::multiple`: Split into `Arg::multiple_occurrences` (most likely what you want)  and `Arg::multiple_values`
      --> src/config.rs:89:16
       |
    89 |   #[clap(long, multiple=true, number_of_values=1)]
       |                ^^^^^^^^
       |
       = note: `#[warn(deprecated)]` on by default

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoclap: Use Command, not App
Ian Jackson [Thu, 15 Jun 2023 19:03:41 +0000 (20:03 +0100)]
clap: Use Command, not App

    warning: use of deprecated struct `clap::App`: Replaced with `Command`
       --> src/utils.rs:235:18
|
    235 |   let app: clap::App = F::command();
|                  ^^^
|
= note: `#[warn(deprecated)]` on by default

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoclap: use value_parser
Ian Jackson [Thu, 15 Jun 2023 19:02:30 +0000 (20:02 +0100)]
clap: use value_parser

Removes a deprecation warning (this is recommended by the clap 3 to 4
migration guide).

    warning: use of deprecated function `<reporter::LogOpts as clap::Args>::augment_args::parse_try_from_str`: Replaced with `#[clap(value_parser = ...)]`
      --> src/reporter.rs:22:35
       |
    22 |   #[clap(long, parse(try_from_str=parse_syslog_facility))]
       |                                   ^^^^^^^^^^^^^^^^^^^^^
       |
       = note: `#[warn(deprecated)]` on by default

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoclap: Use ArgAction::Count for debug level
Ian Jackson [Thu, 15 Jun 2023 18:41:41 +0000 (19:41 +0100)]
clap: Use ArgAction::Count for debug level

Removes a deprecation warning (this is recommended by the clap 3 to 4
migration guide).

    Checking hippotat v1.1.7 (/volatile/rustcargo/Rustup/Hippotat/hippotat)
warning: use of deprecated function `<reporter::LogOpts as clap::Args>::augment_args::parse_from_occurrences`: Replaced with `#[clap(action = ArgAction::Count)]` with a field type of `u8`
  --> src/reporter.rs:18:33
   |
18 |   #[clap(long, short='D', parse(from_occurrences))]
   |                                 ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoclap: Factor verify_cli out into utils
Ian Jackson [Thu, 15 Jun 2023 18:53:40 +0000 (19:53 +0100)]
clap: Factor verify_cli out into utils

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoclap: Add verify_cli tests
Ian Jackson [Thu, 15 Jun 2023 18:47:20 +0000 (19:47 +0100)]
clap: Add verify_cli tests

As recommended by clap 3 to 4 migration guide.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoMerge branch 'rename' into 'main'
Ian Jackson [Thu, 15 Jun 2023 20:10:58 +0000 (20:10 +0000)]
Merge branch 'rename' into 'main'

CI: rename "test-*" jobs to "package-*"

See merge request iwj/hippotat!14

22 months agoMerge branch 'depver' into 'main'
Ian Jackson [Thu, 15 Jun 2023 19:56:47 +0000 (19:56 +0000)]
Merge branch 'depver' into 'main'

Use versioned dependencies for build deps

See merge request iwj/hippotat!13

22 months agoCI: rename "test-*" jobs to "package-*"
Ian Jackson [Thu, 15 Jun 2023 19:56:07 +0000 (20:56 +0100)]
CI: rename "test-*" jobs to "package-*"

These all use dpkg-buildpackage.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agodebian/update-build-deps: Add versions (actual update)
Ian Jackson [Thu, 15 Jun 2023 19:24:38 +0000 (20:24 +0100)]
debian/update-build-deps: Add versions (actual update)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agodebian/update-build-deps: Add versions
Ian Jackson [Thu, 15 Jun 2023 18:16:45 +0000 (19:16 +0100)]
debian/update-build-deps: Add versions

This ensures that we will migrate only after our actual build-deps do.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agodebian/update-build-deps: Scan macros/ too
Ian Jackson [Thu, 15 Jun 2023 18:11:21 +0000 (19:11 +0100)]
debian/update-build-deps: Scan macros/ too

As it happens, these dependencies were never actually violated since
other of our deps pulled them in.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoCI: maint-checks: Use default Debian image, not Rust one
Ian Jackson [Thu, 15 Jun 2023 18:23:12 +0000 (19:23 +0100)]
CI: maint-checks: Use default Debian image, not Rust one

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agodebian/update-build-deps: Use a real TOML parser
Ian Jackson [Thu, 15 Jun 2023 18:05:38 +0000 (19:05 +0100)]
debian/update-build-deps: Use a real TOML parser

That old code was quite horrible.

No change to the output.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoMerge branch 'audit' into 'main'
Ian Jackson [Thu, 15 Jun 2023 18:03:53 +0000 (18:03 +0000)]
Merge branch 'audit' into 'main'

Run cargo-audit

See merge request iwj/hippotat!12

22 months agoCI: run cargo audit
Ian Jackson [Thu, 15 Jun 2023 17:10:54 +0000 (18:10 +0100)]
CI: run cargo audit

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoCopy test/via-cargo-install-in-ci from derive-adhoc.git
Ian Jackson [Thu, 15 Jun 2023 17:07:46 +0000 (18:07 +0100)]
Copy test/via-cargo-install-in-ci from derive-adhoc.git

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoMerge branch 'toml' into 'main'
Ian Jackson [Thu, 15 Jun 2023 17:36:12 +0000 (17:36 +0000)]
Merge branch 'toml' into 'main'

Cargo.toml: Remove an obsolete comment

See merge request iwj/hippotat!10

22 months agoMerge branch 'todo' into 'main'
Ian Jackson [Thu, 15 Jun 2023 17:17:17 +0000 (17:17 +0000)]
Merge branch 'todo' into 'main'

CI: Check for blocking todos (three X comments)

See merge request iwj/hippotat!7

22 months agoCargo.toml: Remove an obsolete comment
Ian Jackson [Thu, 15 Jun 2023 11:55:16 +0000 (12:55 +0100)]
Cargo.toml: Remove an obsolete comment

This was written when we were trying to figure out how to get this
thing into Debian and what dependencies were actually needed.

And, it seems to have become detached from whatever it referred to.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoMerge branch 'minimal' into 'main'
Ian Jackson [Thu, 15 Jun 2023 17:15:29 +0000 (17:15 +0000)]
Merge branch 'minimal' into 'main'

Bump dependency minimal versions, and test them

See merge request iwj/hippotat!9

22 months agoMerge branch 'update' into 'main'
Ian Jackson [Thu, 15 Jun 2023 17:04:52 +0000 (17:04 +0000)]
Merge branch 'update' into 'main'

cargo update

See merge request iwj/hippotat!8

22 months agoAdd a minimal-versions test
Ian Jackson [Thu, 15 Jun 2023 13:11:53 +0000 (14:11 +0100)]
Add a minimal-versions test

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoCI: maint-checks: Do in "check" stage
Ian Jackson [Thu, 15 Jun 2023 16:29:53 +0000 (17:29 +0100)]
CI: maint-checks: Do in "check" stage

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoCI: Check for blocking todos (three X comments)
Ian Jackson [Thu, 15 Jun 2023 13:13:28 +0000 (14:13 +0100)]
CI: Check for blocking todos (three X comments)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: tokio
Ian Jackson [Thu, 15 Jun 2023 16:04:31 +0000 (17:04 +0100)]
bump deps: tokio

We need improvements including write_all_buf on ChildStdin, and
improvements to select!.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: hyper
Ian Jackson [Thu, 15 Jun 2023 16:11:36 +0000 (17:11 +0100)]
bump deps: hyper

We need http1_preserve_header_case.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: itertools
Ian Jackson [Thu, 15 Jun 2023 16:07:58 +0000 (17:07 +0100)]
bump deps: itertools

We need chain!

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: mime
Ian Jackson [Thu, 15 Jun 2023 16:01:26 +0000 (17:01 +0100)]
bump deps: mime

We need FromStrError to be std::error::Error.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: backtrace
Ian Jackson [Thu, 15 Jun 2023 15:58:47 +0000 (16:58 +0100)]
bump deps: backtrace

We need the unresolved backtraces feature.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: either
Ian Jackson [Thu, 15 Jun 2023 15:55:07 +0000 (16:55 +0100)]
bump deps: either

We need it to implement several traits including Debug and AsRef.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: log
Ian Jackson [Thu, 15 Jun 2023 15:52:53 +0000 (16:52 +0100)]
bump deps: log

We need some improvements to Level.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: ipnet
Ian Jackson [Thu, 15 Jun 2023 15:17:21 +0000 (16:17 +0100)]
bump deps: ipnet

We need IpNet to be Default.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: thiserror
Ian Jackson [Thu, 15 Jun 2023 15:14:00 +0000 (16:14 +0100)]
bump deps: thiserror

We need `#[from]`

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: lazy-regex
Ian Jackson [Thu, 15 Jun 2023 15:09:22 +0000 (16:09 +0100)]
bump deps: lazy-regex

We use regex_replace_all

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agobump deps: educe
Ian Jackson [Thu, 15 Jun 2023 15:07:10 +0000 (16:07 +0100)]
bump deps: educe

0.4.0 has a bug where it fails to ask for a new enough syn.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agocargo update
Ian Jackson [Thu, 15 Jun 2023 16:40:14 +0000 (17:40 +0100)]
cargo update

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoMerge branch 'ci' into 'main'
Ian Jackson [Thu, 15 Jun 2023 16:28:26 +0000 (16:28 +0000)]
Merge branch 'ci' into 'main'

CI: Target trixie

See merge request iwj/hippotat!4

22 months agoCI: Expand explanation of allow_failure
Ian Jackson [Thu, 15 Jun 2023 11:53:23 +0000 (12:53 +0100)]
CI: Expand explanation of allow_failure

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoCI: Target trixie
Ian Jackson [Thu, 15 Jun 2023 11:51:57 +0000 (12:51 +0100)]
CI: Target trixie

With the update to base64 this doesn't work on bookworm any more.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoMerge branch 'deps' into 'main'
Ian Jackson [Thu, 15 Jun 2023 15:01:39 +0000 (15:01 +0000)]
Merge branch 'deps' into 'main'

build-deps: Actually get rid of versioned dep on base64

See merge request iwj/hippotat!6

22 months agobuild-deps: Actually get rid of versioned dep on base64
Ian Jackson [Thu, 15 Jun 2023 14:43:34 +0000 (15:43 +0100)]
build-deps: Actually get rid of versioned dep on base64

update-build-deps mishandled packages with versions in the names.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoMerge branch 'ci' into 'main'
Ian Jackson [Thu, 15 Jun 2023 11:48:31 +0000 (11:48 +0000)]
Merge branch 'ci' into 'main'

CI: check that build-deps in d/control are as autogenerated

See merge request iwj/hippotat!3

22 months agoMerge branch 'base64' into 'main'
Ian Jackson [Thu, 15 Jun 2023 11:46:31 +0000 (11:46 +0000)]
Merge branch 'base64' into 'main'

Bump base64 dependency to 0.21 and fix code to build with it

See merge request iwj/hippotat!2

22 months agoCI: Check that build-deps in d/control are as autogenerated
Ian Jackson [Thu, 15 Jun 2023 11:36:00 +0000 (12:36 +0100)]
CI: Check that build-deps in d/control are as autogenerated

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoCI: Remove unused `early` stage
Ian Jackson [Thu, 15 Jun 2023 11:35:17 +0000 (12:35 +0100)]
CI: Remove unused `early` stage

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agodebian/update-build-deps: Add --check mode
Ian Jackson [Thu, 15 Jun 2023 11:34:34 +0000 (12:34 +0100)]
debian/update-build-deps: Add --check mode

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agodebian/control: Go back to un-versioned dep on base64
Ian Jackson [Thu, 15 Jun 2023 09:59:30 +0000 (10:59 +0100)]
debian/control: Go back to un-versioned dep on base64

I would rather deal with API breakage as compiler errors, than
dependency errors.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoCargo.toml: drop a now-obsolete comment about versions
Ian Jackson [Thu, 15 Jun 2023 01:35:56 +0000 (02:35 +0100)]
Cargo.toml: drop a now-obsolete comment about versions

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoDo not import the name Engine from base64.
Ian Jackson [Thu, 15 Jun 2023 01:31:12 +0000 (02:31 +0100)]
Do not import the name Engine from base64.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoCorrect lockfile following base64 version bump
Ian Jackson [Thu, 15 Jun 2023 01:29:39 +0000 (02:29 +0100)]
Correct lockfile following base64 version bump

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoBump base64 dependency to 0.21 and fix code to build with it
Peter Michael Green [Thu, 15 Jun 2023 01:27:41 +0000 (02:27 +0100)]
Bump base64 dependency to 0.21 and fix code to build with it

Make debian dependency on base64 match the versioning in Cargo.toml.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agoMerge branch 'ci' into 'main'
Ian Jackson [Thu, 15 Jun 2023 01:28:41 +0000 (01:28 +0000)]
Merge branch 'ci' into 'main'

Add CI tests

See merge request iwj/hippotat!1

22 months agoAdd a gitlab CI file
Ian Jackson [Wed, 14 Jun 2023 23:00:49 +0000 (00:00 +0100)]
Add a gitlab CI file

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
22 months agotest/capture-log: Make it possible to disable capturing
Ian Jackson [Wed, 14 Jun 2023 23:36:29 +0000 (00:36 +0100)]
test/capture-log: Make it possible to disable capturing

When running in CI, we want everything to come out in one scrool.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoUpdate version to 1.1.7 and document chnages
Ian Jackson [Thu, 12 Jan 2023 17:40:53 +0000 (17:40 +0000)]
Update version to 1.1.7 and document chnages

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoinit script: Demote userv and $syslog to Should-Start
Ian Jackson [Thu, 12 Jan 2023 18:49:30 +0000 (18:49 +0000)]
init script: Demote userv and $syslog to Should-Start

These aren't necessarily required (depending on config), and we need
to not break things if it isn't.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agocargo update
Ian Jackson [Thu, 12 Jan 2023 18:38:29 +0000 (18:38 +0000)]
cargo update

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agodebian: Run dh_missing --fail-missing
Ian Jackson [Thu, 12 Jan 2023 17:11:42 +0000 (17:11 +0000)]
debian: Run dh_missing --fail-missing

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agodebian: ship the hippotat-setup-permissions(8) manpage
Ian Jackson [Thu, 12 Jan 2023 17:16:42 +0000 (17:16 +0000)]
debian: ship the hippotat-setup-permissions(8) manpage

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoInstall the hippotat-setup-permissions(8) manpage to the right place
Ian Jackson [Thu, 12 Jan 2023 17:18:45 +0000 (17:18 +0000)]
Install the hippotat-setup-permissions(8) manpage to the right place

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoChange source format to 1.0 (native) so we can have a revision
Ian Jackson [Thu, 12 Jan 2023 16:11:35 +0000 (16:11 +0000)]
Change source format to 1.0 (native) so we can have a revision

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agodebian: Declare that we need clap 3, with +derive
Ian Jackson [Thu, 12 Jan 2023 18:20:28 +0000 (18:20 +0000)]
debian: Declare that we need clap 3, with +derive

Recently, Debian unstable changed so that "clap" is clap 4.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agodebian/update-build-deps: Replacement (override)
Ian Jackson [Thu, 12 Jan 2023 16:03:06 +0000 (16:03 +0000)]
debian/update-build-deps: Replacement (override)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agocargo: Set version to 1.1.6
Ian Jackson [Wed, 11 Jan 2023 12:47:28 +0000 (12:47 +0000)]
cargo: Set version to 1.1.6

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agochangelog: 1.1.6: Document changes and elide 1.1.5+exp versions
Ian Jackson [Wed, 11 Jan 2023 02:18:45 +0000 (02:18 +0000)]
changelog: 1.1.6: Document changes and elide 1.1.5+exp versions

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoCargo.toml: write down that there's no base64 0.14
Ian Jackson [Wed, 11 Jan 2023 12:42:19 +0000 (12:42 +0000)]
Cargo.toml: write down that there's no base64 0.14

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agocargo update
Ian Jackson [Wed, 11 Jan 2023 12:39:13 +0000 (12:39 +0000)]
cargo update

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoMakefile: Improve release checklist
Ian Jackson [Wed, 11 Jan 2023 12:29:57 +0000 (12:29 +0000)]
Makefile: Improve release checklist

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoautopkgtests: Add an ad-hoc restriction to disable in CI
Ian Jackson [Wed, 11 Jan 2023 12:26:27 +0000 (12:26 +0000)]
autopkgtests: Add an ad-hoc restriction to disable in CI

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoInstall docs: Mention new script
Ian Jackson [Wed, 11 Jan 2023 00:31:51 +0000 (00:31 +0000)]
Install docs: Mention new script

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoInstall docs: Say to do the hippotat config first
Ian Jackson [Wed, 11 Jan 2023 00:29:36 +0000 (00:29 +0000)]
Install docs: Say to do the hippotat config first

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoinit script: Add default GROUP setting (for doc purposes only)
Ian Jackson [Wed, 11 Jan 2023 00:15:45 +0000 (00:15 +0000)]
init script: Add default GROUP setting (for doc purposes only)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoNew configuration setup script: install
Ian Jackson [Wed, 11 Jan 2023 00:27:11 +0000 (00:27 +0000)]
New configuration setup script: install

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoNew configuration setup script: use in test
Ian Jackson [Wed, 11 Jan 2023 00:24:34 +0000 (00:24 +0000)]
New configuration setup script: use in test

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoNew configuration setup script
Ian Jackson [Tue, 10 Jan 2023 23:37:26 +0000 (23:37 +0000)]
New configuration setup script

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Print nothing on no associations
Ian Jackson [Tue, 10 Jan 2023 23:50:27 +0000 (23:50 +0000)]
Config inspection: Print nothing on no associations

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: tidying
Ian Jackson [Tue, 10 Jan 2023 22:46:47 +0000 (22:46 +0000)]
Config inspection: tidying

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: support "server" key on server
Ian Jackson [Tue, 10 Jan 2023 22:42:49 +0000 (22:42 +0000)]
Config inspection: support "server" key on server

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoPass server name to startup code
Ian Jackson [Tue, 10 Jan 2023 22:35:47 +0000 (22:35 +0000)]
Pass server name to startup code

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Document the instance keys
Ian Jackson [Tue, 10 Jan 2023 22:16:46 +0000 (22:16 +0000)]
Config inspection: Document the instance keys

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: tab-separate the output
Ian Jackson [Tue, 10 Jan 2023 22:15:32 +0000 (22:15 +0000)]
Config inspection: tab-separate the output

This would let you distinguish the different keys from values within
the key.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Allow printing multiple instances
Ian Jackson [Tue, 10 Jan 2023 20:54:46 +0000 (20:54 +0000)]
Config inspection: Allow printing multiple instances

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Break out split()
Ian Jackson [Tue, 10 Jan 2023 20:51:39 +0000 (20:51 +0000)]
Config inspection: Break out split()

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Make PrintConfigOpt type
Ian Jackson [Tue, 10 Jan 2023 20:49:46 +0000 (20:49 +0000)]
Config inspection: Make PrintConfigOpt type

This will let us hang more things on it

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Move extra keys into trait
Ian Jackson [Tue, 10 Jan 2023 20:37:22 +0000 (20:37 +0000)]
Config inspection: Move extra keys into trait

This involves splitting the trait.  I've chosen the structure to
minimise work done by the macro.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoImplement Debug manually for LinkName
Ian Jackson [Tue, 10 Jan 2023 01:50:30 +0000 (01:50 +0000)]
Implement Debug manually for LinkName

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: docs (wip)
Ian Jackson [Tue, 10 Jan 2023 01:50:27 +0000 (01:50 +0000)]
Config inspection: docs (wip)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: "pretty" dump option, replaces --dump
Ian Jackson [Tue, 10 Jan 2023 01:44:24 +0000 (01:44 +0000)]
Config inspection: "pretty" dump option, replaces --dump

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Move process::exit call
Ian Jackson [Tue, 10 Jan 2023 01:41:27 +0000 (01:41 +0000)]
Config inspection: Move process::exit call

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Centralise loop
Ian Jackson [Tue, 10 Jan 2023 01:39:02 +0000 (01:39 +0000)]
Config inspection: Centralise loop

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Centralise inspectable lookup
Ian Jackson [Tue, 10 Jan 2023 01:30:23 +0000 (01:30 +0000)]
Config inspection: Centralise inspectable lookup

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: --dump-config experimental option
Ian Jackson [Tue, 10 Jan 2023 01:25:50 +0000 (01:25 +0000)]
Config inspection: --dump-config experimental option

This is going to go away, actually, since I don't like it.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Allow inspection of multiple keys
Ian Jackson [Tue, 10 Jan 2023 01:09:46 +0000 (01:09 +0000)]
Config inspection: Allow inspection of multiple keys

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Support link names on client
Ian Jackson [Tue, 10 Jan 2023 00:41:17 +0000 (00:41 +0000)]
Config inspection: Support link names on client

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Reorganise implement_print_config
Ian Jackson [Tue, 10 Jan 2023 00:34:15 +0000 (00:34 +0000)]
Config inspection: Reorganise implement_print_config

We want this to be able to
 - handle out-of-course keys
 - do word splitting in the implementaton

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: make InspectableConfig impl dyn despatch
Ian Jackson [Tue, 10 Jan 2023 00:01:00 +0000 (00:01 +0000)]
Config inspection: make InspectableConfig impl dyn despatch

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: Support --print-config in hippotat
Ian Jackson [Mon, 9 Jan 2023 18:56:47 +0000 (18:56 +0000)]
Config inspection: Support --print-config in hippotat

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2 years agoConfig inspection: impl InspectableConfig for InstanceConfig
Ian Jackson [Mon, 9 Jan 2023 18:57:30 +0000 (18:57 +0000)]
Config inspection: impl InspectableConfig for InstanceConfig

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>