Forums before death by AOL, social media and spammers... "We can't have nice things"
|    linux.debian.bugs.dist    |    Ohh some weird Debian bug report thing    |    28,835 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 27,661 of 28,835    |
|    Santiago Vila to All    |
|    Bug#1048141: rustc: Fails to build sourc    |
|    14 Feb 26 21:30:01    |
   
   From: sanvila@debian.org   
      
   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-bindge   
   -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_bin   
   gen_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-bindge   
   -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_bin   
   gen_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.   
   --- 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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca