Re: PREFIX enviroment variable pollutes gem search path

2017-01-03 Thread José G . Juanino
El martes 03 de enero a las 20:53:18 CET, Steve Wills escribió: But if you run *any* ruby dependent port polluted with PREFIX environment variable, and that port requires some other gem, it will fails at the moment it 'requires' the gem, sure. Describing it as "polluted" with a PREFIX

Re: PREFIX enviroment variable pollutes gem search path

2017-01-03 Thread Steve Wills
Hi, On 01/03/2017 14:22, José G. Juanino wrote: > Hi Steve, > > 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, and > that port requires some other gem, it will fails at the

Re: PREFIX enviroment variable pollutes gem search path

2017-01-03 Thread José G . Juanino
El martes 03 de enero a las 16:20:07 CET, Steve Wills escribió: This was added in r210636 (nearly 8 years ago) to "allow modules to be installed into separate PREFIX and/or under user privilegies" (sic) and so far I believe this is the first issue I've seen with it. Can you explain in more

Re: PREFIX enviroment variable pollutes gem search path

2017-01-03 Thread Steve Wills
Hi, On 01/03/2017 09:27, José G. Juanino wrote: >> In short: you cannot load any gem if your environment contains the >> PREFIX variable. When this happens, ruby uses the assigned value >> instead of /usr/local to search the proper files. This breaks a lot of >> existent code. >> >> The relevant

Re: PREFIX enviroment variable pollutes gem search path

2017-01-03 Thread José G . Juanino
El martes 03 de enero a las 01:07:58 CET, José G. Juanino escribió: Hi, I am suffering an annoying issue loading gem libraries; I am not sure if it is FreeBSD specific. Install some gem, for example rubygem-test-unit-3.1.9, and take a look at the following code: $ ruby22 -r test/unit -e

PREFIX enviroment variable pollutes gem search path

2017-01-02 Thread José G . Juanino
Hi, I am suffering an annoying issue loading gem libraries; I am not sure if it is FreeBSD specific. Install some gem, for example rubygem-test-unit-3.1.9, and take a look at the following code: $ ruby22 -r test/unit -e 'puts' $ PREFIX=1 ruby22 -r test/unit -ne 'puts'