From owner-freebsd-ruby@freebsd.org Tue Jan 3 19:53:28 2017 Return-Path: Delivered-To: freebsd-ruby@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5425FC9D382 for ; Tue, 3 Jan 2017 19:53:28 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mouf.net", Issuer "mouf.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 165FD1CBB for ; Tue, 3 Jan 2017 19:53:28 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from [10.0.1.70] (cpe-071-065-239-148.nc.res.rr.com [71.65.239.148] (may be forged)) (authenticated bits=0) by mouf.net (8.14.9/8.14.9) with ESMTP id v03JrJEN097488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 3 Jan 2017 19:53:25 GMT (envelope-from swills@FreeBSD.org) Subject: Re: PREFIX enviroment variable pollutes gem search path To: "=?UTF-8?Q?Jos=c3=a9_G._Juanino?=" References: <20170103000758.pnoglvxtseec2xpn@abel.home.inet> <20170103142749.62nzduottim5wxpj@abel.home.inet> <5a2c04e1-81bb-41f6-e727-9b4a53682d9b@FreeBSD.org> <20170103192259.c6ebqxy3jwrsgo5o@abel.home.inet> Cc: freebsd-ruby@freebsd.org From: Steve Wills Message-ID: Date: Tue, 3 Jan 2017 14:53:18 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170103192259.c6ebqxy3jwrsgo5o@abel.home.inet> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FriCTTP2O5dQDLKEdcONv1MS9SshpH424" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mouf.net [199.48.129.64]); Tue, 03 Jan 2017 19:53:25 +0000 (UTC) X-Spam-Status: No, score=-1.0 required=4.5 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mouf.net X-Virus-Scanned: clamav-milter 0.99.2 at mouf.net X-Virus-Status: Clean X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2017 19:53:28 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FriCTTP2O5dQDLKEdcONv1MS9SshpH424 Content-Type: multipart/mixed; boundary="QcSvJkerT8xQNurkpnOeT1RFBtPGISkjI"; protected-headers="v1" From: Steve Wills To: =?UTF-8?Q?Jos=c3=a9_G._Juanino?= Cc: freebsd-ruby@freebsd.org Message-ID: Subject: Re: PREFIX enviroment variable pollutes gem search path References: <20170103000758.pnoglvxtseec2xpn@abel.home.inet> <20170103142749.62nzduottim5wxpj@abel.home.inet> <5a2c04e1-81bb-41f6-e727-9b4a53682d9b@FreeBSD.org> <20170103192259.c6ebqxy3jwrsgo5o@abel.home.inet> In-Reply-To: <20170103192259.c6ebqxy3jwrsgo5o@abel.home.inet> --QcSvJkerT8xQNurkpnOeT1RFBtPGISkjI Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi, On 01/03/2017 14:22, Jos=E9 G. Juanino wrote: > Hi Steve, >=20 > it breaks some custom code; no port is affected, I think. Ok, good to know. > But if you run > *any* ruby dependent port polluted with PREFIX environment variable, an= d > that port requires some other gem, it will fails at the moment it > 'requires' the gem, sure.=20 Describing it as "polluted" with a PREFIX environment variable seems a bit inaccurate to me. PREFIX is a commonly used variable on FreeBSD and in this case it's mean to indicate to gem where it might find some things. I'm guessing your custom code checks for this variable as well and also is meant to use it for something else? Perhaps it could be change to use a different variable name? > To diagnose and debug is very tricky, I > certify :P. Yeah, I can imagine that was confusing. :) Steve --QcSvJkerT8xQNurkpnOeT1RFBtPGISkjI-- --FriCTTP2O5dQDLKEdcONv1MS9SshpH424 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQGQBAEBCgB6BQJYbAEuXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5OEZBNDE0QTVDMkEwRUY5Q0ZEMEFEMERG NUNGNjJCMzIwN0IxQkExExxzd2lsbHNAZnJlZWJzZC5vcmcACgkQ9c9isyB7G6GU Rgf+KT6WCjGM4us1UKEVW7as0f1AHZyu7m0GVK9vwY7BaBFsomXnRp7jpTXzhtTa dNf+KP4bARYXDkzIOKlr80KEJbVpNsNxoHkQIE/3DcI4IGG7xmUn6aLpfI8sZU78 fj2aWuTQTFno3piS++7rJ4PQ1e8GEZbARBPaeWuCCFsi/Q5XfX/AqgwVSd9YndVF oLu8VPhNxD5haPgrbXIAnCsrDCShzr8mD5i2DnRw0K0YaZX19ISyf+ZCN7pHJ1Rg 2ufuJM6uGWK5z+z/cPP9k5uHUahCyAzKGN018gBraKlDBl7mokas8P0nnFCd6LQR O+LTM1uekvz7npJF+qjGpzkj9g== =xtUc -----END PGP SIGNATURE----- --FriCTTP2O5dQDLKEdcONv1MS9SshpH424--