Date: Tue, 29 Jun 2010 23:39:59 GMT From: Warren Block <wblock@wonkity.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/148250: [patch] xz memory limit prevents port building on low-memory systems Message-ID: <201006292339.o5TNdxWW071832@www.freebsd.org> Resent-Message-ID: <201006292350.o5TNo2V8013493@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 148250 >Category: bin >Synopsis: [patch] xz memory limit prevents port building on low-memory systems >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 29 23:50:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Warren Block >Release: 8-stable >Organization: >Environment: FreeBSD lightning 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #0: Tue Jun 29 14:05:16 MDT 2010 root@lightning:/usr/obj/usr/src/sys/LIGHTNING i386 >Description: xz's automatic memory limit prevents building of ports like png even on machines with adequate memory. In this forum post, a user with a 128M system can't build the png port, which only needs 65M. The patch uses the same method as ${GZIP} to add the -Mmax option to xz, making all memory available. >How-To-Repeat: Try to build graphics/png on a system with 128M of RAM. >Fix: Apply attached patch. Patch attached with submission follows: --- Mk/bsd.commands.mk.orig 2010-06-29 17:20:30.000000000 -0600 +++ Mk/bsd.commands.mk 2010-06-29 17:36:57.000000000 -0600 @@ -93,10 +93,11 @@ XMKMF?= ${LOCALBASE}/bin/xmkmf -a YACC?= /usr/bin/yacc +XZ?= -Mmax .if exists(/usr/bin/xz) -XZ_CMD?= /usr/bin/xz +XZ_CMD?= /usr/bin/xz ${XZ} .else -XZ_CMD?= ${LOCALBASE}/bin/xz +XZ_CMD?= ${LOCALBASE}/bin/xz ${XZ} .endif .if exists(/sbin/md5) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006292339.o5TNdxWW071832>