Re: mkmf and sitelibdir
On Tue, Apr 16, 2013 at 1:05 PM, Felipe Contreras
<felipe.contreras@gmail.com> wrote:
> On Tue, Apr 16, 2013 at 12:50 PM, Antonio Terceiro <terceiro@debian.org> wrote:
>> Hello Felipe,
>>
>> On Mon, Apr 15, 2013 at 12:10:02PM -0500, Felipe Contreras wrote:
>>> Hi,
>>>
>>> Following the guidelines to package a ruby C extension[1], one comes
>>> up with this simple extconf.rb:
>>>
>>> require 'mkmf'
>>> create_makefile("Test")
>>>
>>> But then, when installing it goes to:
>>>
>>> /usr/local/lib/site_ruby/1.9.1/x86_64-linux
>>>
>>> This is clearly wrong, since /usr/local is not allowed for packages.
>>> This is because ruby was configured with
>>> --with-sitedir=/usr/local/lib/site_ruby, which is wrong.
>>
>> If you are building/installing the package by hand (ruby mkmf.rb && make
>> && make install), that's actually the correct behavior.
Ah, found it:
% ruby extconfg.rb --vendor
This should be mentioned in the policy. Thanks for nothing.
--
Felipe Contreras
Reply to: