Public bug reported:
This concerns the script in the package version 33ubuntu3.
I have a package whose d/control file looks like the following, in part:
X-Cargo-Crate-Version: 0.29.4
XS-XtraDeb-Vendor-Source-Depends: dh-cargo
XS-Vendored-Sources-Rust:
[email protected],
[email protected],
[email protected],
[...]
[email protected],
[email protected],
[email protected]
Package: cbindgen
Architecture: any
Section: utils
(The XS-Vendored-Sources-Rust: field is formatted into a column
similarly to other long lists in the file.)
In a test build, I get this error:
Mismatched XS-Vendored-Sources-Rust field. Expected:
XS-Vendored-Sources-Rust: [email protected], [email protected], [...]
[email protected]
It wasn't clear what was going on there, so I added the following line
to the bottom of /usr/share/cargo/bin/dh-cargo-vendored-sources:
print STDERR "Actual:\nXS-Vendored-Sources-Rust:
$actual_formatted\n";
And the output I got from that was
Mismatched XS-Vendored-Sources-Rust field. Expected:
XS-Vendored-Sources-Rust: [email protected], [email protected], [...]
[email protected]
Actual:
XS-Vendored-Sources-Rust:
[email protected], [email protected], [...] [email protected]
I.e. the only difference was a newline. If I change the original field
to
XS-Vendored-Sources-Rust: [email protected],
[email protected],
[email protected],
[...]
[email protected],
[email protected],
[email protected]
then the build proceeds without issue.
Given that this check is very fragile, the script should be normalizing
the value of the field *a lot*. Whitespace as a given, and I would
suggest the sort order as well, to make it more amenable to manual
doctoring.
** Affects: dh-cargo (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2180125
Title:
dh-cargo-vendored-sources mis-parses XS-Vendored-Sources-Rust: in some
cases
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-cargo/+bug/2180125/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs