-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pack client deb hwlib hwctl #253
base: main
Are you sure you want to change the base?
Conversation
* Creates one source package that produces two binaries (librust-hwlib-dev and hwctl) * Moves debian/ dir under the client/ folder * Updates the debian/generate-checksum.py script to generate the cargo-checksum.json file only for the hwlib as required * Rewrite the dh_auto_install section in the debian/rules file since dh-cargo tries to install the whole workspace as a package. The changes install the hwlib as a library and hwctl as a binary package, repeating the logic implemented in dh-cargo source code.
Since now we pack both hwlib and hwctl, this information in located in the workspace Cargo.toml file
…pdated workspace structure
a5542e0
to
12ea915
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some feedback on the man page.
Super nice for you to write it manually. I really applaud that!
does not accept any command-line options. | ||
.SH ENVIRONMENT | ||
.TP | ||
.B HW_API_URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be .Ev
Ubuntu Hardware Certification Program, visit | ||
https://ubuntu.com/certified. | ||
.SH OPTIONS | ||
.B hwctl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be .Nm
.SH NAME | ||
hwctl \- CLI tool to check hardware certification status | ||
.SH SYNOPSIS | ||
.B hwctl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be .Nm
.B hwctl | ||
.SH DESCRIPTION | ||
.B hwctl | ||
is a command-line tool that checks the Ubuntu Hardware Certification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put it like that:
is a command-line tool that checks the Ubuntu Hardware Certification | |
is a command-line tool that checks the | |
.Em Ubuntu Hardware Certification |
@@ -0,0 +1,28 @@ | |||
.TH HWCTL 1 "03 Dec 2024" "Canonical Ltd." | |||
.SH NAME | |||
hwctl \- CLI tool to check hardware certification status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be
hwctl \- CLI tool to check hardware certification status | |
.Nm hwctl | |
.Nd check status of Ubuntu Hardware Certification |
.SH SYNOPSIS | ||
.B hwctl | ||
.SH DESCRIPTION | ||
.B hwctl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be .Nm
.B hwctl | |
.Nm hwctl |
the certification covers for it. Also, note that root privileges are | ||
typically required to run this command. For more information about the | ||
Ubuntu Hardware Certification Program, visit | ||
https://ubuntu.com/certified. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://ubuntu.com/certified. | |
.Lk https://ubuntu.com/certified "The cerfification website" . |
Specifies the hardware-api server URL that | ||
.B hwctl | ||
uses for certification queries. The default value is | ||
https://hw.ubuntu.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use .Lk
like above.
uses for certification queries. The default value is | ||
https://hw.ubuntu.com | ||
.SH BUGS | ||
https://github.com/canonical/hardware-api/issues/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a paragraph, not just the URL and use .Lk
.SH BUGS | ||
https://github.com/canonical/hardware-api/issues/ | ||
.SH COPYRIGHT | ||
Copyright (C) 2024 Canonical Ltd. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can include this in a SPDX expression but the man page should not mention it. Put up
.Sh AUTHORS
Instead please.
This PR closes C3-913.
With these changes, the source client package now provides two binaries:
librust-hwlib-dev
andhwctl
. To make such packaging possible, the' Debian/folder and workspace
Cargo.*files were moved to the
client/` folder.Key changes:
debian/rules
file was updated with an overridden dh_auto_install section. It was donedh-cargo
treats the whole workspace as a single package, either library or binary package. For more information, check https://salsa.debian.org/rust-team/dh-cargo/-/blob/5cc7f7b8/cargo.pm#L168-195debian/generate-checksum.py
script was updated to generate thecargo-checksum.json
file only for the files in thehwlib
dir, since it's needed only for the library packageshwctl.1
man page was added since it's required for CLI tools