Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 1998 14:07:35 -0400 (EDT)
From:      CyberPeasant <djv@bedford.net>
To:        KillG@erols.com (Gk)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: newbie question about patching
Message-ID:  <199807111807.OAA00232@lucy.bedford.net>
In-Reply-To: <35A7A2E9.9BB7053F@erols.com> from Gk at "Jul 11, 98 01:37:46 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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 <patches.225

then configure and compile the patched kernel.

Dave
-- 
Sancho Panza: `Microsoft Windows NT Server is the most secure network 
	operating system available.'
Don Quixote: `You are mistaken, Sancho.'

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807111807.OAA00232>