Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2010 12:14:57 -0430
From:      Alberto Mijares <amijaresp@gmail.com>
To:        Alejandro Imass <ait@p2ee.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Elegant way to hack port source
Message-ID:  <286906751003190944q4ad81a6eu5422af0409e30046@mail.gmail.com>
In-Reply-To: <a14066a01003190935t4bbef41esc44c60a5b00e6144@mail.gmail.com>
References:  <a14066a01003190935t4bbef41esc44c60a5b00e6144@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 19, 2010 at 12:05 PM, Alejandro Imass <ait@p2ee.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?286906751003190944q4ad81a6eu5422af0409e30046>