From owner-freebsd-ports@FreeBSD.ORG Thu Sep 29 03:05:54 2005 Return-Path: X-Original-To: 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 6293616A41F for ; Thu, 29 Sep 2005 03:05:54 +0000 (GMT) (envelope-from brianakee@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7D6543D49 for ; Thu, 29 Sep 2005 03:05:53 +0000 (GMT) (envelope-from brianakee@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so35131wra for ; Wed, 28 Sep 2005 20:05:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=QTyBznH4T1DL5GhVKtbA3hh3ARw5IbsWWMQKP5BX+WbXaubjks4DMBLnpIOAjOyhQy7sNeh8b5QGibsRIKVWIoL9H91v0e5ZW1OqVgxtg/w3TAWdKvrbkc/PaPb4bcsmf8BCFbVys1LpLwGADpxtv3TWwbHkvEXGjLUm2NQxO1g= Received: by 10.54.130.13 with SMTP id c13mr338698wrd; Wed, 28 Sep 2005 20:05:53 -0700 (PDT) Received: by 10.54.89.7 with HTTP; Wed, 28 Sep 2005 20:05:53 -0700 (PDT) Message-ID: <34bd754105092820056ab6f73d@mail.gmail.com> Date: Wed, 28 Sep 2005 22:05:53 -0500 From: Brian Kee To: Eric Schuele In-Reply-To: <433B558D.8000204@computer.org> MIME-Version: 1.0 References: <433B558D.8000204@computer.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports@freebsd.org Subject: Re: Need help with patching a file in a new port.... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Brian Kee List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2005 03:05:54 -0000 I believe that the top of the patch file will need the relative path to the file that you want to patch. I remember running into somthing similar a while back. I do not maintain the patch file, so I have to do something like the following to fix the problem: EXTRA_PATCHES+=3D ${WRKDIR}/ pre-patch: ${MV} ${WRKDIR}/sguil-0.5.3/sensor/snort_mods/2_1/spp_portscan_sguil.patch ${EXTRA_PATCHES} ${SED} -i .orig -e s,original/patchfile/name.c,path/to/new/name.c, ${EXTRA_PATCHES} I know that it is not pretty, but it got the job done! HTH BAK On 9/28/05, Eric Schuele wrote: > > Hello, > > I'm having slight difficulty creating a patch for a file in a new port...= . > > I have unpacked the source. It merely needs a path changed in the > Makefile. So I fixed it, and created a port for it. However, the patch > I made fails to apply. I get the message: > > "File to patch: " > >