From owner-freebsd-questions Sat Jul 11 11:24:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA27746 for freebsd-questions-outgoing; Sat, 11 Jul 1998 11:24:10 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from lucy.bedford.net (lucy.bedford.net [206.99.145.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA27647 for ; Sat, 11 Jul 1998 11:24:00 -0700 (PDT) (envelope-from listread@lucy.bedford.net) Received: (from listread@localhost) by lucy.bedford.net (8.8.8/8.8.8) id OAA00232; Sat, 11 Jul 1998 14:07:35 -0400 (EDT) (envelope-from listread) Message-Id: <199807111807.OAA00232@lucy.bedford.net> Subject: Re: newbie question about patching In-Reply-To: <35A7A2E9.9BB7053F@erols.com> from Gk at "Jul 11, 98 01:37:46 pm" To: KillG@erols.com (Gk) Date: Sat, 11 Jul 1998 14:07:35 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG X-no-archive: yes Reply-to: djv@bedford.net From: CyberPeasant X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gk wrote: > Hi, > > I am new to FreeBSD and I am attempting to get my soundblaster 32 sound > card > to work. I found that I needed Luigi Rizzo's pnp kernel mods, so I > proceeded to download them from > http://www.iet.unipi.it/~luigi/pnp971020.tgz. > > After extracting the conents the README file contained this line > > -snip > * apply the patches contained in "patches.225" to the following > files: > -snip > > Upon opening the file "patches.225" I found a lot of cryptic looking > text like > > -snip > --- /sys/i386/conf/files.i386.orig Mon Sep 15 06:56:49 1997 > +++ /sys/i386/conf/files.i386 Sat Oct 18 11:45:19 1997 > @@ -139,6 +139,7 @@ > i386/isa/pcvt/pcvt_out.c optional vt device-driver > i386/isa/pcvt/pcvt_sup.c optional vt device-driver > i386/isa/pcvt/pcvt_vtf.c optional vt device-driver > +i386/isa/pnp.c optional pnp device-driver > i386/isa/prof_machdep.c optional profiling-routine > i386/isa/psm.c optional psm device-driver > -snip > > My question is how exactly do I apply the patches? Am I missing some > info > about how this is done? > Yup. The "patch file" is the output of a diff; there is a patch program (man patch) that will do the application for you. In this case (judging from the filenames which start at the / (root), you would simply do patch