You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by "Rony G. Flatscher (Apache)" <ro...@apache.org> on 2012/07/22 14:07:28 UTC

MacOSX: problems deploying an extension in shared mode

In the context of creating a new version of BSF4ooRexx for MacOSX as well
(<http://sourceforge.net/projects/bsf4oorexx/files/GA/BSF4ooRexx-410.20120618-GA/ooRexx411WithBSF4ooRexx-410.20120618-i386-MacOSX.pkg.zip/download>)
the automatic installation of an oxt-extension to AOO 3.4.0 to add ooRexx as a macro language
directly to AOO, there are errors with the MacOSX version.

If you download the package from the above link you'll get ooRexx and BSF4ooRexx for MacOSX in
32-Bit (as OOo is still 32-bit on MacOSX) installed and both ooRexx and BSF4ooRexx (a Rexx function
package camouflaging Java as the dynamically typed ooRexx) are operational.

Unfortunately, the OOo extension named "ScriptProviderForooRexx.oxt" cannot be added to the MacOSX
AOO 3.4 installation using "unopkg"! Here a few infos to the locations and the scripts that are run
as sudo with the error message:

    wu114123:sources rony$ *ls -al /Applications/OpenOffice.org.app/Contents/program/unopkg**
    lrwxr-xr-x@ 1 rony  admin     10 Apr 19 08:28 /Applications/OpenOffice.org.app/Contents/program/unopkg -> unopkg.bin
    -r-xr-xr-x@ 1 rony  admin  13568 Apr 19 08:28 /Applications/OpenOffice.org.app/Contents/program/unopkg.bin



    wu114123:sources rony$ *ls -al /System/Library/Frameworks/BSF4ooRexx.framework/Libraries/ScriptProviderForooRexx.oxt*
    -rwxrwxrwx  1 root  wheel  330778 Jun 15 17:24 /System/Library/Frameworks/BSF4ooRexx.framework/Libraries/ScriptProviderForooRexx.oxt



    wu114123:sources rony$ *sudo /Applications/OpenOffice.org.app/Contents/program/unopkg add --shared /System/Library/Frameworks/BSF4ooRexx.framework/Libraries/ScriptProviderForooRexx.oxt*

    *ERROR: Error binding package: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/Qpgmug_/ScriptProviderForooRexx.oxt*
           Cause: an error occured during file opening

    unopkg failed.

There is no directory named "Qpgmug_" in the shared cache directory; not sure why.

---

Trying to do the same from AOO's "Tools -> Extension Manager" is not successful either, if intending
to install for "All users" with the scarce error message "an error occured during file opening".

However adding this extension via AOO's "Tools -> Extension Manager" for "Only for me" works o.k.!
Restarting AOO, and the extension is available and operational allowing ooRexx to be used as a macro
language!

    Using the user extension has another irregularity: if using for the first time in a totally
    fresh AOO session "Tools -> Macros -> Run Macro" and then executing any ooRexx macro will yield
    an error ("unable to load language"). However, if first doing a "Tools -> Macros -> Organize
    Macros -> ooRexx" and editing any ooRexx macro and running it via the edit window menu, ooRexx
    can be later found via "Tools -> Macros -> Run Macro" as well.

[Using the oxt-extension on Windows and Linux with AOO, OOo, LO works in shared mode, and AFAIK
there are no anomalities that I know of.]

Any ideas, what might be wrong, what I could do?
[To duplicate: just install the MacOSX package and then run the above commands from a command line
to see for yourself.]

TIA for any hints, ideas and suggestions,

---rony



Re: MacOSX: problems deploying an extension in shared mode

Posted by "Rony G. Flatscher (Apache)" <ro...@apache.org>.
At ApacheCon Europe it turned out that one is able to deploy the oxt-extension
("ScriptProviderForooRexx.oxt") in user mode successfully!

The same extension cannot be successfully deployed in shared mode on MacOSX as described, even
running unopkg as super user manually.

Therefore I just added the oxt to the issue at
<https://issues.apache.org/ooo/show_bug.cgi?id=120359> as an attachment, such that it becomes
possible to test this "stand-alone", i.e. without a need to install the entire BSF4ooRexx package.

---rony



On 24.07.2012 20:08, Rony G. Flatscher (Apache) wrote:
> On 22.07.2012 14:07, Rony G. Flatscher (Apache) wrote:
>> In the context of creating a new version of BSF4ooRexx for MacOSX as well
>> (<http://sourceforge.net/projects/bsf4oorexx/files/GA/BSF4ooRexx-410.20120618-GA/ooRexx411WithBSF4ooRexx-410.20120618-i386-MacOSX.pkg.zip/download>)
>> the automatic installation of an oxt-extension to AOO 3.4.0 to add ooRexx as a macro language
>> directly to AOO, there are errors with the MacOSX version.
>>
>> If you download the package from the above link you'll get ooRexx and BSF4ooRexx for MacOSX in
>> 32-Bit (as OOo is still 32-bit on MacOSX) installed and both ooRexx and BSF4ooRexx (a Rexx function
>> package camouflaging Java as the dynamically typed ooRexx) are operational.
>>
>> Unfortunately, the OOo extension named "ScriptProviderForooRexx.oxt" cannot be added to the MacOSX
>> AOO 3.4 installation using "unopkg"! Here a few infos to the locations and the scripts that are run
>> as sudo with the error message:
>>
>>     wu114123:sources rony$ *ls -al /Applications/OpenOffice.org.app/Contents/program/unopkg**
>>     lrwxr-xr-x@ 1 rony  admin     10 Apr 19 08:28 /Applications/OpenOffice.org.app/Contents/program/unopkg -> unopkg.bin
>>     -r-xr-xr-x@ 1 rony  admin  13568 Apr 19 08:28 /Applications/OpenOffice.org.app/Contents/program/unopkg.bin
>>
>>
>>
>>     wu114123:sources rony$ *ls -al /System/Library/Frameworks/BSF4ooRexx.framework/Libraries/ScriptProviderForooRexx.oxt*
>>     -rwxrwxrwx  1 root  wheel  330778 Jun 15 17:24 /System/Library/Frameworks/BSF4ooRexx.framework/Libraries/ScriptProviderForooRexx.oxt
>>
>>
>>
>>     wu114123:sources rony$ *sudo /Applications/OpenOffice.org.app/Contents/program/unopkg add --shared /System/Library/Frameworks/BSF4ooRexx.framework/Libraries/ScriptProviderForooRexx.oxt*
>>
>>     *ERROR: Error binding package: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/Qpgmug_/ScriptProviderForooRexx.oxt*
>>            Cause: an error occured during file opening
>>
>>     unopkg failed.
>>
>> There is no directory named "Qpgmug_" in the shared cache directory; not sure why.
>>
>> ---
>>
>> Trying to do the same from AOO's "Tools -> Extension Manager" is not successful either, if intending
>> to install for "All users" with the scarce error message "an error occured during file opening".
>>
>> However adding this extension via AOO's "Tools -> Extension Manager" for "Only for me" works o.k.!
>> Restarting AOO, and the extension is available and operational allowing ooRexx to be used as a macro
>> language!
>>
>>     Using the user extension has another irregularity: if using for the first time in a totally
>>     fresh AOO session "Tools -> Macros -> Run Macro" and then executing any ooRexx macro will yield
>>     an error ("unable to load language"). However, if first doing a "Tools -> Macros -> Organize
>>     Macros -> ooRexx" and editing any ooRexx macro and running it via the edit window menu, ooRexx
>>     can be later found via "Tools -> Macros -> Run Macro" as well.
>>
>> [Using the oxt-extension on Windows and Linux with AOO, OOo, LO works in shared mode, and AFAIK
>> there are no anomalities that I know of.]
>>
>> Any ideas, what might be wrong, what I could do?
>> [To duplicate: just install the MacOSX package and then run the above commands from a command line
>> to see for yourself.]
>>
>> TIA for any hints, ideas and suggestions,
>>
>> ---rony
> Just tested this with the developer snapshot build 3.4.1 for English (en-US), r1364591
> <http://people.apache.org/%7Ejsc/developer-snapshots/r1364591/macos/Apache_OpenOffice_incubating_3.4.1_MacOS_x86_install_en-US.dmg>
> with the same behaviour..
>
> Filed a new issue such that this remains documented:
> <https://issues.apache.org/ooo/show_bug.cgi?id=120359>.
>
> ---rony
>
>


Re: MacOSX: problems deploying an extension in shared mode

Posted by "Rony G. Flatscher (Apache)" <ro...@apache.org>.
On 22.07.2012 14:07, Rony G. Flatscher (Apache) wrote:
> In the context of creating a new version of BSF4ooRexx for MacOSX as well
> (<http://sourceforge.net/projects/bsf4oorexx/files/GA/BSF4ooRexx-410.20120618-GA/ooRexx411WithBSF4ooRexx-410.20120618-i386-MacOSX.pkg.zip/download>)
> the automatic installation of an oxt-extension to AOO 3.4.0 to add ooRexx as a macro language
> directly to AOO, there are errors with the MacOSX version.
>
> If you download the package from the above link you'll get ooRexx and BSF4ooRexx for MacOSX in
> 32-Bit (as OOo is still 32-bit on MacOSX) installed and both ooRexx and BSF4ooRexx (a Rexx function
> package camouflaging Java as the dynamically typed ooRexx) are operational.
>
> Unfortunately, the OOo extension named "ScriptProviderForooRexx.oxt" cannot be added to the MacOSX
> AOO 3.4 installation using "unopkg"! Here a few infos to the locations and the scripts that are run
> as sudo with the error message:
>
>     wu114123:sources rony$ *ls -al /Applications/OpenOffice.org.app/Contents/program/unopkg**
>     lrwxr-xr-x@ 1 rony  admin     10 Apr 19 08:28 /Applications/OpenOffice.org.app/Contents/program/unopkg -> unopkg.bin
>     -r-xr-xr-x@ 1 rony  admin  13568 Apr 19 08:28 /Applications/OpenOffice.org.app/Contents/program/unopkg.bin
>
>
>
>     wu114123:sources rony$ *ls -al /System/Library/Frameworks/BSF4ooRexx.framework/Libraries/ScriptProviderForooRexx.oxt*
>     -rwxrwxrwx  1 root  wheel  330778 Jun 15 17:24 /System/Library/Frameworks/BSF4ooRexx.framework/Libraries/ScriptProviderForooRexx.oxt
>
>
>
>     wu114123:sources rony$ *sudo /Applications/OpenOffice.org.app/Contents/program/unopkg add --shared /System/Library/Frameworks/BSF4ooRexx.framework/Libraries/ScriptProviderForooRexx.oxt*
>
>     *ERROR: Error binding package: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/Qpgmug_/ScriptProviderForooRexx.oxt*
>            Cause: an error occured during file opening
>
>     unopkg failed.
>
> There is no directory named "Qpgmug_" in the shared cache directory; not sure why.
>
> ---
>
> Trying to do the same from AOO's "Tools -> Extension Manager" is not successful either, if intending
> to install for "All users" with the scarce error message "an error occured during file opening".
>
> However adding this extension via AOO's "Tools -> Extension Manager" for "Only for me" works o.k.!
> Restarting AOO, and the extension is available and operational allowing ooRexx to be used as a macro
> language!
>
>     Using the user extension has another irregularity: if using for the first time in a totally
>     fresh AOO session "Tools -> Macros -> Run Macro" and then executing any ooRexx macro will yield
>     an error ("unable to load language"). However, if first doing a "Tools -> Macros -> Organize
>     Macros -> ooRexx" and editing any ooRexx macro and running it via the edit window menu, ooRexx
>     can be later found via "Tools -> Macros -> Run Macro" as well.
>
> [Using the oxt-extension on Windows and Linux with AOO, OOo, LO works in shared mode, and AFAIK
> there are no anomalities that I know of.]
>
> Any ideas, what might be wrong, what I could do?
> [To duplicate: just install the MacOSX package and then run the above commands from a command line
> to see for yourself.]
>
> TIA for any hints, ideas and suggestions,
>
> ---rony
Just tested this with the developer snapshot build 3.4.1 for English (en-US), r1364591
<http://people.apache.org/%7Ejsc/developer-snapshots/r1364591/macos/Apache_OpenOffice_incubating_3.4.1_MacOS_x86_install_en-US.dmg>
with the same behaviour..

Filed a new issue such that this remains documented:
<https://issues.apache.org/ooo/show_bug.cgi?id=120359>.

---rony