Skip to content

Instantly share code, notes, and snippets.

@melpon
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melpon/33995f43ef6225dbf709 to your computer and use it in GitHub Desktop.
Save melpon/33995f43ef6225dbf709 to your computer and use it in GitHub Desktop.
誤家庭用
set -ex
sudo apt-get update
# mount
sudo apt-get install -y nfs-common
sudo useradd --create-home --home-dir=/home/builder --shell=/bin/bash --uid=1010 builder
sudo mount -t nfs4 -o rw,hard,intr 192.168.1.107:/builder /home/builder
# install gcc
cd /home/builder/debranch/deb/
sudo apt-get install -y libmpc2 libmpfr4
sudo dpkg -i wandbox-gcc-4.8.3_4.8.3-4_amd64.deb
cd ~/
# java
sudo apt-get install -y build-essential xsltproc autoconf rsync pkg-config zip fastjar gawk gcj-jdk gcj-jre-headless ant-gcj libkrb5-dev x11proto-core-dev libcups2-dev libattr1-dev libxt-dev libxinerama-dev libxrender-dev libxtst-dev libxft-dev libalsaplayer-dev libasound2-dev openjdk-7-jdk
if [ -d java ]; then
rm -rf java
fi
mkdir java
cd java
wget http://icedtea.wildebeest.org/hg/icedtea/archive/85e4e1594c99.tar.bz2
tar xf 85e4e1594c99.tar.bz2
cd icedtea-85e4e1594c99
wget http://icedtea.wildebeest.org/download/drops/icedtea8/corba.tar.xz
wget http://icedtea.wildebeest.org/download/drops/icedtea8/hotspot.tar.xz
wget http://icedtea.wildebeest.org/download/drops/icedtea8/jaxp.tar.xz
wget http://icedtea.wildebeest.org/download/drops/icedtea8/jaxws.tar.xz
wget http://icedtea.wildebeest.org/download/drops/icedtea8/jdk.tar.xz
wget http://icedtea.wildebeest.org/download/drops/icedtea8/langtools.tar.xz
wget http://icedtea.wildebeest.org/download/drops/icedtea8/nashorn.tar.xz
wget http://icedtea.wildebeest.org/download/drops/icedtea8/openjdk.tar.xz
patch Makefile.am < ~/Makefile.patch
./autogen.sh
CC='/opt/wandbox/gcc-4.8.3/bin/gcc' CXX='/opt/wandbox/gcc-4.8.3/bin/g++ -Wl,-rpath,/opt/wandbox/gcc-4.8.3/lib64' ./configure --prefix=/usr/local/java8 --enable-bootstrap --with-parallel-jobs=4 --disable-tests --disable-downloading --disable-Werror --without-rhino --disable-infinality --disable-system-zlib --disable-system-jpeg --disable-system-png --disable-system-gif --disable-system-gtk --disable-system-gio --disable-system-fontconfig --disable-system-pcsc --disable-system-lcms --with-jdk-home=/usr/lib/jvm/java-7-openjdk-amd64
make
sudo make install
2369,2371d2368
< for files in $(BUILD_SDK_DIR)/tapset/*.stp; do \
< $(INSTALL_DATA) $${files} $(DESTDIR)${prefix}/tapset; \
< done
2462,2465d2458
< if ENABLE_DOCS
< ${mkinstalldirs} $(DESTDIR)$(docdir)/html
< cp -RP $(BUILD_IMAGE_DIR)/docs $(DESTDIR)$(docdir)/html
< endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment