[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#188731: debian-policy: "strip --strip-unneeded" is insufficient



On Mon, May 11, 2015 at 11:18:29AM +0200, Bill Allombert wrote:
> So to summary:
> Policy 11.2 recommends:
>   strip --strip-unneeded
> dh_strip does:
>   strip --strip-unneeded --remove-section=.comment --remove-section=.note
> install -s does currently:
>   strip --strip-unneeded
> lintian checks for:
>   strip --strip-unneeded --remove-section=.comment --remove-section=.note
> 
> is that correct ?
Yes.

> Did 'install -s' used to do 
> 'strip --strip-unneeded --remove-section=.comment --remove-section=.note' ?

Yes, lintian 0.4.4 (1998) mentions it:

  * (checks/binaries) At Yann Dirson's suggestion, added a tag for
    stripped binaries that still have the .comment and .note sections.
    This tag is info-level, thus not normally displayed.
    dh_strip and install -s have been patched to strip these sections,
    but most of the distribution has not been recompiled with the patched
    versions.
  * (checks/binaries.desc) Described the new tag.
    (closes #22495).

In lintian 1.20.1 (2001) the tag was promoted from I to W, after the patch
for install was removed in coreutils 5.93-1 the tag was demoted back to I
in lintian 1.23.14 (2005).

> Do we know why it was changed ?
coreutils 5.93-1 changelog says:

  * Remove some ancient debian-specific patches
    - install no longer calls strip with special options


-- 
WBR, wRAR

Attachment: signature.asc
Description: Digital signature


Reply to: