From owner-freebsd-ports@FreeBSD.ORG Sat Sep 10 23:14:07 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 7DB54106566B; Sat, 10 Sep 2011 23:14:07 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 414D58FC15; Sat, 10 Sep 2011 23:14:07 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p8ANE6da090580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 10 Sep 2011 16:14:06 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p8ANE6fa090579; Sat, 10 Sep 2011 16:14:06 -0700 (PDT) Received: from fbsd81 ([192.168.200.81]) by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA16355; Sat, 10 Sep 11 16:06:14 PDT Date: Sat, 10 Sep 2011 23:05:59 -0700 From: perryh@pluto.rain.com To: fullermd@over-yonder.net Message-Id: <4e6c4fc7.M6OsWGol0SLyr/IR%perryh@pluto.rain.com> References: <765103585.20110909143052@serebryakov.spb.ru> <20110909130458.GO31003@azathoth.lan> <4e6b6e3d.58E89hPS0974IMyM%perryh@pluto.rain.com> <20110910071532.GA68847@over-yonder.net> In-Reply-To: <20110910071532.GA68847@over-yonder.net> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: bapt@freebsd.org, lev@freebsd.org, freebsd-ports@freebsd.org Subject: Re: [RFC] New ports idea: github / gitorious / bitbucket direct support. 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: Sat, 10 Sep 2011 23:14:07 -0000 "Matthew D. Fuller" wrote: > On Sat, Sep 10, 2011 at 07:03:41AM -0700 I heard the voice of > perryh@pluto.rain.com, and lo! it spake thus: > > > > If I am understanding correctly, you seem to be saying that two > > distfiles autogenerated from the _same_ tag etc. in the _same_ > > repository, and actually containing exactly the same code, can > > nevertheless generate different checksums!? Wouldn't that be a > > bug in the DVCS? > > There're all sorts of ways the same content could wind up with > different checksums. The compression may happen slightly differently, > higher, or lower. The files could wind up in the tarball in a > different order. Timestamps could differ. etc. I can't address the non-specific "etc", but I would claim that each of those 3 specific examples is a VCS bug. Creating a tarball of a particular content set _should_ be a deterministic process: * The compression method, and the ordering of the files, should be consistent. * Each file's timestamp in the tarball should be the selected version's timestamp as recorded in the repository, typically the time when the selected version of that file was committed to the VCS. Ditto for directories, provided the VCS maintains directory history. * If the VCS does _not_ maintain directory history (which is a deficiency, but not really a "bug"), each directory's timestamp in the tarball should match the most-recent file or subdirectory in that directory.