mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
subtle: rebuild for ruby-3.2.0.
This commit is contained in:
parent
60cc4b0365
commit
4ea036808a
2 changed files with 35 additions and 1 deletions
34
srcpkgs/subtle/patches/ruby32.patch
Normal file
34
srcpkgs/subtle/patches/ruby32.patch
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
--- 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
|
|
@ -18,7 +18,7 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
broken="Word size must match"
|
broken="Word size must match"
|
||||||
fi
|
fi
|
||||||
hostmakedepends+=" $makedepends"
|
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
|
export CFLAGS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue