From owner-freebsd-stable@FreeBSD.ORG Fri Sep 17 17:43:10 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE3311065698 for ; Fri, 17 Sep 2010 17:43:10 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 9A9C68FC1E for ; Fri, 17 Sep 2010 17:43:10 +0000 (UTC) Received: from mobileKamikaze.norad (HSI-KBW-078-042-098-160.hsi3.kabel-badenwuerttemberg.de [78.42.98.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 2A74C8A2731; Fri, 17 Sep 2010 19:43:08 +0200 (CEST) Message-ID: <4C93A8AC.1010900@bsdforen.de> Date: Fri, 17 Sep 2010 19:43:08 +0200 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-GB; rv:1.9.1.12) Gecko/20100908 Thunderbird/3.0.7 MIME-Version: 1.0 To: rolle References: <71889.89954.qm@web27203.mail.ukl.yahoo.com> In-Reply-To: <71889.89954.qm@web27203.mail.ukl.yahoo.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: problem pkg_add kdehier4-1.0.6.tbz X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2010 17:43:11 -0000 On 17/09/2010 19:02, rolle wrote: > Hi there, > > Today I tried to update my notebook with pkg_upgrade tool, written by a German bsdforen.de member. > I ran into problems installing "kdehier4-1.0.6" package. > >> pkg_upgrade -a >> ===> Install (lang/perl5.10) >> pkg_upgrade: The package will not be installed in favour >of , because they conflict. >> ===> Install (multimedia/mp4v2) >> pkg_upgrade: The package will not be installed in favour of >, because they conflict. >> ===> Install (misc/kdehier4) >> share/PolicyKit/policy: Could not unlink >> tar: Error exit delayed from previous errors. >> pkg_add: leave_playpen: can't chdir back to '' >> pkg_upgrade: The installation of failed. > > > After delete the old package with pkg_delete kdehier4-1.0.4 > and try installing it by pkg_add kdehier4-1.0.6.tbz the same error occurred. > On the recommendation of kamikaze (the developer of pkg_upgrade) i ask for advice on the list. > > > with kind regards rolle I had a look at src/usr.sbin/pkg_install/lib/pen.c and am confused as to how this error can come to pass: if (chdir(PenLocation) == FAIL) { cleanup(0); errx(2, "%s: can't chdir back to '%s'", __func__, PenLocation); } The way I read this PenLocation must be empty to show up like this. However, a couple of lines before it says: if (!PenLocation[0]) return 0; Which means to me the chdir shouldn't even performed if PenLocation is empty. Regards -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?