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

Re: Bug#69724: ocaml: binaries not stripped



On Tue, Sep 05, 2000 at 11:30:53AM +0200, Alexandre Duret-Lutz wrote:
> >>> "Sven" == Sven LUTHER <luther@dpt-info.u-strasbg.fr> writes:
> 
> Hi Sven,
> 
>  Sven> On Tue, Aug 22, 2000 at 06:48:32PM +0200, Alexandre Duret-Lutz wrote:
> 
> [...]
> 
>  >> The following files appear to be unstripped ELF binaries.
>  >> 
>  >> /usr/bin/ocamlbrowser
>  >> /usr/bin/ocamlc.opt
>  >> /usr/bin/ocamldebug
>  >> /usr/bin/ocamlopt.opt
>  >> /usr/bin/ocamlrun
>  >> /usr/bin/ocamlyacc
> 
> [...]
> 
>  Sven> Well, yes, the debian policy is to strip binaries, but stripping ocaml
>  Sven> bytecode binaries would remove the bytecode to be executed, which is not
>  Sven> really the right thing to do.
> 
> Hmmm, I must be misunderstanding something... are the 6 files above
> byte-code binaries?  They appear to me as being native ELF
> binaries.  I stripped them on my machine without any problem.

mmm...

i think it is more related to the debhelper stuff i am using.

dh_strip will strip all executables, apparently also the ones that strip don't
recognize. But then maybe there was a change in strip since then ...

A no, now i remember the problem is with custom linked bytecode executable
which link together with C libraries which you can strip. 

for example (sven is an executable that use the mlgtk gtk+/ocaml bindings as
well as the unix module) :

bash-2.04$ file sven
sven: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked
(uses shared libs), not stripped
bash-2.04$ ls -l sven   
-rwxr-xr-x    1 luther   luther     725186 sep  1 11:58 sven
bash-2.04$ ./sven
bash-2.04$ strip sven
bash-2.04$ ls -l sven
-rwxr-xr-x    1 luther   luther     212252 sep  5 11:45 sven
bash-2.04$ ./sven
No bytecode file specified.
bash-2.04$ file sven
sven: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked
(uses shared libs), stripped

You see this is the behavior i wanted to stop at the time, when i removed the
dh_strip command.

What i will do in the next package is use the dh_strip -X option to hand
exclude files that don't support stripping.

Also i think in the next version of ocaml, the need for custom binaries as
descibed above may go away ...

Friendly,

Sven LUTHER



Reply to: