DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th December 2009
vigol's Avatar
vigol vigol is offline
Real Name: mehrshad moslehi
vigol
 
Join Date: Aug 2008
Location: tehran
Posts: 30
Default different base directory for same tree

If I have to maintain different versions of distfiles e.g RELENG_8_0_0_RELEASE and HEAD for src tree,
Should I set/use different "base" directories such as /var/db/1 , /var/db/2, or the CVsup won't confilict these different status files for different branch/RELEASE of a same tree such as "src" or "ports"
__________________
mehrshad moslehi ---- vigol ---- vigolyas
Reply With Quote
  #2   (View Single Post)  
Old 6th December 2009
Nirbo Nirbo is offline
Real Name: Nicholas Kirby
Fdisk Soldier
 
Join Date: May 2008
Location: Edmonton, Alberta, Canada
Posts: 68
Default

I don't know why you'd want to have to have multiple src trees (cross-compiling for another system?) But you shouldn't have to chance the base. inside /var/db/sup is a checkout file. Mine ends in RELENG_8 (8.0-STABLE, which I run.) I imagine it'd generate a second file if you supped HEAD.

I don't know about how well the src would divide in the /usr folder though, you might have to set two different prefixes (although I don't know)

ports also won't matter here because you'll want to be tracking HEAD for the ports tree. When you specify anything else (e.g. RELENG_8_0_0_RELEASE) you're getting the ports tree as it existed when 8.0-RELEASE was frozen to be put on CD/ftp for distribution.

Going to need someone else to comment on the /prefix with two src trees though. I've never done it :P I've never tried to cross-compile a different version of FreeBSD.
Reply With Quote
  #3   (View Single Post)  
Old 6th December 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Quote:
I don't know about how well the src would divide in the /usr folder though, you might have to set two different prefixes (although I don't know)
You will need a different prefix, otherwise both would be put in /usr/src/ overwriting each other.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #4   (View Single Post)  
Old 7th December 2009
vigol's Avatar
vigol vigol is offline
Real Name: mehrshad moslehi
vigol
 
Join Date: Aug 2008
Location: tehran
Posts: 30
Default

so what about If I we're going to plan install ports in different location, eh
/foo/ports?
I remember that there's some files like "bsd.port.mk" that is included in the porting, and for example this file contaions a line of code like :

Code:
PORTSDIR?=              /usr/ports
.
.
.
DISTDIR?=               ${PORTSDIR}/distfiles
_DISTDIR?=              ${DISTDIR}/${DIST_SUBDIR}
INDEXDIR?=              ${PORTSDIR}
now, when we change the Default Directory for ports,
what should I do to this situation?
Do I need to change all
Code:
Mk
files's contents?
or it up to csup/CVsup ?
__________________
mehrshad moslehi ---- vigol ---- vigolyas
Reply With Quote
  #5   (View Single Post)  
Old 7th December 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default

IMHO, you are asking for trouble

If I would have to maintain three versions, I would install these different FreeBSD versions each on a different slice/MBR partition. At boot time select wich version and off you go.

Life is already difficult enough, make it as easy as you can for the few circumstances that you can control
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #6   (View Single Post)  
Old 7th December 2009
vigol's Avatar
vigol vigol is offline
Real Name: mehrshad moslehi
vigol
 
Join Date: Aug 2008
Location: tehran
Posts: 30
Default

Thanks, a lot. You helped me again (several in past week).
I think so. I'll do this suggestion.
__________________
mehrshad moslehi ---- vigol ---- vigolyas
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC in src tree or in ports tree vigol FreeBSD Ports and Packages 2 6th December 2009 04:34 PM
strange "~" directory in home directory gosha OpenBSD General 5 23rd February 2009 06:12 PM
Upgrading linux base distribution? ivanatora FreeBSD General 11 1st August 2008 03:48 PM
howto change 'uname -a' after base system U/G fallen FreeBSD Installation and Upgrading 8 16th July 2008 01:24 AM
reinstalling parts of the base system? Business_woman FreeBSD Installation and Upgrading 3 13th July 2008 01:56 AM


All times are GMT. The time now is 05:17 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick