From owner-freebsd-ports@FreeBSD.ORG Sat May 12 23:31:45 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FB26106564A for ; Sat, 12 May 2012 23:31:45 +0000 (UTC) (envelope-from stephen@missouri.edu) Received: from wilberforce.math.missouri.edu (wilberforce.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 557BE8FC12 for ; Sat, 12 May 2012 23:31:45 +0000 (UTC) Received: from [127.0.0.1] (wilberforce.math.missouri.edu [128.206.184.213]) by wilberforce.math.missouri.edu (8.14.5/8.14.5) with ESMTP id q4CNVieC081795; Sat, 12 May 2012 18:31:44 -0500 (CDT) (envelope-from stephen@missouri.edu) Message-ID: <4FAEF2E0.50806@missouri.edu> Date: Sat, 12 May 2012 18:31:44 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Robert Huff References: <20398.43728.425481.287491@jerusalem.litteratus.org> <4FAEF150.5070202@missouri.edu> In-Reply-To: <4FAEF150.5070202@missouri.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: problem running pkg_delete 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: Sat, 12 May 2012 23:31:45 -0000 On 05/12/2012 06:25 PM, Stephen Montgomery-Smith wrote: > On 05/12/2012 01:24 PM, Robert Huff wrote: >> >> Suddenly I'm getting: >> >> pkg_delete: the package info for package "Source" is corrupt >> >> Any ideas? > > Is it possible that you created a directory by accident inside > /var/db/pkg called "Source"? Also, I am trying to look through the source code in pkg_delete to see what could have created this message. As best as I can tell, this message must have been created by the function matchallbyorigin in /usr/src/usr.sbin/pkg_install/lib/match.c which was called by the function pkg_do in /usr/src/usr.sbin/pkg_install/delete/perform.c. The source code for pkg_do contains the disclaimer "This is seriously ugly code following. Written very fast!" Do you remember at all the command you typed that created this message?