From owner-freebsd-ports@freebsd.org Sat Jan 7 00:16:30 2017 Return-Path: <owner-freebsd-ports@freebsd.org> Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF4F2CA3B53 for <freebsd-ports@mailman.ysv.freebsd.org>; Sat, 7 Jan 2017 00:16:30 +0000 (UTC) (envelope-from michelle@sorbs.net) Received: from hades.sorbs.net (mail.sorbs.net [67.231.146.200]) by mx1.freebsd.org (Postfix) with ESMTP id A0FC016AC for <freebsd-ports@freebsd.org>; Sat, 7 Jan 2017 00:16:29 +0000 (UTC) (envelope-from michelle@sorbs.net) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from C02LJ0HMFFT4.corp.proofpoint.com (static.belong.com.au [141.168.241.229]) by hades.sorbs.net (Oracle Communications Messaging Server 7.0.5.29.0 64bit (built Jul 9 2013)) with ESMTPSA id <0OJD002YIVT1JA50@hades.sorbs.net> for freebsd-ports@freebsd.org; Fri, 06 Jan 2017 16:24:39 -0800 (PST) Subject: Re: portsnap temporary files To: Dave Horsfall <dave@horsfall.org>, FreeBSD Ports <freebsd-ports@freebsd.org> References: <alpine.BSF.2.20.1701070651050.86981@aneurin.horsfall.org> <20170106223050.0fcbed48@raksha.tavi.co.uk> <CAJuc1zMVBfHo2eL5dKH8=ZkwSzsaLK=wywuV1B0r4kcOE+_UYg@mail.gmail.com> <alpine.BSF.2.20.1701071023560.86981@aneurin.horsfall.org> From: Michelle Sullivan <michelle@sorbs.net> Message-id: <ef84c6ee-6054-a12c-bd48-475f61d63a7f@sorbs.net> Date: Sat, 07 Jan 2017 11:16:06 +1100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 In-reply-to: <alpine.BSF.2.20.1701071023560.86981@aneurin.horsfall.org> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-ports>, <mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports/> List-Post: <mailto:freebsd-ports@freebsd.org> List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-ports>, <mailto:freebsd-ports-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sat, 07 Jan 2017 00:16:30 -0000 Dave Horsfall wrote: > (Many responses) > > I note that no-one has answered the question which caused me to post the > message in the first place viz: why weren't the files being removed > automatically? Everyone appears to have missed this point... > I didn't and some of the answers are helpful even if not answering the original. "portsnap fetch" - I wasn't aware it removed the old files at the beginning, but will take the other poster's word for that (especially after checking the remaining few remaining systems I have on FreeBSD would seem to indicate it as a fact)... however "rm -r /var/db/portsnap && portsnap fetch" is an easy way to clean everything up... if you think it's not working correctly. The index file you will have is: /var/db/portsnap/INDEX It is possible this was deleted/replaced at some time thereby losing the mapping of the files... perhaps a working directory failure (out of space etc).. but that should be fixed at every successful fetch as it finishes with the following lines of code: # Move files into their proper locations rm -f tag INDEX tINDEX rm -rf files mv tag.new tag mv tINDEX.new tINDEX mv INDEX.new INDEX mv snap/ files/ ('snap' being created new everytime).. The other part you might not be considering is that the files have to be cleaned up on the portsnap server (snapshot builder) itself... but again looking at code it should 'just work' - unless someone has tampered with it since I downloaded it all and setup my own server... Regards, Michelle