← Back to team overview

desktop-packages team mailing list archive

[Bug 888525] Re: LibreOffice Missing Files For JavaScript Macros to work in 11.10

 

Maybe not an upstream issue...

Looking at the contents of the most recent download from:

http://download.documentfoundation.org/libreoffice/stable/3.4.4/deb/x86_64/LibO_3.4.4_Linux_x86
-64_install-deb_en-US.tar.gz

I can see:

/LibO_3.4.4rc2_Linux_x86-64_install-deb_en-
US/DEBS/opt/libreoffice3.4/share/extensions/script-provider-for-
javascript/ScriptProviderForJavaScript.jar


Looking at the source:
http://free.nchc.org.tw/tdf/libreoffice/src/3.4.4/libreoffice-libs-core-3.4.4.2.tar.bz2

I can see:
/libreoffice-libs-core-3.4.4.2/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/888525

Title:
  LibreOffice Missing Files For JavaScript Macros to work in 11.10

Status in LibreOffice Productivity Suite:
  Incomplete
Status in “libreoffice” package in Ubuntu:
  Triaged

Bug description:
  1) lsb_release -rd
  Description: Ubuntu 11.10
  Release: 11.10

  2) apt-cache policy libreoffice-calc
  libreoffice-calc:
    Installed: 1:3.4.3-3ubuntu2
    Candidate: 1:3.4.3-3ubuntu2
    Version table:
   *** 1:3.4.3-3ubuntu2 0
          500 http://hk.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
          100 /var/lib/dpkg/status

  apt-cache policy libreoffice-java-common
  libreoffice-java-common:
    Installed: 1:3.4.3-3ubuntu2
    Candidate: 1:3.4.3-3ubuntu2
    Version table:
   *** 1:3.4.3-3ubuntu2 0
          500 http://hk.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
          100 /var/lib/dpkg/status

  3) What is expected in LibreOffice Calc is when one clicks Tools ->
  Macros-> Organize Macros

  An option for Javascript is available as noted in:
  http://help.libreoffice.org/Common/Scripting

  4) What happens instead is it is missing.

  I installed 'rhino', with no effect.

  WORKAROUND: For javascript to work in LibreOffice it appears I need
  the file ScriptProviderForJavaScript.jar

  Maverick had this file:

  /usr/lib/openoffice/basis3.2/program/classes/ScriptProviderForJavaScript.jar

  in openoffice.org-java-common
  (http://packages.ubuntu.com/maverick/all/openoffice.org-java-
  common/filelist)

  But the file is missing from 11.10:
  http://packages.ubuntu.com/oneiric/all/libreoffice-java-
  common/filelist

  By taking the files found in Arch Linux:

  http://www.archlinux.org/packages/extra/x86_64/libreoffice-extension-
  scripting-javascript/

  and putting them under /usr/lib/libreoffice/share/extensions/script-
  provider-for-javascript on 11.10, I can solve the problem.

  But clearly this should not be necessary.

  The files should be (but do not appear to be) provided by some package
  in 11.10.

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/888525/+subscriptions