From owner-freebsd-questions@FreeBSD.ORG Wed May 5 05:23:56 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 397DB16A4CE for ; Wed, 5 May 2004 05:23:56 -0700 (PDT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id F07AB43D4C for ; Wed, 5 May 2004 05:23:55 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (pa-plum1c-102.pit.adelphia.net [24.53.179.102]) by internet.potentialtech.com (Postfix) with ESMTP id 9E3CA69A71; Wed, 5 May 2004 08:23:53 -0400 (EDT) Message-ID: <4098DC9B.6010407@potentialtech.com> Date: Wed, 05 May 2004 08:22:51 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mikkel Christensen References: <200405051211.22184.mikkel@talkactive.net> In-Reply-To: <200405051211.22184.mikkel@talkactive.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Patching ports 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: Wed, 05 May 2004 12:23:56 -0000 Mikkel Christensen wrote: > Hi > > How do I add a patch to a certain port? > Usually I would use the "patch" program to add the patch to the source code. > But when using ports the system begins compiling right after rewtrieving the source. Thus > not giving me a change to apply the patch. > I've seen a folder named "files" in which patches part of the port seem to be located. > But just adding the patchfile here apperently wont do much good. > I've tried using the "PATCHFILES" variable in the Makefile but then the system complains > the my patchfile does not have a matching MD5 hash. > Does anyone know how to handle this issue? The manual way to patch stuff is this: make extract cd work/ cd make "make extract" will fetch the tarball and extract it into the work directory. There you can patch it to your heart's content and return to do "make" when done. You can also do "make patch" instead of "make extract" - this will do the extract step and also apply any patches provided by FreeBSD. It's a matter of whether you want to apply your patches before or after the FreeBSD patches. -- Bill Moran Potential Technologies http://www.potentialtech.com