ports/172627: java/openjdk7: Option to not install debuginfo files
Alexey Markov
redrat at mail.ru
Fri Oct 12 06:20:01 UTC 2012
>Number: 172627
>Category: ports
>Synopsis: java/openjdk7: Option to not install debuginfo files
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 12 06:20:00 UTC 2012
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list