From owner-freebsd-questions@FreeBSD.ORG Sat Aug 13 10:08:43 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21B5C106564A; Sat, 13 Aug 2011 10:08:43 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by mx1.freebsd.org (Postfix) with ESMTP id A2B9F8FC19; Sat, 13 Aug 2011 10:08:42 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id p7DA8AT2044124; Sat, 13 Aug 2011 12:08:10 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 79671BAA9; Sat, 13 Aug 2011 12:08:10 +0200 (CEST) Date: Sat, 13 Aug 2011 12:08:10 +0200 From: Roland Smith To: "Hartmann, O." Message-ID: <20110813100810.GA27193@slackbox.erewhon.net> References: <4E454ADD.1020201@zedat.fu-berlin.de> <20110812171611.GA88850@slackbox.erewhon.net> <20110812182108.GA90173@slackbox.erewhon.net> <4E457477.4060400@zedat.fu-berlin.de> <20110812205408.GA9873@slackbox.erewhon.net> <4E45ACA8.5070406@zedat.fu-berlin.de> <20110813072642.GA24239@slackbox.erewhon.net> <4E462D0D.8070901@zedat.fu-berlin.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: <4E462D0D.8070901@zedat.fu-berlin.de> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Olivier Smedts , FreeBSD Current , freebsd-questions@freebsd.org, freebsd-ports@freebsd.org Subject: Re: files/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a431db398.gz not found -- snapshot corrupt. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2011 10:08:43 -0000 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 13, 2011 at 09:51:41AM +0200, Hartmann, O. wrote: > On 08/13/11 09:26, Roland Smith wrote: > > On Sat, Aug 13, 2011 at 12:43:52AM +0200, Hartmann, O. wrote: > >> On 08/12/11 22:54, Roland Smith wrote: > >>> On Fri, Aug 12, 2011 at 08:44:07PM +0200, Hartmann, O. wrote: > >>>>>> files/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a431d= b398.gz > > Does this file actually exist if you extract the snapshot? And are the > > permissions et cetera OK? > > > > Roland >=20 > No, it does not. >=20 > What I did so far over night: >=20 > I deleted /var/db/portsnap as well as /usr/ports/. Then I tried again.=20 > Again failure. > After that it got the ports tree via CVS (make update in /usr/ports).=20 > Everything seems > all right. I tried portsnap again. portsnap compalins about a=20 > non-portsnap-created /usr/ports > and please me to use 'extract'. I do ... but then I run into the very=20 > same failure: >=20 > (portsnap fetch extract:) > /usr/ports/devel/cccc/ > /usr/ports/devel/ccdoc/ > /usr/ports/devel/ccrtp/ > /usr/ports/devel/cdash/ > files/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a431db398.gz= not=20 > found -- snapshot corrupt. I've been looking at the portsnap shellscript. This error message is genera= ted by the shell's built-in test command, specifically '[ -r'. It is looking fo= r a file that was extracted with tar. So the place to look for the bug is IMO 1) the portsnap script itself (differences between 8.2 and 9?) 2) the sh(1)'s built-in test command (ditto) 3) tar (ditto) When you run 'portsnap fetch' it downloads a tgz archive and unpacks it with tar(1). What you could try is to comment out the line 'rm ${SNAPSHOTHASH}.t= gz' in portsnap, and test if the tgz file extracts differently using an 8.2-RELEASE tar and the 9-CURRENT tar. If so, that would be a bug! Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --0OAP2g/MAC+5xKAE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk5GTQoACgkQEnfvsMMhpyVx+ACdEth6ybOUsgxh1cOlSJB01We3 pscAn00aP4nagOuYxswIKvb48Moq5PcT =hJmN -----END PGP SIGNATURE----- --0OAP2g/MAC+5xKAE--