[porting-issues] [Issue 57565] New - qadevOOo gcj build fails: jar command not found

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[porting-issues] [Issue 57565] New - qadevOOo gcj build fails: jar command not found

sparcmoz
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=57565
                  Issue #:|57565
                  Summary:|qadevOOo gcj build fails: jar command not found
                Component:|porting
                  Version:|680m138
                 Platform:|All
                      URL:|
               OS/Version:|Linux
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|mh
              Reported by:|sparcmoz





------- Additional comments from [hidden email] Wed Nov  9 03:08:38 -0800 2005 -------
Building with gcj on linux sparc, there is no jar command but gcc provides
command fastjar. There is need for an environment variable like $JAR which in my
case would be set to /usr/local/bin/fastjar. Something similar is already done
for $JAVADOC

/home/jim/ooo680/qadevOOo/runner
-------------
jar cfm ../unxlngs.pro/class/OOoRunnerLight.jar manifest -C ../unxlngs.pro/class
util -C ../unxlngs.pro/class share -C ../unxlngs.pro/class stats -C
../unxlngs.pro/class lib -C ../unxlngs.pro/class complexlib -C
../unxlngs.pro/class helper -C ../unxlngs.pro/class basicrunner -C
../unxlngs.pro/class base -C ../unxlngs.pro/class org/openoffice -C
../unxlngs.pro/class convwatch
jar: Command not found.
dmake:  Error code 1, while making 'LIGHT'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /home/jim/ooo680/qadevOOo/runner
jim@sun:~/ooo680/qadevOOo$

This works for me:
export JAR=/usr/local/bin/fastjar
and patch runner/makefile.mk as attached

-    +jar cfm $(CLASSDIR)$/$(TARGET).jar manifest -C $(PRJ) objdsc
$(JARCOMMANDS_TESTS) $(JARCOMMANDS_RUNNER)
+    +$(JAR) cfm $(CLASSDIR)$/$(TARGET).jar manifest -C $(PRJ) objdsc
$(JARCOMMANDS_TESTS) $(JARCOMMANDS_RUNNER)

Also need something in configure to set the JAR environemnt variable.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]