From owner-freebsd-bugs@FreeBSD.ORG Tue Jun 29 23:50:03 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AF00106564A for ; Tue, 29 Jun 2010 23:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0DADF8FC14 for ; Tue, 29 Jun 2010 23:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5TNo2Tl013502 for ; Tue, 29 Jun 2010 23:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5TNo2V8013493; Tue, 29 Jun 2010 23:50:02 GMT (envelope-from gnats) Resent-Date: Tue, 29 Jun 2010 23:50:02 GMT Resent-Message-Id: <201006292350.o5TNo2V8013493@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Warren Block Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72660106564A for ; Tue, 29 Jun 2010 23:39:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 61BED8FC0C for ; Tue, 29 Jun 2010 23:39:59 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5TNdx12071839 for ; Tue, 29 Jun 2010 23:39:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o5TNdxWW071832; Tue, 29 Jun 2010 23:39:59 GMT (envelope-from nobody) Message-Id: <201006292339.o5TNdxWW071832@www.freebsd.org> Date: Tue, 29 Jun 2010 23:39:59 GMT From: Warren Block To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/148250: [patch] xz memory limit prevents port building on low-memory systems X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2010 23:50:03 -0000 >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: