Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 6509 invoked from network); 22 Aug 2007 15:40:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2007 15:40:36 -0000 Received: (qmail 83185 invoked by uid 500); 22 Aug 2007 15:40:31 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 83163 invoked by uid 500); 22 Aug 2007 15:40:31 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 83154 invoked by uid 99); 22 Aug 2007 15:40:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 08:40:31 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcjhd-harmony-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 15:40:30 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1INsJO-0001r9-Ci for dev@harmony.apache.org; Wed, 22 Aug 2007 17:40:02 +0200 Received: from cerberus.is.titech.ac.jp ([131.112.51.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Aug 2007 17:40:02 +0200 Received: from salikh by cerberus.is.titech.ac.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Aug 2007 17:40:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@harmony.apache.org From: Salikh Zakirov Subject: [packaging] binary Gentoo/x86 ebuild for M2 snapshot Date: Thu, 23 Aug 2007 00:35:35 +0900 Lines: 97 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040203070503010708070605" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cerberus.is.titech.ac.jp User-Agent: Thunderbird 2.0.0.6 (X11/20070819) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org --------------040203070503010708070605 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, I've tried to create a binary package descriptor of M2 stable snapshot for Gentoo/x86 (as it is simpler than building from source, and the source snapshot is not available anyway). It seems to install and work nicely, at least I am now trying to run the build process using harmony jre, and it hasn't failed yet. I will see how long I can use it :) Instruction on how to try out: 0) configure portage overlay $ echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/make.conf 1) put the ebuild files in place $ mkdir -p /usr/local/portage/dev-java/harmony-jre-bin/files $ mv harmony-jre-bin-0.02.ebuild /usr/local/portage/dev-java/harmony-jre-bin $ mv harmony-jre-bin.env /usr/local/portage/dev-java/harmony-jre-bin/files 2) regenerate the ebuild manifest and digest files $ ebuild /usr/local/portage/dev-java/harmony-jre-bin/harmony-jre-bin-0.02.ebuild digest 3) configure keywords to accept unstable package $ echo 'dev-java/harmony-jre-bin ~x86' >> /etc/portage/package.keywords 4) install the package $ emerge harmony-jre-bin 5) make sure that the harmony-jre is in the list of installed VMs, and choose it as default $ java-config -L $ java-config --set-system-vm=harmony-jre-bin $ java -version Some questions Where would be the best to check in the Gentoo ebuild files? Minor nits, that can confuse potential end users 1) ant complains that it cannot find tools.jar This is probably because it is JRE snapshot rather than JDK 2) each run java prints 'The GC did not provide gc_add_weak_root_set_entry()' This is trivial issue, and AFAIK weak root support is scheduled for GC_v5, but anyway, we'd better make sure such trivial issues are fixed in packaged builds. 3) 'java -version' output is somewhat noisy, and has some not-to-the-point information, e.g. end user is unlikely to want to know that launcher is separate component in Harmony 4) Gentoo is not keen to have a version identifier 'M2', so I changed it to '0.02'. It would be nice if our release numbering would be compatible with packaging systems without such changes, to reduce confusion. --------------040203070503010708070605 Content-Type: text/plain; name="harmony-jre-bin-0.02.ebuild" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="harmony-jre-bin-0.02.ebuild" IyBpbiBwdWJsaWMgZG9tYWluCgppbmhlcml0IGphdmEtdm0tMgoKREVTQ1JJUFRJT049Ikph dmEgU0UgNSBKREsgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlIHYyIgoKSE9NRVBBR0U9Imh0 dHA6Ly9oYXJtb255LmFwYWNoZS5vcmciClNSQ19VUkk9Imh0dHA6Ly9wZW9wbGUuYXBhY2hl Lm9yZy9idWlsZHMvaGFybW9ueS9taWxlc3RvbmVzL00yL2FwYWNoZS1oYXJtb255LWpyZS1y NTUxMDc3LWxpbnV4LXg4Ni0zMi1zbmFwc2hvdC50YXIuZ3oiCgpMSUNFTlNFPSJBcGFjaGUt MiIKU0xPVD0iMCIKS0VZV09SRFM9Ii0qIH54ODYiCklVU0U9IiIKCkRFUEVORD0iIgpSREVQ RU5EPSIiCgpzcmNfdW5wYWNrKCkgewoJdGFyIHhmeiAiJHtESVNURElSfS8ke0F9Igp9Cgpz cmNfaW5zdGFsbCgpIHsKCWRvZGlyICIvb3B0LyR7UH0iCgljcCAtYSAiJHtXT1JLRElSfSIv aGFybW9ueS1qcmUtKi8qICIke0R9L29wdC8ke1B9IgoKCSMgY3JlYXRlIHRoZSBWTSBoYW5k bGUgZmlsZSBpbiAvdXNyL3NoYXJlL2phdmEtY29uZmlnLTIvdm0KCXNldF9qYXZhX2Vudgp9 Cgpwa2dfcG9zdGluc3QoKSB7CglqYXZhLXZtLTJfcGtnX3Bvc3RpbnN0Cn0K --------------040203070503010708070605 Content-Type: text/plain; name="harmony-jre-bin.env" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="harmony-jre-bin.env" IyBpbiBwdWJsaWMgZG9tYWluCgpWRVJTSU9OPSJBcGFjaGUgSGFybW9ueSBKUkUgQFBWQCIK SkFWQV9IT01FPS9vcHQvQFBAClBBVEg9IiR7SkFWQV9IT01FfS9iaW4iClBST1ZJREVTX1RZ UEU9IkpSRSIKUFJPVklERVNfVkVSU0lPTj0iMS41IgpHRU5FUkFUSU9OPSIyIgpFTlZfVkFS Uz0iSkFWQV9IT01FIFBBVEgiCg== --------------040203070503010708070605--