From owner-freebsd-ports@FreeBSD.ORG Thu Sep 29 15:01:21 2005 Return-Path: X-Original-To: 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 C1C6E16A41F for ; Thu, 29 Sep 2005 15:01:21 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4739C43D48 for ; Thu, 29 Sep 2005 15:01:21 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from [208.206.151.59] (host59.gtisd.com[208.206.151.59]) by comcast.net (sccrmhc12) with ESMTP id <20050929150114012003p1efe>; Thu, 29 Sep 2005 15:01:17 +0000 Message-ID: <433C01B8.9020403@computer.org> Date: Thu, 29 Sep 2005 10:01:12 -0500 From: Eric Schuele User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050926) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roman Neuhauser References: <433B558D.8000204@computer.org> <34bd754105092820056ab6f73d@mail.gmail.com> <433B6870.7070802@computer.org> <433B558D.8000204@computer.org> <20050929063234.GA397@isis.sigpipe.cz> In-Reply-To: <20050929063234.GA397@isis.sigpipe.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, Brian Kee Subject: Re: Need help with patching a file in a new port.... 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, 29 Sep 2005 15:01:21 -0000 Roman Neuhauser wrote: > # e.schuele@computer.org / 2005-09-28 21:46:37 -0500: > >>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: " > > > # e.schuele@computer.org / 2005-09-28 23:07:12 -0500: > >>The first two lines of my patch-* file (presently, after some messing >>around) look like: >> --- foo-0.1.1/src/Makefile.orig Fri Apr 8 07:17:10 2005 >> +++ foo-0.1.1/src/Makefile Wed Sep 28 21:14:29 2005 > > > Those paths are relative to the directory where patch(1) will be > running. That's ${PATCH_WRKSRC} (same as ${WRKSRC} by default) in > ports. BTW, ${WRKSRC} normally is the top directory in the tarball. > > I'd venture a guess that you need to strip the "foo-0.1.1/" from > the patch paths. There are knobs to coerce third party patches that > aren't relative to ${WRKSRC}, but it's a patch *you* are creating, > so there's no need to complicate the Makefile. Ok... got it. That straightened it out. Thanks! > > >>oh... I'm not determined to be the maintainer of the port... but listed >>myself as such since that's what the instructions said to do. I'm >>willing to be... just didn't know if it was supposed to be *me* or some >>committer. Guess that gets straightened out when I submit it? > > > It's supposed to be you. > -- Regards, Eric