LINTIAN

# `debug-symbols-not-detached`

This file is in a location generally used for detached debugging symbols, but it appears to contain a complete copy of the executable or library instead of only the debugging symbols.

Files in subdirectories of `/usr/lib/debug` mirroring the main file system should contain only debugging information generated by `objcopy --only-keep-debug`. Binaries or shared objects built with extra debugging should be installed directly in `/usr/lib/debug` or in subdirectories corresponding to the package, not in the directories that mirror the main file system.

If you are using dh_strip with the --dbg-package flag, don't also install the library in `/usr/lib/debug`. dh_strip does all the work for you.

Severity: | `warning`
Experimental: | `false`
Renamed from: | `debug-file-should-use-detached-symbols`

## See also

- Best practices for debug packages (Section 6.8.9) in the Debian Developer's Reference

- list of all the affected packages
- the source of this tag