From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 2FF8D1F4C1 for ; Wed, 30 Nov 2022 18:28:50 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.b="sLsF7Bre"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id C8F517E7E9; Wed, 30 Nov 2022 18:28:43 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=sLsF7Bre; dkim-atps=neutral Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by nue.mailmanlists.eu (Postfix) with ESMTPS id CEC687E69C for ; Wed, 30 Nov 2022 18:28:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc; s=s1; bh=SZav8Q7Yux4msfOHxKuHJ8AfW4qyJCnvOJ39Tloh4WM=; b=sLsF7BreHQCXSvMAndJrn83d9GwZ0QKL5q9zo26nziMpECDNH1boqPdDejY6j7/ZuYiq PmD4VmKVx0xzqhwyC72/GHCPvSe+VxbeAzew1V8PScW4sP4INaangA2ZMPFbvRWRVSb3mI HuFtjU2C/SDu2V5E84yCVxS2VJ6+N3fW4n8mJdhh2uwFLVD6WX0VQH8lHNjBWhjfLEuUIH 6cG8o5O4fxv0ExYMZoFge6afRiLW4+ov5UTPsODwbHl20ABqexkVeeLiMFwSELn9L17+5w PxcPddo3bkgweu1ZvENDzlzjcpTBHbH4d+32llwHIjtScWbLZnxsq6t0W9i34Vhw== Received: by filterdrecv-canary-675586c97f-ljfkn with SMTP id filterdrecv-canary-675586c97f-ljfkn-1-6387A0D5-41 2022-11-30 18:28:37.950958642 +0000 UTC m=+1106586.462707200 Received: from herokuapp.com (unknown) by geopod-ismtpd-5-2 (SG) with ESMTP id ntXk4NbXSUu0Bt4c0tdDnw for ; Wed, 30 Nov 2022 18:28:37.821 +0000 (UTC) Date: Wed, 30 Nov 2022 18:28:37 +0000 (UTC) From: deivid Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 19158 X-Redmine-Issue-Author: deivid X-Redmine-Sender: deivid X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 87446 X-SG-EID: =?us-ascii?Q?YNVYWl+1uPBIsyX5DXqb8a=2F48vshSh7lVjO=2FTfAGztNPOwxR8PtEo3nB7h+cvH?= =?us-ascii?Q?Y6nG+XSCKmzMFIXPRE+zymeQVMAvD=2FJOSt3D=2FaA?= =?us-ascii?Q?6PxPbcBaCezmpq+Io0Oac+6O8tJREZ5l69y1bAU?= =?us-ascii?Q?xgZY2TqJOTPOxG9pceYhc+yXZG0U4DhZNGrPy1h?= =?us-ascii?Q?TX7rmjMisRoI6BYkihMSGCgf=2F+nJCEQu9RRqvqA?= =?us-ascii?Q?TVIhR0vxTgZAYFe1QOEHOJIS7tcaY+LYN6O2hrd?= =?us-ascii?Q?X4L8mSCsG6UTyJfW08Qahk=2F5FEqjP7GBI0exMR6?= =?us-ascii?Q?uSw=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: KW4WHIE6UXJDX57FK5CROXL53LSJ5UDA X-Message-ID-Hash: KW4WHIE6UXJDX57FK5CROXL53LSJ5UDA X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:111096] [Ruby master Bug#19158] Ruby 3.1.3 installs wrong gemspec for debug gem List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Issue #19158 has been updated by deivid (David Rodr=EDguez). Hi again @nagachika. I was double checking this, because I thought you probably meant "master br= anch of Ruby" and not "master branch of Bundler". I assumed the bug is pres= ent in both the master branch of Ruby and ruby_3_1 because the suspicious c= ommit is present in both branches, but I tried to reproduce this issue in b= oth branches and I couldn't. The installed gemspec (after configure, make, = make install) seems correct on both. So I'm not sure why this is happening with Ruby 3.1.3 tarball. ---------------------------------------- Bug #19158: Ruby 3.1.3 installs wrong gemspec for debug gem https://bugs.ruby-lang.org/issues/19158#change-100361 * Author: deivid (David Rodr=EDguez) * Status: Open * Priority: Normal * ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [arm64-darwin22] * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: REQUIRED ---------------------------------------- A pristine installation of Ruby 3.1.3 shows an installed `debug-1.6.3.gemsp= ec` file that claims that debug-1.6.3 has no dependencies. This is incorrec= t, and causes issues for Bundler as reported at https://github.com/rubygems= /rubygems/issues/6082. An issue workaround is to manually reinstall the gem with `gem install debu= g:1.6.3`. That will reinstall the gem, including a correct gemspec file. This is the file diff before and after reinstalling the gem ```diff --- old.gemspec 2022-11-29 13:54:36 +++ /Users/deivid/.asdf/installs/ruby/3.1.3/lib/ruby/gems/3.1.0/specificati= ons/debug-1.6.3.gemspec 2022-11-29 13:55:25 @@ -24,4 +24,16 @@ s.summary =3D "Debugging functionality for Ruby".freeze =20 s.installed_by_version =3D "3.3.26" if s.respond_to? :installed_by_versi= on + + if s.respond_to? :specification_version then + s.specification_version =3D 4 + end + + if s.respond_to? :add_runtime_dependency then + s.add_runtime_dependency(%q.freeze, [">=3D 1.3.6"]) + s.add_runtime_dependency(%q.freeze, [">=3D 0.3.1"]) + else + s.add_dependency(%q.freeze, [">=3D 1.3.6"]) + s.add_dependency(%q.freeze, [">=3D 0.3.1"]) + end end ``` In general, the files installed by ruby-core for bundled gems should be ide= ntical to the ones installed by explicit `gem install`. This issue is also present in master and I'm guessing it was introduced by = https://github.com/ruby/ruby/commit/a2c66f52f402cb58372e271226f3341065561e5= 3 (backported at https://github.com/ruby/ruby/commit/2d26e45135af8b427d9ccc= 6d47082c21be8b9c74). --=20 https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-c= ore.ml.ruby-lang.org/