File:  [NetBSD Developer Wiki] / wikisrc / users / ryoon / updating_openjdk7.mdwn
Revision 1.4: download - view: text, annotated - select for diffs
Sat Jan 25 07:32:57 2014 UTC (6 years, 4 months ago) by ryoon
Branches: MAIN
CVS tags: HEAD
Fix commands. and style

    1: [[!meta title="Updating pkgsrc/lang/openjdk7"]]
    2: 
    3: openjdk uses hgforest extension of mercurial (hg).
    4: hgforest works with mercurial-1.x only.
    5: You should install latest 1.x branch of mecurial, 1.2.1 from
    6: http://mercurial.selenic.com/release/mercurial-1.2.1.tar.gz .
    7: mercurial-1.2.1 is used first fclone only.
    8: 
    9: 
   10: # Install prerequisitic packages.
   11: 
   12:     $ cd /usr/pkgsrc/devel/gmake
   13:     $ make install
   14:     $ cd /usr/pkgsrc/devel/mercurial
   15:     $ make install
   16:     $ cd /usr/pkgsrc/lang/openjdk7
   17:     $ make depends
   18: 
   19: 
   20: # Creating working directory.
   21: 
   22:     $ cd ~/
   23:     $ mkdir -p repos/openjdk7
   24:     $ cd repos/openjdk7
   25: 
   26: 
   27: # Install mercurial-1.2.1.
   28: 2.x branch of mercurial may be used for daily works.
   29: mercurial-1.2.1 should be installed in your working directory.
   30: 
   31:     $ ftp http://mercurial.selenic.com/release/mercurial-1.2.1.tar.gz
   32:     $ tar zxvf mercurial-1.2.1.tar.gz
   33:     $ cd mercurial-1.2.1
   34:     $ gmake PREFIX=~/repos/openjdk7/hg PYTHON=/usr/pkg/bin/python2.7 install
   35: 
   36: 
   37: # hg clone hgforest extansion.
   38: 
   39:     $ PYTHONPATH=~/repos/openjdk7/hg/lib/python2.7/site-packages ~/repos/openjdk7/hg/bin/hg clone https://bitbucket.org/gxti/hgforest
   40: 
   41: Installation is not needed.
   42: 
   43: 
   44: # fclone openjdk7 source code.
   45: 
   46:     $ cat ~/.hgrc
   47:     [extensions]
   48:     forest=~/repos/openjdk7/hgforest/forest.py
   49:     $ PYTHONPATH=~/repos/openjdk7/hg/lib/python2.7/site-packages ~/repos/openjdk7/hg/bin/hg fclone http://hg.openjdk.java.net/bsd-port/bsd-port/ 
   50: 
   51: You have gotten bsd-port directory, ~/repos/openjdk7/bsd-port.
   52: 
   53:     $ ls -F bsd-port
   54:     ASSEMBLY_EXCEPTION
   55:     LICENSE
   56:     Makefile
   57:     README
   58:     README-builds.html
   59:     THIRD_PARTY_README
   60:     corba/
   61:     get_source.sh
   62:     hotspot/
   63:     jaxp/
   64:     jaxws/
   65:     jdk/
   66:     langtools/
   67:     make/
   68:     test/
   69: 
   70: And remove forest= line from your ~/.hgrc.
   71: It is problematic for mercurial-2.x.
   72: 
   73: 
   74: # checkout latest tagged version.
   75: fcheckout command does not work properly for my tree at least.
   76: You should enter each directory, and check tha status of each tree
   77: using mercurial-2.x.
   78: 
   79: For example,
   80: 
   81:     $ cd jdk
   82:     $ hg pull && hg update
   83: 
   84: You should do in each directory in bsd-port/.
   85: 
   86: In this case, I will use tip version.
   87: 
   88: 
   89: # Creating source tarball.
   90: 
   91:     $ cd ..
   92:     $ cp -a bsd-port openjdk
   93:     $ find openjdk -type d -name .hg | xargs rm -rf
   94:     $ tar jvfc openjdk-1.7.25-20130626.tar.bz2 openjdk
   95: 
   96: 
   97: # Put the tarball to openjdk7 directory of ${DISTDIR}.
   98: 
   99:     $ cp openjdk-1.7.25-20130626.tar.bz2 /ust/distfiles/openjdk7
  100: 
  101: 
  102: # Upload the tarball to ${MASTER_SITE_LOCAL:=openjdk7/}
  103: 
  104: Using scp, for example, upload the tarball.
  105: 
  106: 
  107: # Creating bootstrap binaries.
  108: I have no idea...
  109: 
  110: 
  111: # Follow usual package updating procedure.

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb