<div dir="ltr">Forwrding to the list, as it doesn't seem to be setting reply-to.<br><br><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Peter Tribble</b> <span dir="ltr"><<a href="mailto:peter.tribble@gmail.com">peter.tribble@gmail.com</a>></span><br>Date: Tue, Nov 7, 2017 at 3:15 PM<br>Subject: Re: [OmniOS-discuss] Java on Intel/OmniOS<br>To: John D Groenveld <<a href="mailto:jdg117@elvis.arl.psu.edu">jdg117@elvis.arl.psu.edu</a>><br><br><br><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Nov 7, 2017 at 12:50 AM, John D Groenveld <span dir="ltr"><<a href="mailto:jdg117@elvis.arl.psu.edu" target="_blank">jdg117@elvis.arl.psu.edu</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">In message <<a href="mailto:20171107005541.5a90eefd@sleipner.datanom.net" target="_blank">20171107005541.5a90eefd@sleip<wbr>ner.datanom.net</a>>, Michael Rasmussen wr<br>
ites:<br>
<span class="m_-7097280745099074547gmail-">>At work we run our jira installation on RHEL 7 using the provided<br>
>OpenJDK 8.0 from Redhat. Using OpenJDK is certified on all Atlassian<br>
>products.<br>
<br>
</span>Very cool.<br>
Anyone got a good OpenJDK 8 build recipe for OmniOS?<br></blockquote><div><br></div></span><div>I sent one to the list about a year ago. Here it is, updated for a more recent jdk update:<br><br>So the following should work. Apart from the benefit in OmniOS having a current<br>JDK, I wanted to be sure we could build from scratch just in case the Oracle<br>binaries stopped working for any reason.<br><br>This is on a vanilla r151014, updated to current. I'm Primary Administrator and the<br>java bootstrap is the java7 that ships with omnios. If you build with Studio then<br></div><div>it's a little easier as that's assumed to be the compiler on SunOS (OI have a patched<br></div><div>openjdk that uses gcc).<br></div><div><br>To get the sources:<br><br><br>wget <a href="http://hg.openjdk.java.net/jdk8u/jdk8u/archive/jdk8u141-b15.tar.bz2" target="_blank">http://hg.openjdk.java.net/<wbr>jdk8u/jdk8u/archive/jdk8u141-<wbr>b15.tar.bz2</a><br>foreach file ( corba hotspot jaxp jaxws langtools jdk nashorn )<br>wget <a href="http://hg.openjdk.java.net/jdk8u/jdk8u/$%7Bfile%7D/archive/jdk8u141-b15.tar.bz2" target="_blank">http://hg.openjdk.java.net/<wbr>jdk8u/jdk8u/${file}/archive/<wbr>jdk8u141-b15.tar.bz2</a> -O ${file}-jdk8u141-b15.tar.bz2<br>end<br>bzcat jdk8u141-b15.tar.bz2 | tar xf -<br>mv jdk8u-jdk8u141-b15 openjdk8u141<br>foreach file ( corba hotspot jaxp jaxws langtools jdk nashorn )<br>bzcat ${file}-jdk8u141-b15.tar.bz2 | tar xf -<br>mv ${file}-jdk8u141-b15 openjdk8u141/$file<br>end<br><br><br>Install the 64-bit pkgsrc bootstrap<br><a href="https://pkgsrc.joyent.com/install-on-illumos/" target="_blank">https://pkgsrc.joyent.com/<wbr>install-on-illumos/</a><br><br>Install appropriate pkgsrc and omnios packages.<br>There was a little trial and error to get this list...<br><br>pfexec pkg install developer/build/gnu-make system/header system/header/header-audio developer/macro/cpp developer/object-file developer/gnu-binutils<br><br></div><div>pfexec pkg install sunstudio12.1<br></div><div><br>pfexec /opt/local/bin/pkgin -y update<br>pfexec /opt/local/bin/pkgin -y install libX11 libXrender renderproto libXext libXtst libXt xproto xextproto inputproto kbproto cups freetype2<br><br>Fix up some errant stupidities:<br><br>pfexec mv /usr/bin/gobjcopy /usr/bin/not-gobjcopy-honestly<br>pfexec ln -s /opt/local/include/X11 /usr/include<br>pfexec ln -s /opt/local/lib/libX11.so* /usr/lib/amd64<br>pfexec ln -s /opt/local/lib/libXext.so* /usr/lib/amd64<br>pfexec ln -s /opt/local/lib/libXrender.so* /usr/lib/amd64<br><br>[Note: the gobjcopy thing is the only true magic here. You don't need the X11<br>symlinks for configure, but the build will fail as it doesn't seem to pass along the<br>locations of the X11 libs and includes correctly.]<br><br>cd to the openjdk8u141 directory from your download.<br><br>env PATH=/opt/sunstudio12.1/bin:/<wbr>usr/bin:/usr/sbin bash ./configure --with-milestone=fcs --with-update-version=141 --with-build-number=b15 --enable-unlimited-crypto --x-includes=/opt/local/<wbr>include --x-libraries=/opt/local/lib --with-cups=/opt/local --with-freetype-include=/opt/<wbr>local/include/freetype2 --with-freetype-lib=/opt/<wbr>local/lib<br><br>env PATH=/opt/sunstudio12.1/bin:/<wbr>usr/bin:/usr/sbin gmake all<br><br>and the built image is in<br><br>build/solaris-x86_64-normal-<wbr>server-release/images/j2sdk-<wbr>image<br><br>Then there's a little tinkering with sunpkcs11-solaris.cfg, and you'll need<br>a full copy of cacerts, but otherwise you should be good to go.<br><br></div></div><span class=""></span><br clear="all"></div></div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">-Peter Tribble<br><a href="http://www.petertribble.co.uk/" target="_blank">http://www.petertribble.co.uk/</a> - <a href="http://ptribble.blogspot.com/" target="_blank">http://ptribble.blogspot.com/</a></div>
</div></div>