From owner-freebsd-ports@FreeBSD.ORG Fri Aug 15 17:14:58 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7958267C for ; Fri, 15 Aug 2014 17:14:58 +0000 (UTC) Received: from qmta01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:16]) by mx1.freebsd.org (Postfix) with ESMTP id 222162CB8 for ; Fri, 15 Aug 2014 17:14:57 +0000 (UTC) Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74]) by qmta01.westchester.pa.mail.comcast.net with comcast id f5Aw1o0011c6gX8515EwBa; Fri, 15 Aug 2014 17:14:56 +0000 Received: from kirby.cyberbotx.com ([107.5.48.95]) by omta23.westchester.pa.mail.comcast.net with comcast id f5Et1o00d23DSHF3j5EwD8; Fri, 15 Aug 2014 17:14:56 +0000 Message-ID: <53EE400A.2080706@cyberbotx.com> Date: Fri, 15 Aug 2014 13:14:51 -0400 From: Naram Qashat User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: papowell@astart.com, freebsd-ports@freebsd.org Subject: Re: Does pkg automatically download INDEX? References: <53DE7266.5000606@cyberbotx.com> <53DE8623.1090208@infracaninophile.co.uk> <53DE8EBD.4090303@cyberbotx.com> <53DE934C.101@FreeBSD.org> <53DE9B38.2000805@cyberbotx.com> <53DEEB93.8010208@cyberbotx.com> <20140804021418.GE1228@albert.catwhisker.org> <53DF69ED.4040700@cyberbotx.com> <20140804112821.GF1228@albert.catwhisker.org> <53E56488.1070104@cyberbotx.com> <53E6C7A9.30104@cyberbotx.com> <53EA58C5.6020509@astart.com> In-Reply-To: <53EA58C5.6020509@astart.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1408122896; bh=k0JkOs0M4dPBx+v7gYbBtEN8sx94veM+Ge7/fDLvruc=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=OgS06T2e2kIoglcYD2YvgT3mkDifT2626K/E8ogG1YCVggCd1KtWyiBbn+C+QbuKU qcyGSCaLyAexjxQvwaO/lTBKaK9d8s47iMt+WoD6R3l7ieBogbHb50waPCELx3a1lo vs6CuYo0/oE4gS6dlBUkiPk290LQ8/ij05i5+7KyAfaGcv5OCgm5m+wpKVj7ca5250 zS9xTW+klhN/Y0BIwfMGDSa7Ffn+4RvtKJkJeZoNyHNaUxqv7zB5AE6NM9QCTyV6MC i0n3HsuHgx1/x27skjFgMLEH6bx3qLVLgxkyn9Nsra+4VGAXz9FqwAit37Vb3XcuVL FrQ37uLLE919g== X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2014 17:14:58 -0000 On 08/12/14 14:11, Patrick Powell wrote: > On 08/09/14 18:15, Naram Qashat wrote: >> On 08/09/14 19:45, Scot Hetzel wrote: >>> On Fri, Aug 8, 2014 at 7:00 PM, Naram Qashat wrote: >>>> On 08/04/14 07:28, David Wolfskill wrote: >>>>> >>>>> On Mon, Aug 04, 2014 at 07:09:33AM -0400, Naram Qashat wrote: >>>>>> >>>>>> On 08/03/14 22:14, David Wolfskill wrote: >>>>>>> >>>>>>> On Sun, Aug 03, 2014 at 10:10:27PM -0400, Naram Qashat wrote: >>>>>>>> >>>>>>>> ... >>>>>>>> If there is >>>>>>>> a way to find out when any process is attempting to modify a file, that >>>>>>>> would >>>>>>>> probably help me narrow it down, but I'm not aware of anything that can >>>>>>>> do that, >>>>>>>> ... >>>>>>> >>>>>>> >>>>>>> Well, "chflags schg /usr/ports/INDEX*" would *prevent* the modification >>>>>> >>>>>> ... >>>>>> This was a really good suggestion..... >>>>> >>>>> >>>>> Glad to help. :-) >>>>> >>>>> Peace, >>>>> david >>>> >>>> >>>> OK, so while no programs have whined or complained, I get the feeling that >>>> something on my system is running portsnap without my knowledge. When I had >>>> set the schg flag on INDEX-9, an INDEX-9.bz2 file came up. I set the schg >>>> flag on that as well, and now I notice there are a bunch of files called >>>> .fetch.??????.INDEX-9.bz2 (where ?????? is a random string), as well as a >>>> file called .portsnap.INDEX. As far as I know, I don't have anything >>>> configured to run portsnap, but is there something that defaults to running >>>> portsnap occasionally? I couldn't find anything that would do that. >>>> >>> >>> Do your have a crontab entry that is running portsnap with the -I >>> (update INDEX) option? >>> >>> http://www.pl.freebsd.org/doc/handbook/portsnap.html >> >> As far as I can tell, no, none of my crontabs have any references to portsnap >> in them. This is making me a bit stumped as to why it would be happening. I >> checked the main /etc/crontab, I checked the crontabs in /var/cron/tabs. I >> have searched inside of /etc and /usr/local/etc for anything related to >> portsnap. Nothing that would be doing this is coming up at all. >> >> Thanks, >> Naram Qashat >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >> > I ran into something similar once, and found out what was happening this way. > > 1. replace the portsnap executable with a shell script. Rename portsnap to > something > like /usr/sbin/portsnap.orig > 2. This shell script should dump the current ENV and other stuff to a log file. > Don't forget to put in a timestamp. > And then do: > exec /usr/sbin/portsnap.orig $* > > I did this and found that there was something in one of the .login scripts. > Grrrr... I really liked this suggestion, and did just that. Unfortunately, it seems that portsnap may not be the culprit here, as I haven't had any log files created from my modified script nor is there a .portsnap.INDEX file being created after I deleted the one that was there, but I still have a bunch of .fetch.??????.INDEX-9.bz2 files in /usr/ports. I've been trying to search for anything on my system that even references INDEX-9, but I can't find anything else that would cause this to happen. Thanks, Naram Qashat