Annotation of wikisrc/users/ryoon/updating_openjdk7.mdwn, revision 1.1
1.1 ! ryoon 1: [[!meta title="Updating pkgsrc/lang/openjdk7"]]
! 2:
! 3: openjdk use 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: $ cd jdk
! 81: $ hg checkout tip
! 82: You should do in each directory in bsd-port/.
! 83:
! 84: In this case, I will use tip version.
! 85:
! 86:
! 87: # Creating source tarball.
! 88:
! 89: $ cd ..
! 90: $ cp -a bsd-port openjdk
! 91: $ find openjdk -type d -name .hg | xargs rm -rf
! 92: $ tar jvfc openjdk-1.7.25-20130626.tar.bz2 openjdk
! 93:
! 94:
! 95: # Put the tarball to openjdk7 directory of ${DISTDIR}.
! 96:
! 97: $ cp openjdk-1.7.25-20130626.tar.bz2 /ust/distfiles/openjdk7
! 98:
! 99:
! 100: # Upload the tarball to ${MASTER_SITE_LOCAL:=openjdk7/}
! 101:
! 102: Using scp, for example, uploading the tarball.
! 103:
! 104:
! 105: # Creating bootstrap binaries.
! 106: I have no idea...
! 107:
! 108:
! 109: # Follow usual package updating procedure.
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb