Date: Wed, 28 Sep 2005 22:05:53 -0500 From: Brian Kee <brianakee@gmail.com> To: Eric Schuele <e.schuele@computer.org> Cc: ports@freebsd.org Subject: Re: Need help with patching a file in a new port.... Message-ID: <34bd754105092820056ab6f73d@mail.gmail.com> In-Reply-To: <433B558D.8000204@computer.org> References: <433B558D.8000204@computer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I believe that the top of the patch file will need the relative path to the file that you want to patch. I remember running into somthing similar a while back. I do not maintain the patch file, so I have to do something like the following to fix the problem: EXTRA_PATCHES+=3D ${WRKDIR}/<patch_file.diff> pre-patch: ${MV} ${WRKDIR}/sguil-0.5.3/sensor/snort_mods/2_1/spp_portscan_sguil.patch ${EXTRA_PATCHES} ${SED} -i .orig -e s,original/patchfile/name.c,path/to/new/name.c, ${EXTRA_PATCHES} I know that it is not pretty, but it got the job done! HTH BAK On 9/28/05, Eric Schuele <e.schuele@computer.org> wrote: > > Hello, > > I'm having slight difficulty creating a patch for a file in a new port...= . > > I have unpacked the source. It merely needs a path changed in the > Makefile. So I fixed it, and created a port for it. However, the patch > I made fails to apply. I get the message: > > "File to patch: " > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34bd754105092820056ab6f73d>