[pve-devel] [PATCH proxmox-offline-mirror 2/2] build: execute dh-cargo-built-using

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Jul 10 13:03:13 CEST 2024


On July 10, 2024 12:42 pm, Fabian Grünbichler wrote:
> while it is pending a bug fix at the moment to properly pick up all
> dependencies, this ensures the X-Cargo-Built-Using (and soon,
> Static-Built-Using) substvars are actually filled with contents, and allow to
> find out which rustc version and dependency versions were used to build a
> particular binary package.

correction: it's not dh-cargo that's broken, somehow when running plain
`make deb` our top-level cargo config is still preferred over the one
generate by the cargo wrapper, and thus the crates are picked up
directly from /usr/share/cargo/registry instead of via the symlinks in
debian/cargo_registry like dh-cargo-built-using expects..

a build in a clean env via source package/sbuild works as expected. I'll
try to debug this further!

> 
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
>  debian/rules | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/debian/rules b/debian/rules
> index 9729be1..badace9 100644
> --- a/debian/rules
> +++ b/debian/rules
> @@ -30,6 +30,9 @@ override_dh_auto_test:
>  	# skip for now to avoid additional debug builds - no tests anyway
>  	# dh_auto_test -- test --all
>  
> +execute_after_dh_auto_install:
> +	/usr/share/cargo/bin/dh-cargo-built-using $(DEB_CARGO_PACKAGE)
> +
>  override_dh_missing:
>  	dh_missing --fail-missing
>  
> -- 
> 2.39.2
> 
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 




More information about the pve-devel mailing list