From owner-freebsd-ports@FreeBSD.ORG Thu Sep 8 23:05:09 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C22F816A41F for ; Thu, 8 Sep 2005 23:05:09 +0000 (GMT) (envelope-from brianakee@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1195343D45 for ; Thu, 8 Sep 2005 23:05:08 +0000 (GMT) (envelope-from brianakee@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so1697955wra for ; Thu, 08 Sep 2005 16:05:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=GmGW8H15x9vXuIrG2rFntVuo4ifiy+k2rOUv59Pg8urA3YVAakOf73Z1UhZvb51ZJjiv3rA4mKvilfIzcENFJj48DCIX/vp1WNKYIiIy2uI4sWBgw83X8kCnBy4jP5pVz41wxsF07m6UjWgSU4ohHVGt80pSMxddEnjRdEtMYB4= Received: by 10.54.56.20 with SMTP id e20mr5257wra; Thu, 08 Sep 2005 16:05:08 -0700 (PDT) Received: by 10.54.94.16 with HTTP; Thu, 8 Sep 2005 16:05:08 -0700 (PDT) Message-ID: <34bd754105090816056787df26@mail.gmail.com> Date: Thu, 8 Sep 2005 18:05:08 -0500 From: Brian Kee To: freebsd-ports@freebsd.org In-Reply-To: <34bd7541050908152822793651@mail.gmail.com> Mime-Version: 1.0 References: <34bd7541050908152822793651@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Makefile: Trouble with EXTRA_PATCHES X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2005 23:05:10 -0000 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 , but I do not see them defined=20 anywhere. On 9/8/05, Brian Kee 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 > =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 >