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

Bug#72849: policy: advises to use -s flag to install in wrong place



On Tue, Oct 03, 2000 at 02:54:38PM -0700, Joey Hess wrote:
> Yann Dirson wrote:
> > > Actually, dh_strip does more than install -s:
> > > 
> > >     foreach (@executables) {
> > >         doit("strip","--remove-section=.comment","--remove-section=.note",$_);
> > >     }
> > 
> > IIRC Debian's "strip" was once patched to use these flags by default.
> > Don't know whether this is still true, however.

Ah, confusion on my part, it's "install -s" which got patched:

/tmp[535]$ echo 'main(){}' > foo.c
/tmp[536]$ gcc foo.c -o foo
/tmp[537]$ ll foo
-rwxr-xr-x    1 dwitch   users        4650 oct 19 22:36 foo
/tmp[538]$ install -s foo foo2
/tmp[539]$ ll foo2
-rwxr-xr-x    1 dwitch   users        2424 oct 19 22:36 foo2
/tmp[540]$ strip --remove-section=.comment --remove-section=.note foo
/tmp[541]$ ll foo2
-rwxr-xr-x    1 dwitch   users        2424 oct 19 22:36 foo2


... so that dh_strip does not more than "install -s" :)

So Wichert's suggestion definitively looks like the way to go:

> So modify AM_INSTALL_PROGRAM_FLAGS instead if you want to add the -s
> somewhere there, a much safer solution.

Regards,
-- 
Yann Dirson    <ydirson@altern.org> |    Why make M$-Bill richer & richer ?
debian-email:   <dirson@debian.org> |   Support Debian GNU/Linux:
                                    | Cheaper, more Powerful, more Stable !
http://ydirson.free.fr/             | Check <http://www.debian.org/>



Reply to: