From owner-cvs-ports@FreeBSD.ORG Fri Mar 12 10:00:34 2004 Return-Path: Delivered-To: cvs-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 512FF16A4D0; Fri, 12 Mar 2004 10:00:34 -0800 (PST) Received: from blues.jpj.net (blues.jpj.net [208.210.80.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6A6243D49; Fri, 12 Mar 2004 10:00:19 -0800 (PST) (envelope-from trevor@jpj.net) Received: from blues.jpj.net (localhost [127.0.0.1]) by blues.jpj.net (8.12.9p2/8.12.9) with ESMTP id i2CI0chV014088; Fri, 12 Mar 2004 13:00:38 -0500 (EST) (envelope-from trevor@jpj.net) Received: from localhost (trevor@localhost)i2CI0cRl014085; Fri, 12 Mar 2004 13:00:38 -0500 (EST) X-Authentication-Warning: blues.jpj.net: trevor owned process doing -bs Date: Fri, 12 Mar 2004 13:00:38 -0500 (EST) From: Trevor Johnson To: Clement Laforet In-Reply-To: <20040312181312.30318f54.sheepkiller@cultdeadsheep.org> Message-ID: <20040312123554.N12343@blues.jpj.net> References: <200403121625.i2CGPIho015269@repoman.freebsd.org> <20040312181312.30318f54.sheepkiller@cultdeadsheep.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 cc: cvs-ports@FreeBSD.org cc: portmgr@FreeBSD.org cc: cvs-all@FreeBSD.org cc: ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/x11-wm/piewm Makefile X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 18:00:35 -0000 > > Set DISABLE_SIZE to avoid "size unknown" error. > > According to: > http://lists.freebsd.org/mailman/htdig/freebsd-ports/2004-March/010217.html > you should use NO_SIZE NO_SIZE prevents SIZE lines from being added to the MD5_FILE, whereas DISABLE_SIZE suppresses the size-checking. The comment in bsd.port.mk about NO_SIZE is something I wrote when I proposed NO_SIZE and didn't know that DISABLE_SIZE would be added. DISABLE_SIZE is IMO better for this sort of situation because it lets the size lines remain even though they are not checked. Jason Harris mentioned to me that having the size data can be useful when a port is unfetchable and one goes searching for the distfile. It can also be of some use if a user manually looks at it to get an idea of the time and disk space needed to download the distfile. I don't know of a reason why DISABLE_SIZE must only be set by the user. The comments in bsd.port.mk could be changed: Index: /usr/ports/Mk/bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.484 diff -u -r1.484 bsd.port.mk --- /usr/ports/Mk/bsd.port.mk 4 Feb 2004 04:27:04 -0000 1.484 +++ /usr/ports/Mk/bsd.port.mk 12 Mar 2004 17:50:36 -0000 @@ -732,10 +732,9 @@ # # For makesum: # -# NO_SIZE - Don't record size data in distinfo, needed -# when the master site does not report file -# sizes, or when multiple valid versions of -# a distfile, having different sizes, exist. +# NO_SIZE - Don't record size data in distinfo, needed +# when multiple valid versions of a distfile, +# having different sizes, exist. # # For patch: # @@ -876,7 +875,8 @@ # for systems where you have no root access. # DISABLE_SIZE - Do not check the size of a distfile even if the SIZE field # has been specified in distinfo. This is useful -# when using an alternate FETCH_CMD. +# when using an alternate FETCH_CMD, or when a master site does +# not report file sizes ("size unknown" error). # # End of the list of all variables that need to be defined in a port. # Most port authors should not need to understand anything after this point. -- Trevor Johnson