From owner-svn-ports-head@FreeBSD.ORG Sun Sep 1 10:59:31 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 736951ED; Sun, 1 Sep 2013 10:59:31 +0000 (UTC) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [IPv6:2001:2010:1::feef]) by mx1.freebsd.org (Postfix) with ESMTP id 3638B25B1; Sun, 1 Sep 2013 10:59:31 +0000 (UTC) Received: by heechee.tobez.org (Postfix, from userid 1001) id 9B6F6457C6; Sun, 1 Sep 2013 12:59:28 +0200 (CEST) Date: Sun, 1 Sep 2013 12:59:28 +0200 From: Anton Berezin To: Sahil Tandon Subject: Re: svn commit: r325805 - head/Mk Message-ID: <20130901105928.GG26604@heechee.tobez.org> References: <201308311322.r7VDM2wa076581@svn.freebsd.org> <20130831215840.GA13875@magnus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130831215840.GA13875@magnus> X-Powered-By: FreeBSD http://www.freebsd.org/ User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org, Bryan Drewery X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Sep 2013 10:59:31 -0000 On Sat, Aug 31, 2013 at 05:58:41PM -0400, Sahil Tandon wrote: > On Sat, 2013-08-31 at 13:22:02 +0000, Bryan Drewery wrote: > > > Log: > > - make fetch/checksum: If a fetched file does not match the expected size, > > delete it and try the next site, if there is one to try. > [...] > > + actual_size=`stat -f %z "$${file}"`; \ > > + if [ $${actual_size} -eq $${CKSIZE} ]; then \ > > + continue 2; \ > > + else \ > > + ${ECHO_MSG} "=> Fetched file size mismatch (expected $${CKSIZE}, actual $${actual_size})"; \ > > + if [ $${sites_remaining} -gt 1 ]; then \ > > + ${ECHO_MSG} "=> Trying next site"; \ > > + ${RM} -f $${file}; \ > > + fi; \ > > + fi; \ > > fi; \ > > done; \ > > ${ECHO_MSG} "=> Couldn't fetch it - please try to retrieve this";\ > > I have not had time to properly investigate, but could the above explain > the following behavior? Or, perhaps I've messed up something in my > local environment. Sorry for the line-wraps: > > sahil@mirage [/usr/ports/mail/postfix-current] % sudo make makesum > ===> License IPL10 accepted by the user > ===> Found saved configuration for postfix-current-2.11.20130825,4 > ===> postfix-current-2.11.20130825,4 depends on file: > /usr/local/sbin/pkg - found > => postfix-2.11-20130825.tar.gz doesn't seem to exist in > /usr/ports/distfiles/postfix. > => Attempting to fetch > ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/postfix-2.11-20130825.tar.gz > postfix-2.11-20130825.tar.gz 100% of 3866 kB 910 > kBps > [: -eq: argument expected > => Fetched file size mismatch (expected , actual 3959547) > => Trying next site > > This only happens if the distfile does not already exist (and therefore > needs to be fetched), and I 'make makesum'. Apparently, CKSIZE is > undefined. Notably, if I 'make fetch' first, and then 'make makesum', > there is no problem. I see the same behavior. So, updating ports is kinda broken at the moment. Cheers, \Anton. -- Our society can survive even a large amount of irrational regulation. -- John McCarthy