From owner-freebsd-questions@FreeBSD.ORG Wed Oct 14 23:18:06 2009 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BE2D1065670 for ; Wed, 14 Oct 2009 23:18:06 +0000 (UTC) (envelope-from vinny-mail-01+f.questions20091014@palaceofretention.ca) Received: from www.giovannetti.ca (www.giovannetti.ca [206.248.136.48]) by mx1.freebsd.org (Postfix) with ESMTP id 54F268FC2A for ; Wed, 14 Oct 2009 23:18:06 +0000 (UTC) Received: from the.palaceofretention.ca (unknown [192.168.68.3]) by www.giovannetti.ca (Postfix) with ESMTPSA id D122B229E0 for ; Wed, 14 Oct 2009 19:06:15 -0400 (EDT) Message-ID: <4AD65812.20303@palaceofretention.ca> Date: Wed, 14 Oct 2009 19:00:34 -0400 From: Vinny User-Agent: Thunderbird 2.0.0.22 (X11/20090714) MIME-Version: 1.0 To: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Experiencing blank @pkgdep entries X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2009 23:18:06 -0000 Hi, I tried to do some port maintenance, specifically, updating python and its ports to 2.6. I used the instructions in UPDATING for portmaster: 20090608: AFFECTS: users of lang/python* and py-* AUTHOR: miwi@FreeBSD.org The default version of Python has been changed from 2.5.x to 2.6.x. ... # portmaster -o lang/python26 lang/python25 I did not retain 2.5 as the default, so I did not create the make.conf variable entry, nor did I run the 'portupgrade -R python' command (I deduced the portupgrade -R command was for those who wish to retain 2.5, was that correct?). Anyway, I ran: # cd /usr/ports/lang/python && make upgrade-site-packages -DUSE_PORTMASTER Aside: From memory, I saw some complaints about libtool15/22 pass by. Must one follow the UPDATING's timeline in reverse when doing an upgrade that might touch many files? I.e. should I have run the libtool/libtldl upgrade before python's? To continue: It chugged along (while annoyingly asking me about deleting distfiles) until it hung on a fetch (net issues). I hit CTRL-C and reran the above make command. It continued and ended after a while with a status report of quite a few update failures with 'uninstall errors'. These were due to pkg_delete or 'make deinstall' dumping core on blank @pkgdep lines in various ports' +CONTENTS files. These blank pkgdep entries weren't there before I started the upgrade process, as evidenced by my current backup of the /var/db/pkg database, which has no blank entries in any +CONTENTS files. I got a nice command line from the net somewhere: grep -E '^@(pkgdep|name)[[:space:]]*$' /var/db/pkg/*/+CONTENTS I don't believe hitting CTRL-C during the fetch could have caused ALL these blank @pkgdep lines. There were upwards of 50 ports with this problem after running the make commands. Is this a know problem? I've only seen a couple of threads and they were one-off's (i.e. one port affected only). I restored from backup, but I'd still like to upgrade python. Hopefully, I can achieve this without corrupting my port databases. Anyone have any information or comments? Thanks a lot! Vinny