>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 r...@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:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"