Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 12:41:52 +0100
From:      Uwe Doering <gemini@geminix.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: portsdb: Warning: Duplicate INDEX entry
Message-ID:  <403DDB80.7020104@geminix.org>
In-Reply-To: <nv6m30lhvg9tbic6mv68ecbk0g2a7lu2l6@4ax.com>
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> <he0m309fuih9fcn1vntfoj6g4svpfkgjjq@4ax.com> <403B1710.4090207@geminix.org> <nv6m30lhvg9tbic6mv68ecbk0g2a7lu2l6@4ax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bernard El-Hagin wrote:
> Uwe Doering wrote:
>>Bernard El-Hagin wrote:
>>>Kris Kennaway <kris@obsecurity.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?403DDB80.7020104>