From nobody@FreeBSD.org  Tue Aug 28 08:13:04 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id B7D1D1065676
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2012 08:13:04 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 8B04D8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2012 08:13:04 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7S8D42h065113
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Aug 2012 08:13:04 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q7S8D4ha065112;
	Tue, 28 Aug 2012 08:13:04 GMT
	(envelope-from nobody)
Message-Id: <201208280813.q7S8D4ha065112@red.freebsd.org>
Date: Tue, 28 Aug 2012 08:13:04 GMT
From: Tang Jianfeng <tangjfn@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gcc47 can not upgrade
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         171135
>Category:       ports
>Synopsis:       lang/gcc47 can not upgrade
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gerald
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 28 08:20:02 UTC 2012
>Closed-Date:    Sun Oct 28 19:07:14 UTC 2012
>Last-Modified:  Sun Oct 28 19:07:14 UTC 2012
>Originator:     Tang Jianfeng
>Release:        9.0
>Organization:
>Environment:
FreeBSD vfreebsd 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
gcc47 can't be upgraded.
>How-To-Repeat:
install a new freebsd 9.0, not install any package

portsnap fetch extract

cd /usr/ports/lang/gcc47

make install

it's ok

vi /etc/make.conf
USE_GCC=4.7


cd /usr/ports/pkg_mgmt/portupgrade
make install

it's ok

portupgrade -f gcc47
fail
>Fix:


>Release-Note:
>Audit-Trail:

From: Bryan Drewery <bdrewery@FreeBSD.org>
To: tangjfn@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/171135: gcc47 can not upgrade
Date: Tue, 28 Aug 2012 13:34:11 -0500

 It would help to know exactly what the failure is. Can you provide a log
 please?
 
 Bryan
 
Responsible-Changed-From-To: freebsd-ports-bugs->gerald 
Responsible-Changed-By: bdrewery 
Responsible-Changed-When: Tue Aug 28 19:16:36 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer 

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

From: Bryan Drewery <bdrewery@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/171135: gcc47 can not upgrade
Date: Tue, 28 Aug 2012 14:16:06 -0500

 Received reply in private:
 
 --->  Backing up the old version
 --->  Uninstalling the old version
 --->  Deinstalling 'gcc-4.7.2.20120818'
 --->  Preserving /usr/local/lib/gcc47/libffi.so.4 as
 /usr/local/lib/compat/pkg/libffi.so.4
 --->  Preserving /usr/local/lib/gcc47/libitm.so.1 as
 /usr/local/lib/compat/pkg/libitm.so.1
 .. (Ignore)
 --->  Preserving
 /usr/local/libexec/gcc47/gcc/x86_64-portbld-freebsd9.0/4.7.2/liblto_plugin.so.0
 as /usr/local/lib/compat/pkg/liblto_plugin.so.0
 pkg_delete: package 'gcc-4.7.2.20120818' is required by these other packages
 and may not be deinstalled (but I'll delete it anyway):
 .. (depends packages ignore)
 
  
 --->  Installing the new version via the port
 ===>  Installing for gcc-4.7.2.20120825
 ===>   gcc-4.7.2.20120825 depends on file: /usr/local/bin/as - found
 ===>   gcc-4.7.2.20120825 depends on executable: gcc47 - not found
 ===>    Verifying reinstall for gcc47 in /usr/ports/lang/gcc47
 .. (more than 100)
  
 make: Max recursion level (500) exceeded.
 *** Error code 2
 Stop in /usr/ports/lang/gcc47.
 *** Error code 1
 .. (more than 100)
 Stop in /usr/ports/lang/gcc47.
 ** Command failed [exit code 1]: /usr/bin/script -qa
 /tmp/portupgrade20120829-86031-1bnelv8-0 env UPGRADE_TOOL=portupgrade
 UPGRADE_PORT=gcc-4.7.2.20120818 UPGRADE_PORT_VER=4.7.2.20120818 make
 reinstall
 --->  Restoring the old version
 ** Fix the installation problem and try again.
 
 ** Listing the failed packages (-:ignored / *:skipped / !:failed)
         ! lang/gcc47 (gcc-4.7.2.20120818)       (install error)
State-Changed-From-To: open->feedback 
State-Changed-By: gerald 
State-Changed-When: Mon Oct 15 17:26:03 UTC 2012 
State-Changed-Why:  
I have not been able to find what might be behind this, and there 
are now other reports like this.  Is there anything that might be 
special re your system? 

It looks like an issue specific to that, and if we cannot find 
anything in the port per se, we may have to close this report. 

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

From: Gerald Pfeifer <gerald@pfeifer.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/171135: lang/gcc47 can not upgrade
Date: Mon, 15 Oct 2012 20:07:01 +0200 (CEST)

 On Mon, 15 Oct 2012, gerald@FreeBSD.org wrote:
 > It looks like an issue specific to that, and if we cannot find
 > anything in the port per se, we may have to close this report.
 
 Actually, I believe it is USE_GCC=4.7 in your /etc/make.conf file.
 
 If you remove that, I predict the issue is gone.  Abstractly,
 this requests that lang/gcc47 is built by lang/gcc47 is built
 by lang/gcc47... which is exactly what you have been seeing.
 
 Not sure there is anything we can do about it (or should)
 apart from erroring out?
 
 Gerald
State-Changed-From-To: feedback->closed 
State-Changed-By: gerald 
State-Changed-When: Sun Oct 28 19:06:12 UTC 2012 
State-Changed-Why:  
Closing per previous note. 

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