From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 03:41:57 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D7D516A4CE for ; Thu, 26 Feb 2004 03:41:57 -0800 (PST) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 629A143D2D for ; Thu, 26 Feb 2004 03:41:56 -0800 (PST) (envelope-from gemini@geminix.org) Message-ID: <403DDB80.7020104@geminix.org> Date: Thu, 26 Feb 2004 12:41:52 +0100 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040119 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20040223213301.GA2236@jrpenn.demon.co.uk> <20040224031539.K800@localhost.localdomain> <20040224034201.GA38608@xor.obsecurity.org> <20040224045718.GA661@hoth> <20040224061613.GA40324@xor.obsecurity.org> <20040224074445.00007d99@gdndev25> <20040224065734.GA40898@xor.obsecurity.org> <403B1710.4090207@geminix.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 1AwJtq-0005ia-00; Thu, 26 Feb 2004 12:41:55 +0100 Subject: Re: portsdb: Warning: Duplicate INDEX entry X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 11:41:57 -0000 Bernard El-Hagin wrote: > Uwe Doering wrote: >>Bernard El-Hagin wrote: >>>Kris Kennaway wrote: >>>>[...] >>>>I think there's something in one of the included makefiles that relies >>>>on a change to make(1) that happened after 5.1-RELEASE. Note that >>>>only the most recent release is supported by the ports collection >>>>(http://www.freebsd.org/ports); try updating to 5.2 or 4.9, which >>>>should fix the problem. >>> >>>Wow, that really sucks, since I've had zero luck updating to 5.2 the two >>>times I tried, and going with 4.9 from 5.1R means a reinstall, rather >>>than an upgrade (I'm led to believe). >> >>If you have the OS sources installed you could selectively upgrade the >>source files of make(1) via cvsup(1) and just install it. No need to >>upgrade the whole OS only because make(1) got an additional command line >>option. We recently did this for our 4.5 based systems. > > Could you please explain how that's done? I've never selectively > upgraded the source and I'm afraid of screwing something up. If you haven't already done so, install the port 'cvsup', preferably the precompiled package in order to avoid having to install Modula (which 'cvsup' is written in). Then you need an appropriate supfile, '/etc/cvsup-src-5.2' in this example, which should look like this: --------------------- cut here ------------------------ *default host=cvsup.FreeBSD.org *default base=/usr *default prefix=/usr *default release=cvs *default tag=RELENG_5_2 *default delete use-rel-suffix src-all --------------------- cut here ------------------------ Now do cvsup -g -i src/usr.bin/make /etc/cvsup-src-5.2 Once this went through successfully, build and install the new version: cd /usr/src/usr.bin/make make obj && make depend && make make install (clean up /usr/obj afterwards if desired) That's it. You can selectively upgrade other programs the same way if necessary, provided of course there are no incompatibilities in the respective areas between the OS releases. A look at the CVS commit comments is always a good idea in this context. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net