From owner-freebsd-questions@FreeBSD.ORG Fri Mar 19 16:35:33 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 6B8671065675 for ; Fri, 19 Mar 2010 16:35:33 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 35EBC8FC1A for ; Fri, 19 Mar 2010 16:35:32 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 5so458645qwi.7 for ; Fri, 19 Mar 2010 09:35:32 -0700 (PDT) MIME-Version: 1.0 Sender: aimass@yabarana.com Received: by 10.229.223.201 with SMTP id il9mr84252qcb.104.1269016530848; Fri, 19 Mar 2010 09:35:30 -0700 (PDT) Date: Fri, 19 Mar 2010 12:35:30 -0400 X-Google-Sender-Auth: 85a7f80f9e9f2750 Message-ID: From: Alejandro Imass To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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:35:33 -0000 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