OpenBSD Ports and Packages Explained 28
jpkunst writes "As reported on undeadly.org: an interesting interview with OpenBSD developer Marc Espie about the internals of and the philosophy behind the OpenBSD ports and packages system."
The truth of a proposition has nothing to do with its credibility. And vice versa.
Re:The original 'gentoo' ... explained :) (Score:5, Insightful)
they are source code because they need to support 11 architectures and you might want different options to the pre-compiled binaries
nearly *all* the ports have binary packages for your particular source port, if you stick with GENERIC make options
you can even install them from ftp !
# ftp -a ftp.openbsd.org
ftp> cd pub/OpenBSD/$version/packages/$arch
ftp> get gcc-3.3.2.tgz "|pkg_add"
Personally I prefer OpenBSDs ports to FreeBSDs because OpenBSD will create the binary as a package so you can compile with your options once and install the package on different machines without re-compiling on each box
even better is that *some* of the optional parts also have pre-compiled packages
I was rather pleased to find the rc shell pre-compiled with readline support
# ftp -a ftp.openbsd.org
ftp> cd pub/OpenBSD/$version/packages/$arch
ftp> get rc-1.6-readline.tgz "|pkg_add"
how does that makes me a whacko ?
HIBT ?
Re:The original 'gentoo' ... explained :) (Score:3, Interesting)
Re:The original 'gentoo' ... explained :) (Score:4, Informative)
OpenBSD's ports system is geared primarilly towards being a packaging system for the OpenBSD developers where FreeBSD's is more towards a general purpose installation, management, and packing framework. My personal wish is that FreeBSD would move to a portstree structure and management more like OpenBSD's.
Re:The original 'gentoo' ... explained :) (Score:1)
Actually, make package may hit the install target at some point, still necessitating a make deinstall, but at any rate, I don't think that you need "make install", I think "make ; make package" works fine.
Re:The original 'gentoo' ... explained :) (Score:4, Insightful)
OpenBSD installs into a "fake root" (you need root privs for this), and makes a package based upon this.
Re:The original 'gentoo' ... explained :) (Score:1)
Just out of curiosity, can you not change the directory prefix when you "make" in order to install the application in
Wouldn't this avoid the issue of actually installing the software on FreeBSD?
Re:The original 'gentoo' ... explained :) (Score:2)
Re:The original 'gentoo' ... explained :) (Score:5, Interesting)
There's a lot of very intelligent people working BSD. I'm a Linux zealot myself, but I really enjoyed reading this [newsforge.com] interview with Theo de Raadt, and Christos Zoulas. It's very interesting how much they seem to different in what they believe. One of the more striking ones was:
-vs-
It's hard to imagine that they are even talking about the same things.
Re:The original 'gentoo' ... explained :) (Score:1)
The thing being this is untrue or not relevant (regarding its Linux counterparts).
Any given Linux distribution can do that on whatever codebase they regard as "official", from the kernel up to the highest userlevel app just in the same as any *BSD can.
"Linux's code is much newer and it keeps c
Re:The original 'gentoo' ... explained :) (Score:2)
That's just it.. Christos is saying
and Theo is saying
The point of the interview was to ask them questions about how BSD
Re:The original 'gentoo' ... explained :) (Score:4, Insightful)
Theo et. al. have complete control of the kernel all the way down to the user-land. In Linux, however, userland tools are GNU (hence the rage over Linux and GNU/Linux naming) and maintained closely, but separately. That means changes have to be rippled rather than made at once, atomically.
The effect is that it is more likely you will see a shipped distro with broken tools due to the constant changes, or that you can become inconsistent with kernel version and tool version. In the recent 2.4 -> 2.6 changeover there were several kernel/user tool packages that changed drastically, making it very difficult to maintain a system with both kernels.
Also, don't be fooled by the word "refactoring." A refactoring is a change of interface or architecture, and by definition breaks an interface contract - whether that is a public or private contract only influences the scope of the breakage. Theo talks a lot about making and rolling out comprehensive fixes quickly, and describes refactoring as doable "when necessary." The Linux quote, OTOH, describes constant refactoring as a nuisance and a hindrance to Linux stability.
I believe this is the point the OP may be trying to make with these two quotes.
Re:The original 'gentoo' ... explained :) (Score:3, Interesting)
I am aware of that. To a point. BSD machines, very often contain a lot of GNU software as well in userland.
"A refactoring is a change of interface or architecture, and by definition breaks an interface contract"
And 'stable' is not subject to sudden or extreme change or fluctuation and consistently dependable. When Theo says 'We can change interfaces as we want to. We can
Re:The original 'gentoo' ... explained :) (Score:1, Interesting)
No, I bet *you* missed my boat. I was not talking about Linux kernel but about *Linux systems*.
"Theo et. al. have complete control of the kernel all the way down to the user-land"
Yes, they have.
"In Linux, however, userland tools are GNU"
No, they aren't. Not to the point of interest here. They are open source released under the GPL, hence Debian people (to name one *Linux system*) have exac
Re:The original 'gentoo' ... explained :) (Score:1)
Re:The original 'gentoo' ... explained :) (Score:1)
No, they don't.
"With BSD, you could make such a change across releases"
Correct.
"but with something like Debian, you would need to make such a transition smooth."
No. You "could make such a change across releases". There's no change Theo can't overtake from, say OpenBSD 3.7 to 3.8, Debian can't take from 3.0 to 3.1. I miss to see how changes from Woody to Sarge are any different from those between two
yay for ports! (Score:3, Insightful)
I'd venture to say that without ports on FreeBSD, I'd never have learned so much.
I've always thought that with a little more polishing, it could be good enough for even my mom to use.
Eased our transition from Debian to NetBSD! (Score:2)
Re:Eased our transition from Debian to NetBSD! (Score:3, Funny)
Not a troll, but sure... mod me down if you think so. (Just wait until someone answered, plz! :-)
Re:Eased our transition from Debian to NetBSD! (Score:3, Interesting)
Another Newb (Score:5, Interesting)
Like some
I've been very happy with several concepts:
- The dependency trees are spot-on and very automated. Correct versions and complete coverage.
- The ability to undo or rollback a package is smooth (like when I took a 7.x Postgres package and pkg_delete'd it to try the port)
- The published docs, man pages and organization of the system is superb. I picked up "Absolute OpenBSD" and "BSD Hacks" and have been toured confidently around the system by these and the man pages they point to.
- The post-install notes are a great help.
For me, it's a great "warm and fuzzy" to gather the documentation sources into a list and be able to dive down rabbit holes for long periods without feeling like a flea market is on my box. Cheers to the BSD folks, especially the package maintainers.
Why Perl? (Score:3, Interesting)
I hate having to have install Perl, Ruby and Python (m4?) for all kinds of trivial stuff. (or have it in the base systems as more and more systems do).
First, these scripting languages are slow. People that don't agree, please compile X, and watch the font making in Perl. It eats more time than actually compiling X
Second, every stupid package uses another one, so you end up with a bunch of them.
Third, it requires more languages to learn to access the system. Moreover, the amount of languages that can interface to Perl modules is significantly lower than the amount that can interface to C (virtually all). This can also be seen in the article: the perl backend is unused, everybody works around in shellscript.
The first two could be solved by e.g. limiting the tools to a perl subset that is compilable to C, and not use too many modules.
The third is harder to solve. Best would be to code the package system in C, and have a C callable library. Or maybe using 2C kind of stuff.
Re:Why Perl? (Score:5, Insightful)
A second good reason is that it's already part of the OpenBSD base install.
A third good reason is that the old package system was in C, and was downright broken.
A fourth good reason is that the current perl system is over 200K of perl code. Try rewriting that in C, and see how big it gets.
Finally, maybe perl isn't that slow... I've rewritten all kind of C/shell code in perl, and it consistently is faster than the old C code. Why ? because I can use smarter algorithms, and better caching. The package system of OpenBSD is another example of the same. Dude, the perl version of pkg_add is about twice as fast as the old perl version.
As far as X font building goes, you can't really know if it's slow because perl is, or if it's slow because there's a large amount of stuff going on. Look at the sizes involved, look how much data is processed, realize that usually, everything gets compressed with gzip.
Now, you can think all you want that it's slow because perl is slow. Well, I've got at least two other reasons for it to be slow.
What you have is an opinion, and not really well informed. How about backing it with some actual facts ?
Re:Why Perl? (Score:1, Insightful)
Computing power are getting bigger every day, and cheaper too, so the speed penalties are not that bad.
These languages all help you to express your algorithms easier than with C.
Try to write text processing programs with C, then try to write the same program using Perl, compare it. I bet youll fi
Re:Why Perl? (Score:2)
"The right tool " mantra works both ways. Both from the developer perspective and from user perspective.
The dependancies (install a few apps, and you have 100MB on various script languages, and extra modules) and speed are the trouble.
I'm talking about slow from the viewpoint of a recent Athlon64. Even if it gets twice as fast in the two next years, it is still annoyingly slow.
I have had the trouble to be forced to program in Perl, to fix some predecessors code. My conclusion was that while it was nice t
C based packaging system for openbsd (Score:1)