'java' configure test

View: New views
5 Messages — Rating Filter:   Alert me  

'java' configure test

by Søren Hauberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All

On Ubuntu I need the attached patch to make the 'java' package compile.
Is it okay to apply it or should it be done differently?

Søren

[configure.patch]

Index: configure.base
===================================================================
--- configure.base (revision 6269)
+++ configure.base (working copy)
@@ -349,6 +349,9 @@
             # you need to explicitely set the include path
             JAVA_INCS="-I${JAVA_HOME}/include"
             HAVE_JAVA=yes
+          # This is the Debian default path
+          elif test -d "/usr/lib/jvm/default-java"; then
+            JAVA_HOME=/usr/lib/jvm/default-java
           else
             JAVA_HOME=/usr/lib/jvm
           fi


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev

Re: 'java' configure test

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You shouldn't need it if you define JAVA_HOME manually
before running the configure script.

Michael.


On Sat, Sep 26, 2009 at 7:14 PM, Søren Hauberg <soren@...> wrote:

> Hi All
>
> On Ubuntu I need the attached patch to make the 'java' package compile.
> Is it okay to apply it or should it be done differently?
>
> Søren
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Octave-dev mailing list
> Octave-dev@...
> https://lists.sourceforge.net/lists/listinfo/octave-dev
>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev

Re: 'java' configure test

by Søren Hauberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

lør, 26 09 2009 kl. 21:52 +0100, skrev Michael Goffioul:
> You shouldn't need it if you define JAVA_HOME manually
> before running the configure script.

Yeah, I know, but shouldn't the configure script check in default
locations so that I don't have to set JAVA_HOME manually? IMHO we might
as well make it easy for users to install the package.

Søren


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev

Re: 'java' configure test

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Sep 26, 2009 at 9:58 PM, Søren Hauberg <soren@...> wrote:
> lør, 26 09 2009 kl. 21:52 +0100, skrev Michael Goffioul:
>> You shouldn't need it if you define JAVA_HOME manually
>> before running the configure script.
>
> Yeah, I know, but shouldn't the configure script check in default
> locations so that I don't have to set JAVA_HOME manually? IMHO we might
> as well make it easy for users to install the package.

I fully agree. The problem under Linux is the concept of
standard location, which tends to be distro-specific. For
instance the other "standard" location /usr/lib/jvm has been
written by David Bateman, because it worked on his system.

Feel free to commit your patch, as I have no objection.

Michael.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev

Re: 'java' configure test

by Søren Hauberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

lør, 26 09 2009 kl. 22:09 +0100, skrev Michael Goffioul:

> On Sat, Sep 26, 2009 at 9:58 PM, Søren Hauberg <soren@...> wrote:
> > lør, 26 09 2009 kl. 21:52 +0100, skrev Michael Goffioul:
> >> You shouldn't need it if you define JAVA_HOME manually
> >> before running the configure script.
> >
> > Yeah, I know, but shouldn't the configure script check in default
> > locations so that I don't have to set JAVA_HOME manually? IMHO we might
> > as well make it easy for users to install the package.
>
> I fully agree. The problem under Linux is the concept of
> standard location, which tends to be distro-specific. For
> instance the other "standard" location /usr/lib/jvm has been
> written by David Bateman, because it worked on his system.

Yeah, I can't say that I understand why Linux distributions do these
kind of things differently, but I guess we just have to accept the
situation and try to adapt.

> Feel free to commit your patch, as I have no objection.

Done.

Søren


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Octave-dev mailing list
Octave-dev@...
https://lists.sourceforge.net/lists/listinfo/octave-dev