Skip to content

tdaitx/obuildfactory

 
 

Repository files navigation

OBuildFactory

OBuildFactory Logo

This GitHub project provides build scripts for OpenJDK 7, 8, 8+Lambda, 8+Jigsaw.

These scripts add goodies like :

  • ROOT CA generation, update and inclusion
  • FreeType build and embedding on platform where minimal requirements are not met.
  • Native packages support, aka Linux RPMs up to trusted Yum repository population.
  • OSX DMG for easy install via drag&drop.

You could use these scripts from a Jenkins Powered environment to setup a Continuous Integration chain or standalone for one shot builds.

Initialy planned for Linux, this project also include Mac OSX scripts from openjdk-osx-build

Documentation

Wiki

Linux

Build and packages are tested on CentOS 5, 6, Fedora 18, openSUSE 12.2 and Ubuntu 12.10 weekly on my home package factory (motorized by Jenkins). Binary packages will be uploaded to Bintray really soon on a weekly basis.

How to build and package OpenJDK 7 on Linux

How to build and package OpenJDK 8 on Linux

How to build and package OpenJDK 8 with Lambda on Linux

### Yum repositories

Thanks to JFrog Bintray, OpenJDKs for Linux are available for major Linux distributions in yum repositories, install repositories like :

CentOS 5 32bits

wget https://bintray.com/repo/rpm/hgomez/obuildfactory-centos5-i386 -O bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

CentOS 5 64bits

wget https://bintray.com/repo/rpm/hgomez/obuildfactory-centos5-x86-64 -O bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

CentOS 6 32bits

wget https://bintray.com/repo/rpm/hgomez/obuildfactory-centos6-i386 -O bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

CentOS 6 64bits

wget https://bintray.com/repo/rpm/hgomez/obuildfactory-centos6-x86-64 -O bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

Fedora 17/18 32bits

wget https://bintray.com/repo/rpm/hgomez/obuildfactory-fedora18-i386 -O bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

Fedora 17/18 64bits

wget https://bintray.com/repo/rpm/hgomez/obuildfactory-fedora18-x86-64 -O bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/yum.repos.d/

openSUSE 12.x 32bits

wget https://bintray.com/repo/rpm/hgomez/obuildfactory-opensuse122-i386 -O bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/zypp/repos.d/

openSUSE 12.x 64bits

wget https://bintray.com/repo/rpm/hgomez/obuildfactory-opensuse122-x86-64 -O bintray-hgomez-obuildfactory.repo
sudo mv bintray-hgomez-obuildfactory.repo /etc/zypp/repos.d/

Then you could install rpm like this :

# install openjdk8 lambda on CentOS/Fedora 32bits
sudo yum install jdk-1.8.0-lambda-openjdk-i686
# install openjdk8 on CentOS/Fedora 64bits
sudo yum install jdk-1.8.0-openjdk-x86_64
# install openjdk7 on SLES/openSUSE 64bits
sudo zypper install jdk-1.7.0-openjdk-x86_64

And then update then with yum/zypper :

# update obuildfactory package on CentOS/Fedora
sudo yum update
# update obuildfactory package on SLES/openSUSE
sudo zypper update

OSX

I don't have anymore OSX machines so I won't be able to help on Apple platforms. There is some wiki pages who detailed how to build, but there is no guaranty about success. BTW, I'll welcome pull-requests so it will help others OSX users.

Building and packaging OpenJDK7 for OSX

Building and packaging OpenJDK8 for OSX

Building and packaging OpenJDK8 with Lambda for OSX

About

OpenJDK Build Factory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%