August 6, 2004

Binpatch

Playing with binpatch. It's a nice idea, but the packages store the compilation date & time in some of the files (like the kernel), so there's no way to get reliable MD5's between the master site & the patches I build. Oh well, it's better than nothing.

One bugger with the system as it comes from http://www.openbsd.org.mx/en/projects/binpatch.html is that the patches don't build without fixing the makefile. The bsd.binpatch.mk that comes with (for 3.5) doesn't unpack sys.tar.gz in the correct location. Patch below.

kagome# rcsdiff -u bsd.binpatch.mk
===================================================================
RCS file: bsd.binpatch.mk,v
retrieving revision 1.1
diff -u -r1.1 bsd.binpatch.mk
--- /tmp/T0r32753 Fri Aug 6 22:45:00 2004
+++ bsd.binpatch.mk Fri Aug 6 22:34:30 2004
@@ -191,7 +191,7 @@
@echo "===> Extracting sources"
@mkdir -p ${WRKSRC}/sys && \
tar xzpf ${DISTDIR}/src.tar.gz -C ${WRKSRC}&& \
- tar xzpf ${DISTDIR}/sys.tar.gz -C ${WRKSRC}/sys && \
+ tar xzpf ${DISTDIR}/sys.tar.gz -C ${WRKSRC}&& \
touch -f ${.TARGET}

# Extracts the OpenBSD installation files


+-------------------------
|
| The binary patch(es) has/have been created in
| /usr/binpatch/packages
|
| To install a binpatch just unpack it under /, e.g.:
|
| # cd /usr/binpatch/packages
| # tar xzpf binpatch-3.5-i386-001.tgz -C /
|
+-------------------------

Posted by benjamin at August 6, 2004 10:46 PM