From owner-freebsd-stable Thu May 6 11:10:18 1999 Delivered-To: freebsd-stable@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id DC5F5150A7 for ; Thu, 6 May 1999 11:10:12 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id LAA24574; Thu, 6 May 1999 11:10:11 -0700 (PDT) (envelope-from jdp@polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id LAA29904; Thu, 6 May 1999 11:10:10 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19990506184917.A17713@catkin.nothing-going-on.org> Date: Thu, 06 May 1999 11:10:10 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: Nik Clayton Subject: RE: Directories disappearing with CVSUP, -stable, and SOFTUPDATE Cc: stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Nik Clayton wrote: > [ cc'd to JDP, as it might be a CVSup problem ] Thanks! If I don't hear about them, I can't fix them. > I was just in the middle of a CVSup. I keep a checked out copy of > /usr/ports around, but keep local copies of the repositories for > everything else. So you're using CVSup's checkout mode for /usr/ports? Please mail me a copy of your cvsupfile so I can be sure to have all the facts. > On my host, /usr/ports is (or rather, was) a symlink to /local/1/usr.ports. ... > Edit ports/net/pavuk/files/md5 > Add delta 1.5 99.05.06.14.04.39 flathill > Edit ports/print/tr2latex/Makefile > Add delta 1.11 99.05.06.10.21.25 tg > Edit ports/print/tr2latex/files/md5 > Add delta 1.5 99.05.06.10.21.29 tg > Edit ports/security/identify/Makefile > Add delta 1.4 99.05.05.20.06.51 billf > Delete ports/sysutil/ffsrecov/Makefile > Delete ports/sysutil/ffsrecov/files/md5 > Delete ports/sysutil/ffsrecov/pkg/COMMENT > Delete ports/sysutil/ffsrecov/pkg/DESCR > Delete ports/sysutil/ffsrecov/pkg/PLIST > Edit ports/sysutils/Makefile > Updater failed: ports/sysutils/Makefile: Cannot open: \ > No such file or directory > > and has stopped. > > On investigation, /usr/ports has been removed. /local/1/usr.ports no > longer exists, and the /usr/ports symlink has been replaced with a real > directory, containing sysutils/#cvs.cvsup-10375.288, which is an > empty file. Just a few days ago I received a similar report. I suspect it is an actual problem either in CVSup or in the FreeBSD.ORG server configuration. But I haven't yet had time to try to reproduce it. What the two reports have in common is that the top-level directory of the affected tree is a symlink. The other person said that it works almost all the time, but occasionally his cvsup process removes the symlink and creates a real directory in its place. He conjectured that it might be triggered when a new top-level subdirectory (like "/usr/ports/sysutil") gets added to the repository. That sounds like a plausible guess to me, but as I said, I haven't dug into it yet personally. I find it hard to believe that it removed your entire /local/1/usr.ports tree, though. The other person said it removed the symlink, but the existing tree remained. CVSup emits a message for every file and directory it deletes; surely you would have seen a lot of such messages if it had deleted your whole tree. Could you please take another look for it? I will dig into this as soon as I can, but it is going to be a week or more before I get to it. I'm swamped in my job at the moment, plus I have travel coming up. Meanwhile, if anybody can figure out how to reproduce the problem reliably, it will be a big help to me. As a work-around, do this. Put your real tree in "/local/1/ports", and in your cvsupfile specify "prefix=/local/1" for the ports collection(s). Then make your symlink "/usr/ports -> /local/1/ports". That way, CVSup won't see the symlink at all, so it won't be able to get confused by it. John --- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-interest is the aphrodisiac of belief." -- James V. DeLong To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message