<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>210987</bug_id>
          
          <creation_ts>2008-02-21 15:20 0000</creation_ts>
          <short_desc>dev-lang/mozart is not loading properly inside emacs</short_desc>
          <delta_ts>2008-02-23 00:13:57 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>andres.becerra@gmail.com</reporter>
          <assigned_to>keri@gentoo.org</assigned_to>
          <cc>emacs@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>andres.becerra@gmail.com</who>
            <bug_when>2008-02-21 15:20:06 0000</bug_when>
            <thetext>mozart emulator is not loading properly inside the  emacs text editor

Reproducible: Always

Steps to Reproduce:
1. I have merged dev-lang/mozart with USE=&quot;doc emacs gdbm tcl threads tk -static&quot;

2. launching &quot;oz&quot; produces an error




Actual Results:  
Process Oz Emulator exited abnormally with code 1


Expected Results:  
emacs should have launched oz properly. 

I solved the problem manually by :
 mkdir /usr/lib/mozart/bin 
 cd /usr/lib/mozart/bin
 ln -s /usr/bin/oz*

Looking at  mozart-1.3.2.ebuild, I think the problem lies in:

src_install() {
    emake -j1 \
        PREFIX=&quot;${D}&quot;/usr/lib/mozart \
        BINDIR=&quot;${D}&quot;/usr/bin \

The BINDIR, where ozengine, ozc and other utilities are placed is not where emacs expects them to be, it looks in /usr/lib/mozart/bin. Maybe is better to install thes tools in /usr/lib/mozart/bin and link them to /usr/bin</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>andres.becerra@gmail.com</who>
            <bug_when>2008-02-21 15:23:39 0000</bug_when>
            <thetext>Created an attachment (id=144218)
A desktop proposed file!

Maybe you could consider to install this desktop file to create a menu entry for Mozart !</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>keri@gentoo.org</who>
            <bug_when>2008-02-23 00:13:57 0000</bug_when>
            <thetext>Thanks for taking the time to investigate this bug.

dev-lang/mozart-1.3.2-r1 and dev-lang/mozart-stdlib-1.3.2-r1 have been added to CVS with (now fixed) emacs support.

(I&apos;m a little more hesitant about adding a desktop entry for what&apos;s traditionally a command-line app.)

Keri</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>144218</attachid>
            <date>2008-02-21 15:23 0000</date>
            <desc>A desktop proposed file!</desc>
            <filename>mozart.desktop</filename>
            <type>text/plain</type>
            <data encoding="base64">W0Rlc2t0b3AgRW50cnldCkVuY29kaW5nPVVURi04Ck5hbWU9TU96QXJ0CkNvbW1lbnQ9TW96YXJ0
IElERQpFeGVjPW96Ckljb249b3oueHBtClRlcm1pbmFsPWZhbHNlClR5cGU9QXBwbGljYXRpb24K
Q2F0ZWdvcmllcz1BcHBsaWNhdGlvbjtEZXZlbG9wbWVudDsK
</data>        

          </attachment>
    </bug>

</bugzilla>