[Pkg-rust-maintainers] Bug#1048141: rustc: Fails to build source after successful build
Santiago Vila
sanvila at debian.org
Sat Feb 14 20:27:39 GMT 2026
tags 1048141 patch
severity 1048141 normal
thanks
Hello. The current build log when trying to build source after binary build
is like this:
dpkg-source: error: cannot represent change to vendor/wit-bindgen-0.45.0/src/rt/wit_bindgen_cabi_realloc.o: binary file contents changed
dpkg-source: error: add vendor/wit-bindgen-0.45.0/src/rt/wit_bindgen_cabi_realloc.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to vendor/wit-bindgen-0.45.0/src/rt/wit_bindgen_cabi_wasip3.o: binary file contents changed
dpkg-source: error: add vendor/wit-bindgen-0.45.0/src/rt/wit_bindgen_cabi_wasip3.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: unrepresentable changes to source
There is actually an attempt at cleaning those files in debian/rules,
but it's trying to use brace expansion, which does not work in a
Makefile as is.
The attached patch will probably work.
Thanks.
-------------- next part --------------
--- a/debian/rules
+++ b/debian/rules
@@ -334,7 +334,9 @@ override_dh_auto_clean:
# We removed some checksums that we need to restore here
find vendor -name .cargo-checksum.json.orig -execdir mv "{}" ".cargo-checksum.json" \;
# undo debian/scripts/build-wit-bindgen.sh
- rm -f vendor/wit-bindgen-*/src/rt/wit_bindgen_*.{rs,o,c}
+ rm -f vendor/wit-bindgen-*/src/rt/wit_bindgen_*.rs
+ rm -f vendor/wit-bindgen-*/src/rt/wit_bindgen_*.o
+ rm -f vendor/wit-bindgen-*/src/rt/wit_bindgen_*.c
rm -f vendor/wit-bindgen-*/src/rt/libwit_bindgen_cabi.a
More information about the Pkg-rust-maintainers
mailing list