2 ms·
"while it turns out that the team which decided on a fine-grained sleeps-and-spins locking structure were correct, I can't fault Matt for not having as much fai
by SwellJoe 19y ago
"while it turns out that the team which decided on a fine-grained sleeps-and-spins locking structure were correct, I can't fault Matt for not having as much faith"
I agree, and I'd find it very hard to have anything but the utmost respect for him. His C compiler for the Amiga, DICE, was where I began to learn about real software development and the UNIX tool chain, so he holds a place nearly comparable to K&R in my history as a hacker.
It's just unfortunate that some personality conflicts have led to a great developer bitterly spinning his wheels for several years on something that is clearly going the wrong way. (Then again, I can't say that of OpenBSD, as it's spawned a lot of great stuff, though it may have looked like the same kind of situation a few years into the project. NetBSD, I'm a little iffy on....)
"The FreeBSD ports system works very well"
Ah, you have to say that, or you'll wake up with a horse head in your bed. It's the official party line. ;-)
Actually, to be more clear about my intent, the ports system does work very well for the problem that it solves.
The problem is that it's solving the wrong problem, and no one will admit it because it looks so pretty solving the problem that it does solve very well. Because ports exists, and works really well for its problem domain, it has prevented any real solutions from being put into place for package management and has also caused a lot of weird and incompatible tools to spring up to deal with various meta-problems like managing software on many machines (for example). Meanwhile, over in Linux-land, not just one, but two, really good package management systems (yum+rpm and apt-get+dpkg) have sprung up and made it possible for many people to produce nicely bundled software (and provide for the dependencies in an automated fashion) for Linux...while distributing software for FreeBSD is a choice of many poor options, mostly ending up with a tarball and a shell script.
Anyway, I think freebsd-update is a great improvement, and the right direction. (I'm really not just blowing smoke...it makes me feel a lot better about our customers using FreeBSD. Now, if only you could do something about the silly secondary groups limit of 16, and fix the default username length, I'd have nothing left to complain about...well, except for the other package management issues.)
- cperciva 19y agoThe problem is that [the ports tree is] solving the wrong problem I'm not sure from what you've written what you consider to be the right problem -- can you clarify? Would you be happy if the FreeBSD ports tree had a magical "make installbinaries" command which would download and install binaries instead of building from the source code?
- SwellJoe 19y agoBefore continuing my rant, I will mention that I am a FreeBSD amateur and tinkerer, and I know the Linux tools far better than the FreeBSD tools. I could be entirely wrong in some of my complaints. I have spent the past two weeks knee deep in FreeBSD package management and scripted installation of a very complex system. These are the things that have caused me great pain, and I've been unable to overcome them with repeated readings of the documentation--that's not to say they can't be overcome. I just haven't been able to. "I'm not sure from what you've written what you consider to be the right problem -- can you clarify?" There are actually many problems that yum and apt solve very well, that ports doesn't even consider. Yes, the fact that ports builds everything from source is, frankly, stupid (OK, not stupid...just solving the wrong problem...it should be a tool used for building the distribution by the developers of the OS, not for installing applications on every freakin' FreeBSD box on the planet while we all grow old waiting on the damned build to finish). I generally use pkgadd -rI to install things, and it works reasonably well (still needs a lot of work--the functionality of pkg* is pretty dismal compared to the rich capabilities of rpm and dpkg, particularly with regards to upgrades and getting information back about what is already installed). But the lack of binaries isn't really all that big of a concern to me. It's slow and pointless, but some people like that sort of thing--heck, one nutjob even built a ports style system for Linux and built a whole distro around it, apparently because yum and apt-get were just too damned quick and easy for him. ;-) Among the issues that ports doesn't solve (and maybe even shouldn't--this might be a job for extensions to the pkg* tools): ports doesn't provide any tools for distribution of software other than that provided by FreeBSD. As a third party software developer, I can't (easily) add my own ports tree path to a configuration file and from then on my customers will be able to use ports for my software, as well as the FreeBSD stock stuff. Both yum and apt repos are available for dozens of projects and packages outside of the "official" repositories, and it makes using Linux a whole lot more fun. One can grab newer or custom versions of things, commercial software that doesn't meet the license requirements of the OS repos, etc. And once installed one can keep them up to date with a simple command ( "yum update" or "apt-get update; apt-get upgrade" ). Updating with ports is complicated and slow, so even if it were possible to add third party repos, it would still be the wrong tool for the job. freebsd-update actually manages this better than ports (but again, only for OS-provided packages, and in a quite limited fashion). Distributing software to FreeBSD users is generally done via a tarball with maybe a shell script...and that's a valid option for some software. But we've got dozens of packages and they are updated sometimes weekly (much of it is security related--for example we distribute 80 or so installable web applications of wildly varying quality...when Wordpress has a security bug, we have to roll out an update to our installer for that script quickly and easily). Installing software with ports is not scriptable in any sane way. It asks questions using an ncurses interface, which, as far as I can tell, cannot be disabled. This is abomination. pkgadd has the -I option, which means no configuration is done, but at least it is non-interactive. It even seems to handle dependencies reasonably well, though I may just not be hitting it hard enough yet. Another few days and I'll begin the heavy lifting and I'll know for sure. So, I think those are the biggies, and being from source isn't really the biggest of them. If our customers want to wait four hours for our tools to install, that's not really my concern--it's their time, not mine. But, the other stuff is serious: non-scriptable, no good tools for querying the existing state of the system (versions, locations, etc.) and updating it, and no support for third party software. Anyway, those are the things that spring to mind. I'm sure I'll think of other stuff to bitch about later, particularly when I'm back to work on the FreeBSD installer for our product.