BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old May 9th, 2002, 03:50 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 22 m 8 sec
Reputation Power: 797
buildworld question -- wrong version upgrade

Hello everyone,
I decided to try and become a real BSD user and buildworld on a test box. The OS running on it was FreeBSD 4.4-RELEASE and I was trying to upgrade it to the stable version of 4.5. I installed CVS as follows:

pkg_add -f ftp://ftp.FreeBSD.org/pub/FreeBSD/d...Sup/cvsupit.tgz

After installing, I was presented with a menu and I selected the stable version and all src + ports + docs to be safe. My cvsupfile that was created by the above command looks like this:
Code:
*default host=cvsup5.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs
*default tag=RELENG_4
*default delete use-rel-suffix

src-all
src-crypto
src-secure
*default tag=.
ports-all
doc-all


I then ran cvsup and downloaded all the files. After that I edited my /etc/make.conf file and it looks like this:
Code:
CPUTYPE=i686
CFLAGS= -O -pipe
CXXFLAG+= -fmemoize-lookups -fsave-memoized
NO_CVS=true
NO_BIND- true
NO_I4B= true
NO_LPR=true
NO_MAILWRAPPER=true
NOGAMES=true
NOINFO=true
NOUUCP=true
MAKE_IDEA=YES
USA_RESIDENT=YES


I dropped into single user mode and did
make -j4 buildworld
make buildkernel
make installkernel
make installworld

However, upon restarting the box, the uname -r now says 4.6-PRERELEASE. What gives here? I thought the tag in my cvsupfile (RELENG_4) should pull the stable version. Is it because of the second tag= in the cvsupfile that's causing this problem?

Also, a secondary question would be -- how should I get it back to the stable release?

Thanks in advance.

Last edited by Scorpions4ever : May 9th, 2002 at 03:53 PM.

Reply With Quote
  #2  
Old May 9th, 2002, 08:08 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
You really should have read in the FreeBSD maillist or www.freebsd.org .. Take the look at http://www.freebsd.org/news/newsflash.html#2002May1:0 , the FreeBSD-STABLE branch has been frozen.. Wait for a month to get STABLE branch again..

>> how should I get it back to the stable release?

I never have done it before, but did you make the backup? If not, then sorry, I have no idea.

Reply With Quote
  #3  
Old May 9th, 2002, 10:09 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 22 m 8 sec
Reputation Power: 797
Well, this 4.6-prerelease seems to work for me with no problems for now, but I REALLY wanted to upgrade from 4.4-RELEASE to 4.5-RELEASE. I thought that the tag=RELENG_4 line was what told it to update to a stable release.

I did back up all my code, so it should be trivial for me to reinstall 4.4 and then put back my code. However, I was wondering if it was possible to maybe clean out the contents of /usr/obj and the cvs log files, fix my cvsupfile (assuming that my problem is there) and redownload the sources for 4.5 and install it. I do have a 4.5-RELEASE CD and it would be easy enough for me to install from it, but I really would like to learn how to do an update via a buildworld. This way, I can also learn what I did wrong Can someone please tell me if there's a problem with my cvsupfile or something wrong with my procedure?

Thanks in advance.

Reply With Quote
  #4  
Old May 11th, 2002, 01:40 AM
freebsdforums freebsdforums is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: www.freebsdforums.org
Posts: 27 freebsdforums User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I hope I understood your query.

For simplicity, you might be better of trying to upgrade from a release->release.

Since 4.6 is just around the corner, you might consider installing 4.5 from scratch from your CD. Assuming you have read the handbook sections 19.3 and 19.4, you should be just fine. Personally, 19.4 is a tad confusing, since the instructions seem a little out of place (going back-and-forth).

Is this what you were asking ? no ?

Last edited by freebsdforums : May 11th, 2002 at 01:52 AM.

Reply With Quote
  #5  
Old May 12th, 2002, 06:00 PM
phoenix_rizzen phoenix_rizzen is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Kamloops, BC, Canada
Posts: 55 phoenix_rizzen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
It doesn't take stable to be a "real" user

No matter what freebsd tries to tell you, it doesn't take running -stable to be a real user.

In fact, you should not run -stable in a production environment. That's what the new security branch is for (it's just -release with all security patches included).

For those that don't know, and for freebsd's benefit, here's the breakdown of CVS branches:
  • -CURRENT: This is the bleeding edge development branch, known as 5.0-current. This will become the next major release of FreeBSD. Only developers and the curious should run this as it's in a constant state of flux.
  • -STABLE: This is the development branch for the version of FreeBSD in general use. Right now, it's 4-STABLE (CVS tag RELENG_4). This is where improvements for the current release of FreeBSD are made, and where new development from -CURRENT get added. This shouldn't be used in production unless you really know what you are doing, and you follow the stable@ and hackers@ mailing lists. This branch will eventually lead to a -RELEASE.
  • -RELEASE: A snapshot of the -STABLE branch, considered stable enough for production, every-day use. No further development occurs on this branch. (CVS tag RELENG_4_5_RELEASE at the moment, soon to be RELENG_4_6_RELEASE). This is the branch that most people should be using.
  • The new security branch (doesn't have a fancy branch name). CVS tag is RELENG_4_5. This branch is -RELEASE+security fixes and other major patches. This is also the branch that production servers should be running.

Thus, -CURRENT is for developers and those who are curious about the future of FreeBSD. -STABLE is also for developers and for those who need specific pieces of software only available in -STABLE. -RELEASE is for everybody. The new security branch is the one that most people (especially those with production servers/desktops) should track via CVSUP.

So, if you want to be a "real" FreeBSD user: use FreeBSD everyday. That's all it takes. If anyone tries to tell you otherwise, they aren't firing on all cylinders.
__________________
Linux is for those who hate Windows.
FreeBSD is for those who love UNIX.
-------
Have you read The Handbook yet?
How about The FAQ?
Have you searched the mailing lists?
Or read any of the man pages?
Have you searched the web for BSD resources?
In short, have you done your homework yet?

Reply With Quote
  #6  
Old May 13th, 2002, 06:53 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> No matter what freebsd tries to tell you, it doesn't take running -stable to be a real user

What I really meant is that, to become a real FreeBSD users you must learn how to cvsup + buildworld + recompile a kernel since those are essential steps you will have to go thru next week, if not tomorrow.
I made that strong statement in purpose to benefit the newbies to take the right learning approach. Not to mention running -STABLE gives you all the security patches plus new userland upgrades. Say openssh, you might want more than just bugfixes, perhaps the latest version + bugfixes.

>> That's what the new security branch is for

If you call that new, just so you know, that cvs tag is equivalent to OpenBSD's stable branch and it's been the same for dozen years. You think FreeBSD is playing catch-up here?

>> -RELEASE is for everybody

Maybe just for you and you can continue to run your whatever 4.x-RELEASE for the next 10 years. Please stop misleading users here. Better yet, you may track the security branch to practice yourself how to become a real user.

Reply With Quote
  #7  
Old May 13th, 2002, 07:03 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> this 4.6-prerelease seems to work for me with no problems for now

Then why can't you keep it? You can cvsup again when 4.6-STABLE is available.

>> I thought that the tag=RELENG_4 line was what told it to update to a stable release

Read mezz reply.

>> fix my cvsupfile (assuming that my problem is there)

No. But you still should remove all the lines after src-all and never combine the supfile for your ports and src into one supfile.

>> I can also learn what I did wrong

You didn't so keep running it and cvsup again next month. The only mistakes might just be the bad timing on cvsup.

Reply With Quote
  #8  
Old May 13th, 2002, 09:22 AM
phoenix_rizzen phoenix_rizzen is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Kamloops, BC, Canada
Posts: 55 phoenix_rizzen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Quote:
Originally posted by freebsd
>> No matter what freebsd tries to tell you, it doesn't take running -stable to be a real user

What I really meant is that, to become a real FreeBSD users you must learn how to cvsup + buildworld + recompile a kernel since those are essential steps you will have to go thru next week, if not tomorrow.


And you still don't need to run -STABLE to do this. In fact, you don't even need to know how to use the buildworld cycle. Yes, you should know how to use cvsup and how to compile your own kernel. Anything beyond that is not needed to be a real user.

Quote:
I made that strong statement in purpose to benefit the newbies to take the right learning approach. Not to mention running -STABLE gives you all the security patches plus new userland upgrades. Say openssh, you might want more than just bugfixes, perhaps the latest version + bugfixes.


Then you install it from ports. The only time you need to run -STABLE is if there is specific support in there that's not in -RELEASE and you absolutely need that support for your server/desktop to work. Otherwise, the only reason to run -STABLE is if you are curious.

Quote:
>> That's what the new security branch is for

If you call that new, just so you know, that cvs tag is equivalent to OpenBSD's stable branch and it's been the same for dozen years. You think FreeBSD is playing catch-up here?


Considering this branch has only been around since the release of 4.4, I'd say, "Yes, it is new." And, since you don't consider it new, I'd have to say, "You haven't the foggiest idea what you are talking about."

Quote:
>> -RELEASE is for everybody

Maybe just for you and you can continue to run your whatever 4.x-RELEASE for the next 10 years. Please stop misleading users here. Better yet, you may track the security branch to practice yourself how to become a real user.


I don't have to "practise" what I already am. As to running -RELEASE, that's exactly what I plan to do. Afterall, I have a business to run, and a school district to keep functional. No sense running development code, or a branch that jumps between useable and broken on an almost weekly basis. I would have to say, this is the second bit of almost good advice I've seen you post on here in the past month or two.

Reply With Quote
  #9  
Old May 13th, 2002, 10:30 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> And you still don't need to run -STABLE to do this

What? Are you sure you have tried all that before?

1) Recompile a kernel:
I agreed with you. In fact, this's what I've been saying all the time: "recompile a custom kernel with your -RELEASE code, test it dozen times and make sure it works alright prior to cvsup'ing for -STABLE."

2) cvsup:
You can cvsup your src, your ports tree anytime, nobody can really stop you. What matters is the error when make install a port (i.e. mk error).

3) buildworld:
You still need the -STABLE src. Why in the world would you build a -RELEASE src which had been built previously and everyone running the same -RELEASE has the same userland and system binaries?

>> Considering this branch has only been around since the release of 4.4, I'd say, "Yes, it is new

This tells me you have no experience with other BSDs (i.e. Net and Open) when you didn't even aware that's the identical tag for OpenBSD. Tell you what, I have been running all 3 for many years and I bet not many people on earth can tell the real difference between the three.

I don't doubt your FreeBSD knowledge and I am more than willing to share experience with you to make us better individually. Just so you know, FreeBSD isn't perfect, in most cases I like it so much but I also hate in many situations when NetBSD can do things better than Free does.

>> or a branch that jumps between useable and broken on an almost weekly basis

Just so you know, the REAL development code is OpenBSD's current and is broken all over the places.

Reply With Quote
  #10  
Old May 13th, 2002, 10:50 AM
phoenix_rizzen phoenix_rizzen is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Kamloops, BC, Canada
Posts: 55 phoenix_rizzen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Quote:
Originally posted by freebsd
>> And you still don't need to run -STABLE to do this

What? Are you sure you have tried all that before?


Yes. As mentioned before, we have boxes running 4.0, 4.1, 4.2, 4.3, 4.4, and 4.5 (the latter two running RELENG_4_4 and RELENG_4_5). No problems whatsoever with regards to ports. (Once 4.6 is released, these will all be upgraded to that.)

Quote:
1) Recompile a kernel:
I agreed with you. In fact, this's what I've been saying all the time: "recompile a custom kernel with your -RELEASE code, test it dozen times and make sure it works alright prior to cvsup'ing for -STABLE."


Now there's something I agree with.

Quote:
2) cvsup:
You can cvsup your src, your ports tree anytime, nobody can really stop you. What matters is the error when make install a port (i.e. mk error).


And you still haven't shown what these "errors" are. I've done this without problems for a couple years now (since the release of 4.0). The only time you will run into problems is when your kernel and your userland are out-of-sync.

Quote:
3) buildworld:
You still need the -STABLE src. Why in the world would you build a -RELEASE src which had been built previously and everyone running the same -RELEASE has the same userland and system binaries?


You don't need the -STABLE source. You can use a buildworld to update from one -RELEASE to another. Or to upgrade a 4.4-RELEASE to RELENG_4_4 or a 4.5-RELEASE to RELENG_4_5. The only time you should be running -STABLE is if you need the software/hardware support and can't wait for the next -RELEASE, or if you are a developer looking to work on FreeBSD, or if you are curious.

Quote:
>> Considering this branch has only been around since the release of 4.4, I'd say, "Yes, it is new

This tells me you have no experience with other BSDs (i.e. Net and Open) when you didn't even aware that's the identical tag for OpenBSD. Tell you what, I have been running all 3 for many years and I bet not many people on earth can tell the real difference between the three.


We're not talking about other BSDs. We're talking about FreeBSD. This whole thread is about FreeBSD. This tag is new to FreeBSD. Doesn't matter what the other BSDs are doing, it has no bearing on this discussion.

Quote:
>> or a branch that jumps between useable and broken on an almost weekly basis

Just so you know, the REAL development code is OpenBSD's current and is broken all over the places.


No, development for FreeBSD does not happen in the OpenBSD source tree. It happens in the FreeBSD source tree. Some happens in the -CURRENT tree, some happens in the -STABLE tree.

A lot of the time, the -CURRENT tree is broken due to heavy development. Sometimes, the -STABLE tree is broken due to heavy development. Rarely is the -RELEASE broken as no development goes on there. Which one sounds better for production or home computers?

Reply With Quote
  #11  
Old May 13th, 2002, 12:47 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 22 m 8 sec
Reputation Power: 797
Thanks for your help everyone. I was actually working off the FreeBSD handbook and I wasn't quite sure if I did everything correctly, cuz it's my first buildworld. It's a relief to know that I didn't screw up. Now for the next part -- recompiling the kernel --- luckily this is one step that I've done several times (and learned from all my mistakes)

Reply With Quote
  #12  
Old May 20th, 2002, 08:03 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> you still haven't shown what these "errors" are

Something about bsd.port.mk mismatch or something. In fact, I have never faced such problem because I've always been doing things correctly.

>> since the release of 4.0

Like I said many times, when are you going to stop lying? A -RELEASE branch prior to 4.3 needs to install 4xupgrade in order to use the current ports, because the current (latest) ports tree is made for -STABLE and -CURRENT users.
Even with the 4xupgrade hack, I have seen numerous complaints that it was broken for some ports, thus that's why I said people running -RELEASE branch shouldn't cvsup to the current ports for maximum reliability, not that it wouldn't work at all.

>> The only time you should be running -STABLE is if you need the software/hardware support and can't wait for the next -RELEASE

Wrong. A -RELEASE branch might be stable but not secure for sure. The -STABLE branch is to fix any stability problems found in -RELEASE plus all the latest bugfixes.

>> Rarely is the -RELEASE broken as no development goes on there

All -RELEASE branches were broken in some ways, but not necessary significant enough for users to notice such minimal changes. Those get fixed or improved in -STABLE.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > buildworld question -- wrong version upgrade


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread: