<?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>19797</bug_id>
          
          <creation_ts>2003-04-22 15:49 0000</creation_ts>
          <short_desc>openoffice-bin-1.1_beta: &quot;beta vs. Beta&quot; in wrappers</short_desc>
          <delta_ts>2003-06-20 04:09:46 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>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</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>1.4</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tom.gl@free.fr</reporter>
          <assigned_to>pauldv@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>tom.gl@free.fr</who>
            <bug_when>2003-04-22 15:49:12 0000</bug_when>
            <thetext>Hi,

When I launch ooffice for the first time, it does its setup stuff and works 
fine. But I then have to remove ~/.openoffice/1.1_beta on every next startup for
it to works. If I don&apos;t, I get the following error from wrappers:

 openoffice.org:  You have no entry for OpenOffice.org 1.1beta in ~/.sversionrc,
 yet the directory /home/thomas/.openoffice/1.1_beta exists.
 Please remove /home/thomas/.openoffice/1.1_beta and try again.

It seems to be because of the &quot;beta&quot; with a small &quot;b&quot; in the wrappers, whereas I
have a &quot;B&quot; in ~/sversionrc:

  thomas@gromit thomas $ grep ^OOVERSION /usr/bin/oo*
  /usr/bin/oocalc:OOVERSION=&quot;OpenOffice.org 1.1beta&quot;
  /usr/bin/oodraw:OOVERSION=&quot;OpenOffice.org 1.1beta&quot;
  /usr/bin/ooffice:OOVERSION=&quot;OpenOffice.org 1.1beta&quot;
  /usr/bin/ooimpress:OOVERSION=&quot;OpenOffice.org 1.1beta&quot;
  /usr/bin/oomath:OOVERSION=&quot;OpenOffice.org 1.1beta&quot;
  /usr/bin/oopadmin:OOVERSION=&quot;OpenOffice.org 1.1beta&quot;
  /usr/bin/oosetup:OOVERSION=&quot;OpenOffice.org 1.1beta&quot;
  /usr/bin/oowriter:OOVERSION=&quot;OpenOffice.org 1.1beta&quot;

  thomas@gromit thomas $ cat .sversionrc
  [Versions]
  OpenOffice.org 1.1Beta=file:///home/thomas/.openoffice/1.1_beta

I don&apos;t know why I have a &quot;B&quot; in my ~/.sversionrc whereas the wrapper should 
create it with a &quot;b&quot;... It&apos;s probably overwritten at execution (there are 
several occurences of the string &quot;1.1Beta&quot; in some /opt/OpenOffice.org1.1_beta
files), but I&apos;ve not investigated further.

Anyway, what I&apos;ve done is:

  root@gromit /usr/bin # for f in oo* ; do sed -e s/1\.1beta/1\.1Beta/ $f &gt;  
  /tmp/${f}.new ; mv /tmp/${f}.new ${f} ; done

...and it now works as expected. So I suggest a switch from &quot;beta&quot; to &quot;Beta&quot; in 
all wrapper scripts.

Hope this helps,

-- 
Thomas.

Reproducible: Always
Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tom.gl@free.fr</who>
            <bug_when>2003-04-22 16:09:12 0000</bug_when>
            <thetext>Ok, looking at the ebuild, I understand that there is only one wrapper, and several symlinks. Forget my &quot;for&quot; loop then, but anyway, I&apos;m sure you&apos;ve got the idea :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sethbc@wpi.edu</who>
            <bug_when>2003-04-22 16:53:45 0000</bug_when>
            <thetext>hrm i&apos;ve not had this problem, but i&apos;ll give it a shot =)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bwaters+gen2@nrao.edu</who>
            <bug_when>2003-04-24 14:10:25 0000</bug_when>
            <thetext>I have had this problem, as have some other folks: 
 
http://forums.gentoo.org/viewtopic.php?p=295137 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pilla@cs.pitt.edu</who>
            <bug_when>2003-05-06 10:21:38 0000</bug_when>
            <thetext>Don&apos;t forget to give a+rx permissions to /usr/bin/ooffice after using the attached script. 

I also had to change the symlink ~/.openoffice/1.0.2/soffice to /opt/OpenOffice/program/soffice so it would work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pauldv@gentoo.org</who>
            <bug_when>2003-06-19 01:42:53 0000</bug_when>
            <thetext>I have just committed a new ebuild for the source version. I will look into porting the wrapper etc to the binary version comming days.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pauldv@gentoo.org</who>
            <bug_when>2003-06-19 13:51:15 0000</bug_when>
            <thetext>I just committed a binary beta2 ebuild</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tom.gl@free.fr</who>
            <bug_when>2003-06-19 18:23:25 0000</bug_when>
            <thetext>I first had a sandbox violation while emerging:

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = &quot;/tmp/sandbox-openoffice-bin-1.1_beta2-25289.log&quot;
 
mkdir:     /root/.gconfd/lock
--------------------------------------------------------------------------------

Then, after I had disabled sandbox and userpriv, the package merge.
But running it gave me:

-----------------------------------------------------------------------
thomas@gromit thomas $ ooffice
Gnome session manager detected - session management disabled
openoffice.org: Damnit! I can&apos;t find OpenOffice&apos;s user files. Did you break
the /etc/openoffice/autoresponse-1.1.conf file manually ?
This file should contain DESTINATIONPATH
thomas@gromit thomas $ ls /etc/openoffice/
autoresponse-1.1_beta2.conf 
-----------------------------------------------------------------------

Obviously, some ${PV} should be replaced by ${PV//_beta2} in the ebuild, in the 
&quot;# Install user autoresponse file&quot; section.

I&apos;ve then renamed this file to autoresponse-1.1.conf, and retried. It gave me:
-----------------------------------------------------------------------
thomas@gromit thomas $ ooffice Gnome session manager detected - session management disabled
running openoffice.org setup...
setup failed.. abort
-----------------------------------------------------------------------
In fact, the wrapper try to run /opt/OpenOffice.org1.1/program/setup whereas everything is installed in /opt/OpenOffice.org1.1_beta2. Again this is because of a &quot;${PV}&quot; (used in INSTDIR) vs. ${PV//_beta2} (used for &lt;pv&gt;)  issue. I don&apos;t know what is the best between keeping and removing the prefix. Anyway, what I&apos;ve done to go farther is a symlink from /opt/OpenOffice.org1.1 to /opt/OpenOffice.org1.1_beta2.

I&apos;ve then managed to launch ooffice. I just had one warning:
/usr/bin/ooffice: line 197: dev/null: No such file or directory
...easy to fix again :)

I&apos;ve tested different apps, things seem to work, and options are saved as they should. 


So to summarize:
 - gconf breaks sandbox (I&apos;ve no idea how to fix this)
 - it remains some ${PV} vs. ${PV//_beta2} issues in the ebuild 
 - a slash lacks line 197 of the wrapper 
 - applications work as far as I&apos;ve tested


Hope this helps,

Thomas.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pauldv@gentoo.org</who>
            <bug_when>2003-06-20 02:08:21 0000</bug_when>
            <thetext>Try again with the wrapper I just committed (and a small ebuild change)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tom.gl@free.fr</who>
            <bug_when>2003-06-20 04:09:46 0000</bug_when>
            <thetext>It seems that everything is fine now. Thanks for your work.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>