John Katzmaier | 14 Aug 2012 23:57
Picon

Fix to maybe get openjdk7 to compile...

Hi,

I noticed that there is a PBI for openjdk7 that fails to compile. When
I looked at the build log, I found the error gmake[6]: *** No rule to
make target `/usr/wrkdirprefix/usr/ports/java/openjdk6/work/hotspot/src/cpu/amd64/vm/x86_64.ad',
needed by `../generated/adfiles/bsd_x86_64.ad'.  Stop.

The error occurred when it was building openjdk6, which was a
dependency of icedtea-web-1.2_1, which I think is a dependency of
openjdk7.

To fix this, x11-fonts/dejavu needs to be added as a build dependency,
at least according to this link:
http://lists.freebsd.org/pipermail/freebsd-java/2011-April/009201.html

I'm hoping that openjdk7 includes the icedtea web plugin. According to
this link: http://www.freshports.org/ there is no FreeBSD port for the
icedtea-web-2.x plugin version that should be used with openjdk7,
according to this link: http://icedtea.classpath.org/wiki/Main_Page

Please CC me on replies as I am not currently subscribed to the list.

By the way, PC-BSD is a great OS!

-John Katzmaier
Kris Moore | 15 Aug 2012 15:08
Gravatar

Re: Fix to maybe get openjdk7 to compile...

On 08/14/2012 17:57, John Katzmaier wrote:
> Hi,
>
> I noticed that there is a PBI for openjdk7 that fails to compile. When
> I looked at the build log, I found the error gmake[6]: *** No rule to
> make target `/usr/wrkdirprefix/usr/ports/java/openjdk6/work/hotspot/src/cpu/amd64/vm/x86_64.ad',
> needed by `../generated/adfiles/bsd_x86_64.ad'.  Stop.
>
> The error occurred when it was building openjdk6, which was a
> dependency of icedtea-web-1.2_1, which I think is a dependency of
> openjdk7.
>
> To fix this, x11-fonts/dejavu needs to be added as a build dependency,
> at least according to this link:
> http://lists.freebsd.org/pipermail/freebsd-java/2011-April/009201.html
>
> I'm hoping that openjdk7 includes the icedtea web plugin. According to
> this link: http://www.freshports.org/ there is no FreeBSD port for the
> icedtea-web-2.x plugin version that should be used with openjdk7,
> according to this link: http://icedtea.classpath.org/wiki/Main_Page
>
> Please CC me on replies as I am not currently subscribed to the list.
>
> By the way, PC-BSD is a great OS!
>
> -John Katzmaier
> _______________________________________________
> Pbi-dev mailing list
> Pbi-dev@...
> http://lists.pcbsd.org/mailman/listinfo/pbi-dev
(Continue reading)

John Katzmaier | 15 Aug 2012 17:50
Picon

Re: Fix to maybe get openjdk7 to compile...

Hi Kris,

You're welcome. I've emailed the maintainer of the icedtea-web-1.x
port and asked if they're planning on porting icedtea-web-2.x. I'll
reply here when they reply to me.

-John Katzmaier

>
> John,
>
> Thanks for the tip! I've added dejavu as a build dep here, will see if
> that fixes it. As for the icedtea plugin, we are still at the mercy of
> the port maintainer for it. Maybe try e-mailing them, to see if they
> have it in the works to port over :)
>
> --
> Kris Moore
> PC-BSD Software
> iXsystems
>
John Katzmaier | 15 Aug 2012 18:43
Picon

Re: Fix to maybe get openjdk7 to compile...

Hi Kris,

According to the reply from the icedtea-web maintainer I received
below, the existing icedtea-web plugin might "just work" with
openjdk7, or it might need a change to the icedtea-web Makefile. Here
is the reply I received from the icedtea-web port maintainer:

-----

The latest IcedTea-Web is 1.2.1. ;-)

Anyway, I haven't tried it myself but I *think* it may just work with
OpenJDK7 already.  It lacked one IcedTea patch but it was already
committed to upstream:

http://hg.openjdk.java.net/icedtea/jdk7/jdk/rev/e7fc51780596

Deinstall OpenJDK6, install OpenJDK7, and try this:

- --- java/icedtea-web/Makefile.orig
+++ java/icedtea-web/Makefile
 <at>  <at>  -21,7 +21,7  <at>  <at> 
 USE_JAVA=      yes
 JAVA_OS=       native
 JAVA_VENDOR=   openjdk
- -JAVA_VERSION=        1.6
+JAVA_VERSION=  1.6+
 USE_XORG=      x11

 OPTIONS_DEFINE=        PLUGIN RHINO TEST
(Continue reading)

John Katzmaier | 15 Aug 2012 19:44
Picon

Re: Fix to maybe get openjdk7 to compile...

Hi Kris,

The icedtea-web port maintainer replied to me again with this:

----
Never mind.  The patch only appeared in master and it wasn't merged
back to 7u branch. :-(
----

So I guess that hasn't really changed much as we still have to wait
for the openjdk7 PBI to attempt its rebuild and then see if
icedtea-web works or not. I just thought that I would let you know
about the icedtea-web port maintainer's second reply.

-John Katzmaier

On Wed, Aug 15, 2012 at 12:43 PM, John Katzmaier <johnkatz@...> wrote:
> Hi Kris,
>
> According to the reply from the icedtea-web maintainer I received
> below, the existing icedtea-web plugin might "just work" with
> openjdk7, or it might need a change to the icedtea-web Makefile. Here
> is the reply I received from the icedtea-web port maintainer:
>
> -----
>
> The latest IcedTea-Web is 1.2.1. ;-)
>
> Anyway, I haven't tried it myself but I *think* it may just work with
> OpenJDK7 already.  It lacked one IcedTea patch but it was already
(Continue reading)

John Katzmaier | 15 Aug 2012 23:30
Picon

Re: Fix to maybe get openjdk7 to compile...

Hi Kris,

The icedtea-web port maintainer got back to me and said that
icedtea-web will work with openjdk7 if a patch is applied. Can you
apply this patch and the sequence below to the openjdk7 PBI? Here is
the icedtea-web port maintainer's reply:

---
Now I tested the patch and it works fine.  Here is the patch:

        http://people.freebsd.org/~jkim/openjdk7-itweb.diff

How to build:

        fetch -o /tmp/openjdk7-itweb.diff \
            http://people.freebsd.org/~jkim/openjdk7-itweb.diff
        cd /usr/ports
        patch -p0 < /tmp/openjdk7-itweb.diff
        cd java/openjdk7
        make config     <--- ICEDTEA must be seleted!!!
        make
        make deinstall
        make install
        make clean      <--- optional
        cd ../icedtea-web
        make JAVA_VERSION=1.7
        make deinstall
        make install JAVA_VERSION=1.7
        make clean      <--- optional

(Continue reading)


Gmane