From nobody@FreeBSD.org  Fri Oct 12 06:17:49 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 82F41862
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 12 Oct 2012 06:17:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 6BE098FC1C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 12 Oct 2012 06:17:49 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9C6HmW3017611
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 12 Oct 2012 06:17:48 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q9C6Hm6J017610;
	Fri, 12 Oct 2012 06:17:48 GMT
	(envelope-from nobody)
Message-Id: <201210120617.q9C6Hm6J017610@red.freebsd.org>
Date: Fri, 12 Oct 2012 06:17:48 GMT
From: Alexey Markov <redrat@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: java/openjdk7: Option to not install debuginfo files
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         172627
>Category:       ports
>Synopsis:       java/openjdk7: Option to not install debuginfo files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    glewis
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 12 06:20:00 UTC 2012
>Closed-Date:    Thu Nov 01 04:41:21 UTC 2012
>Last-Modified:  Thu Nov 01 04:41:21 UTC 2012
>Originator:     Alexey Markov
>Release:        8.3-RELEASE-p3
>Organization:
JSC Complitex
>Environment:
FreeBSD meson.complitex.ru 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #3: Wed Jun 13
09:48:21 MSK 2012 redrat@meson.complitex.ru:/arc/obj/arc/src/sys/MESON amd64
>Description:
By default java/openjdk7 port build and install 13 .debuginfo files, which takes 368 Mb on disk and significally increases time for package building and installing. Proposed option allows not install .debuginfo files for those who do not need it, and decrease used space by OpenJDK7 from 517 Mb to only 149 Mb.
>How-To-Repeat:

>Fix:
Attached patch add option to not install debuginfo files.

Patch attached with submission follows:

--- Makefile.orig	2012-10-04 20:19:53.000000000 +0400
+++ Makefile	2012-10-12 09:57:46.000000000 +0400
@@ -33,6 +33,7 @@
 MAKE_JOBS_UNSAFE=	YES
 
 OPTIONS=	POLICY   "Install the Unlimited Strength Policy Files"      on \
+		DEBUGINFO "Install debuginfo files"                         on \
 		TZUPDATE "Update the time zone data"                        on
 
 PORT_MINOR_VERSION=	${JDK_MINOR_VERSION}
@@ -96,6 +97,10 @@
 		JDK_MICRO_VERSION="0_0${PORT_MINOR_VERSION}" \
 		BUILD_NUMBER="b${PORT_BUILD_NUMBER}"
 
+.if !defined(WITH_DEBUGINFO)
+MAKE_ENV+=	ALT_OBJCOPY="/nonexistent"
+.endif
+
 .if !defined(DISABLE_MAKE_JOBS)
 .if defined(MAKE_JOBS_NUMBER)
 BUILD_JOBS_NUMBER=	${MAKE_JOBS_NUMBER}


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->glewis 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Oct 12 06:20:10 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172627 

From: "Alexey Markov" <redrat@mail.ru>
To: <bug-followup@FreeBSD.org>,
	<redrat@mail.ru>
Cc:  
Subject: Re: ports/172627: java/openjdk7: Option to not install debuginfo files
Date: Mon, 29 Oct 2012 10:54:06 +0400

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0046_01CDB5C3.B7A386D0
 Content-Type: text/plain;
 	format=flowed;
 	charset="koi8-r";
 	reply-type=original
 Content-Transfer-Encoding: 7bit
 
 Hello!
 
 Updated patch for current port version.
 
 -- 
 WBR, Alexey Markov.
 ------=_NextPart_000_0046_01CDB5C3.B7A386D0
 Content-Type: text/plain;
 	format=flowed;
 	name="patch.txt";
 	reply-type=original
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 	filename="patch.txt"
 
 --- Makefile.orig	2012-10-29 01:20:28.000000000 +0400=0A=
 +++ Makefile	2012-10-29 09:25:06.000000000 +0400=0A=
 @@ -34,10 +34,11 @@=0A=
  USE_XORG+=3D	x11 xext xi xrender xt xtst=0A=
  MAKE_JOBS_UNSAFE=3D	yes=0A=
  =0A=
 -OPTIONS_DEFINE=3D		POLICY TZUPDATE=0A=
 -OPTIONS_DEFAULT=3D	POLICY TZUPDATE=0A=
 +OPTIONS_DEFINE=3D		POLICY TZUPDATE DEBUGINFO=0A=
 +OPTIONS_DEFAULT=3D	POLICY TZUPDATE DEBUGINFO=0A=
  POLICY_DESC=3D		Install the Unlimited Strength Policy Files=0A=
  TZUPDATE_DESC=3D		Update the time zone data=0A=
 +DEBUGINFO_DESC=3D		Install the debuginfo files=0A=
  =0A=
  PORT_MINOR_VERSION=3D	9=0A=
  PORT_BUILD_NUMBER=3D	05=0A=
 @@ -97,6 +98,10 @@=0A=
  		JDK_MICRO_VERSION=3D"0_0${PORT_MINOR_VERSION}" \=0A=
  		BUILD_NUMBER=3D"b${PORT_BUILD_NUMBER}"=0A=
  =0A=
 +.if !defined(WITH_DEBUGINFO)=0A=
 +MAKE_ENV+=3D	ALT_OBJCOPY=3D"/nonexistent"=0A=
 +.endif=0A=
 +=0A=
  .if !defined(DISABLE_MAKE_JOBS)=0A=
  .if defined(MAKE_JOBS_NUMBER)=0A=
  BUILD_JOBS_NUMBER=3D	${MAKE_JOBS_NUMBER}=0A=
 
 ------=_NextPart_000_0046_01CDB5C3.B7A386D0--
 
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Thu Nov 1 04:40:28 UTC 2012 
State-Changed-Why:  
Thanks for the suggestion.  I've used a different option name which will, in 
the future, have broader debug implications.  I also ended up defaulting it 
to off so that the debuginfo files won't install by default. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172627 
>Unformatted:
