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: AS24940 94.130.0.0/16 X-Spam-Status: No, score=-3.0 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_HI, 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 [94.130.110.93]) (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) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 0FFCA1F4C1 for ; Tue, 29 Nov 2022 12:57:30 +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="F79vNs1r"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id DEEEF7E7FA; Tue, 29 Nov 2022 12:57:22 +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=F79vNs1r; dkim-atps=neutral Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by nue.mailmanlists.eu (Postfix) with ESMTPS id F36157E7F6 for ; Tue, 29 Nov 2022 12:57:17 +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=uW775m70xzL/4JBVEmFhBpxsSB998xE/3PoNQGAsw74=; b=F79vNs1r+v7415WeN06C7mclsmwAEy29Sk88Qa0H7Ahd8/Su7oKNDCcBXUsO7bmv7l65 xMyuy2+yrSUpsGn7HsbRLH8ZNqGOtM6ziIU3iCNXLx5qXF8BXju+ODtMFnUvxXKekqHxtR 823qVqCUe9GBBl1EXhRtdUCjAlwtXQi2/9LzdC/8BM0Fl7BDEnngCqqx0pZfB27npl1u+c 7l6Bcb6nXQH7ElbYLVbS5tZ9HUhiD5ZvjBFON4cH/A3Fs1V/qNnHxamDCVt4LTGtSclzNo f1KaRcF7PJ7i8bKjYxEzwSxIqYHjjoztvjUN7GeXwt3L/+ajPzNydNyh+VQWQ9HQ== Received: by filterdrecv-69c5db5cf4-r5pcf with SMTP id filterdrecv-69c5db5cf4-r5pcf-1-638601AC-1E 2022-11-29 12:57:16.390680057 +0000 UTC m=+1000150.098134230 Received: from herokuapp.com (unknown) by geopod-ismtpd-2-3 (SG) with ESMTP id EPTevsGjQ22xy3-GMcwICg for ; Tue, 29 Nov 2022 12:57:16.264 +0000 (UTC) Date: Tue, 29 Nov 2022 12:57:16 +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: 87403 X-SG-EID: =?us-ascii?Q?YNVYWl+1uPBIsyX5DXqb8a=2F48vshSh7lVjO=2FTfAGztNPOwxR8PtEo3nB7h+cvH?= =?us-ascii?Q?Y6nG+XSCKmzMFIXPRE+zymeQVMAvD=2FJOSt3D=2FaA?= =?us-ascii?Q?6PxPbeZi2fsqY0IWoXfV+z7=2Fssmcs5dXK=2FTU9uO?= =?us-ascii?Q?MJYvOLmVM+uPE5vfxJg=2F0YLzB1Zj5fYjCrwjiz1?= =?us-ascii?Q?uJrV5596RwbzDpHquogmSwyXLslmsrEVnB+9gUI?= =?us-ascii?Q?rJWvGuT=2FExDvmCJGpwKzvbdEgA0TLhBxfq5CVWN?= =?us-ascii?Q?DfwOufKRfav=2FAnAvJTYhg=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: KB6UAV6F4VSB2M3KSVJ5MCIIQGUCAQHK X-Message-ID-Hash: KB6UAV6F4VSB2M3KSVJ5MCIIQGUCAQHK 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:111053] [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 reported by deivid (David Rodr=EDguez). ---------------------------------------- Bug #19158: Ruby 3.1.3 installs wrong gemspec for debug gem https://bugs.ruby-lang.org/issues/19158 * 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: UNKNOWN ---------------------------------------- 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/