From: Salikh Zakirov <salikh@gmail.com>
To: git@vger.kernel.org
Subject: [packaging] binary Gentoo/x86 ebuild for M2 snapshot
Date: Thu, 23 Aug 2007 00:26:23 +0900 [thread overview]
Message-ID: <fahkjo$esh$1@sea.gmane.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2095 bytes --]
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.
[-- Attachment #2: harmony-jre-bin-0.02.ebuild --]
[-- Type: text/plain, Size: 585 bytes --]
# in public domain
inherit java-vm-2
DESCRIPTION="Java SE 5 JDK under the Apache License v2"
HOMEPAGE="http://harmony.apache.org"
SRC_URI="http://people.apache.org/builds/harmony/milestones/M2/apache-harmony-jre-r551077-linux-x86-32-snapshot.tar.gz"
LICENSE="Apache-2"
SLOT="0"
KEYWORDS="-* ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
src_unpack() {
tar xfz "${DISTDIR}/${A}"
}
src_install() {
dodir "/opt/${P}"
cp -a "${WORKDIR}"/harmony-jre-*/* "${D}/opt/${P}"
# create the VM handle file in /usr/share/java-config-2/vm
set_java_env
}
pkg_postinst() {
java-vm-2_pkg_postinst
}
[-- Attachment #3: harmony-jre-bin.env --]
[-- Type: text/plain, Size: 181 bytes --]
# in public domain
VERSION="Apache Harmony JRE @PV@"
JAVA_HOME=/opt/@P@
PATH="${JAVA_HOME}/bin"
PROVIDES_TYPE="JRE"
PROVIDES_VERSION="1.5"
GENERATION="2"
ENV_VARS="JAVA_HOME PATH"
next reply other threads:[~2007-08-22 15:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-22 15:26 Salikh Zakirov [this message]
2007-08-22 15:34 ` [packaging] binary Gentoo/x86 ebuild for M2 snapshot Salikh Zakirov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='fahkjo$esh$1@sea.gmane.org' \
--to=salikh@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).