From owner-freebsd-questions@FreeBSD.ORG Sun Jun 27 02:48:28 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3AFF916A4CE for ; Sun, 27 Jun 2004 02:48:28 +0000 (GMT) Received: from pinky.otenet.gr (pinky.otenet.gr [195.170.0.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85FFD43D3F for ; Sun, 27 Jun 2004 02:48:26 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a032.otenet.gr [212.205.215.32]) i5R2lkk5013794; Sun, 27 Jun 2004 05:47:53 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.11/8.12.11) with ESMTP id i5R2lYwc003280; Sun, 27 Jun 2004 05:47:34 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.11/8.12.11/Submit) id i5R2lTQq003279; Sun, 27 Jun 2004 05:47:29 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 27 Jun 2004 05:47:29 +0300 From: Giorgos Keramidas To: Matt Navarre Message-ID: <20040627024729.GA3240@gothmog.gr> References: <40DE239C.8090401@cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40DE239C.8090401@cox.net> cc: Iain Dooley cc: freebsd-questions@freebsd.org Subject: Re: Updating source code manually X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2004 02:48:28 -0000 On 2004-06-26 18:32, Matt Navarre wrote: > Iain Dooley wrote: > > > >1) i received a small patch for Kate (K Advanced Text Editor) from > >one of the developers, how can i compile this new code into the binary? > > You could run make extract from whichever kde* port Kate is installed > from (kdebase, I think), cd into the work directory, apply the patch, > and then run make install clean as normal. It should work if the patch > applies cleanly. > > I think you can also put the patch in the files directory (in the > port's dir), and give it the right naming convention and the ports > magic will apply it. See the Porters Handbook for more info. If the patch has been prepared to apply cleanly from the top level directory of the extracted source tree, than putting it in files/patch-zz-local or something like that will let the ports "magic" find it and apply it as part of the port build process. > It would be cool if there was an easy way to apply a local hack to a > port auto-magicaly. There is... just put your patches in files/patch-* files. Make sure that if they are sorted alphabetically, their order is correct, i.e. if you have two patches name them patch-zz-local-1 and patch-zz-local-2 or similar -- this way they will be applied *after* any existing port patches (because of the -zz- part) and local-1 will be applied before local-2 ensuring the order you want to use. - Giorgos