From turutani@polymer3.scphys.kyoto-u.ac.jp  Sat Apr 21 05:15:41 2007
Return-Path: <turutani@polymer3.scphys.kyoto-u.ac.jp>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id D2EAA16A403
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Apr 2007 05:15:41 +0000 (UTC)
	(envelope-from turutani@polymer3.scphys.kyoto-u.ac.jp)
Received: from polymer3.scphys.kyoto-u.ac.jp (polymer3.scphys.kyoto-u.ac.jp [130.54.55.55])
	by mx1.freebsd.org (Postfix) with ESMTP id 691D713C487
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Apr 2007 05:15:41 +0000 (UTC)
	(envelope-from turutani@polymer3.scphys.kyoto-u.ac.jp)
Received: from polymer3.scphys.kyoto-u.ac.jp (localhost [127.0.0.1])
	by polymer3.scphys.kyoto-u.ac.jp (8.14.1/8.14.1/20070410-1) with ESMTP id l3L5FXK5010824;
	Sat, 21 Apr 2007 14:15:33 +0900 (JST)
	(envelope-from turutani@polymer3.scphys.kyoto-u.ac.jp)
Received: (from turutani@localhost)
	by polymer3.scphys.kyoto-u.ac.jp (8.14.1/8.14.1/Submit) id l3L5FXkV010823;
	Sat, 21 Apr 2007 14:15:33 +0900 (JST)
	(envelope-from turutani)
Message-Id: <200704210515.l3L5FXkV010823@polymer3.scphys.kyoto-u.ac.jp>
Date: Sat, 21 Apr 2007 14:15:33 +0900 (JST)
From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Reply-To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: restoring package fails with portupgrade.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         111977
>Category:       ports
>Synopsis:       restoring package fails with portupgrade.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sem
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 21 05:20:02 GMT 2007
>Closed-Date:    Sat Jan 12 18:40:18 UTC 2008
>Last-Modified:  Sat Jan 12 18:40:18 UTC 2008
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD polymer3.scphys.kyoto-u.ac.jp 6.2-STABLE FreeBSD 6.2-STABLE #6: Thu Apr 19 11:11:18 JST 2007 turutani@polymer3.scphys.kyoto-u.ac.jp:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386


	
>Description:
	with portupgrade installed by ports-mgmt/portupgrade,
	restoring a package when portupgrade fails with some cases.
	
>How-To-Repeat:
	portupgrade astro/google-earth with /compat/linux/usr/X11R6/lib/libGL.so.1
	missing:
	% portupgrade google-earth-4.0.2414	
	...
	===>   google-earth-4.0.2735 depends on file: /compat/linux/usr/X11R6/lib/libGL.so.1 - not found
	===>    Verifying reinstall for /compat/linux/usr/X11R6/lib/libGL.so.1 in /usr/ports/graphics/linux_dri
	===>  Installing for linux_dri-6.5
	===>   linux_dri-6.5 depends on file: /compat/linux/etc/fedora-release - found
	===>   linux_dri-6.5 depends on file: /compat/linux/usr/X11R6/lib/libXrender.so.1 - found
	===>   Generating temporary packing list
	===>  Checking if graphics/linux_dri already installed
	===>   linux_dri-6.5 is already installed
	      You may wish to ``make deinstall'' and install this port again
	      by ``make reinstall'' to upgrade it properly.
	      If you really wish to overwrite the old port of graphics/linux_dri
	      without deleting it first, set the variable "FORCE_PKG_REGISTER"
	      in your environment or the "make install" command line.
	*** Error code 1
	
	Stop in /usr/ports/graphics/linux_dri.
	*** Error code 1
	
	Stop in /usr/ports/graphics/linux_dri.
	*** Error code 1
	
	Stop in /usr/ports/astro/google-earth.
	*** Error code 1
	
	Stop in /usr/ports/astro/google-earth.
	** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.20716.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=google-earth-4.0.2414 UPGRADE_PORT_VER=4.0.2414 make reinstall
	** Listing the failed packages (*:skipped / !:failed)
	        ! astro/google-earth (google-earth-4.0.2414)    (Failed to rewrite /var/db/pkg/google-earth-4.0.2414/+CONTENTS: No such file or directory - /var/db/pkg/
	google-earth-4.0.2414/+CONTENTS)
	--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
	** Could not clean up temporary directory: Directory not empty - /var/tmp/portupgradeyLiVJijp

	
>Fix:
	I do not know.
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sem 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Apr 21 05:30:18 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111977 

From: Sergey Matveychuk <sem@FreeBSD.org>
To: bug-followup@FreeBSD.org,  turutani@scphys.kyoto-u.ac.jp
Cc:  
Subject: Re: ports/111977: restoring package fails with portupgrade.
Date: Tue, 21 Aug 2007 19:37:01 +0400

 What if you upgrade linux_dri port first? Or use portupgrade -R 
 google-earth.
 
 -- 
 Dixi.
 Sem.

From: Sergey Matveychuk <sem33@yandex-team.ru>
To: bug-followup@FreeBSD.org, turutani@scphys.kyoto-u.ac.jp
Cc:  
Subject: Re: ports/111977: restoring package fails with portupgrade.
Date: Tue, 21 Aug 2007 19:35:46 +0400

 What if you upgrade linux_dri first?
 
 -- 
 Сергей Матвейчук
 NOC
 72-77

From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: bug-followup@FreeBSD.org, Sergey Matveychuk <sem@FreeBSD.org>
Cc:  
Subject: Re: ports/111977: restoring package fails with portupgrade.
Date: Wed, 22 Aug 2007 14:02:07 +0900

 I have already installed both manually.
 I think, when upgrading depended package(s) fails,
 portupgrade should restore the original (depending) package.
 Message shows some files was lost unexpectedly.
 Is it an expected behaviour of portupgrade ?
 I saw this phenomena many times about different ports.

From: Sergey Matveychuk <sem@FreeBSD.org>
To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/111977: restoring package fails with portupgrade.
Date: Wed, 22 Aug 2007 11:35:12 +0400

 Tsurutani Naoki wrote:
 > I have already installed both manually.
 > I think, when upgrading depended package(s) fails,
 > portupgrade should restore the original (depending) package.
 > Message shows some files was lost unexpectedly.
 > Is it an expected behaviour of portupgrade ?
 > I saw this phenomena many times about different ports.
 
 Yes, it's a known shortage of portupgrade. It's know nothing about 
 dependencies when you run it without -R switch.
 
 I'd like to fix it. But not so soon. I have almost no free time for last 
 3 months when I changed en employer.
 
 -- 
 Dixi.
 Sem.
State-Changed-From-To: open->closed 
State-Changed-By: sem 
State-Changed-When: Sat Jan 12 18:40:15 UTC 2008 
State-Changed-Why:  
Not portupgrade issue and will be fixed another way 

http://www.freebsd.org/cgi/query-pr.cgi?pr=111977 
>Unformatted:
