The jmap tool (part of openjdk-6) doesn't work when stripped with --strip-unneeded and has to be stripped with --strip-debug. Currently there is no way to tell dh_strip to strip certain binaries with --strip-debug. According to https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/574997 https://bugzilla.redhat.com/show_bug.cgi?id=530402 https://bugzilla.redhat.com/show_bug.cgi?id=541548 https://bugzilla.novell.com/show_bug.cgi?id=530046 rpm based build systems have support for keeping the symbol table (env var STRIP_KEEP_SYMTAB=libjvm*). Please provide something similiar for dh_strip.
Matthias Klose wrote: Well, you can just dh_strip -X foo and then strip foo with whatever special options are needed. I guess I could make options after dh_strip -- be passed on to strip, but I don't think that would simplify the rules file much, unless all binaries in the package need to be stripped like that.