public
Description: Ruby Enterprise Edition
Homepage: http://www.rubyenterpriseedition.com/
Clone URL: git://github.com/FooBarWidget/rubyenterpriseedition.git
Fix permissions for the SQLite3-Ruby gem.
Hongli Lai (Phusion) (author)
Wed Jul 09 05:00:55 -0700 2008
commit  097d2f3c22848470311bf6b5facac0a49e03b4ca
tree    7aa599e4b58e04392222b877fd046627f775336d
parent  f5688a91d5768827d786bc7c83c5a3f2294e9222
...
297
298
299
 
 
 
 
 
 
 
300
301
302
...
297
298
299
300
301
302
303
304
305
306
307
308
309
0
@@ -297,6 +297,13 @@ private
0
     Dir.chdir("#{@destdir}#{@prefix}/bin") do
0
       sh "sed -i 's|^#!.*$|#!#{@prefix}/bin/ruby|' *"
0
     end
0
+    Dir.chdir("#{@destdir}#{@prefix}/lib/ruby/gems/1.8/gems") do
0
+      if !Dir["sqlite3-ruby*"].empty?
0
+        # The sqlite3-ruby gem installs files with wrong permissions.
0
+        # We fix this.
0
+        sh "chmod -R g+r,o+r sqlite3-ruby*"
0
+      end
0
+    end
0
   end
0
   
0
   def show_finalization_screen

Comments