[#7055] More on VC++ 2005 — Austin Ziegler <halostatue@...>

Okay. I've got Ruby compiling. I'm attempting to get everything in

17 messages 2006/01/05
[#7058] Re: More on VC++ 2005 — nobuyoshi nakada <nobuyoshi.nakada@...> 2006/01/06

Hi,

[#7084] mathn: ugly warnings — hadmut@... (Hadmut Danisch)

Hi,

22 messages 2006/01/10
[#7097] Re: mathn: ugly warnings — Daniel Berger <Daniel.Berger@...> 2006/01/10

Hadmut Danisch wrote:

[#7098] Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/10

Daniel Berger wrote:

[#7118] Re: Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/12

*Dean Wampler *<deanwampler gmail.com> writes:

[#7226] Fwd: Re: Question about massive API changes — "Sean E. Russell" <ser@...>

Hello,

23 messages 2006/01/28
[#7228] Re: Question about massive API changes — Caleb Tennis <caleb@...> 2006/01/28

>

Re: [PATCH] Ruby 1.9 and FHS

From: Austin Ziegler <halostatue@...>
Date: 2006-01-23 14:59:37 UTC
List: ruby-core #7189
On 23/01/06, Kirill A. Shutemov <k.shutemov@sam-solutions.net> wrote:
> On 22:25 Mon 23 Jan, Austin Ziegler wrote:
>> On 23/01/06, Kirill A. Shutemov <k.shutemov@sam-solutions.net> wrote:
>>> Build and install system changes:
>>> FHS:
>>>
>>> - pure-ruby files install separete from ruby extentions(binary).
>>>   /usr/share/ruby/X.Y for *.rb
>>>   /usr/lib/ruby/X.Y for *.so
>>>
>>> - ruby headers install to /usr/include/ruby/X.Y/
>>>
>>> Non-FHS:
>>>
>>> - vendor-specific ruby-modules dirs. It's useful for a distribution. We
>>>   have three type of ruby-modules:
>>>   1. stdlib
>>>   2. vendor-specific(a ruby modules prepared for a distribution)
>>>   3. user's modules which installed by hand
>> I don't think that this is a useful modification. If a particular
>> repackager wants to use this, feel free, but I think that the current
>> installation layout is more than sufficient and is overall better for
>> its cleanliness.o
> I don't think that scrap-heap of header, rb and binary files is very
> cleanliness.

That's your opinion. The current way it works is, however, very easy to
clean up, since it's all under a single directory.

>> If you want something more applicable that makes it useful to
>> repackagers and people who couldn't care less about the
>> Linux-specific FHS (e.g., anyone using Windows or a Unix other than
>> Linux), make it something which can be applied with a specific
>> configure option (e.g., --enable-fhs-install). Even when I use Linux,
>> if I'm installing from source, I don't necessarily want to follow
>> FHS, and your patch *only* allows for FHS installs on Linux.
>>
>> Also, your change to --with-sitedir is not appropriate, since binary
>> extensions can end up there.
> I can add code to configure.in code to allow user specify
> rubyincludedir, archdir, rubylibdir, sitelibdir, sitearchdir. Is it
> what you want?

No. I don't want FHS on by default, even on Linux systems. Your patch
assumes "if it's Linux, it must be FHS". For some people (Debian
zealots, maybe?), that's important. For others, it's stupid. Change it
to --with-fhs to enable FHS compliance.

Your --with-sitedir is not appropriate in any case, though, since by
default a binary extension would *still* end up in the sitedir which
you've now put in /usr/share/lib. According to what I understand of the
beast called FHS, that's Not Good. All binary extensions are supposed to
be in /usr/local/lib, since the idea is that /usr/share could be mounted
NFS. Fixing it, though, will require a bit more than you've done from
what I can tell, because you need to still have a ruby and a site-ruby
binary directory since it would be theoretically possible to have two
.so libraries named the same and the site-ruby should override the
default.

-austin
--
Austin Ziegler * halostatue@gmail.com
               * Alternate: austin@halostatue.ca


In This Thread