Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Sep 2005 18:05:08 -0500
From:      Brian Kee <brianakee@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Makefile: Trouble with EXTRA_PATCHES
Message-ID:  <34bd754105090816056787df26@mail.gmail.com>
In-Reply-To: <34bd7541050908152822793651@mail.gmail.com>
References:  <34bd7541050908152822793651@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Well, I found a fairly simple solution the problem. If I manually modify th=
e=20
patch file and add the correct relative path to the file listing in the top=
=20
couple of lines within the patch file.=20
 e.g.
 -- filetopatch.c
changed to
-- src/filetopatch.c
 the problem corrects itself.=20
 So, I now have two options.=20
1. I can contact the maintainer of this patch and have him make these=20
corrections.
2. Somehow figure out how to directly modify this file from within the=20
Makefile.
 Any suggestions on how this can be accomplished within the Makefile?
Maybe a post-extract or pre-patch command? I see some referenced command=20
within bsd.port.mk <http://bsd.port.mk>, but I do not see them defined=20
anywhere.

 On 9/8/05, Brian Kee <brianakee@gmail.com> wrote:=20
>=20
> I am trying to modify a Makfile to add a specific patch that is contained=
=20
> within a gzipped tarball. I can get the file downloaded, and unpacked and=
=20
> defined within the Makefile. What I cannot do is get the patch to apply. =
The=20
> make procedure keeps asking me what file to patch:=20
>  =3D=3D=3D> Patching for <package>
> =3D=3D=3D> Applying extra patch=20
> /usr/ports/catagory/package/work/path/to/patch/file.patch=20
> File to patch:=20
>  I know the full path to the file that needs to be patched, but how can I=
=20
> tell make how to do this automatically.=20
>  Thank You,
> Brian A. Kee
>



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