From owner-freebsd-ports@FreeBSD.ORG Sun Jul 3 15:13:28 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C394F16A41C; Sun, 3 Jul 2005 15:13:28 +0000 (GMT) (envelope-from FreeBSD@insightbb.com) Received: from sccimhc92.asp.att.net (sccimhc92.asp.att.net [63.240.76.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EB0B43D46; Sun, 3 Jul 2005 15:13:28 +0000 (GMT) (envelope-from FreeBSD@insightbb.com) Received: from lightning (12-202-24-76.client.insightbb.com[12.202.24.76]) by sccimhc92.asp.att.net (sccimhc92) with ESMTP id <20050703151327i9200ausa5e>; Sun, 3 Jul 2005 15:13:27 +0000 From: Steven Friedrich To: Simon Barner Date: Sun, 3 Jul 2005 11:13:20 -0400 User-Agent: KMail/1.8.1 References: <200507030412.11449.lofi@freebsd.org> <20050703055803.6D2B143D49@mx1.FreeBSD.org> <20050703112234.GE913@zi025.glhnet.mhn.de> In-Reply-To: <20050703112234.GE913@zi025.glhnet.mhn.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507031113.21507.FreeBSD@insightbb.com> Cc: Michael Nottebrock , "freebsd-ports@freebsd.org" Subject: Re: Anybody else have an xscreensaver build break? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2005 15:13:28 -0000 On Sunday 03 July 2005 07:22 am, Simon Barner wrote: > Steve Friedrich wrote: > > Actually, I found several errors that mostly had to do with declaring > > variables after code. In C++, this is legal, in C it's not. > > > > I could send you the antmaze.c I patched. I have no idea how to create > > the diff you guys usually use... > > man diff :-) > > More seriously: > > 1. Make a copy of the file to edit: cp file.c file.c.orig > 2. Make changes to file.c > 3. cd ${WRKSRC}, i.e. work/xscreensaver-x.y in your case > 4. patch -u path/to/file.c.orig path/to/file.c > patch-path_to_file.c I'm having trouble with > patch-path_to_file.c I tried patch -u hacks/glx/antmaze.c.orig hacks/glx/antmaze.c > patch-hacks/glx/antmaze.c and got: patch-hacks/glx/antmaze.c: No such file or directory. help?