X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 164F6DC07DE for ; Fri, 11 Dec 2015 06:08:48 +0000 (UTC) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 98032DC0093 for ; Fri, 11 Dec 2015 06:08:47 +0000 (UTC) Received: by lbblt2 with SMTP id lt2so64766497lbb.3 for ; Thu, 10 Dec 2015 22:08:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=z+ijzy8ZyyZe3936RbzlwSXVgvfso4x0cvMAqGNbtIc=; b=Lh9AOwEQUVCKLLjLARQHy1XPnioqV99dQvNF/e9bQ79OW18TwDZgnvd+2oE9dHpX6Y Qz5zP4klUvgJfMUpsmcj2MFWtz+ZSsvZZuZWqJ2iyRzBvLHuaeqFlpxYJtz/h606hPcF jDFuZ50HTfAeW2KPxUvSjdvs+y596eIp/meA5rZMyzK84BkI6+sQr50FmJqBWo4zNNz0 U57/rrz0MPSqS/tU5RzF5PJdOh2ZHa8ZE6sQuWCHUqV/DIy3UB8ID400Qs+iyxIXoBVO C8qiRTd0pIXghEQr/X1P9hQemSQjHMTnzWxkw6/chvW2Ud7vYad2OkckgzwVfvmV36IF 0N5Q== X-Received: by 10.112.158.66 with SMTP id ws2mr7390056lbb.126.1449814124922; Thu, 10 Dec 2015 22:08:44 -0800 (PST) Received: from vostro ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by smtp.gmail.com with ESMTPSA id 70sm2960668lfw.2.2015.12.10.22.08.44 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 Dec 2015 22:08:44 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Fri, 11 Dec 2015 08:08:39 +0200 From: Timo Teras To: =?UTF-8?B?U8O2cmVu?= Tempel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH 2/2] community/openjdk8: install profile file Message-ID: <20151211080839.22961b72@vostro> In-Reply-To: <1449778927-15011-2-git-send-email-soeren+git@soeren-tempel.net> References: <1449778927-15011-1-git-send-email-soeren+git@soeren-tempel.net> <1449778927-15011-2-git-send-email-soeren+git@soeren-tempel.net> X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV using ClamSMTP On Thu, 10 Dec 2015 21:22:07 +0100 S=C3=B6ren Tempel wrote: > Use it to set JAVA_HOME which is used by some java applications like > android studio or apache maven. What if all java's are installed. openjdk7, openjdk8 and gcc-java. Which one's JAVA_HOME should take preference? Should it be left up to the execution order of profile.d? Or should we let java-common ship one profile script that setups the JAVA_HOME to proper place? Would it be enough to make it point to "/usr/lib/jvm/default-jvm/jre/" always? > --- > community/openjdk8/APKBUILD | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/community/openjdk8/APKBUILD b/community/openjdk8/APKBUILD > index 643af10..976b3cb 100644 > --- a/community/openjdk8/APKBUILD > +++ b/community/openjdk8/APKBUILD > @@ -5,7 +5,7 @@ _java_ver=3D8 > _jdk_update=3D66 > _jdk_build=3D17 > pkgver=3D$_java_ver.$_jdk_update.$_jdk_build > -pkgrel=3D1 > +pkgrel=3D2 > pkgdesc=3D"Sun OpenJDK 8" > url=3D"http://openjdk.java.net" > arch=3D"x86_64 x86" > @@ -145,6 +145,11 @@ package() { > | xargs chmod go+r > =20 > pax_mark_vm "$pkgdir"/$INSTALL_BASE > + > + # install profile file in /etc/profile.d > + mkdir -p "$pkgdir"/etc/profile.d > + echo "export JAVA_HOME=3D\"\${JAVA_HOME:-$INSTALL_BASE/jre}\"" > \ > + > "$pkgdir/etc/profile.d/$pkgname.sh" || return 1 > } > =20 > jrelib() { --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---