How to test mkmf2.rb
First, you need to get a
of mkmf2.rb and install it. Unpack the archive, and then run:
ruby extconf.rb; make install
ruby --home extconf.rb; make install
if you prefer to install to your home directory, or if you
don't have the privileges necessary. In that case, make sure
that you set the RUBYLIB variable correctly:
Then, get a library package that installs with the old
mkmf.rb, unpack it and run:
ruby extconf.rb; make install DESTDIR=./temp.1
This should install the package using the old mkmf.rb under
the subdirectory temp.1 of the package.
Then, modify the file extconf.rb of the package. It should contain a line like:
Transform it into
make a copy of the file mkmf.log and run the following:
ruby extconf.rb; make install DESTDIR=./temp.2
Then, compare the contents of the temp.1 and temp.2
directories, for instance with the program tree.
In any case, I would like to hear about the results of the test. Send a mail to email@example.com including the following details:
- which is the package, and especially where I can get it (I am not interested to hear about things which I can't check or work with...);
- the architecture of your machine (Win32, MacOS, Linux, ...);
- the differences between the the temp.1 and temp.2 directories, if any;
- and, if there is an error with mkmf2 that doesn't show up with mkmf, provide me as well with the contents of both mkmf.log and the error messages.