[Pkg-rust-maintainers] Lots of binary-related lintian warnings for 1.17

Ximin Luo infinity0 at debian.org
Tue May 16 14:29:00 UTC 2017


Packaging of 1.17 is going smoothly in the debian/experimental branch, we're mostly done but are getting the following lintian warnings. I guess this is due to the new "rustbuild" build system.

They seem quite important but I don't know how to investigate or fix them, help is needed:

1. I guess these two are related. Do we have to patch dh_strip to recurse into .rlib files?

I: libstd-rust-dev: unstripped-static-library usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-436e2c583a41bb20.rlib(alloc-436e2c583a41bb20.0.o)
N: 
N:    The package installs an unstripped static library.
N:    
N:    Please note, that static libraries have to be stripped with the
N:    --strip-debug option. You will probably also want to use
N:    --remove-section=.comment --remove-section=.note to avoid the
N:    static-library-has-unneeded-section tag.
N:    
N:    dh_strip (after debhelper/9.20150811) will do this automatically for
N:    you.
N:    
N:    Severity: wishlist, Certainty: certain
N:    
N:    Check: binaries, Type: binary, udeb
N: 
I: libstd-rust-dev: unstripped-static-library usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-75488a04c3f87835.rlib(alloc_jemalloc-75488a04c3f87835.0.o)
[184 more]

W: rustc-dbgsym: debug-file-with-no-debug-symbols usr/lib/debug/.build-id/72/b298366886b0362e1d604037e92fdd532093cc.debug
N: 
N:    The binary is installed as a detached "debug symbols" ELF file, but it
N:    does not appear to have debug information associated with it.
N:    
N:    Implementation detail: Lintian checks for the ".debug_line" and the
N:    ".debug_str" sections. If either of these are present, the binary is
N:    assumed to contain debug information.
N:    
N:    Refer to https://bugs.debian.org/668437 for details.
N:    
N:    Severity: normal, Certainty: possible
N:    
N:    Check: binaries, Type: binary, udeb
N: 
W: rustc-dbgsym: debug-file-with-no-debug-symbols usr/lib/debug/.build-id/88/76eff72a6f21eebf79d00d649f409b3aa23a68.debug
W: libstd-rust-1.17-dbgsym: debug-file-with-no-debug-symbols usr/lib/debug/.build-id/0b/d56947328d293f84e33320fb874a7d21f44d14.debug
[26 more]

2. Then, I don't understand the below ones. They're not present for 1.16, see https://lintian.debian.org/maintainer/pkg-rust-maintainers@lists.alioth.debian.org.html#rustc

W: libstd-rust-1.17: shared-lib-without-dependency-information usr/lib/x86_64-linux-gnu/libarena-0816bf967877a841.so
N: 
N:    The listed shared library doesn't include information about which other
N:    libraries the library was linked against. (When running "ldd foo.so" ldd
N:    should report about these other libraries. In your case, ldd just
N:    reports "statically linked".)
N:    
N:    To fix this, you should explicitly specify the libraries which are used
N:    (e.g., "-lc") when building the shared library with "ld".
N:    
N:    If you have questions about this, please contact
N:    debian-devel at lists.debian.org.
N:    
N:    Severity: normal, Certainty: certain
N:    
N:    Check: binaries, Type: binary, udeb
N: 

W: libstd-rust-1.17: unused-shlib-entry-in-control-file librustc_trans e6820985f024cf20
N: 
N:    The shlibs control file contains an entry for a shared library that is
N:    not installed by this package.
N:    
N:    Refer to Debian Policy Manual section 8.6 (Dependencies between the
N:    library and other packages) for details.
N:    
N:    Severity: normal, Certainty: certain
N:    
N:    Check: shared-libs, Type: binary, udeb
N: 
W: libstd-rust-1.17: unused-shlib-entry-in-control-file librustc_save_analysis df84389b0febe23b
[7 more]

3. Then there are the following, but they seem less important to me and could be ignored:

I: libstd-rust-1.17: no-symbols-control-file usr/lib/x86_64-linux-gnu/librustc_metadata-8ac99e30a8adbff6.so
[36 more]
I: libstd-rust-1.17: unused-override binary-or-shlib-defines-rpath usr/lib/*/lib*so /usr/lib/rustlib/*lib
I: libstd-rust-1.17: unused-override package-must-activate-ldconfig-trigger
I: libstd-rust-1.17: unused-override pkg-has-shlibs-control-file-but-no-actual-shared-libs
I: rustc: unused-override binary-or-shlib-defines-rpath usr/bin/rustc /usr/lib/rustlib/*/lib
I: rustc: unused-override binary-or-shlib-defines-rpath usr/bin/rustdoc /usr/lib/rustlib/*/lib
I: rustc: hardening-no-bindnow usr/bin/rustc
I: rustc: hardening-no-bindnow usr/bin/rustdoc
I: libstd-rust-1.17: hardening-no-fortify-functions usr/lib/x86_64-linux-gnu/librustc_llvm-d3d99d6866843e6c.so
I: libstd-rust-1.17: hardening-no-fortify-functions usr/lib/x86_64-linux-gnu/librustdoc-9ddc53df6698f8a7.so
I: libstd-rust-1.17: hardening-no-bindnow usr/lib/x86_64-linux-gnu/libflate-9ed333277703a543.so
[35 more]
I: libstd-rust-1.17: spelling-error-in-binary usr/lib/x86_64-linux-gnu/librustc-f15ad41d65e94ce7.so onthe on the
[8 more]

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git



More information about the Pkg-rust-maintainers mailing list