From 6e95a1c2681e10a8bc32d94b48b47e02e168b583 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 9 Oct 2006 07:24:06 +0000 Subject: Set HOME in the extract environment to prevent creation of ${HOME}/.mailcap and resulting breakage of it is not writeable. --- lang/sun-jre14/Makefile.common | 4 +++- lang/sun-jre15/Makefile.common | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'lang') diff --git a/lang/sun-jre14/Makefile.common b/lang/sun-jre14/Makefile.common index 14961df1d43..a135636ba9b 100644 --- a/lang/sun-jre14/Makefile.common +++ b/lang/sun-jre14/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.31 2006/07/20 06:52:16 wiz Exp $ +# $NetBSD: Makefile.common,v 1.32 2006/10/09 07:24:06 joerg Exp $ CATEGORIES= lang java EXTRACT_SUFX= .bin @@ -53,6 +53,8 @@ _FETCH_MESSAGE= \ "license, then choose 'Linux self-extracting file'." \ ${END_MESSAGE} +EXTRACT_ENV+= HOME=${WRKDIR}/fake_home + .if !empty(PKG_OPTIONS:Msun-jre-jce) END_MESSAGE= \ "" \ diff --git a/lang/sun-jre15/Makefile.common b/lang/sun-jre15/Makefile.common index b171f4c1f0d..557901bada8 100644 --- a/lang/sun-jre15/Makefile.common +++ b/lang/sun-jre15/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.13 2006/06/08 21:21:21 rillig Exp $ +# $NetBSD: Makefile.common,v 1.14 2006/10/09 07:24:06 joerg Exp $ CATEGORIES= lang java COMMENT= Sun's Java(tm) 2 Standard Edition, ${DOWNLOAD_NAME} @@ -27,6 +27,8 @@ JAVA_UNLIMIT= datasize MESSAGE_SUBST+= JAVA_HOME=${JAVA_HOME:Q} +EXTRACT_ENV+= HOME=${WRKDIR}/fake_home + # the following forces compression of jarfiles, which is a huge disk # space win and trivial to no speed reduction in the face of the # new class sharing in J2SE 5.0... -tvierling -- cgit v1.2.3