#1128788 librust-hexyl-dev: installs pre-built example binary

Package:
librust-hexyl-dev
Source:
librust-hexyl-dev
Description:
Command-line hex viewer - Rust source code
Submitter:
Helmut Grohne
Date:
2026-02-22 19:59:02 UTC
Severity:
normal
#1128788#5
Date:
2026-02-17 07:26:41 UTC
From:
To:
The librust-heyxl-dev package includes a program
/usr/share/cargo/registry/hexyl-0.16.0/tests/examples/hello_world_elf64.
That may seem normal until one notices that the exact same amd64 binary
is installed into the arm64 package. I looked how that could happen and
eventually noticed that this binary is included in the source package.
Given rust's static linking it seems very likely that we are missing or
will be missing the corresponding source for it and that would result in
a DFSG violation.

Generally, this looks like an oversight to me more than anything else.
Its presence in the source distribution probably is ok-ish, but I
strongly recommend against including it in the .deb thus resolving the
bug report at hand. It probably can be built from source with ease if
you prefer keeping it.

Helmut

#1128788#10
Date:
2026-02-22 19:57:56 UTC
From:
To:
Hi

A quick investigation shows that it's used as unit test input:

https://docs.rs/crate/hexyl/0.17.0/source/tests/integration_tests.rs#86

So I guess it should be trivial to strip out.

//Alex