couchone / build-couchdb

Batteries-included CouchDB build system
25 stars 44 forks source link

Rake mktmpdir issues means not compatbile with pre-1.8.7 Ruby #10

Open natevw opened 13 years ago

natevw commented 13 years ago

When trying to build Couch with an older version of Ruby (Mac OS X 10.5 Leopard ships with 1.8.6) the build fails due to a missing Dir mktmpdir method. If this dependency (hopefully no others are hiding after this one?) could be eliminated it would be much easier to build Couch on slightly older platforms/distros.

jhs commented 13 years ago

I agree! I am frustrated with mktmpdir myself. I think it should be easy to re-implement or perhaps copy the code from a newer build, since I imagine it is written in pure Ruby.

I will close this ticket when I find the time to write that and thus depend on pretty much any Ruby anybody might have.

jhs commented 13 years ago

Hi! I just committed an experimental Dir.mktmpdir backport into the master branch. It works for me with new Ruby, however I have not tried it with Ruby 1.8.6 or newer.

I did, however, visually confirm that all of the functions called by Dir.mktmpdir do exist in the 1.8.6 library (e.g. Dir.tmpdir, FileUtils.remove_entry_secure).