LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-10-2004, 11:53 AM   #1
mullog
Member
 
Registered: May 2004
Posts: 61

Rep: Reputation: 15
Update or patch OpenBSD release.


Hi,
I'm a complete newbie on BSD(although i have substantial linux knowledge) and i was reading the faq on OpenBsd3.5 and I understand there is a release version and a patch branch which is the same as release but with patches applied to it. Now, from what i understand to get the patch branch you have to do compilation yourself, and at this point i was trying to use binaries only, which means that I will have to use the release version. And that's ok, but what I wanted to know is if there is a way of getting the patched packages, what would remove the need for compilation.
I found there is the errata page(http://www.openbsd.org/errata.html) and the packages errata(http://www.openbsd.org/pkg-stable.html), but I'm confused on the connection between the two. Are the packages errata, the packages already with the patches on the errata page(http://www.openbsd.org/errata.html), or are they different? In the errata page it says For important packages updates, please refer here(http://www.openbsd.org/pkg-stable.html). Does this mean the package errata has only some of the patches?

Or are they different?
Is there any other way to install the patches not by compilation?

Thanks.

 
Old 07-10-2004, 04:40 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Well there is a patch branch in CVS, or you could just download the patch diffs and apply those manually, then recompile the affected portion of code. For the CVS patch branch you would have to check out the entire tree. In theory, if you were applying patch diffs manually you would only need to check out that section of code (for instance if the patch applied to cvs, you would--in theory--only need to checkout src/gnu/usr.bin/cvs).

Of course, it's not recommended to try to short-circuit things like that and it's certainly not guaranteed to work. For packages in the ports tree there aren't really patch diffs, because ports compile from source any way you'll already have the source. The ports tree also has the patch branch and so you would just cvs up the patch branch of ports, uninstall the affected port, and recompile it.

The OpenBSD team does not put out binary patch updates. The only binary updates they put out are snapshots of the current source. Since OpenBSD current is supposed to always build, it's usually pretty safe. That being said, newly comitted stuff does not always work perfectly, so if you're updating a production system you shouldn't use snapshots.

There are a couple of tools that other people have put out to let you compile a binary update for yourself. However, this assume that you have more than one machine of the same architecture so you build it on one machine and install on others. If you have only one machine, it wouldn't make any sense since you still have to compile.

The process for compiling OpenBSD from source and keeping it up to date is very well documented and very straight-forward. Unless you have a 386 that would take forever to compile something, I don't see the problem. Heck, I even patch my SPARCstation5/70 and it doesn't take that long. You can safely compile in the background while the machine runs normally. I think the longest it ever took was 16hrs, but it kept functionally normally during the whole patch build.
 
Old 07-12-2004, 12:47 PM   #3
mullog
Member
 
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
Well, thanks for the replie, chort. I'll follow the instruccions on updating from source.
Hopefully it won't give me any problems.



 
  


Reply



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
Release Songs of OpenBSD -- Nice! koyi General 1 10-01-2005 02:26 PM
Unable to update Kernel, Debian release rdd Debian 7 11-10-2004 07:36 PM
K3B on OpenBSD 3.5 patch branch predrag *BSD 5 08-29-2004 05:40 AM
update and patch how to salahuddin_66 Slackware 2 06-01-2004 10:31 AM
update kernel patch wysurya Linux - Software 1 08-29-2003 09:50 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration