Date: Fri, 12 Oct 2012 06:17:48 GMT From: Alexey Markov <redrat@mail.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/172627: java/openjdk7: Option to not install debuginfo files Message-ID: <201210120617.q9C6Hm6J017610@red.freebsd.org> Resent-Message-ID: <201210120620.q9C6K1Nw061528@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210120617.q9C6Hm6J017610>