ports/91209: Problem with portupgrade 2.0
KOMATSU Shinichiro
koma2 at lovepeers.org
Mon Jan 2 10:50:08 UTC 2006
The following reply was made to PR ports/91209; it has been noted by GNATS.
From: KOMATSU Shinichiro <koma2 at lovepeers.org>
To: bug-followup at FreeBSD.org,derwood at naebunny.net,edwin at FreeBSD.org
Cc:
Subject: Re: ports/91209: Problem with portupgrade 2.0
Date: Mon, 2 Jan 2006 19:49:25 +0900 (JST)
Thank you for reporting. I also discovered this problem a few hours ago.
The source of this trouble is that the following line exists in MOVED,
lang/php4|lang/php4|2003-05-22|re-separated from www/mod_php4
where "moved from" and "moved to" is the same,
but portupgrade does not check this case and infinite loop occurs.
Fix to this problem will be in the next portupgrade release,
but in the meanwhile, whould you commit the following patch, please?
Thanks.
diff --exclude=CVS --exclude=*.log* -urN portupgrade.old/Makefile portupgrade/Makefile
--- portupgrade.old/Makefile Mon Jan 2 00:43:35 2006
+++ portupgrade/Makefile Mon Jan 2 19:32:09 2006
@@ -7,7 +7,7 @@
PORTNAME= portupgrade
PORTVERSION= 2.0.0
-PORTREVISION= 0
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= sysutils
MASTER_SITES= http://dists.lovepeers.org/distfiles/portupgrade/
diff --exclude=CVS --exclude=*.log* -urN portupgrade.old/files/patch-lib-portsdb.rb portupgrade/files/patch-lib-portsdb.rb
--- portupgrade.old/files/patch-lib-portsdb.rb Thu Jan 1 09:00:00 1970
+++ portupgrade/files/patch-lib-portsdb.rb Mon Jan 2 19:31:29 2006
@@ -0,0 +1,18 @@
+Index: lib/portsdb.rb
+===================================================================
+--- lib/portsdb.rb (revision 54)
++++ lib/portsdb.rb (revision 59)
+@@ -87,8 +87,11 @@
+ while true
+ if moved = @moved[me]
+ t << moved
+- me = moved.to
+- break if me.nil?
++ if me.nil? or me == moved.to
++ break
++ else
++ me = moved.to
++ end
+ else
+ break
+ end
More information about the freebsd-ports-bugs
mailing list