From nobody Sat Dec 04 19:39:49 2021 X-Original-To: ruby@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D0E688D3F34 for ; Sat, 4 Dec 2021 19:39:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J60QF3W9Vz3GVF for ; Sat, 4 Dec 2021 19:39:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 55BA91F30 for ; Sat, 4 Dec 2021 19:39:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1B4JdnqI066059 for ; Sat, 4 Dec 2021 19:39:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B4JdnP2066058 for ruby@FreeBSD.org; Sat, 4 Dec 2021 19:39:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ruby@FreeBSD.org Subject: [Bug 258108] [exp-run] devel/ruby-gems: Update to 3.2.30 (Fixes for Ruby 3.0) Date: Sat, 04 Dec 2021 19:39:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa, patch, regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: deivid.rodriguez@riseup.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? exp-run+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Ruby discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ruby List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ruby@freebsd.org X-BeenThere: freebsd-ruby@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638646789; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rT5sJgjhmyKZWnI7OpqGPMjFawTt9Q31CMMr4oLLxJA=; b=ChIQPLm8iVByEj0BfYE+HM0RtO1zKSZFA5CTEDQ9/aMAyuaGCioUjlucf4HrxT4cUD9Q7U 5xzxQNOyfFh3Oqc0J+E/htAdp5eoPjWzqsqinGphyRH7XZuUjg9q0W+4LyUiTB71ecedPY NX+2KewwD/qAjhiib4UOHuO032BMBIXdIhWNRydBt4ZOkGxym7o88CKclJIi7GMQxnr9Y/ 6D2gTnV9GP/F8qhsQV82wDGxEHGQQbcW9IFwB0Pci2uWzsEy80EYl7Q06/1rkB/5ad2z04 m9w9WshZhp1YpBWXRh4Vp0EHNEDO/FKOet3LHG2ub9OPw8hRs+td8acLuKD0Sg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638646789; a=rsa-sha256; cv=none; b=KoD9lhOt6A9PcyB416MA5pv9WkBDbGKS8AKWhPndNjlJ9odAWGDpYFs1T3vrfT06SPwmQi uLYhqd9kzpyPdWwMsV/m6BtaCqgl0sNrAwe3RBoY4gHIf4xAN/h3YusWebGamdRtKu8uTx KzWTTdX9TQU1DRrCxOzIXoYsZvpdZ8MH2420A5dHqMTd+R6/5QfTC4530vG41AbP/JSoyS EgReIsdXlDgItitKzBRksolq80iOfAHN2iei+EseZJ2kzrgaxJXUXVsJKIq3w4YWB6UV9d 3w9c0lVylstu63qw5+aNM0+W6rSH/bgxq6NOspJOZl47bIwyewsMPeIUPIDE2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258108 --- Comment #38 from deivid.rodriguez@riseup.net --- For what it's worth, I decided to go with the current version of the fix, s= ince it fixes most of the issues with `--destdir` and I don't want to block it on the little issue that I found because fixing it requires a bigger refactori= ng that I'm not sure when I'll attempt. I hope to release it in the next few days with rubygems 3.2.33. For completeness, the little issue with the current patch is that binstub regeneration inside the DESTDIR only works properly for gems that are also installed globally. So if I have `rake` installed globally, this works: ``` $ gem list rake *** LOCAL GEMS *** rake (13.0.6) $ rm -rf /tmp/foo && gem install rake --install-dir /tmp/foo && (echo "foo"= > /tmp/foo/bin/rake) && ruby -Ilib setup.rb --destdir /tmp/foo --prefix / && = head -1 /tmp/foo/bin/rake Fetching rake-13.0.6.gem Successfully installed rake-13.0.6 1 gem installed Successfully built RubyGem Name: bundler Version: 2.3.0.dev File: bundler-2.3.0.dev.gem Bundler 2.3.0.dev installed RubyGems 3.3.0.dev installed Regenerating binstubs Regenerating plugins ---------------------------------------------------------------------------= --- RubyGems installed the following executables: /tmp/foo/bin/gem /tmp/foo/bin/bundle /tmp/foo/bin/bundler #!/Users/deivid/.rbenv/versions/3.0.3/bin/ruby ``` But if I remove the globally installed rake, the `rake` binstub in the DEST= DIR is no longer regenerated properly: ``` $ gem uninstall rake --executables --force Removing rake Successfully uninstalled rake-13.0.6 $ rm -rf /tmp/foo && gem install rake --install-dir /tmp/foo && (echo "foo"= > /tmp/foo/bin/rake) && ruby -Ilib setup.rb --destdir /tmp/foo --prefix / && = head -1 /tmp/foo/bin/rake Fetching rake-13.0.6.gem Successfully installed rake-13.0.6 1 gem installed Successfully built RubyGem Name: bundler Version: 2.3.0.dev File: bundler-2.3.0.dev.gem Bundler 2.3.0.dev installed RubyGems 3.3.0.dev installed Regenerating binstubs Regenerating plugins ---------------------------------------------------------------------------= --- RubyGems installed the following executables: /tmp/foo/bin/gem /tmp/foo/bin/bundle /tmp/foo/bin/bundler foo ``` --=20 You are receiving this mail because: You are the assignee for the bug.=