Mail archive
alpine-aports

Re: [alpine-aports] [PATCH 1/2] testing/openjdk8: install profile to /etc/profile.d

From: Timo Teras <timo.teras_at_iki.fi>
Date: Fri, 2 Oct 2015 20:39:57 +0300

On Fri, 2 Oct 2015 18:52:22 +0200
Sören Tempel <soeren+git_at_soeren-tempel.net> wrote:

> _at_@ -145,6 +146,13 @@ package() {
> | xargs chmod go+r
>
> pax_mark_vm "$pkgdir"/$INSTALL_BASE
> +
> + # install profile file in /etc/profile.d
> + mkdir -p "$pkgdir"/etc/profile.d
> + cat > "$pkgdir/etc/profile.d/$pkgname.sh" <<EOF
> +export JAVA_HOME="\${JAVA_HOME:-$INSTALL_BASE/jre}"
> +export PATH="\$PATH:\$JAVA_HOME/bin:$INSTALL_BASE/bin"
> +EOF
> }
>
> jrelib() {

Is this needed for some specific reason?

The idea has been that java-common provides symlinks
from /usr/bin/{$java_utils} to ../lib/default-jvm/... and default-jvm
is updated by java-common's trigger script when ever a java sdk is
installed or removed.


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Oct 02 2015 - 20:39:57 GMT