Date: Fri, 17 Sep 2010 19:43:08 +0200 From: Dominic Fandrey <kamikaze@bsdforen.de> To: rolle <v8diemacht@yahoo.de> Cc: freebsd-stable@freebsd.org Subject: Re: problem pkg_add kdehier4-1.0.6.tbz Message-ID: <4C93A8AC.1010900@bsdforen.de> In-Reply-To: <71889.89954.qm@web27203.mail.ukl.yahoo.com> References: <71889.89954.qm@web27203.mail.ukl.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <perl-5.10.1_2> (lang/perl5.10) >> pkg_upgrade: The package <perl-5.10.1_2> will not be installed in favour >of <perl-5.12.1_1>, because they conflict. >> ===> Install <mp4v2-1.9.1> (multimedia/mp4v2) >> pkg_upgrade: The package <mp4v2-1.9.1> will not be installed in favour of ><mpeg4ip-libmp4v2-1.6.1>, because they conflict. >> ===> Install <kdehier4-1.0.6> (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 <kdehier4-1.0.6> 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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C93A8AC.1010900>