From owner-freebsd-questions@FreeBSD.ORG Fri Mar 19 16:57:56 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6985F1065676 for ; Fri, 19 Mar 2010 16:57:56 +0000 (UTC) (envelope-from jhelfman@e-e.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [64.156.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 5083E8FC24 for ; Fri, 19 Mar 2010 16:57:55 +0000 (UTC) Received: from eggman.experts-exchange.com (unknown [72.29.180.81]) by mail.experts-exchange.com (Postfix) with ESMTP id 2442F4A2E703; Fri, 19 Mar 2010 08:51:34 -0800 (PST) Received: by eggman.experts-exchange.com (sSMTP sendmail emulation); Fri, 19 Mar 2010 09:56:12 -0700 Date: Fri, 19 Mar 2010 09:56:12 -0700 From: Jason To: Alejandro Imass Message-ID: <20100319165607.GH45355@eggman.experts-exchange.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 7.2-RELEASE-p7 X-Living-The-Dream: I love the SLO Life! User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@freebsd.org Subject: Re: Elegant way to hack port source X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2010 16:57:56 -0000 You can do it this way in the ports system: http://www.freebsd.org/doc/en/books/porters-handbook/slow-patch.html I handle all my patching for ports this way. -jgh On Fri, Mar 19, 2010 at 12:35:30PM -0400, Alejandro Imass thus spake: >Hi, > >I need to modify a file from a port before building. Specifically, the >sane-backends pnm.c driver has a bug and the folks at the original >project has not fixed for a while. I need to modify pnm.c in the work >directory before compiling. What is an elegant way of doing this? If I >make and then modify, the main make file does not see the change made >in the file and will not recompile. And since there is no actual >makefile in the work subdirectory I can't compile there either! > >There must be a FreeBSD way of dealing with modifying a port source >before compiling. Please advise. > >Thanks in advance, >Alejandro Imass >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >