[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

mkmf generates corrupt makefile in 1.8.6

Avdi Grimm

10/10/2008 4:08:00 PM

I just noticed (because libxml-ruby wouldn't compile) that the mkmf.rb
in my version of Ruby 1.8.6 has a bug. The generated makefile
prefixes spaces instead of tabs for a couple of the generated make
tasks. Specifically, the clean/distclean tasks.

It appears to have been addressed in 1.9 trunk (although oddly, the
same tasks now use two tabs where all the others use one).

Posting this for two reasons:
1) Be aware if you are still on 1.8.6 that if you see a Make error
complaining about spaces instead of tabs while compiling an extension,
it's probably mkmf's fault and not the extensions'.

2) Does anyone know if this has been addressed in 1.8.7 or any of the
1.8.6 patches?

--
Avdi

Home: http:...
Developer Blog: http:.../devblog/
Twitter: http://twitte...
Journal: http://avdi.livej...

3 Answers

Nobuyoshi Nakada

10/10/2008 11:58:00 PM

0

Hi,

At Sat, 11 Oct 2008 01:07:33 +0900,
Avdi Grimm wrote in [ruby-talk:317345]:
> I just noticed (because libxml-ruby wouldn't compile) that the mkmf.rb
> in my version of Ruby 1.8.6 has a bug. The generated makefile
> prefixes spaces instead of tabs for a couple of the generated make
> tasks. Specifically, the clean/distclean tasks.

from where and how did you installed it? The file in the SVN
repository doesn't seem to have had such issue.
Haven't you edited it or pasted it from anywhere?

--
Nobu Nakada

Nobuyoshi Nakada

10/11/2008 1:36:00 AM

0

Hi,

At Sat, 11 Oct 2008 08:57:38 +0900,
Nobuyoshi Nakada wrote in [ruby-talk:317382]:
> > I just noticed (because libxml-ruby wouldn't compile) that the mkmf.rb
> > in my version of Ruby 1.8.6 has a bug. The generated makefile
> > prefixes spaces instead of tabs for a couple of the generated make
> > tasks. Specifically, the clean/distclean tasks.
>
> from where and how did you installed it? The file in the SVN
> repository doesn't seem to have had such issue.
> Haven't you edited it or pasted it from anywhere?

Anyway, I've modified those lines as preventive measures
against such confusions.

--
Nobu Nakada

Avdi Grimm

10/11/2008 7:10:00 PM

0

On Fri, Oct 10, 2008 at 7:57 PM, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
> from where and how did you installed it?

MacPorts.

> Haven't you edited it or pasted it from anywhere?

Not that I recall.

--
Avdi

Home: http:...
Developer Blog: http:.../devblog/
Twitter: http://twitte...
Journal: http://avdi.livej...