Hey, Thanks! yes, it looks like the sys.tar.gz was missing.. I created a small howto for it (for patching 5.4): cd /root && ftp http://ftp.openbsd.org/pub/OpenBSD/`uname -r`/src.tar.gz && tar -xvzf /root/src.tar.gz -C /usr/src; ftp http://ftp.openbsd.org/pub/OpenBSD/`uname -r`/sys.tar.gz && tar -xvzf /root/sys.tar.gz -C /usr/src
# apply patches ftp "http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/001_pflow.patch" && cat 001_pflow.patch | (cd /usr/src && patch -p0) ftp "http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/002_sshgcm.patch" && cat 002_sshgcm.patch | (cd /usr/src && patch -p0) ftp "http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/003_vnode.patch" && cat 003_vnode.patch | (cd /usr/src && patch -p0) ftp "http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/004_nginx.patch" && cat 004_nginx.patch | (cd /usr/src && patch -p0) ftp "http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/005_sha512.patch" && cat 005_sha512.patch | (cd /usr/src && patch -p0) ftp " http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/006_libXfont.patch" && cat 006_libXfont.patch | (cd /usr/src && patch -p0) # if you don't have the X, then it's not needed.. ftp "http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/007_openssl.patch" && cat 007_openssl.patch | (cd /usr/src && patch -p0) ftp "http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/008_openssl.patch" && cat 008_openssl.patch | (cd /usr/src && patch -p0) # build and install a new kernel (~5-10 minutes) # if your system has trouble booting the new kernel, you can easily go back and reboot from the old kernel, now called obsd. cd /usr/src/sys/arch/amd64/conf /usr/sbin/config GENERIC.MP cd /usr/src/sys/arch/amd64/compile/GENERIC.MP make clean && make depend && make cd /usr/src/sys/arch/amd64/compile/GENERIC.MP make install reboot # rebuild the system binaries (~1 hour) rm -rf /usr/obj/* cd /usr/src make obj cd /usr/src/etc && env DESTDIR=/ make distrib-dirs cd /usr/src make build --------------------------------------- After this howto.. I only miss one big point... Before patching: # openssl version OpenSSL 1.0.1c 10 May 2012 After patching: # openssl version OpenSSL 1.0.1c 10 May 2012 Question: How do I know I did the patching correctly? Was it needed to rebuild the system binaries? Why is the OpenSSL version still the same? Thanks! have a great day! 2014-04-13 20:01 GMT+02:00 John Hynes <jephy...@gmail.com>: > It's just like pouring piss out if a boot; the instructions are written on > the heel. :) > > If your sources are in /usr/src, and the patches are in /usr/src/5.4 then > if you cd /usr/src ; patch -p0 < path to patch it'll work, exactly as it > instructs in the patch itself. > > > On Sunday, April 13, 2014, ohh, whyyy <ohhwh...@postafiok.hu> wrote: > >> Hi list! >> >> I installed the comp54.tgz set too when I installed >> http://ftp.openbsd.org/pub/OpenBSD/5.4/amd64/install54.iso >> then: >> >> # cd /root && ftp >> http://ftp.openbsd.org/pub/OpenBSD/`uname<http://ftp.openbsd.org/pub/OpenBSD/uname>-r`/src.tar.gz >> && tar -xzf /root/src.tar.gz -C /usr/src >> # uname -r >> 5.4 >> # pwd >> /usr/src >> # ls -la >> total 124 >> drwxrwxr-x 17 root wsrc 512 Apr 13 19:35 . >> drwxr-xr-x 17 root wheel 512 Jul 30 2013 .. >> drwxr-xr-x 2 root wsrc 512 Jul 29 2013 CVS >> -rw-r--r-- 1 root wsrc 3456 Jul 24 2013 Makefile >> -rw-r--r-- 1 root wsrc 16419 Jul 7 2013 Makefile.cross >> drwxr-xr-x 36 root wsrc 1024 Jul 29 2013 bin >> drwxr-xr-x 31 root wsrc 512 Jul 29 2013 distrib >> drwxr-xr-x 35 root wsrc 2560 Jul 29 2013 etc >> drwxr-xr-x 44 root wsrc 1024 Jul 29 2013 games >> drwxr-xr-x 9 root wsrc 512 Jul 29 2013 gnu >> drwxr-xr-x 7 root wsrc 2048 Jul 7 2013 include >> drwxr-xr-x 11 root wsrc 512 Jul 29 2013 kerberosV >> drwxr-xr-x 40 root wsrc 1024 Jul 29 2013 lib >> drwxr-xr-x 40 root wsrc 1024 Jul 29 2013 libexec >> drwxr-xr-x 15 root wsrc 512 Jul 10 2010 regress >> drwxr-xr-x 78 root wsrc 1536 Jul 29 2013 sbin >> drwxr-xr-x 14 root wsrc 512 Jul 29 2013 share >> drwxr-xr-x 228 root wsrc 4096 Jul 29 2013 usr.bin >> drwxr-xr-x 144 root wsrc 2560 Jul 29 2013 usr.sbin >> # which gcc >> /usr/bin/gcc >> # >> # ftp >> http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/001_pflow.patch >> >> Trying 129.128.5.191... >> Requesting >> http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/001_pflow.patch >> 100% |*******************************************************| 803 >> 00:00 >> 803 bytes received in 0.00 seconds (11.10 MB/s) >> # >> # patch -p0 < 001_pflow.patch >> Hmm... Looks like a unified diff to me... >> The text leading up to this was: >> -------------------------- >> |Apply by doing: >> | cd /usr/src >> | patch -p0 < 001_pflow.patch >> | >> |Then build and install a new kernel. >> | >> |Index: sys/net/if_pflow.c >> |=================================================================== >> |RCS file: /vol/openbsd/cvs/src/sys/net/if_pflow.c,v >> |retrieving revision 1.32 >> |diff -u -p -r1.32 if_pflow.c >> |--- sys/net/if_pflow.c 5 Jul 2013 17:14:27 -0000 1.32 >> |+++ sys/net/if_pflow.c 7 Nov 2013 16:48:45 -0000 >> -------------------------- >> File to patch: # what do I need to write here??????? >> No file found--skip this patch? [n] >> patch: **** can't find # >> # >> >> >> >> >> How do I get through the "File to patch: "? >> >> >> >> >> I cannot find the solution to it on: >> >> http://www.openbsd.org/faq/faq10.html >> >> or with a google search: >> >> site:www.openbsd.org "File to patch" >> >> >> What am I missing? >> >> Thank you in anticipation