From owner-freebsd-ports@FreeBSD.ORG Sun May 13 01:06:24 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D78E9106564A for ; Sun, 13 May 2012 01:06:24 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 89D658FC08 for ; Sun, 13 May 2012 01:06:24 +0000 (UTC) Received: by obcni5 with SMTP id ni5so7057968obc.13 for ; Sat, 12 May 2012 18:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=Emy2XJoQ3qdW78uOUTv+rDJtANfj+WTqTUV0+fRtr5k=; b=hgj/lYPGJLbg/r55fVSVh4WiLJNYguXBaLhcx4dLVjqtqGaEDE9fU0FRui+fs4lmlU +YQDTMhXXcVTlR2XVoHNyVnLgFa1ZAQ2f5WH8U9jd1k1oMPmuR5hb5TcbQBbEeSHAL7y tgSbVJHxWPCewBY4ruwL6NKnqYwQtgsEJ/XzU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=Emy2XJoQ3qdW78uOUTv+rDJtANfj+WTqTUV0+fRtr5k=; b=LzWN8TUO0aMxDfUWaRCasP5EHJuXKAupY3rJaGu7oVLTGu/rdfJ+vVjB5gOh72p66S Al+bzFMdQ+b7VVXyuwvlLYbwL4/aa3fiRdXmPfIu6bnTSEI3tu9YuiRwd9gzvT2vt/fq 7A/8d/hpi54ng7qTWjXclQQNU/mRTgNE7XWE3CSwfnn/hwPR7wnqJBiWc6aNFrO8BZt+ teprXdBgcg4cbKyL9PTFJN+IHzdg0sppvlH6B+WQPUdwxA5yfu7R9kbvkySstLaQgZQC Mr1Q3kyHv0AMWPnIYtKE4giT+192IrZgA26Y4ctuzfIWwRiGKQclMPv9579snwjw0MOV ZW1Q== Received: by 10.50.153.132 with SMTP id vg4mr1611701igb.2.1336871183709; Sat, 12 May 2012 18:06:23 -0700 (PDT) Received: from DataIX.net (24-247-238-117.dhcp.aldl.mi.charter.com. [24.247.238.117]) by mx.google.com with ESMTPS id k6sm10871105igw.14.2012.05.12.18.06.22 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 May 2012 18:06:23 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q4D16KHl099803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 May 2012 21:06:21 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q4D16KMJ097772; Sat, 12 May 2012 21:06:20 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Sat, 12 May 2012 21:06:20 -0400 From: Jason Hellenthal To: Stephen Montgomery-Smith Message-ID: <20120513010619.GA6515@DataIX.net> References: <20398.43728.425481.287491@jerusalem.litteratus.org> <4FAEF150.5070202@missouri.edu> <4FAEF2E0.50806@missouri.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FAEF2E0.50806@missouri.edu> X-Gm-Message-State: ALoCoQk064/oCwuCt1Y5ntQnnZXKnY9La1hs//Z4qyUguo37tg/6ZM8dwKki3oxchxXA3GKwT1Gv Cc: ports@freebsd.org, Robert Huff 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: Sun, 13 May 2012 01:06:25 -0000 On Sat, May 12, 2012 at 06:31:44PM -0500, Stephen Montgomery-Smith wrote: > 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? > You would probably get the same message from: mkdir /var/db/pkg/Source pkg_delete Source Try it out! -- - (2^(N-1))