Date: Sun, 12 Jun 2011 19:24:57 -0400 From: Steve Wills <swills@FreeBSD.org> To: Steve Wills <swills@FreeBSD.org> Cc: Stanislav Sedov <stas@FreeBSD.org>, ruby@FreeBSD.org Subject: Re: ruby 1.9 update patch Message-ID: <4DF54AC9.5040208@FreeBSD.org> In-Reply-To: <4DF53847.2090405@FreeBSD.org> References: <4DD47A2B.8070905@mouf.net> <4DD583F0.7030308@p6m7g8.com> <4DDCEDED.9030603@mouf.net> <20110525212639.18991589.stas@FreeBSD.org> <4DF53847.2090405@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------040302090401050603030201 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/12/11 18:05, Steve Wills wrote: > > Finally getting back to this. > > Here's an updated version of the patch: > > http://people.freebsd.org/~swills/ruby19_and_gems_changes3.diff.txt > > This, along with a patch to ruby-bdb: > > http://people.freebsd.org/~swills/ruby-bdb-patch-extconf-rb.diff.txt > > and this patch to portupgrade: > > http://people.freebsd.org/~swills/portupgrade-patch-lib-pkgmisc-rb.diff.txt > > (all also attached) > > seem to fix the issue and let me use portupgrade with Ruby 1.9. > > I was never able to track down the PR related to this that was mentioned. > > If anyone is willing to test, I would appreciate any feedback. I'm > thinking this will need a -exp run then be ready to inflict upon users. :) Replying to myself... I found a few more things are needed: http://people.freebsd.org/~swills/portupgrade-patch-bin-portupgrade.diff.txt http://people.freebsd.org/~swills/portupgrade-patch-lib-portsdb-rb.diff.txt With this, portupgrade seems to function. There are some weird warnings here and there, but it seems to work. Steve -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBAgAGBQJN9UrJAAoJEPXPYrMgexuhsX4H/Au5VGVrLPTAC9fHURczwZqM ocx7fRDfxhzC/OpzldwCmjd79Q9PAZwftcIoVTKN44jl1T7h/CpCH/8+go4gYMSW M684iGZbXSg2euRIaFFquOYHr2xmubbbERLBXy9i+w+jitBXRFhrev+BblKX1dBm tygHX+TmZ+BPU9HyXp+c3bZF8k/UuHTZlnsjxXDenfcTNdHL7tFzVS4E3mUMiSht VBOd6SRfqKl+TbDyct7bJocPxL2xUIO3WU1BN/WP5TKBuK0aVD/KfBBzExCmVMGM yIZHH79KKOBjSvPzMolSC6z3j29iwjbJ8LRkKuicZInyQtFujwXulxKIOKlyllo= =Ub5E -----END PGP SIGNATURE----- --------------040302090401050603030201 Content-Type: text/plain; name="portupgrade-patch-lib-portsdb-rb.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="portupgrade-patch-lib-portsdb-rb.diff.txt" --- lib/portsdb.rb.orig 2011-06-12 18:58:40.000000000 +0000 +++ lib/portsdb.rb 2011-06-12 18:58:45.000000000 +0000 @@ -840,7 +840,7 @@ end def all_depends_list!(origin, before_args = nil, after_args = nil) - `cd #{$portsdb.portdir(origin)} && #{before_args || ''} make #{after_args || ''} all-depends-list`.map { |line| + `cd #{$portsdb.portdir(origin)} && #{before_args || ''} make #{after_args || ''} all-depends-list`.lines.map { |line| strip(line.chomp, true) }.compact end --------------040302090401050603030201 Content-Type: text/plain; name="portupgrade-patch-bin-portupgrade.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="portupgrade-patch-bin-portupgrade.diff.txt" --- bin/portupgrade.orig 2011-06-12 18:56:18.000000000 +0000 +++ bin/portupgrade 2011-06-12 18:56:44.000000000 +0000 @@ -726,7 +726,7 @@ stty_sane - ports = $portsdb.glob(pattern).map { |i| i.origin } + ports = $portsdb.glob(pattern).each.map { |i| i.origin } unique = false @@ -859,7 +859,7 @@ cmdargs.concat(get_make_args(origin)) - `cd #{portdir} && #{shelljoin(*cmdargs)} -V #{depends_vars.join(' -V ')} 2>&1`.each do |line| + `cd #{portdir} && #{shelljoin(*cmdargs)} -V #{depends_vars.join(' -V ')} 2>&1`.each_line do |line| line.split(/\s+/).each do |dep| dep.sub!(/.*?:/,'') if dep.rindex(':') != nil --------------040302090401050603030201 Content-Type: application/octet-stream; name="portupgrade-patch-lib-portsdb-rb.diff.txt.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="portupgrade-patch-lib-portsdb-rb.diff.txt.sig" iQEcBAABAgAGBQJN9UrJAAoJEPXPYrMgexuhwg4H/1v5Yv0kzIkxt3R2V5J1ZVqWpkchhPIF vGeqoB3HS05pfeKK0j/dSJCoVIguEc7GOw8Z6kB4xKC3QzlViZaZei8P3DHXpwTCEYP5wZZO TI1gzP1DkkqwqR88JH7u3GLyEo/hGpFQIRu9p1+Yn02+p2gWwmx0Y6G8Cw9nK9ByHFjPlBUc H/3C2SHhFNdExZZVUFERUvnLgLcf8mEohKN/4kdNB6N1EDbzbrQoJP8AZNi4NXkiT9Q89Qc4 Il78VYZGDQw8fL8Lm72KgGzIGdgQvngh0kn4Dfrj9LWiMJakOR8X1iMBuRwmW1AgHSe94KOI q4azHe6uOIlTehHEdGXJYeQ= --------------040302090401050603030201 Content-Type: application/octet-stream; name="portupgrade-patch-bin-portupgrade.diff.txt.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="portupgrade-patch-bin-portupgrade.diff.txt.sig" iQEcBAABAgAGBQJN9UrJAAoJEPXPYrMgexuhVBEH/iNNJGBfRkXZT0tERXoHqnt2xqtpbqsk ZPZ+X8JOMCUPgMBAJeiBAaLtYuo47LbUV2UQ+5QwsO0l/QxdDAK1cX9hM3BFh5HlKlT+M4ZS SHdwatUoSAyiVx3Uydc6HmWI47NT3KaXKYWF8nVhz+wBMHxbIIDOGkmnFMV0Y6Mv8lzLGdOn Lx2bjAgYCxF4+qqNVwShuSRKdiHrAEbBZ1ZpAqwPDdyOrjn2NmfHJRzMYYeswTwrD8nIMjGb X1mwLATWTFK/zRjUSS40XNmIUU1eLx2BL/ahQpJa3mskEeL1UKtkapGogqUcWt8gjKehagAw tR3xE3B4B2UTyqTpyYktBpY= --------------040302090401050603030201--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DF54AC9.5040208>