From owner-freebsd-ports@FreeBSD.ORG Mon May 16 10:13:05 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3585E106566B for ; Mon, 16 May 2011 10:13:04 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 7FB9B8FC08 for ; Mon, 16 May 2011 10:13:04 +0000 (UTC) Received: by wwc33 with SMTP id 33so4701634wwc.31 for ; Mon, 16 May 2011 03:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=tRoh1AKFWCGbS4sXSw4Zxx58lxZj/eeypfVTALxPqlI=; b=SjaI1PDehd80JwBfpIGEr5w37IIliPFvL8kLDwiqxa6CCMkYylLhwIaz7yFJDYEWG+ Z3Q+O9kv2WLdQxTwgaBxJXfv5Vu/gXK4fUvfn1XM9EQzWDIJd4HPwdf6HmQEnARmg1Wa tawzW6XbTU/cbwrJ/CDq7cP79AtD7KcT166MI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=nBZ0D2gh8VwQUSX3TVzz/Wl4+7TxcrOi7dqc+Nn1LLnDBUVG0JcRrWR8fvjQQK6zko KrmH2LHtyCTK82PPnv7s0sR9MshHnYfqruA1OCwPKZYVn6o2p1xyn3o+6lTRptEpV5NL PpBOy8oVp5wOYQ7by9dhE8yAyySGujsQPy/1U= Received: by 10.227.208.207 with SMTP id gd15mr4132989wbb.93.1305540783241; Mon, 16 May 2011 03:13:03 -0700 (PDT) Received: from Melon.malikania.fr (wifi-osiris-sec-181-61.u-strasbg.fr [130.79.181.61]) by mx.google.com with ESMTPS id k2sm2739729wby.0.2011.05.16.03.13.02 (version=SSLv3 cipher=OTHER); Mon, 16 May 2011 03:13:02 -0700 (PDT) Message-ID: <4DD0F86D.7060404@gmail.com> Date: Mon, 16 May 2011 12:11:57 +0200 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110508 Thunderbird/3.1.10 MIME-Version: 1.0 To: Andriy Gapon References: <4DD0CC21.5050305@FreeBSD.org> <4DD0DCD3.4030906@gmail.com> <4DD0E335.7060601@FreeBSD.org> In-Reply-To: <4DD0E335.7060601@FreeBSD.org> Content-Type: text/plain; charset=x-viet-vps; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@FreeBSD.org Subject: Re: patch for force fetch X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2011 10:13:05 -0000 On 16/05/2011 10:41, Andriy Gapon wrote: > on 16/05/2011 11:14 David Demelier said the following: >> On 16/05/2011 09:02, Andriy Gapon wrote: >>> >>> I've noticed the following problem. >>> If a distfile is updated by a distributor without renaming it (so that checksum >>> and possibly size change), then more often than not the port build system would >>> fail to fetch the distfile. >>> An example: > [snip] >>> I think that this happens because the old version of the distfile is still >>> present in download target location and fetch(1) thinks that it has a partially >>> downloaded file and tries to be smart. >>> >>> The following patch simply tries to remove the stale distfile before calling >>> fetch. Maybe there is a smarter way about this, like e.g. passing some option >>> to fetch. > [snip] >> >> make -DNO_CHECKSUM=yes ... is probably what you want, I guess. > > I fail to see why. Can you elaborate? > Sorry I misunderstood what you wanted.. Also I didn't see your @FreeBSD.org ;-) Cheers, -- David Demelier