From owner-freebsd-ruby@FreeBSD.ORG Sun Jun 12 23:25:05 2011 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 215AF106566B; Sun, 12 Jun 2011 23:25:05 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [204.109.58.86]) by mx1.freebsd.org (Postfix) with ESMTP id CED578FC13; Sun, 12 Jun 2011 23:25:04 +0000 (UTC) Received: from meatwad.mouf.net (cpe-065-190-149-241.nc.res.rr.com [65.190.149.241]) (authenticated bits=0) by mouf.net (8.14.4/8.14.4) with ESMTP id p5CNOv3T053020 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Sun, 12 Jun 2011 19:24:59 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <4DF54AC9.5040208@FreeBSD.org> Date: Sun, 12 Jun 2011 19:24:57 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110531 Thunderbird/3.1.10 MIME-Version: 1.0 To: Steve Wills References: <4DD47A2B.8070905@mouf.net> <4DD583F0.7030308@p6m7g8.com> <4DDCEDED.9030603@mouf.net> <20110525212639.18991589.stas@FreeBSD.org> <4DF53847.2090405@FreeBSD.org> In-Reply-To: <4DF53847.2090405@FreeBSD.org> X-Enigmail-Version: 1.1.2 Content-Type: multipart/mixed; boundary="------------040302090401050603030201" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (mouf.net [204.109.58.86]); Sun, 12 Jun 2011 19:24:59 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.96.2 at mouf.net X-Virus-Status: Clean Cc: Stanislav Sedov , ruby@FreeBSD.org Subject: Re: ruby 1.9 update patch X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2011 23:25:05 -0000 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--