From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id BonfK7X0vF6UJgAA0tVLHw (envelope-from ) for ; Thu, 14 May 2020 07:35:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cPfHJbX0vF66JQAAB5/wlQ (envelope-from ) for ; Thu, 14 May 2020 07:35:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2A95D940607 for ; Thu, 14 May 2020 07:35:15 +0000 (UTC) Received: from localhost ([::1]:49592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZ8Oi-0004Fz-5j for larch@yhetil.org; Thu, 14 May 2020 03:35:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZ8OY-0004EZ-F4 for guix-devel@gnu.org; Thu, 14 May 2020 03:35:06 -0400 Received: from mira.cbaines.net ([212.71.252.8]:50074) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZ8OX-00066L-BA for guix-devel@gnu.org; Thu, 14 May 2020 03:35:06 -0400 Received: from localhost (unknown [46.237.173.210]) by mira.cbaines.net (Postfix) with ESMTPSA id 98E4427BBE1; Thu, 14 May 2020 08:35:03 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 8ec48337; Thu, 14 May 2020 07:35:00 +0000 (UTC) References: <87r1vppafb.fsf@inv.alid.pw> User-agent: mu4e 1.2.0; emacs 26.3 From: Christopher Baines To: Josh Holland Subject: Re: Bundler 2 In-reply-to: <87r1vppafb.fsf@inv.alid.pw> Date: Thu, 14 May 2020 08:34:58 +0100 Message-ID: <87h7wjnf4t.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 03:35:04 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 X-Spam-Score: -1.61 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Scan-Result: default: False [-1.61 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.53955226264653]; MX_INVALID(1.00)[cached]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.05), country: US(-0.00), ip: 209.51.188.17(-0.54)]; DWL_DNSWL_BLOCKED(0.00)[209.51.188.17:from]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; SIGNED_PGP(-2.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[mail@cbaines.net,guix-devel-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[bundler.io:url,alid.pw:email]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DMARC_NA(0.00)[cbaines.net]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[209.51.188.17:from]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: +wcOxqgEMrDY --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Josh Holland writes: > In the course of some fairly involved yak-shaving, I found the need to > run a Ruby package, and tried running `guix environment --ad-hoc bundler > ruby`. However, running it produced an error: > > $ bundle install > Traceback (most recent call last): > 2: from /gnu/store/5flpa8h2adwb86n49r7p3mbp11p0jafr-profile/bin/bundle:2= 3:in `
' > 1: from /gnu/store/9yqh0g1p5bmxar8dlfp84j4py3j631jv-ruby-2.6.5/lib/ruby/= 2.6.0/rubygems.rb:302:in `activate_bin_path' > /gnu/store/9yqh0g1p5bmxar8dlfp84j4py3j631jv-ruby-2.6.5/lib/ruby/2.6.0/rub= ygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.1.0.pre.2)= required by your /home/josh/c/gnome-dbus-emulation-wlr/Gemfile.lock. (Gem:= :GemNotFoundException) > To update to the latest version installed on your system, run `bundle upd= ate --bundler`. > To install the missing version, run `gem install bundler:2.1.0.pre.2` > > Indeed I see that gnu/packages/ruby.scm only packages Bundler v1.17.3, > though Bundler 2 was released in January 2019 [0]. I'm not hugely > familiar with the Ruby ecosystem, but reading the release announcement > suggests that they expect users/developers to have both Bundler 1 and > Bundler 2 available. If I hadn't seen this, I'd have gone ahead and > submitted a patch simply upgrading the Bundler package definition, but > I'm not sure if that will then immediately break every package depending > on it that expects Bundler 1. > > Is this a valid concern? Should Guix provide packages for both Bundler > 1 and Bundler 2, or would just Bundler 2 be sufficient? I'll still > write a definition for the new version, but I'll hold off submitting a > patch until I've had some feedback. > > [0]: https://bundler.io/blog/2019/01/03/announcing-bundler-2.html Hi Josh, I'm not particularly sure, but it's probably easier to just provide both. Note that bundler has quite few dependencies in Guix [1], so it would be interesting to see if these all build with Bundler 2. 1: =E2=86=92 guix refresh -l bundler Building the following 37 packages would ensure 182 dependent packages are rebuilt Thanks for looking in to this, Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl689KJfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XfUiQ/+Od5xJh1HAGGFQgxjTKJt4r8clUkt+DOAiOUEgW/5yqYKM2+enkuJCG1y n2DGYLrfXl/+Hg17QF67MGjJk4ptMX7NYW9wzykDNaaVBI6u8lfIOXPhnOMRhLxP +tFLncjJUzvPO8/Lr6BOZ7q4XtO1VOX43mTfkC9JYXjzwxDwAiUXEY61bXFzMXgM 6+5GprzNob7mGsXNrNXDuAMo41hIjph+lZ24O1CwsCXj7XcBpqsXIBRwKWgkRXK4 0fExiTA2e01ocq0xVVTr6V/nICLBj4oxTh0Ir6LcQag9ZVmywG1cglWCBLFLXU5a ApiJIK27NS3AttCpnRF9YoZiW4AXnGT791obAUNUKWMr2OFJDwbHb6fhccMP2oYH PSTQP4K6sdca6Ksjk4FqyWHWVuhJRlYXCHiBr5cVQRHIWZHnGTUT4cpnL/OBHfIT MuZOtHSdQaPhGE7IqxHPE70OOS7OESJ/QQDR8ZZCGgZVGQX5qMbYUii28p6ogtqu 6bGaCKwFmwcaOuEqAWptvDCzIR7O9MPSHdSnfV5oWLZ2QbL1+9RvlUSrxzeBl72u Rab6KsLDRFROMKqhuAwZBVe0fxHUpqTqyR+bs3HBXgU6H8ooPIQ+jbLOgwocwPTi 3gALSc2S6qgcCiWsTM9CAClLEugL4QNKi83G731VJJD5yVbBf3Y= =H3AG -----END PGP SIGNATURE----- --=-=-=--