Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21985 - wings doesn't start when called from waimea menu
Summary: wings doesn't start when called from waimea menu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-31 02:01 UTC by Nikl
Modified: 2003-06-19 22:38 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 Nikl 2003-05-31 02:01:06 UTC
i can start wings from a term but unfortuantely not from the menu (using waimea 
as WM). the shell from which i called "startx" shows the following 2 lines:

   Eshell V.5.2.3.3 (abort with ^G)
   ** Terminating erlang (nonode@nohost) **

while the first one is normal, the second one leaves _me_ with no information 
why it doesn't start ...

btw: calling the commands of /usr/bin/wings from the waimea-menu doesn't work 
either - same result as described above.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
nothing - aborted with the following line:

   ** Terminating erlang (nonode@nohost) **

Expected Results:  
open the wings3d-application

while trying to look for the cause i discovered that the /usr/bin/wings-script 
uses a variable $WINGS_ROOT which is set to "/usr/lib/erlang/lib/wings" - as 
this path didn't exist I linked it to "/usr/lib/erlang/lib/wings-0.98.07d". 
Maybe this should be added in the wings-ebuild.
Comment 1 SpanKY gentoo-dev 2003-06-09 19:53:55 UTC
this should have happened ... notice this line in the ebuild:
dosym ${WINGS_PATH} ${ERL_LIBS}/${PN} (where WINGS_PATH is ${ERL_PATH}/${P})

if you remove that symlink by hand and then re-emerge wings, is the symlink created ? do you see any interesting output in the emerge process ?
Comment 2 SpanKY gentoo-dev 2003-06-19 12:23:54 UTC
i just updated wings/esdl ...
could you try it out again please ?
Comment 3 SpanKY gentoo-dev 2003-06-19 12:24:26 UTC
oh and i fixed that symlink bug ... that was my bad
Comment 4 Nikl 2003-06-19 13:34:58 UTC
I unmerged the old wings- & esdl-versions and emerged the new ones - both went totally fine (just like their predecessors did). the symlink is created.
unfortunately still the same errors when starting from the waimea menu - haven't tried it from anyother WM ...
Comment 5 Nikl 2003-06-19 13:44:41 UTC
i created this little workaround: instead of calling /usr/bin/wings directly I start a term executing it for me (Eterm -e /usr/bin/wings)
Comment 6 SpanKY gentoo-dev 2003-06-19 14:05:54 UTC
could you check that the wings script has '-detach' in it ?
the script should have this as the last line:
erl -pa -detach $ESDL_ROOT/ebin $WINGS_ROOT/ebin -run wings_start start_halt

if it doesnt, please change the last line of the script to that and try to run
it again from waimea
Comment 7 Nikl 2003-06-19 15:11:57 UTC
added "-detach" but it didn't change anything - still the same error ...
Comment 8 SpanKY gentoo-dev 2003-06-19 15:56:38 UTC
ok, i found the answer ... use the '-noshell' option ... 
 
the reason for the crashing is that by default the erlang shell loads up and accepts 
input while it runs the requested erlang binaries ... 
 
when you launch it from a window manager like that though the program is not given a 
stdin to read from so in this case it died ... 
-noshell causes erlang to not launch that aspect of itself 
 
fixed in cvs 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/media-gfx/wings/files/wings.sh.diff?r1=1.2&r2=1.3 
Comment 9 Nikl 2003-06-19 22:38:41 UTC
cool - works perfectly! thx