From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNurc-0001Jy-8U for guix-patches@gnu.org; Thu, 22 Jun 2017 01:41:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNurX-0003Ol-Ai for guix-patches@gnu.org; Thu, 22 Jun 2017 01:41:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:57850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNurX-0003Of-7a for guix-patches@gnu.org; Thu, 22 Jun 2017 01:41:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dNurW-0006wI-E3 for guix-patches@gnu.org; Thu, 22 Jun 2017 01:41:02 -0400 Subject: [bug#27438] [PATCH] Specify native search path for all ruby packages Resent-Message-ID: References: <0c3c92c6-05ca-bb36-2f24-69077033e91f@cbaines.net> <878tkliix9.fsf@gnu.org> From: Christopher Baines Message-ID: <6a666d6f-f2c2-d786-8fda-422ab28867ca@cbaines.net> Date: Thu, 22 Jun 2017 06:40:17 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wHncBGBH3ij6KPx3OuGHwR6RxAd0CCtCE" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ben Woodcroft , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 27438@debbugs.gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wHncBGBH3ij6KPx3OuGHwR6RxAd0CCtCE Content-Type: multipart/mixed; boundary="LUAvDilEjBIsscrMUukKST8ogOv6k4OVE"; protected-headers="v1" From: Christopher Baines To: Ben Woodcroft , =?UTF-8?Q?Ludovic_Court=c3=a8s?= Cc: 27438@debbugs.gnu.org Message-ID: <6a666d6f-f2c2-d786-8fda-422ab28867ca@cbaines.net> Subject: Re: [bug#27438] [PATCH] Specify native search path for all ruby packages References: <0c3c92c6-05ca-bb36-2f24-69077033e91f@cbaines.net> <878tkliix9.fsf@gnu.org> In-Reply-To: --LUAvDilEjBIsscrMUukKST8ogOv6k4OVE Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 22/06/17 06:27, Ben Woodcroft wrote: > On 21/06/17 23:12, Ludovic Court=C3=A8s wrote: >> Ben Woodcroft skribis: >> >>> On 21/06/17 16:36, Christopher Baines wrote: >>>> Without specifying this explicitly in each definition, the GEM_PATH = is >>>> inherited and the version is that of the inherited package. >>>> >>> I'm not sure if this is by design, but the version of the gems folder= >>> is embedded in the build of each rubygem e.g. 'ruby-hoe' includes >>> /gnu/store/d867l5i2dqd5qnq4qlsrcwwb0x3443fl-ruby-hoe-3.16.0/lib/ruby/= gems/2.4.0 >>> >> Or should the search path spec include both lib/ruby/gems/2.2.0 and >> lib/ruby/gems/2.4.0, in this order? > Exactly. >=20 > Chris, what is your experience? Did you propose the patch because you > ran into a particular issue? Yep, I ran in to problems trying to use the guix ruby-2.3 package with the guix bundler package, when I build bundler with ruby-2.3. Ben's email got me thinking about how this works in Debian, and it looks like Debian uses a different location /usr/lib/ruby/vendor_ruby/ . I think there might be benefits from doing similarly, but this needs a bit of thought and testing, as I'm unsure how this might work, especially in cases where libraries include native code that links against ruby. I've got a patch for the ruby-build-system to make a change roughly like this, and I'll send that up soon. Relating this back to the issue at hand, moving to a version independent directory would mean that the GEM_PATH wouldn't be version specific. Thanks, Chris --LUAvDilEjBIsscrMUukKST8ogOv6k4OVE-- --wHncBGBH3ij6KPx3OuGHwR6RxAd0CCtCE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQJFBAEBCAAvFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAllLWEERHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XccRw/8Cx5d1gzKmQHUzLCq3rNw2W6xG9HNiojH Vo3fcLRUdQD74PtVbeeWEUno+XoLDG8ccJiwMmljjDTEN9XcNrGwImLGGFuCPx6b 0YSASG3eeftkspRIY10QGan8K1nSNjeDi3FsawAPA8/BOcWVcrP+IlvERY4Oe5lw 5eQZ1R3/4QgHVdSEZEoxrQRa1f1L5m1DtOHGIMPJbF9OTBveRBOJI1hs2KZVLzx7 9K5Xgj/wAbeHhsM/DpOrXvtskVg4VFUl3PKidgiVNCnrK6N+/kunwWcs9paocrZ6 R+1iza/AEyVskTnX1uDrkHx4MML0ZnwAarXHKKdnvbQThzNrKTsHzfNBlS49btIQ azNn0iNoBB/E0dM0Mv4AI2szE6gffwYqmOUKLfhq5qkmR+kFhsUBFRgOKmQIxro0 tMZZ+89lq7ALB7Rtj1ec7iQ0zV03T+ZR7HArc1LNTjbHzM6mcJCGSKFEHhX3HEuA ed8UPaCy5WkUEZHIudABPvuOehRLi6RUUGNluV9Xtwnk6FSSJ2TwLHv8VQDidyYW rDGPW5F9QuKX6Cz0CwhMeDwBmQXk2VKsk0tkPec8sKZaYc4F3hKOH+GAxbPuk/Uc hf2QKf+FaHUBTirbEgdufq6N2dMXuyEROQ/SS79qeLE6uLC0anZeAGMo/9NgeHn1 2Bye0GdKI6E= =ekDV -----END PGP SIGNATURE----- --wHncBGBH3ij6KPx3OuGHwR6RxAd0CCtCE--