From owner-freebsd-ports@FreeBSD.ORG Tue Jan 22 13:19:26 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A69DD499 for ; Tue, 22 Jan 2013 13:19:26 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from winston.madpilot.net (winston.madpilot.net [78.47.75.155]) by mx1.freebsd.org (Postfix) with ESMTP id 5A14834E for ; Tue, 22 Jan 2013 13:19:26 +0000 (UTC) Received: from winston.madpilot.net (localhost [127.0.0.1]) by winston.madpilot.net (Postfix) with ESMTP id 3Yr9Fl6h93zFTSn; Tue, 22 Jan 2013 14:19:23 +0100 (CET) X-Virus-Scanned: amavisd-new at madpilot.net Received: from winston.madpilot.net ([127.0.0.1]) by winston.madpilot.net (winston.madpilot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jyKPvrj8NWyw; Tue, 22 Jan 2013 14:19:22 +0100 (CET) Received: from vwg82.hq.ignesti.it (unknown [80.74.176.55]) by winston.madpilot.net (Postfix) with ESMTPSA; Tue, 22 Jan 2013 14:19:22 +0100 (CET) Message-ID: <50FE91DB.1070702@madpilot.net> Date: Tue, 22 Jan 2013 14:19:23 +0100 From: Guido Falsi User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130115 Thunderbird/17.0.2 MIME-Version: 1.0 To: Oliver Lehmann Subject: Re: portsnap - overwrite local changes References: <20130122131026.Horde.7qCMctAArqe-64q8vD2RTA1@avocado.salatschuessel.net> <50FE859B.7010607@madpilot.net> <20130122140038.Horde.8nr2dFTy5nEGcYtN8VWTjA6@avocado.salatschuessel.net> In-Reply-To: <20130122140038.Horde.8nr2dFTy5nEGcYtN8VWTjA6@avocado.salatschuessel.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2013 13:19:26 -0000 On 01/22/13 14:00, Oliver Lehmann wrote: > > Guido Falsi wrote: > >> If you use small modifications on a ingle system(or just a few) you >> could track the ports tree with subversion, which will be happy to >> keep and try to merge your local modifcations. You can also diff and >> revert your modifications using it, which can be quite handy. >> >> Disvantage is you will sometime need to merge conflicts which could >> require you to study subversion more than what you really want. > > Ok, subversion came also to my mind but I guess portsnap is faster then > svn is. The thing with svn is, that I would always need to examine the > logs if there where conflicts generated. > > I don't want to keep my local changes. I would like to have command > which just gets me a 1:1 copy of the "current" ports tree and deletes > or overwrites my local changes. There is nothing I want to get merged. Ok, I misunderstood your problem then. I think your best bet is deleting the old tree and extracting it again with portsnap, this would not be very fast though. If you use zfs you could leverage it, using snapshots and clones. You could snapshot the official tree, clone it, modify the cloned one(munted in /usr/ports) and when you upgrade destroy the clone and create a new clone from the updated official tree, which would be clean without local modifications. subversion could help too. You could perform a "svn revert -R ." followed by svn up. This would be faster than "rm -r * && portsnap extract" (done in /usr/ports, obviously) -- Guido Falsi