From owner-freebsd-ports Mon Feb 22 13:18:50 1999 Delivered-To: freebsd-ports@freebsd.org Received: from TomQNX.tomqnx.com (cpu2745.adsl.bellglobal.com [207.236.55.214]) by hub.freebsd.org (Postfix) with ESMTP id 2600810FB8; Mon, 22 Feb 1999 13:18:41 -0800 (PST) (envelope-from tom@tomqnx.com) Received: by TomQNX.tomqnx.com (Smail3.2 #1) id m10F2kL-000I21C; Mon, 22 Feb 1999 16:18:33 -0500 (EST) Message-Id: From: tom@tomqnx.com (Tom Torrance at home) Subject: Re: Perl5 (and cvsup) In-Reply-To: from Chuck Robey at "Feb 22, 1999 2: 4:41 pm" To: chuckr@mat.net (Chuck Robey) Date: Mon, 22 Feb 1999 16:18:33 -0500 (EST) Cc: tom@tomqnx.com, ports@FreeBSD.ORG, asami@freebsd.org, jdp@polstra.com X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 2884 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org John Polstra: A suggestion - it would be useful if cvsup were to note on a -L2 run that file "x" was detected in the tree, but not deleted. See below.... > On Mon, 22 Feb 1999, Tom Torrance at home wrote: > > > This port fails when applying patches for FreeBSD. > > If you're monstrously annoyed at it merely being broken, then I guess I > can understand what you wrote ... but if you wanted help, you have to > give enough info, so that someone else can figure out why it broke for > you. > > How about including the actual error listing, the date on the perl5 > port's Makefile (so we can tell the age of it) the date on your > /usr/share/mk/bsd.port.mk file, and the FreeBSD version you're running. > At the time I was running a cvsup-15.4 client, as far as I remember (since updated to cvsup-16.0) under 2.2-stable. The system software was updated last as of Feb 13, 1999. The ports tree was as up-to-date as cvsup could make it. I got the info to fix it from John Polstra a year or two ago, in reference to a source tree problem I was having at that time, but had since forgotten about! (blush) The problem was old patch files that were not deleted by cvsup, which will not delete anything that it did not either write, or verify was there *and valid, expressly* on an update. It otherwise leaves trash lying around. The first thing one has to do with cvsup is verify/register the files one has by running it against the exact same release as the files one has before running a cvsup update to get the later files. Otherwise, as I understand it, any files deleted from the master tree between the time your version of the ports tree was created (usually when the cdrom distribution is created) and the first time you do a cvsup run to update it, will NEVER be detected and deleted by cvsup. An example, if you are running current or RELENG_3 and happen to have inserted the required files or symlinks to activate the softupdates code, cvsup will not delete them. Verification/registration is AFAIK not possible with ports, as there are not any separate cvs ports releases, as there is with the source tree. I got around the problem by: 1) deleting /usr/sup/ports* 2) deleting /usr/ports/* 3) cvsuping the entire ports tree. (ouch) This got rid of the invalid patch-aa file for perl5 as well as a number of other invalid files that were in my tree, which was quite old. All my ports are now running fine, and will continue to do so (hopefully). Anyone that wants to cvsup the ports tree on a system would be well advised to "rm /usr/ports/*" before the *first* time they run cvsup. This is particularly important if they have jost installed an old release. The first run will then automatically be a verification/registration run. Thanks for your reply. It is much appreciated - I really did not give any info, and I was frustrated. Forgive me. Cheers, Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message