diff --git a/srcpkgs/subtle/patches/ruby32.patch b/srcpkgs/subtle/patches/ruby32.patch new file mode 100644 index 00000000000..23a3303215b --- /dev/null +++ b/srcpkgs/subtle/patches/ruby32.patch @@ -0,0 +1,34 @@ +--- a/src/shared/shared.h ++++ b/src/shared/shared.h +@@ -18,6 +18,7 @@ + #include + #include + #include ++#include + #include + #include + #include +--- 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 diff --git a/srcpkgs/subtle/template b/srcpkgs/subtle/template index 1f41155a11a..32b13cb1d56 100644 --- a/srcpkgs/subtle/template +++ b/srcpkgs/subtle/template @@ -18,7 +18,7 @@ if [ "$CROSS_BUILD" ]; then broken="Word size must match" fi hostmakedepends+=" $makedepends" - CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/ruby-3.1.0/" + CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/ruby-3.2.0/" export CFLAGS fi