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

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



On Fri, 18 Jul 2003 19:47:47 +0200, Matthias Urlichs <smurf@smurf.noris.de> said: 

> Hi,
> Manoj Srivastava wrote:

>> > Lintian, however, complains if the sections .comment or .note are
>> > present, which strip doesn't think are unneeded.
>>
>> Usually, when there is a discrepancy between lintian and policy, it
>> is not policy that you change.
>>
> The question is which makes more sense. In this case I think the
> lintian test makes sense, as these sections are unneeded, therefore
> I think it makes sense to change policy to reflect common practice.


	If it does make more sense, why is strip --strip-unneeded not
 doing so? If these sections are truly un needed, should strip not be
 modified to remove them by itself, rather than puting a kludge in the
 policy document?

>> > 	--remove-section=.comment --remove-section=.note
>> >
>> > I think that it's a policy bug.

>> Changing this without a transition plan would mean that a number of
>> packages would be rendered buggy (all my C packages, most of whom
>> rely on upstream Makefiles install target, and do not call install
>> directly).

> Most packages do that, but then they call dh_strip. Problem solved.

	Not if you do not use helper scripts. 

	However, one can do what dh_strip does, which is call strip o
 the objects with the corresponding options; the question is why do we
 have to do that? 

	I would much rather not have a bandaid be blessed by policy.

>> How many packages would be affected?

> [ Checking ] I have 1400+ packages installed on my sid system. I
> just scanned my /usr/bin (1500 ELF binaries) and found less than ten
> packages with affected files; the 'worst' offenders seem to be
> binutils and RCS.

	And make, flex, and c2man

	manoj
-- 
I'd like to meet the guy who invented beer and see what he's working
on now.
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



Reply to: