port collection RELEASE6.2 lost after reinstall with CVSUP

Frank Shute frank at esperance-linux.co.uk
Sun Jan 6 12:05:28 PST 2008


On Sun, Jan 06, 2008 at 02:10:59PM +0100, Walter Jansen wrote:
>
> Hi
> 
> Upon reading chapters of the Handbook about the Ports collection and CVSup,
> I wanted to CVSup the ports collection for the RELEASE  6.2. Stupidly using
> the wrong tag (tag=.), I erroneously but successfully installed the CURRENT
> version. I could have used SYSINSTALL for the RELEASE 6.2 ports, but for the
> sake of learning and training myself I did not.

You used the right tag. There is only a current tag as you only have a
current ports tree to be used for all releases ie 6.2,6.3 & 7.0 (The
ports might work with older releases too).

> 
>  
> 
> Problem: 
> 
>   - I ran CVSup again with the correct tag but though everything in the
> process looked normal, the map usr/ports remains empty and nor with whereis
> nor with pkg_xxx any information about ports can be found. 

You ran cvsup again with the wrong tag.

> 
> Questions: 
> 
>   - What did I do wrong in the process?.  

Used the wrong tag second time around.

> 
>   - Is cvsup for installation of RELEASE 6.2 ports collection a bad idea
> anyway (technically) ?  

No. Although there is no 6.2 ports collection, just CURRENT.

> 
>  
> 
> Proces:
> 
> - I use the recently installed cvsup-without-gui, installed from ports 

Use csup(1) it's identical to cvsup but no dependencies as it's in
base & written in C.

> 
> - I deleted all entries and maps in/under /usr/ports (as recommended in the
> Handbook) 

All you need is the empty dir /usr/ports and c(v)sup will fill it.

> 
>  
> 
> - I modified the ports-supfile in usr/share/examples/cvsup and copied it to
> portswj-supfile  in the same map (not good practice I know now....)
> 
> The settings in the -supfile where:
> 
>   *default host=cvsup15.FreeBSD.org  
> 
>   *default base=/var/db
> 
>   *default prefix=/usr
> 
>   *default release=cvs tag=RELENG_6_2_0_RELEASE   (the handbook suggests
> that this is a valid tag for ports)
> 
>   *default delete use-rel-suffix   (I could not find a meaning for this in
> the books, anyone can tell me please?)
> 
>   *default compress
> 
>   ports-all

Try this as your ports-supfile:

*default host=cvsup15.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all

and run: csup -L 2 /usr/share/examples/cvsup/ports-supfile

and it should download the current ports tree.

For the src supfile you should use the tag:

*default release=cvs tag=RELENG_6_3

as 6.3 is pretty close to release and you'll get 6.3RC2 probably.

or if you want 7.0RC2(?)

*default release=cvs tag=RELENG_7_0

For the src-supfile you only need to set that tag and the default host
and it should work.

Regards,

-- 

 Frank 

	
 Contact info: http://www.esperance-linux.co.uk/misc/contact.html 



More information about the freebsd-questions mailing list