LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 02-02-2006, 08:38 AM   #1
Geocritter
Member
 
Registered: Jun 2005
Location: Richmond, Virginia
Distribution: Debian, Ubuntu, FreeBSD
Posts: 66

Rep: Reputation: 15
Question Trying to make sure I understand cvsup and stuff


Hi everybody,

I just want to make sure I understand some things about the whole ports thing. I think I'm starting to get the hang of it...

1. Ok...there are 3 separate "parts": Kernel, Userland (Ports), System Sources. Kernel is independent of the userland, unlike linux, where there are some connections, and changes in software can change how the kernel behaves. With unix, it's so separated that it isn't an issue. Correct?

2. If you cvsup the system sources, you need to rebuild your kernel accordingly (correct?), esp. if there have been changes/patches, etc. Also, if I also do I have to rebuild world first? Or cvsup ports, portupgrade, then rebuild world, then rebuild kernel?

3. If you cvsup your ports (ports-supfile), you can check to see what is different, if any, and either install the ones that have changed one at a time with dependencies, or do a port-upgrade, correct? I don't necessarily have to rebuild the kernel. But I do have to rebuild world?

Sorry for asking such redundant questions. I'm one of those people who has to understand the interactions of one thing to another; the advantage is, once I understand it, I usually understand it very very well. I am just trying to get a grip on what rebuilding userland does, mainly; I understand updating ports, and portupgrades, to bring the system to the most recent; I also understand cvsuping the source, and rebuilding the kernel when things change. But I don't understand what the rebuilding of userland does, and if it's necessary prior to rebuilding the kernel.

Thanks so much,
Dan
 
Old 02-02-2006, 11:00 AM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
It never hurts to buildworld after a patch but it is not strictly necessary. You should rebuild everything which was patched. You need to read /usr/src/UPDATING and watch which files were changed very carefully if you plan on doing it in bits and parts.

This takes a careful eye and you don't want to make mistakes. It is not impossibly difficult with a patch branch. Basically, if the kernel was patched... you need to rebuild it. If ftpd was patched, you need to rebuild that. If cvs was patched, you need to rebuild that. And you only need to rebuild what was patched. If cvs was patched and the kernel wasn't -- you don't need to rebuild the kernel.

Your kernel won't show itself as the newest patch of the OS but you will have installed it. It gets rather complicated at times. In short, for your purposes, if only the kernel was patched, you do not need to rebuild world. If other stuff was... rebuild world as well. And if you always do both, you'll never miss something.
 
Old 02-03-2006, 07:53 AM   #3
Geocritter
Member
 
Registered: Jun 2005
Location: Richmond, Virginia
Distribution: Debian, Ubuntu, FreeBSD
Posts: 66

Original Poster
Rep: Reputation: 15
Gotcha.

I think I'm starting to get it now. Thanks so much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what do i do with old modules and stuff when i make a new kernel? slinky2004 Linux - Software 3 09-06-2005 09:33 AM
How to make and understand RPMs wjleon Linux - Newbie 2 04-19-2005 08:46 PM
"make buildworld" error after cvsup of sources lobo78 *BSD 2 10-20-2004 06:32 PM
make stuff run at startup (in a seperate console) Red Squirrel Linux - Newbie 7 03-04-2004 10:25 PM
How do I make my shared loader (ld-linux.so.1/ld.so) understand LD_PRELOAD? ic3 Slackware 1 11-02-2003 06:57 AM


All times are GMT -5. The time now is 03:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration