From owner-freebsd-questions@FreeBSD.ORG Tue Apr 1 23:34:26 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0C4337B401 for ; Tue, 1 Apr 2003 23:34:26 -0800 (PST) Received: from mf2.bredband.net (mf2.bredband.net [195.54.106.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5278543FDD for ; Tue, 1 Apr 2003 23:34:25 -0800 (PST) (envelope-from mk-freebsd@bredband.net) Received: from localhost.036-23-6f72652.cust.bredbandsbolaget.se ([213.112.58.147]) by mf2.bredband.net with ESMTP <20030402073424.XUME273.mf2@localhost.036-23-6f72652.cust.bredbandsbolaget.se>; Wed, 2 Apr 2003 09:34:24 +0200 Received: from c-933a70d5.036-23-6f72652.cust.bredbandsbolaget.se (localhost [127.0.0.1])with ESMTP id h327YNsc090880; Wed, 2 Apr 2003 09:34:23 +0200 (CEST) (envelope-from mk-freebsd@bredband.net) Received: (from martink@localhost) (8.12.8/8.12.8/Submit) id h327YHTa090788; Wed, 2 Apr 2003 09:34:17 +0200 (CEST) (envelope-from mk-freebsd@bredband.net) Date: Wed, 2 Apr 2003 09:34:17 +0200 From: Martin Karlsson To: David Banning Message-ID: <20030402073417.GA618@c-933a70d5.bredbandsbolaget.se> Mail-Followup-To: Martin Karlsson , David Banning , questions@freebsd.org References: <20030328205433.A99562@skytrackercanada.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20030328205433.A99562@skytrackercanada.com> X-Powered-by: FreeBSD X-PGP-Keyid: 9C924660 X-PGP-Fingerprint: 5970 BE22 2C33 4D8F 53FD 7E34 66FF 9332 9C92 4660 X-PGP-Key: http://www.krutov.org/martin_karlsson.asc User-Agent: Mutt/1.5.4i cc: questions@freebsd.org Subject: Re: adding a patch to a port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 07:34:27 -0000 * David Banning [2003-03-28 20.54 -0500]: > I was given a patch for the dillo port which I don't quite > know how to configure. I wonder how I can take this format and > turn it into something I can use in the port. It seems that most > patches in the ports are separated as individual files while this one > has them in one file. Is there a simple way to reconfigure it > or is a test editor the only way? Hi, If the patch is in one file or many files doesn't really matter. Basically, you would: # cd /usr/ports/www/dillo # make extract # cd work # patch < /full/path/to_patch If everything worked allright, you'll see messages saying that hunk 1 succeded, hunk 2 succeded and so on. Otherwise, hunk 1 failed... # cd .. (placing you in /usr/ports/www/dillo again) make install clean Make sure you have a up-to-date ports tree (i.e. make sure that the dillo port is 7.1, as the patch is for dillo-7.1). Good luck! -- Martin Karlsson