From owner-freebsd-questions@FreeBSD.ORG Fri Mar 19 16:44:59 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 E3ADD106564A for ; Fri, 19 Mar 2010 16:44:59 +0000 (UTC) (envelope-from amijaresp@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id 7A23F8FC27 for ; Fri, 19 Mar 2010 16:44:59 +0000 (UTC) Received: by fxm24 with SMTP id 24so626921fxm.3 for ; Fri, 19 Mar 2010 09:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=6TQD3iSRwwIt2ei2t/Cd1lB1q8hWs5/9rz+2Dx5MSVQ=; b=JyaHjFistrM9Q7s0KWFaT1o/GprfGt46QUDxiNT1SXBk/eMJ5BAzCPRKWni2uj4bSN RJHpV9lbUmq6rVzPahaxtZM4rbdRTc2TPil5+lkPsIt8EB8rsRXVXKDQG8gZWpwTNGaR M+u+z2Kc74YnaTuFFAq9eAv4T35orCt/v00Ds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=KF1iW3CICEqOnzXOGQG8jl/pS++U1UAAF49FMcx7GdvnZUuCrRwdZeZieCz7YA+U+T 9QAJAPR7/oEPhc0ZPiP94+PPHawgPyOeUIA9BYxEjmlv289nCnvb6AUjGlbpW7mpxoFZ rfdpXu+AHTuir8sFw/d17hXC2nnLJzrfQh0ck= MIME-Version: 1.0 Received: by 10.239.142.20 with SMTP id e20mr1560184hba.70.1269017097894; Fri, 19 Mar 2010 09:44:57 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Mar 2010 12:14:57 -0430 Message-ID: <286906751003190944q4ad81a6eu5422af0409e30046@mail.gmail.com> From: Alberto Mijares To: Alejandro Imass Content-Type: text/plain; charset=UTF-8 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:45:00 -0000 On Fri, Mar 19, 2010 at 12:05 PM, Alejandro Imass wrote: > 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! You could make a copy of graphics/sane-backends to graphics/sane-backends-devel, fix the source in the new port's directory and install it as a regular port. Check this out too http://www.freebsd.org/doc/en/books/porters-handbook/ Best regards Alberto Mijares