[Ubuntu] [hardy] Problem with development of UNO-Components for OpenOffice

Bug #106546 reported by Thomas Bechtold
6
Affects Status Importance Assigned to Milestone
OpenOffice
Fix Released
Unknown
openoffice.org (Ubuntu)
Fix Released
High
Unassigned
Hardy
Won't Fix
High
Unassigned
Intrepid
Fix Released
High
Unassigned

Bug Description

Binary package hint: openoffice.org

I want to develop an Addin for Openoffice-Calc. The procedure is described under http://wiki.services.openoffice.org/wiki/OpenOffice_Calc_Add-In_Project_Type

I tested that procedure under Windows XP and that works fine (with OO2.2.0 , OO 2.2 SDK, Netbeans 5.5 and Java 1.6.0 Update 1)

Then i installed openoffice-dev and sun-java (all packages) version 1.6.

When i try to deploy the office-extension, i get the following error:

setting up UNO environment ...
/usr/lib/openoffice/sdk/linux/bin/idlc: 4: basename: not found
/usr/lib/openoffice/sdk/linux/bin/idlc: 4: /usr/lib/openoffice/sdk/linux/bin/.bin: not found
/home/tommy/Arbeit/netbeans-workspace/Addin1/nbproject/build-uno-impl.xml:49: apply returned: 127
BUILD FAILED (total time: 0 seconds)

Under Windows XP, all works fine with the same program and sdk versions.

Revision history for this message
Thomas Bechtold (toabctl) wrote :

I downloaded netbeans 5.5 (without java jre&sdk) and installed netbeans unter /opt/netbeans5.5

Revision history for this message
Thomas Bechtold (toabctl) wrote :

i searched with google an found a solution, but that didn't work.

the solution said, that i have to export LD_LIBRARY_PATH=/usr/lib/openpoffice/program

didn't work for me.....

Revision history for this message
Thomas Bechtold (toabctl) wrote :

The output under windows xp is:

setting up UNO environment ...
build UNO idl files finished
uno-idl-compile:
init:
deps-jar:
compile:
Building jar: C:\Documents and Settings\tommy\My Documents\netbeans-workspace\Solar\dist\Solar.jar
jar:
Building jar: C:\Documents and Settings\tommy\My Documents\netbeans-workspace\Solar\dist\Solar.jar
uno-package:
creating UNO extension package ...
Deleting: C:\Documents and Settings\tommy\My Documents\netbeans-workspace\Solar\dist\Solar.oxt
Building zip: C:\Documents and Settings\tommy\My Documents\netbeans-workspace\Solar\dist\Solar.oxt
uno-deploy:
deploying UNO extension package ...
C:/Program Files/OpenOffice.org 2.2\program\unopkg add -f C:\Documents and Settings\tommy\My Documents\netbeans-workspace\Solar\dist\Solar.oxt
BUILD SUCCESSFUL (total time: 15 seconds)

and I can use the addin under openoffice. all works fine under Win.

Revision history for this message
Charles Brunet (cbrunet) wrote :

I can confirm this bug. It affects openoffice-dev package. I can't tell if the bug is in that package, on if it is related to NetBeans OpenOffice.org plugin.

The problem is that in wrappers located into /usr/lib/openoffice/sdk/linux/bin/
the command basename is used, but PATH isn't set.

The solution is to replace `basename` with `/usr/bin/basename` in each scripts:
autodoc, cppumaker, idlc, idlcpp, avamaker, rdbmakerl, regcomp, regcompare, regmerge, regview, sp2bv, unoapploader, uno-skeletonmaker, xml2cmp

Chris Cheney (ccheney)
Changed in openoffice.org:
importance: Undecided → Low
status: New → Confirmed
status: Confirmed → In Progress
Chris Cheney (ccheney)
Changed in openoffice.org:
importance: Low → High
Revision history for this message
exactt (giesbert) wrote :

this behaviour is also reported here: http://qa.openoffice.org/issues/show_bug.cgi?id=80183

Chris Cheney (ccheney)
Changed in openoffice.org:
milestone: none → ubuntu-8.04.1
Steve Langasek (vorlon)
Changed in openoffice.org:
importance: Undecided → High
milestone: none → ubuntu-8.04.1
status: New → In Progress
milestone: ubuntu-8.04.1 → none
Steve Langasek (vorlon)
Changed in openoffice.org:
milestone: ubuntu-8.04.1 → none
Revision history for this message
exactt (giesbert) wrote :

version 1.1.2 of the Netbeans Openoffice API Plugin circumvents the problem successfully...

Chris Cheney (ccheney)
Changed in openoffice.org:
status: In Progress → Triaged
status: In Progress → Triaged
Revision history for this message
Pkapsc (andre-pietsch) wrote :

For the meantime:

cd /usr/lib/openoffice/sdk/linux/bin/
sudo grep -rl "basename" . | xargs sed -i -e 's/basename/\/usr\/bin\/basename/'

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openoffice.org - 1:2.4.1-9ubuntu1

---------------
openoffice.org (1:2.4.1-9ubuntu1) intrepid; urgency=low

  * Resynchronise with Debian (r1181). Remaining changes:
    - Add Launchpad integration support.
    - Add Launchpad translations support.
    - Add package openoffice.org-style-human.
    - Add some Ubuntu-specific bitmaps. Adjust broffice diversions for these.
    - Add path to OOo SDK wrapper script. Closes LP: #106546
    - Add recommends gstreamer to openoffice.org-impress. Closes LP: #104685
    - Add support for compressing debs with lzma.
    - Add support for openjdk-6.
    - Add support for shared /usr/share/doc directories.
    - Add support to build l10n as a separate source.
    - Add support to build on lpia.
    - Add support to turn off building on sparc.
    - Add Xb-Npp-xxx tags according to "firefox distro add-on suport" spec.
    - Set template.desktop to not display in the menu.
    - Use imagemagick instead of graphicsmagick.
  * Resynchronise with ooo-build-2-4-1 (r13951).

 -- Chris Cheney <email address hidden> Sun, 21 Sep 2008 14:32:22 -0500

Changed in openoffice.org:
status: Triaged → Fix Released
Chris Cheney (ccheney)
Changed in openoffice.org:
assignee: nobody → ccheney
milestone: none → ubuntu-8.04.2
Changed in openoffice:
status: Unknown → Fix Released
Chris Cheney (ccheney)
Changed in openoffice.org:
status: Triaged → Won't Fix
assignee: ccheney → nobody
milestone: ubuntu-8.04.2 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.