void-packages/srcpkgs/subtle/patches/ruby32.patch

35 lines
1014 B
Diff

--- a/src/shared/shared.h
+++ b/src/shared/shared.h
@@ -18,6 +18,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
+#include <stdint.h>
#include <signal.h>
#include <errno.h>
#include <assert.h>
--- a/data/sur/server.rb
+++ b/data/sur/server.rb
@@ -148,8 +148,8 @@
#DataMapper::Model.raise_on_save_failure = true
# Create database and store
- DataMapper.auto_migrate! unless File.exists?(DATABASE)
- Dir.mkdir(REPOSITORY) unless File.exists?(REPOSITORY)
+ DataMapper.auto_migrate! unless File.exist?(DATABASE)
+ Dir.mkdir(REPOSITORY) unless File.exist?(REPOSITORY)
# Configure sinatra application
set :port, port
--- a/Rakefile
+++ b/Rakefile
@@ -288,7 +288,7 @@
end
# Get revision
- if File.exists?(".hg") and (hg = find_executable0("hg"))
+ if File.exist?(".hg") and (hg = find_executable0("hg"))
match = `#{hg} tip`.match(/^[^:]+:\s*(\d+).*/)
if !match.nil? and 2 == match.size