-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/21/11 07:02, Andrey Chernov wrote: >> <some-port-directory># portupgrade -vuR >> /usr/local/lib/ruby/site_ruby/1.9/pkgmisc.rb:104:in `realpath': wrong >> number of arguments (2 for 1) (ArgumentError) >> from /usr/local/lib/ruby/1.9/pathname.rb:446:in `realpath' >> >> It is true: 'realpath' have 2 args in pathname.rb and 1 arg in pkgmisc.rb > > Despite ability to directly specify port name, portupgrade on ruby-1.9 is > totally broken, issuing lots 'Not in due form' at the end. > > portupgrade -vuR php5-extensions > ---> Session started at: Sun, 21 Aug 2011 14:54:42 +0400 > [Gathering depends for lang/php5-extensions > ................................................ done] > [Exclude up-to-date packages ...................... done] > ---> Listing the results (+:done / -:ignored / *:skipped / !:failed) > - ["php5-5.3.7_1"] (["php5-5.3.7_1"]: 5.3.7_1"]: Not in due form: > '<version>[_<revision>][,<epoch>]'.) > - ["php5-iconv-5.3.6_1"] (["php5-iconv-5.3.6_1"]: 5.3.6_1"]: Not > in due form: '<version>[_<revision>][,<epoch>]'.)
The attached patch may help. Please give it a try and let me know. Create ports/ports-mgmt/portupgrade/files and drop this in. Thanks, Steve -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJOUSoWAAoJEPXPYrMgexuh8XAH/iDCK4hjKjKlKZXv063Brr1n Xyp7jZMLWgiWcCgzI6XR1+3p3od/SBf9rf/8/9ekRZNtv+57cuaDPSsDdDlULNK2 07QRNneeiHzHCOVWpX80clq1wl15/gNgV7u5kW2mSHwWDzw3b1Y014hOFhZ123sP S/i2dyP1UaXb1W67Ob5mcSgPvgLVhfLSqOm3l1GwEpKgadM/A/ieT0hw5Kagci4c hOnVGOlKVMLw/8TjUELpXyCcVCq/JH7/GdNNxEQxWNzudCPZ27cyAaGKzBNF6EeJ DPPik3F3bnez27dRWhVdHly17Si3QaBKoqxVhfcDTmO87TVsAxWQ2EHQr31Ur4w= =M70I -----END PGP SIGNATURE-----
--- lib/pkgmisc.rb.orig 2011-08-21 10:15:39.000000000 +0000 +++ lib/pkgmisc.rb 2011-08-21 10:15:45.000000000 +0000 @@ -28,8 +28,8 @@ # $FreeBSD: projects/pkgtools/lib/pkgmisc.rb,v 1.12 2011-07-25 12:34:43 swills Exp $ begin - require 'features/ruby18/dir' # for Dir.chdir(dir) { ... } - require 'features/ruby18/enum' # Enumerable#any?, etc. + require 'features/ruby19/dir' # for Dir.chdir(dir) { ... } + require 'features/ruby19/enum' # Enumerable#any?, etc. rescue LoadError end @@ -100,12 +100,6 @@ }.join(' ') end -class File - def File.realpath(path) - return File.expand_path(path) - end -end - def init_tmpdir if ! $tmpdir.nil? && $tmpdir != "" then return --- bin/portupgrade.orig 2011-08-21 11:46:59.000000000 +0000 +++ bin/portupgrade 2011-08-21 11:47:06.000000000 +0000 @@ -634,7 +634,7 @@ get_all_depends(origin).each do |d| newdep = $pkgdb.deorigin(d) unless newdep.nil? then - dep << newdep.to_s + dep << newdep.join end end depends |= dep if $upward_recursive
patch-1.9.sig
Description: Binary data
_______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscr...@freebsd.org"