Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320005 - app-misc/wyrd should set RESTRICT="strip"
Summary: app-misc/wyrd should set RESTRICT="strip"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Torsten Veller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-16 16:41 UTC by Andreas Wiese
Modified: 2010-05-19 16:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Wiese 2010-05-16 16:41:55 UTC
OCaml »binaries« don't like being stripped… If you however decide stripping them (what can happen with the appropriate build-options), you end up with something like 

#v+
aw@rerun:~> wyrd
No bytecode file specified.
aw@rerun:~>
#v-

probably missing important appointments and no-one to blame.

Reproducible: Always

Steps to Reproduce:
1. type ›echo "*/* BUILD_OPTIONS: strip" > /etc/paludis/use.conf‹ or similar
2. run ›paludis -i app-misc/wyrd‹ or so
3. run ›wyrd‹ and stand back (beware: strange things™ will happen)
Actual Results:  
»Oh, my calendar app just vanished to some kind of OCaml interpreter…«

Expected Results:  
A shiny and lightweight calendar app.

A »RESTRICT="strip"« in the ebuild should fix this issue.
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2010-05-19 14:30:57 UTC
(In reply to comment #0)
> OCaml »binaries« don't like being stripped…

Is this something the ml team can confirm?

> #v+
> aw@rerun:~> wyrd
> No bytecode file specified.
> aw@rerun:~>
> #v-

My wyrd works. Which ocaml version do you use?

> A »RESTRICT="strip"« in the ebuild should fix this issue.

Should? Did you test it?
Comment 2 Alexis Ballier gentoo-dev 2010-05-19 14:40:39 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > OCaml »binaries« don't like being stripped…
> 
> Is this something the ml team can confirm?

yes; ocamlc -custom built binaries (usually when native code support is disabled) do not like being stripped

see:
alexis@portable /tmp $ ocamlc -custom foo.ml 
alexis@portable /tmp $ ./a.out 
hello world
alexis@portable /tmp $ strip a.out 
alexis@portable /tmp $ ./a.out 
No bytecode file specified.

I recommend using STRIP_MASK though and not using the (obviously) suboptimal RESTRICT=strip; grep STRIP_MASK in dev-ml cat. for examples.
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2010-05-19 16:46:56 UTC
So i've added STRIP_MASK="/usr/bin/wyrd".

Thanks.