Date: Sun, 21 Aug 2011 11:53:58 -0400 From: Steve Wills <swills@FreeBSD.org> To: Andrey Chernov <ache@FreeBSD.org>, Stanislav Sedov <stas@FreeBSD.org>, ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: ports/ports-mgmt/portupgrade Makefile distinfo ports/ports-mgmt/portupgrade/files patch-bin-Makefile Message-ID: <4E512A16.6090305@FreeBSD.org> In-Reply-To: <20110821110216.GA4989@vniz.net> References: <201108180805.p7I85ow2002308@repoman.freebsd.org> <20110821104221.GA60534@vniz.net> <20110821110216.GA4989@vniz.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
-----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-----
[-- Attachment #2 --]
--- 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
[-- Attachment #3 --]
NQ*
b {g ; 0ᱬqyX^k>~sLSVhUb:\R0?{V,+:k97n#3U/1^'"c<ؔq;@ucFӒ^?@ p <ߤ`T Ia+kgEF9Z@\oz͂Ы[?W Wȩe?gHӨ{+ژZR]|Z@WV\uK
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E512A16.6090305>
