From owner-freebsd-questions@FreeBSD.ORG Sun Aug 14 13:08:37 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 4FD431065672; Sun, 14 Aug 2011 13:08:37 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id BD0578FC13; Sun, 14 Aug 2011 13:08:36 +0000 (UTC) Received: by qwc9 with SMTP id 9so2835059qwc.13 for ; Sun, 14 Aug 2011 06:08:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.95.84 with SMTP id c20mr1783681qcn.278.1313327316053; Sun, 14 Aug 2011 06:08:36 -0700 (PDT) Received: by 10.229.87.10 with HTTP; Sun, 14 Aug 2011 06:08:35 -0700 (PDT) In-Reply-To: <20110814112534.GA58077@freebsd.org> References: <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> <20110813100810.GA27193@slackbox.erewhon.net> <4E4799D4.8000703@gmail.com> <20110814112534.GA58077@freebsd.org> Date: Sun, 14 Aug 2011 15:08:35 +0200 Message-ID: From: Olivier Smedts To: Alexander Best Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Sun, 14 Aug 2011 14:39:15 +0000 Cc: Niclas Zeising , Roland Smith , FreeBSD Current , freebsd-ports@freebsd.org, "Hartmann, O." , freebsd-questions@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: Sun, 14 Aug 2011 13:08:37 -0000 2011/8/14 Alexander Best : > On Sun Aug 14 11, Niclas Zeising wrote: >> On 2011-08-13 12:08, Roland Smith wrote: >> > 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/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a4= 31db398.gz >> >>> Does this file actually exist if you extract the snapshot? And are t= he >> >>> permissions et cetera OK? >> >>> >> >>> Roland >> >> >> >> No, it does not. >> >> >> >> What I did so far over night: >> >> >> >> I deleted /var/db/portsnap as well as /usr/ports/. Then I tried again= . >> >> Again failure. >> >> After that it got the ports tree via CVS (make update in /usr/ports). >> >> Everything seems >> >> all right. I tried portsnap again. portsnap compalins about a >> >> non-portsnap-created /usr/ports >> >> and please me to use 'extract'. I do ... but then I run into the very >> >> same failure: >> >> >> >> (portsnap fetch extract:) >> >> /usr/ports/devel/cccc/ >> >> /usr/ports/devel/ccdoc/ >> >> /usr/ports/devel/ccrtp/ >> >> /usr/ports/devel/cdash/ >> >> files/dd7c394c9c9ddf4b97f1b14c676f370adc259b2c7a4b8346eba0788a431db39= 8.gz not >> >> found -- snapshot corrupt. >> > >> > I've been looking at the portsnap shellscript. This error message is g= enerated >> > by the shell's built-in test command, specifically '[ -r'. It is looki= ng for 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 i= t with >> > tar(1). What you could try is to comment out the line 'rm ${SNAPSHOTHA= SH}.tgz' >> > in portsnap, and test if the tgz file extracts differently using an >> > 8.2-RELEASE tar and the 9-CURRENT tar. =A0If so, that would be a bug! >> > >> > Roland >> >> Just a "me too!". It happens for me on a recently updated 9-current >> virtual machine, built with clang. > > same here: > > /usr/ports/databases/gigabase/ > /usr/ports/databases/godis/ > files/39644d98f9e9b9d9a362cbfc075a996683e8a611a4362d883247c9a2e2fa2658.gz= not found -- snapshot corrupt. > > running r224841 on amd64 built with base clang. Aparently fixed with latest HEAD *kernel* : # svn log -v -r224842 ------------------------------------------------------------------------ r224842 | rwatson | 2011-08-13 18:03:40 +0200 (sam 13 ao=FB 2011) | 10 lign= es Chemins modifi=E9s=A0: M /head/sys/kern/vfs_syscalls.c When falloc() was broken into separate falloc_noinstall() and finstall(), a bug was introduced in kern_openat() such that the error from the vnode open operation was overwritten before it was passed as an argument to dupfdopen(). This broke operations on /dev/{stdin,stdout,stderr}. Fix by preserving the original error number across finstall() so that it is still available. Approved by: re (kib) Reported by: cognet ------------------------------------------------------------------------ You won't be able to buildworld with the buggy kernel, but you can buildkernel and reboot on the new kernel. No problems with portsnap after that (don't know if you have to clean the old portsnap files, I did it). --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."