From owner-freebsd-questions Mon Sep 17 14:27: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from creme-brulee.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id B9B5237B40E for ; Mon, 17 Sep 2001 14:26:56 -0700 (PDT) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.11.3/8.11.3) with ESMTP id f8HLPE508348; Mon, 17 Sep 2001 17:25:14 -0400 (EDT) (envelope-from marcus@marcuscom.com) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.3/8.11.3) with ESMTP id f8HLR8k73250; Mon, 17 Sep 2001 17:27:08 -0400 (EDT) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Mon, 17 Sep 2001 17:27:08 -0400 (EDT) From: Joe Clarke To: Beech Rintoul Cc: Subject: Re: patch In-Reply-To: <20010917212238.EA41E8C13@galaxy.anchoragerescue.org> Message-ID: <20010917172535.L69881-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Since it's such a simple patch, you could always edit /usr/src/usr.sbin/pkg_install/add/main.c, go to line 80, and add the line packagesite =3D temppackageroot; Because if that's the whole patch (what you emailed), it lacks some of the header info needed for patch. Joe On Mon, 17 Sep 2001, Beech Rintoul wrote: > On Monday 17 September 2001 01:16 pm, Joe Clarke wrote: > > cd / > > patch -p > > > Joe > > > > On Mon, 17 Sep 2001, Beech Rintoul wrote: > > > I have a patch that I would like to apply. > > > What comand do I use to apply these changes? (never done it before) > > > > > > > > > Index: /usr/src/usr.sbin/pkg_install/add/main.c > > > @@=A0-78,6 +78,7 @@ > > > =A0 =A0 =A0char *cp, *packagesite, *remotepkg =3D NULL, *ptr; > > > =A0 =A0 =A0static char temppackageroot[MAXPATHLEN]; > > > > > > + =A0 =A0packagesite =3D temppackageroot; > > > =A0 =A0 =A0start =3D argv; > > > =A0 =A0 =A0while ((ch =3D getopt(argc, argv, Options)) !=3D -1) { > > > =A0=A0=A0=A0=A0=A0=A0=A0switch(ch) { > > > > > > Beech > > > > I tried that, and it returns "can't find a patch in there anywhere" > > Beech > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message