Commit Graph

322 Commits

Author SHA1 Message Date
Fabian Grünbichler
c3cbcae289 bump version to 1.5.1
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2025-01-30 13:57:06 +01:00
Fabian Grünbichler
a60f1c9ea1 debian: update symbols file after version bump
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2025-01-30 13:19:18 +01:00
Fabian Grünbichler
c710ff5427 restore: sort use statements
pbs_api_types is one of our crates, so sort it like in the other modules..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2025-01-30 13:18:25 +01:00
Christian Ebner
dacbcad137 commands: rename helper to get archive name from device name
Rename the helper method to get the archive name from a device name
to reduce possible miss-use. The helper adds a `.img.fidx` filename
extension uncoditionally before parsing the `BackupArchiveName`.

No functional changes intended.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2025-01-30 13:11:29 +01:00
Christian Ebner
21dd3cee70 fix: never append archive name extensions twice, use type instead
Commit 16298c5f ("update to current PBS master") introduced a helper
method to generate the backup archive names from a device name.

However, the helper was also used incorrectly to generate archive
names from strings already having the `.img.fidx` filename extension.
As the extension is appended unconditionally, this leads to an
archive name which will parse successfully, but not be the expected
archive name to be found in the backup manifest.

Fix this by dropping the incorrect helper call-sites and adapt the
function parameters to take a `BackupArchiveName` directly, reducing
potential for future mishandling.

Fixes: Commit 16298c5f ("update to current PBS master")
Reported-by: Markus Frank <m.frank@proxmox.com>
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Tested-by: Markus Frank <m.frank@proxmox.com>
2025-01-30 13:11:29 +01:00
Thomas Lamprecht
7bc0ae4463 bump version to 1.5.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-01-24 08:29:24 +01:00
Thomas Lamprecht
f226c2a26b use pbs-api-types dependency from newly separated package
We moved pbs-api-types out of proxmox-backup and package it now like
our other rust source code crates for better reuse. Switch this use
site over to use the package variant, not the submodule one, as the
latter won't exist anymore once we update the submodule the next time
anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-01-24 08:23:35 +01:00
Fabian Grünbichler
c61d999bee clippy fixes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2025-01-17 10:32:52 +01:00
Fabian Grünbichler
16298c5fa0 update to current PBS master
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2025-01-17 10:32:52 +01:00
Fabian Grünbichler
961846befc update PBS to 3.2.11
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-11-22 08:19:43 +01:00
Fabian Grünbichler
261437c26f update submodule to PBS 3.2.8-1
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-10-29 11:46:02 +01:00
Fabian Grünbichler
0088d34542 update to current PBS master
and regenerate d/control accordingly

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-09-04 10:09:57 +02:00
Wolfgang Bumiller
50ecd20e81 regenerate d/control
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-07-09 13:46:08 +02:00
Filip Schauer
9413af572d bump build dependencies
Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
2024-07-09 13:43:54 +02:00
Fabian Grünbichler
89b0cc8ed6 move .cargo/config to .cargo/config.toml
the old location has been deprecated for a while, and rustc 1.78 will start to warn about it.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-20 12:29:42 +02:00
Fabian Grünbichler
eaa39af53b build: force debug symbols in release build
they then get stripped into their own package anyway, but without this we don't
get debug symbols at all with rustc >= 1.77

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-20 09:56:51 +02:00
Fabian Grünbichler
c0bb8139a2 header: adapt to typo fixes
these don't change the ABI or API, so no breaking bump needed

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-06-20 09:56:40 +02:00
Fabian Grünbichler
68d377e49c proxmox-backup: update to current master 2024-06-20 09:56:40 +02:00
Fiona Ebner
2860f6ee65 tree-wide: fix typos in comments
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2024-06-12 12:48:31 +02:00
Filip Schauer
e8400780b5 make capi_types module public
Commit c7077bb3 moved ProxmoxBackupHandle into a separate file and
accidentally made it private in the process.

Revert this behaviour by making ProxmoxBackupHandle and
ProxmoxRestoreHandle accessible from outside of the crate again. These
handles are used in the function signatures of several public functions,
therefore it makes sense to have them public as well.

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
2024-04-09 10:40:37 +02:00
Wolfgang Bumiller
9ee3e88d12 bump submodule
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-03-25 09:45:24 +01:00
Wolfgang Bumiller
c35034c98f bump schema dep to 3 and submodule
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-03-06 16:54:10 +01:00
Wolfgang Bumiller
3adc6a1787 warnings and clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-01-05 10:44:00 +01:00
Wolfgang Bumiller
947bfbf425 update to current pbs
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2024-01-05 10:29:44 +01:00
Fabian Grünbichler
a087badbe9 bump version to 1.4.1
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-11-28 13:33:09 +01:00
Fabian Grünbichler
d90cdd63a0 update to PBS 3.0.5
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-11-28 13:33:03 +01:00
Wolfgang Bumiller
8984a42b40 update to current PBS for pathpatterns version bump
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2023-11-03 12:28:13 +01:00
Fabian Grünbichler
8af623b210 update symbols file
missed with last bump

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-10-03 12:02:45 +02:00
Fabian Grünbichler
b68750a609 update to current PBS and cbindgen
cbindgen still requires syn 1.x unfortunately, the new version picks up
wakeup_callback which we don't actually need in our interface, so exclude it at
least until the next bump happens for other reasons.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-10-03 12:00:41 +02:00
Filip Schauer
73a09e9672 buildsys: bump dependencies to bookworm updates
This fixes dependency installation errors when running the
`mk-build-deps --install` command against the current proxmox devel
bookworm repository.

Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
2023-09-15 16:25:34 +02:00
Thomas Lamprecht
86dcf21ef2 bump version to 1.4.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
8ab65bc12b d/control: raise standards version compliance to 4.6.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
528a33fed9 d/control: define compat level via build-depends and raise to 13
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
afc3670334 update dependencies for current bookworm state
as we also track the PBS dependencies in d/control, as the workspace
crates we use from there cannot profit from being handled by debian
dependency system, like the others which are shipped as .deb package

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
cda15843fa buildsys: derive upload dist automatically
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
e223c77ac0 buildsys: add DSC & sbuild convenience target
and expand/improve clean target while at it

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
c58e310ede buildsys: always pre-clean for deb target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
198c9ba59d buildsys: use actual build-dir and improve reproducability
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
afe4512f30 d/rules: enforce that the debian package version mateches cargo one
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
c42d3308e4 buildsys: use correct DEB_HOST_ARCH
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
81f4432579 d/control: add missing ${misc:Depends}
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
9421e72129 d/control: make dev package depend on exact version of library package
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
cbcc23c5c7 d/control: fix missin cargo and git build-dependencies
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
38e200a22b use PBS workspace crates from submodule
to allow easier building in restricted environments, in core
principle nothing changes, those crates got and get in via git, some
way or another.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
1c441393c0 debian: wrap-and-sort -tkn
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Thomas Lamprecht
8c5081c366 makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:55:07 +02:00
Fabian Grünbichler
a90a65deeb build: add patchelf to build-depends
used to strip unnecessarily linked libraries.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-19 15:56:56 +01:00
Fabian Grünbichler
890700ff25 update d/control
with improved cargo-fairy that actually picks up all of the transitive
dependencies.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-19 15:23:59 +01:00
Fabian Grünbichler
97c4f5891c build: add cbindgen to regular dependencies
so that it gets properly included in d/control

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-19 15:23:59 +01:00
Fabian Grünbichler
39adea972d update d/control
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-19 11:13:06 +01:00