<div dir="ltr">It worked. Thanks. But the package I'm working on have unpackaged dependencies and some are needed to be updated to newer version.<br><div><br></div><div>Any recommendations on easier package?</div><div><br></div><div>Thanks,</div><div>Abhijith Sheheer</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 14, 2020 at 7:42 PM Wolfgang Silbermayr <<a href="mailto:wolfgang@silbermayr.at">wolfgang@silbermayr.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 3/14/20 10:28 AM, abhijith sheheer wrote:<br>
> I'm new to rust packaging. I thought of packaging bandwidth and I get<br>
> this error.<br>
> <br>
> abspython@debian:~/packaging/rust/debcargo-conf$ ./new-package.sh bandwhich<br>
>     Updating <a href="http://crates.io" rel="noreferrer" target="_blank">crates.io</a> <<a href="http://crates.io" rel="noreferrer" target="_blank">http://crates.io</a>> index<br>
> Generate binary crate with default name 'bandwhich', set bin_name to<br>
> override or bin = false to disable.<br>
> Wrote back file to overlay: copyright.debcargo.hint<br>
> Wrote back file to overlay: changelog<br>
> Something failed: Os { code: 39, kind: Other, message: "Directory not<br>
> empty" }<br>
> <br>
> I ignored this and tried building the crate in build/ and also got<br>
> another error during cleanup .<br>
> <br>
> debcargo-conf builder: build complete: bandwhich_0.9.0_amd64.changes<br>
>  signfile dsc bandwhich_0.9.0.dsc Michael Aaron Murphy<br>
> <<a href="mailto:michael@system76.com" target="_blank">michael@system76.com</a> <mailto:<a href="mailto:michael@system76.com" target="_blank">michael@system76.com</a>>><br>
> gpg: skipped "Michael Aaron Murphy <<a href="mailto:michael@system76.com" target="_blank">michael@system76.com</a><br>
> <mailto:<a href="mailto:michael@system76.com" target="_blank">michael@system76.com</a>>>": No secret<br>
> key<br>
> gpg: /tmp/debsign.UYIE2rHg/bandwhich_0.9.0.dsc: clear-sign failed: No<br>
> secret key<br>
> debsign: gpg error occurred!  Aborting....<br>
> <br>
> Somehow, deb-cargo thinks I'm "Michael Aaron Murphy<br>
> <<a href="mailto:michael@system76.com" target="_blank">michael@system76.com</a> <mailto:<a href="mailto:michael@system76.com" target="_blank">michael@system76.com</a>>>". My $DEBEMAIL and<br>
> $DEBFULLNAME are correctly configured. Any way to fix it?<br>
<br>
Hi Abhijith,<br>
<br>
You're on the right track. The problem is that the bandwhich crate<br>
distributes a `debian` subdirectory which means the files from the<br>
upstream tarball are unpacked into `build/bandwhich/debian`<br>
subdirectory, and when debcargo attempts to create a directory with the<br>
same name, this fails. This upstream subdirectory is also where the<br>
mentioned author is listed in the changelog file.<br>
<br>
As a quick solution, you can add a line with `excludes = ["debian/**"]`<br>
to the `src/bandwhich/debian/debcargo.toml` file, then delete everything<br>
which relates to bandwhich from the `build` subdirectory, and finally<br>
run `./update.sh bandwhich`. After that, everything should be as expected.<br>
<br>
Note: I didn't try to build the package, so some other problems might<br>
occur after that, just analyzed the concrete problem you described.<br>
<br>
Hth,<br>
Wolfgang.<br>
</blockquote></div>