From owner-freebsd-ports Sun Mar 17 9:20: 7 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7D55937B47E for ; Sun, 17 Mar 2002 09:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2HHK1l98935; Sun, 17 Mar 2002 09:20:01 -0800 (PST) (envelope-from gnats) Received: from gemnet.ru (ns1.gemnet.ru [62.118.250.133]) by hub.freebsd.org (Postfix) with ESMTP id 8846A37B47E for ; Sun, 17 Mar 2002 09:11:01 -0800 (PST) Received: (from root@localhost) by gemnet.ru (8.11.6/8.11.6) id g2HHAxf53860; Sun, 17 Mar 2002 20:10:59 +0300 (MSK) (envelope-from root) Message-Id: <200203171710.g2HHAxf53860@gemnet.ru> Date: Sun, 17 Mar 2002 20:10:59 +0300 (MSK) From: Seva Gluschenko To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/36013: --enable-maxmem for libjpeg port Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36013 >Category: ports >Synopsis: --enable-maxmem for libjpeg port >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Mar 17 09:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Seva Gluschenko >Release: FreeBSD 4.5-STABLE i386 >Organization: Cronyx Plus LLC/ru.rinet LIR >Environment: System: FreeBSD gemnet.ru 4.5-STABLE FreeBSD 4.5-STABLE #3: Sat Mar 16 20:58:28 MSK 2002 root@gemnet.ru:/cl/system/sys/compile/gem i386 >Description: Working on with libjpeg I found that FreeBSD port does not provide any usage of --enable-maxmem configure option. The proposed patch solves this issue. >How-To-Repeat: Try to make libjpeg from ports with maxmem limit. You won't be able to do this without digging into Makefile. >Fix: Apply this patch to port Makefile: cd /usr/ports/graphics/jpeg patch < /path/to/this/file Then use "make J_MAXMEM=nn" to limit memory usage to nn MBytes. --- Makefile.orig Sun Mar 17 19:47:13 2002 +++ Makefile Sun Mar 17 20:01:14 2002 @@ -21,6 +21,11 @@ INSTALLS_SHLIB= yes CONFIGURE_ARGS= --enable-shared --enable-static +# define J_MAXMEM like "make J_MAXMEM=32" to limit max processing memory to 32Mb +.if defined(J_MAXMEM) +CONFIGURE_ARGS+= --enable-maxmem=$(J_MAXMEM) +.endif + MAN1= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 post-install: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message