From owner-freebsd-ports@FreeBSD.ORG Thu Sep 29 06:32:40 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 AA2D716A420 for ; Thu, 29 Sep 2005 06:32:40 +0000 (GMT) (envelope-from neuhauser@sigpipe.cz) Received: from isis.sigpipe.cz (fw.sigpipe.cz [62.245.70.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35BE743D5A for ; Thu, 29 Sep 2005 06:32:35 +0000 (GMT) (envelope-from neuhauser@sigpipe.cz) Received: by isis.sigpipe.cz (Postfix, from userid 1001) id 08B5D1F87BED; Thu, 29 Sep 2005 08:32:35 +0200 (CEST) Date: Thu, 29 Sep 2005 08:32:34 +0200 From: Roman Neuhauser To: Eric Schuele Message-ID: <20050929063234.GA397@isis.sigpipe.cz> Mail-Followup-To: Eric Schuele , ports@freebsd.org, Brian Kee References: <433B558D.8000204@computer.org> <34bd754105092820056ab6f73d@mail.gmail.com> <433B6870.7070802@computer.org> <433B558D.8000204@computer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <433B6870.7070802@computer.org> <433B558D.8000204@computer.org> User-Agent: Mutt/1.5.9i 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 06:32:40 -0000 # 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. > 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. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991