From vivek@lorax.kcilink.com  Thu Jul 31 15:17:37 2008
Return-Path: <vivek@lorax.kcilink.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6DBC01065675
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Jul 2008 15:17:37 +0000 (UTC)
	(envelope-from vivek@lorax.kcilink.com)
Received: from lorax.kcilink.com (lorax.kcilink.com [206.112.95.1])
	by mx1.freebsd.org (Postfix) with ESMTP id 49D7A8FC1B
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Jul 2008 15:17:37 +0000 (UTC)
	(envelope-from vivek@lorax.kcilink.com)
Received: from localhost (localhost [127.0.0.1])
	by lorax.kcilink.com (Postfix) with ESMTP id 168B7A1061
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Jul 2008 10:58:38 -0400 (EDT)
Received: from lorax.kcilink.com ([127.0.0.1])
	by localhost (lorax.kcilink.com [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id fl1nq5l+8Q62 for <FreeBSD-gnats-submit@freebsd.org>;
	Thu, 31 Jul 2008 10:58:37 -0400 (EDT)
Received: by lorax.kcilink.com (Postfix, from userid 120)
	id 1DAF7A104E; Thu, 31 Jul 2008 10:58:37 -0400 (EDT)
Message-Id: <20080731145837.1DAF7A104E@lorax.kcilink.com>
Date: Thu, 31 Jul 2008 10:58:37 -0400 (EDT)
From: Vivek Khera <vivek@khera.org>
Reply-To: Vivek Khera <vivek@khera.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: portupgrade runtime error
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         126140
>Category:       ports
>Synopsis:       ports-mgmt/portupgrade runtime error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 31 15:20:01 UTC 2008
>Closed-Date:    Tue May 22 04:57:57 UTC 2012
>Last-Modified:  Tue May 22 04:57:57 UTC 2012
>Originator:     Vivek Khera
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD lorax.kcilink.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Wed Apr 9 10:22:34 EDT 2008 steve@dbarchive.m1e.net:/n/lorax1/usr7/obj.i386/n/lorax1/usr7/src/sys/KCI32SMP i386


	
>Description:
	

On a 6.3/amd64 server I have, I upgrade portupgrade to the latest version
today (2.4.6,2).  Since then, I can't upgrade any port that has dependencies
that need upgrading as well.

>How-To-Repeat:
	

[root@d02]# pkg_version -vl\<
postgresql-client-8.3.1             <   needs updating (port has 8.3.3)
postgresql-server-8.3.1             <   needs updating (port has 8.3.3)
slony1-1.2.13                       <   needs updating (port has 1.2.14_1)
[root@d02]# portupgrade -Rrv -p postgresql-client-8.3.1
--->  Session started at: Thu, 31 Jul 2008 10:47:40 -0400
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 48 packages found (-0 +1) . done]
[Gathering depends for databases/postgresql83-client ..... done]
[Gathering depends for databases/slony1 ......... done]
[Gathering depends for local/kci-dbserver .............. done]
[Exclude up-to-date packages .............. done]
--->  Session ended at: Thu, 31 Jul 2008 10:47:44 -0400 (consumed 00:00:04)
/usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:74:in `initialize': : Not in due form: <name>-<version> (ArgumentError)
	from /usr/local/sbin/portupgrade:931:in `new'
	from /usr/local/sbin/portupgrade:931:in `do_upgrade'
	from /usr/local/sbin/portupgrade:815:in `main'
	from /usr/local/sbin/portupgrade:811:in `each'
	from /usr/local/sbin/portupgrade:811:in `main'
	from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize'
	from /usr/local/sbin/portupgrade:229:in `new'
	from /usr/local/sbin/portupgrade:229:in `main'
	from /usr/local/sbin/portupgrade:2208


If I run without the -rR flags, it will upgrade individual ports... though it
did somehow manage to uninstall subversion and not install the new version
when I upgraded that.

>Fix:

	


I don't know.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sem 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jul 31 20:19:23 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer. 

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

From: Vivek Khera <vivek@khera.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/126140: ports-mgmt/portupgrade runtime error
Date: Tue, 2 Sep 2008 12:40:37 -0400

 Hi,
 
 I applied the patch you sent earlier to add the line  
 "upgrade_tasks.compact".  However, now I am getting a different error  
 (both with and without your patch):
 
 [root@lorax]~# portupgrade -Rrv portupgrade-2.4.6,2
 --->  Session started at: Tue, 02 Sep 2008 12:39:25 -0400
 [Gathering depends for ports-mgmt/portupgrade ... done]
 [Gathering depends for local/kci-base ...............--->  Session  
 ended at: Tue, 02 Sep 2008 12:39:26 -0400 (consumed 00:00:01)
 /usr/local/lib/ruby/1.8/set.rb:257:in `merge': value must be  
 enumerable (ArgumentError)
          from /usr/local/sbin/portupgrade:875:in `get_all_depends'
          from /usr/local/lib/ruby/1.8/set.rb:189:in `each'
          from /usr/local/lib/ruby/1.8/set.rb:189:in `each_key'
          from /usr/local/lib/ruby/1.8/set.rb:189:in `each'
          from /usr/local/sbin/portupgrade:874:in `get_all_depends'
          from /usr/local/sbin/portupgrade:639:in `main'
          from /usr/local/sbin/portupgrade:613:in `each'
          from /usr/local/sbin/portupgrade:613:in `main'
           ... 11 levels...
          from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize'
          from /usr/local/sbin/portupgrade:229:in `new'
          from /usr/local/sbin/portupgrade:229:in `main'
          from /usr/local/sbin/portupgrade:2209
 [root@lorax]~# pkg_version -vl\<
 amavisd-new-2.5.4,1                 <   needs updating (port has  
 2.6.1,1)
 apr-1.2.12                          <   needs updating (port has  
 1.3.3.1.3.4)
 autoconf-2.61_2                     <   needs updating (port has 2.62)
 automake-1.9.6_2                    <   needs updating (port has  
 1.9.6_3)
 bison-2.3_3,1                       <   needs updating (port has  
 2.3_4,1)
 clamav-0.93                         <   needs updating (port has 0.93.3)
 dirmngr-1.0.1_1                     <   needs updating (port has  
 1.0.1_2)
 ejabberd-1.1.4_1                    <   needs updating (port has  
 1.1.4_2)
 erlang-r12b2,1                      <   needs updating (port has  
 r12b3,1)
 file-4.21                           <   needs updating (port has 4.25)
 gnupg-2.0.9                         <   needs updating (port has  
 2.0.9_2)
 ispell-3.2.06_21                    <   needs updating (port has  
 3.3.02_4)
 jpeg-6b_4                           <   needs updating (port has 6b_7)
 libdnet-1.11_1                      <   needs updating (port has 1.11_2)
 libgcrypt-1.4.0                     <   needs updating (port has  
 1.4.1_1)
 libgmp-4.2.2                        <   needs updating (port has 4.2.3)
 libgpg-error-1.6                    <   needs updating (port has 1.6_1)
 libksba-1.0.2                       <   needs updating (port has  
 1.0.2_1)
 lua-5.1.3_1                         <   needs updating (port has  
 5.1.3_3)
 lzo2-2.02_1                         <   needs updating (port has 2.03_2)
 mysql-client-5.1.25                 <   needs updating (port has 5.1.26)
 nagios-plugins-1.4.11_1,1           <   needs updating (port has  
 1.4.12,1)
 nano-2.0.7_1                        <   needs updating (port has 2.0.8)
 nmap-4.62                           <   needs updating (port has 4.68)
 openldap-client-2.3.41              <   needs updating (port has 2.3.43)
 p5-Archive-Zip-1.23                 <   needs updating (port has 1.24)
 p5-Authen-SASL-2.11                 <   needs updating (port has 2.12)
 p5-Class-Inspector-1.17_1           <   needs updating (port has 1.23)
 p5-Compress-Raw-Zlib-2.009          <   needs updating (port has 2.012)
 p5-Compress-Zlib-2.009              <   needs updating (port has 2.012)
 p5-Convert-UUlib-1.09,1             <   needs updating (port has 1.11,1)
 p5-DBD-Pg-2.6.1                     <   needs updating (port has 2.9.0)
 p5-DBI-1.60.1                       <   needs updating (port has 1.60.4)
 p5-Digest-SHA-5.46                  <   needs updating (port has 5.47)
 p5-Encode-Detect-1.00               <   needs updating (port has 1.01)
 p5-Error-0.17012                    <   needs updating (port has  
 0.17015)
 p5-ExtUtils-CBuilder-0.23           <   needs updating (port has 0.24)
 p5-File-HomeDir-0.69                <   needs updating (port has 0.80)
 p5-File-Remove-1.40                 <   needs updating (port has 1.41)
 p5-IO-Compress-Base-2.009           <   needs updating (port has 2.012)
 p5-IO-Compress-Zlib-2.009           <   needs updating (port has 2.012)
 p5-IO-Socket-SSL-1.13               <   needs updating (port has 1.15)
 p5-MIME-Tools-5.426,2               <   needs updating (port has  
 5.427,2)
 p5-Mail-DKIM-0.31                   <   needs updating (port has 0.32)
 p5-Mail-SpamAssassin-3.2.4_4        <   needs updating (port has 3.2.5)
 p5-Math-BigInt-1.87                 <   needs updating (port has 1.89)
 p5-Module-Pluggable-3.8             <   needs updating (port has 3.8_1)
 p5-Net-SSLeay-1.30_1                <   needs updating (port has 1.35)
 p5-Pod-Parser-1.35                  <   needs updating (port has 1.35_2)
 p5-Socket6-0.20                     <   needs updating (port has 0.22)
 p5-Test-Harness-3.10                <   needs updating (port has 3.13)
 p5-Test-SubCalls-1.07               <   needs updating (port has 1.08)
 p5-Time-HiRes-1.9712,1              <   needs updating (port has  
 1.9715,1)
 p5-URI-1.36                         <   needs updating (port has 1.37)
 p5-Unix-Syslog-1.0                  <   needs updating (port has 1.1)
 p5-YAML-Syck-1.01                   <   needs updating (port has 1.05)
 p5-libwww-5.805                     <   needs updating (port has 5.814)
 p5-version-0.74                     <   needs updating (port has 0.76)
 pcre-7.7                            <   needs updating (port has 7.7_1)
 png-1.2.28                          <   needs updating (port has 1.2.31)
 postgrey-1.31                       <   needs updating (port has 1.32)
 ruby-1.8.6.111_4,1                  <   needs updating (port has  
 1.8.6.287,1)
 screen-4.0.3_4                      <   needs updating (port has  
 4.0.3_5)
 sshguard-ipfw-1.0_1                 <   needs updating (port has 1.1_1)
 subversion-1.4.6_2                  <   needs updating (port has 1.5.1)
 tmux-0.3                            <   needs updating (port has 0.4.a)
 unrar-3.71.b1,5                     <   needs updating (port has  
 3.80.b2,5)
 w3m-0.5.2_1                         <   needs updating (port has  
 0.5.2_2)
 xmlrpc-c-1.06.27                    <   needs updating (port has  
 1.06.30)
 zip-2.32                            <   needs updating (port has 3.0)
 10.685user 7.837sys 109.5%, 4ib 0ob 257tx 637da 894to 0swp 0:16.90
 [root@lorax]~#  uname -a
 FreeBSD lorax.kcilink.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Wed Apr   
 9 10:22:34 EDT 2008     steve@dbarchive.m1e.net:/n/lorax1/usr7/ 
 obj.i386/n/lorax1/usr7/src/sys/KCI32SMP  i386
 
 
 
 
Responsible-Changed-From-To: sem->ruby 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Jul 25 01:48:27 UTC 2009 
Responsible-Changed-Why:  
sem@ has turned over maintainership of portupgrade to the ruby mailing list. 

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

From: Stanislav Sedov <stas@deglitch.com>
To: Vivek Khera <vivek@khera.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/126140: ports-mgmt/portupgrade runtime error
Date: Tue, 27 Oct 2009 18:20:26 +0300

 --Signature=_Tue__27_Oct_2009_18_20_26_+0300_DVcG9/mA=oVVHTvm
 Content-Type: text/plain; charset=US-ASCII
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Hi, Vivek!
 
 Can you, please, try the following patch attached?
 Thanks!
 
 --- bin/portupgrade     26 Oct 2009 14:47:49 -0000      1.62
 +++ bin/portupgrade     27 Oct 2009 14:59:37 -0000      1.63
 @@ -631,7 +631,10 @@
                 if $upward_recursive || $config
                   dep =3D []
                   get_all_depends(origin).each do |d|
 -                   dep << $pkgdb.deorigin(d).to_s
 +                   newdep =3D $pkgdb.deorigin(d)
 +                   unless newdep.nil? then
 +                     dep << newdep.to_s
 +                   end
                   end
                   depends |=3D dep if $upward_recursive
                 end
 
 --=20
 Stanislav Sedov
 ST4096-RIPE
 
 --Signature=_Tue__27_Oct_2009_18_20_26_+0300_DVcG9/mA=oVVHTvm
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 
 iQIcBAEBAgAGBQJK5w+/AAoJEKN82nOYvCd0rBYP/iPFZTL++xpgbx+ulDmdSY9p
 nlJ/KiVduPnZIaKdZ8GQlKlW8/hdmBhoh9t3Rmkfky/HScLTYuY9zoq7K+N6xLaz
 bg+Tso+QNtNGlcrwBd1H67JXmqrQg87/5FkFKKE1TKZXD2e9orgeFI8EWFZSP8mY
 9jxlcq4Bi5avDWmvYZgNPuXnUelCrt2BP2/qXfcPRXdvfPSQHtu9u5SU6fTUDalv
 y7Ti2I5dM6K9ACMbB6R3FLRPV4SVlDXcVRRMdDZTDmaCgZ/Q2tMvBejgb7hLYrmd
 osz4cuNwS0uqWTfi2RWJT9P1bzcgvLv3OioPvyMVXlVG14vm1wOAUv3V5mmf2UJS
 9FFrvOJnolGpGFCZZRGde6RA6c+9SOty3PA2OsvUTsg4yGn1BniQjwRpLqY7ojzG
 u5xmhW37xqbtoDSfVg4egIetGiJfs6az/5K+ozPV3ljCBFadq7cv4LXOIYQanUBy
 vor6RGF0A23EFCGYihh8mZJLKH5tvDRPCFpxkzvWFjc8iteesS/rMM+9vwP4pu3C
 azdq3gRZyrMSYlyT2PhkCcnVps7j4g65U7Vrhpu8imqvP/5fjQELTWoaPr5QKnl1
 ZnvXAcn/xuprlnJynN7RdMm3gDAZGo7Yp+dPPpZ0Qoj5cAh4txTYGtppG37wYRZy
 zD+/+Wse+IWgH0NAXGnR
 =rlKu
 -----END PGP SIGNATURE-----
 
 --Signature=_Tue__27_Oct_2009_18_20_26_+0300_DVcG9/mA=oVVHTvm--
Responsible-Changed-From-To: ruby->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Thu Sep 9 23:10:25 UTC 2010 
Responsible-Changed-Why:  
I will take it 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126140 
Responsible-Changed-From-To: pgollucci->freebsd-ports-bugs 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Fri Sep 24 06:21:34 UTC 2010 
Responsible-Changed-Why:  
going to have enotime for the next 2 weeks, sorry 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126140 
Responsible-Changed-From-To: freebsd-ports-bugs->ruby 
Responsible-Changed-By: steve 
Responsible-Changed-When: Mon Jan 3 17:15:48 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126140 
State-Changed-From-To: open->feedback 
State-Changed-By: arved 
State-Changed-When: Mon Jul 25 11:35:22 UTC 2011 
State-Changed-Why:  
This PR is actually in feedback stage. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126140 
State-Changed-From-To: feedback->suspended 
State-Changed-By: pgollucci 
State-Changed-When: Wed Feb 22 05:22:43 UTC 2012 
State-Changed-Why:  
Over to maintainer. 


Responsible-Changed-From-To: ruby->freebsd-ports-bugs 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Wed Feb 22 05:22:43 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126140 
State-Changed-From-To: suspended->open 
State-Changed-By: crees 
State-Changed-When: Thu Apr 12 10:02:40 UTC 2012 
State-Changed-Why:  
This should not be suspended. 

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

From: Bryan Drewery <bryan@shatow.net>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/126140: ports-mgmt/portupgrade runtime error
Date: Mon, 21 May 2012 22:51:58 -0500

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig8D342F5CA8B85FD468478430
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 This PR can be closed.
 
 The issue was fixed in 2009.
 
 It's the same as
 ports/125936
 ports/137708
 
 For reference, I've logged this upstream at:
 https://github.com/pkgtools/pkgtools/issues/11
 
 Regards,
 Bryan Drewery
 
 
 --------------enig8D342F5CA8B85FD468478430
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iQIcBAEBAgAGBQJPuw1eAAoJEG54KsA8mwz5H8AP/0WDKjSAoqMzkkdaorhrmKMi
 lddL1/alRs4Mb+z1JDsFjrFRM9r2+xoihW0UmmF+dUINO35RXl0kQRMpexj/4IC2
 bOtX6gQbgKqW2GgAkCmX4ej41ocsAIpXHNVXHGw1xeh8sB8c3+VoEGP/qQ2V4UHv
 llXzKtx+aYAZnAQOokmPRHjobswhGyw9VNU6A5iLIv6fPS67V+9XZsw6YIDu+HXP
 SQRucKpTSJP89LBrykgM59ShM0q4nT/8I8LqI5DZW7Kap7poH1rE9Ga7DKEEhHfb
 hwz/5lklg1J+JdgQirt3souUPmErGG3cc4O+KVbMPlcgQ8iY4bjszYa5bAuSzKVh
 kdNU8bB6fJBlHBGkprK8xiwAYCro7NoHOGv+d/pqGYw3k2V80YhuCYgHo2LI2BXk
 5afKW50fdEQigCyCail0PyNtY8F5hYne6JxvbH+/NvR+d6qF+WBWH4sGy7hxJ9fr
 QE2dv0jkLRk9nrgg5RAVRSIj7WT70zI4ly2zUl4tvb2x5KNRymoL+zWFlscQXqcp
 dI6sdxknRkU9iz/Ux5kSR1HIldK3Uaz4c8rsz5yf+F5xXb3GK61usuWwJNN6b4Y1
 A8uz0CiKFWjXEiPHKwefLhxm7zqvuqcfBmVqxkWmLPkAn2xudqHGZgFMolD+k5WE
 4siAkmW9f8fS4sZh8+tn
 =yIr4
 -----END PGP SIGNATURE-----
 
 --------------enig8D342F5CA8B85FD468478430--
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Tue May 22 04:57:33 UTC 2012 
State-Changed-Why:  
The new portupgrade maintainer notes the issue was fixed in 2009. 

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