Patches for OpenBSD

These are patches that I currently have in use. Feel free to use, test, modify, or commit them. Do whatever you want, really, just don't blame me if they break something for you, kick your dog, or any other mean, nasty, and horrible thing.

I hope that they will be useful, but my testing is limited to myself and the network of the little NGO I'm sysadmin for, so not all problems will have been found.

OpenBSD 4.1-stable

src/

OK, so it's time to revive this. I haven't been maintaining this webpage in a while, even though I've been keeping the patches going. 4.1-stable may not yet be released, but I have some patches applied in my tree.

  • The unchanged patch for getty allowing it to talk to Hylafax nicely. Adapted from mbrisko@tcs.com (Douglas Ambrisko)'s FreeBSD patch. Bug #3700.
  • A patch from Matt Provost <mprovost@termcap.net> to allow ldd to list library dependencies on shared libraries.
  • A simple patch to fix the pointer to sendmail in CVS's log_accum so email notifications can work on checkin. With any luck, OpenCVS may remove this need. I'm crossing my fingers.
  • Add support for Samsung CDMA modems (cell phones) over USB with this patch.

ports/

Time to add some ports patches here too. I've been trying to create no_x11 versions of some things that would otherwise require X on my web servers, and also to strip the gnomeish dependencies from a KDE build. Some things you find here are good (and just add a flavor), some are overzealous and just strip stuff out because I was tired. Your mileage may vary.

  • First, a patch to add a no_x11 flavor to gd. I use this on my webserver along with this corresponding patch to p5-GD.
  • Samba has problems changing NT passwords on OpenBSD because it wants to regain root priveleges after it drops them. This completely terrible patch makes Samba not check if it regained those priveleges and continue without dying. This is enough to change passwords, and I haven't witnessed any breakage with the patch, but be careful with it. It's not quite right.
  • I use tsearch2 in PostgreSQL fairly extensively. This patch adds it to the ports build as a separate subpackage without changing anything about the existing packages.
  • The next three patches remove gtk1 and gnome dependencies from KDE packages. These are the ones I'm talking about that don't quite play nice. It was 3am and I was tired. Maybe I'll do them right later. :)

OpenBSD 3.5-stable

There's not much here. ftp-proxy changes have been committed, and Dale Rahn committed his .init/.fini fixes. The fixes to procfs aren't quite what I was doing with my patch, so I've ported it up to 3.5 but I intend to drop it in the near future and make the Proc::ProcessTable expect what the base system gives it instead.

This means I might finally have time to mess with the ipv6 for httpd stuff again!

  • The exact same patch to getty as in 3.4 which allows HylaFax to pass off data calls to getty. Adapted from mbrisko@tcs.com (Douglas Ambrisko)'s FreeBSD patch. Bug #3700.
  • A patch to make procfs behave as my 3.4-stable patch made it. Please don't use this and instead use what the base system gives you. The bug has been fixed. I will back it out of my personal tree soon.

OpenBSD 3.4-stable

Ted Unangst has committed his work on VFS, and the mod_perl issues have been resolved. There will be no mod_perl patch for 3.4-stable. There isn't much left to do here.

I am no-longer working on 3.4-stable. If I have time to update the httpd+ipv6 patch, it will be fore 3.5.

  • I pulled changes from NetBSD relating to the calling of the .init and .fini sections of an ELF executable. This only works on i386, but shouldn't break the other architectures. Here's the patch.
  • Dale Rahn made a similar patch that also fixes .init and .fini sections in shared libraries. Use his patch rather than mine.
  • A patch from Karl O. Pinc <kop@meme.com> to allow the administrator to specify the external address to proxy active FTP connections through.
  • A patch for a bug in procfs 'status' files i386/2101 by Jim Razmus <lists@bonetruck.org>, modified to output euid,egid svuid,svgid by Andrew Dalgleish <openbsd@ajd.net.au>, and tweaked by me to make it work as advertised.
  • A patch which allows HylaFax to pass off data calls to getty. Adapted from mbrisko@tcs.com (Douglas Ambrisko)'s FreeBSD patch.
  • I hope to get around to working on the ipv6 patch for httpd soon.

OpenBSD 3.3-stable

  • Ted Unangst <tedu@stanford.edu> is back with an updated patch to fix file locking.
  • After applying Ted Unangst's patch, the userland needs some minor tweaking in order to compile properly.
  • If you pre-load DBI with mod_perl from ports on OpenBSD 3.3, you will find that httpd crashes when you try to connect to a database. This patch adds mod_perl to the base system rather than building it as a DSO, which alleviates the problem.
  • A patch based on the KAME project's modifications which adds IPv6 support to the in-tree httpd. This changes the module API, so it may break other modules. Use at your own risk. This patch needs to be applied as well if you use the mod_perl patch above.

OpenBSD 3.2-stable

  • A port to 3.2-stable of an older version of Ted Unangst <tedu@stanford.edu>'s patch to OpenBSD's VFS in the kernel.
  • My patch to update the userland bringing mount_*, newfs, and fstat into line with Ted's patch.
  • A backport of httpd from 3.2-current fixing some minor issues with the chroot. Addition of IPv6 support based on work by the KAME project. This changes the module API, so if you use mod_perl, you'll need to add this patch to the patches directory of that port. I plan to test and fix php and other modules later as time permits.