rdf-smart 0.0.154 → 0.0.155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0d1dec2ba4993bab2145872991ff235f0a34f5e9
4
+ data.tar.gz: faa633f5f0d6742ac05d2efc5dfb73e555574564
5
+ SHA512:
6
+ metadata.gz: 1e37a8322c631524f6322c0266c1598158f3f897d57967c39b7087fbf31e4dc589ebcc775b2feab6123c41ca79639cf21d4dabdc8ad081a8d01b45669c896597
7
+ data.tar.gz: 693bb46d997d42a993800d37aeb28356eaa402db20047defdda48ecdbd1679b636ad30d6d1ef540947608f3ed2f873bd5df4a1849c999428b986a35f02fb3391
data/ext/Makefile CHANGED
@@ -5,25 +5,40 @@ SHELL = /bin/sh
5
5
  V = 0
6
6
  Q1 = $(V:1=)
7
7
  Q = $(Q1:0=@)
8
- n=$(NULLCMD)
9
- ECHO1 = $(V:1=@$n)
8
+ ECHO1 = $(V:1=@:)
10
9
  ECHO = $(ECHO1:0=@echo)
11
10
 
12
11
  #### Start of system configuration section. ####
13
12
 
14
13
  srcdir = .
15
- topdir = /usr/include/ruby-1.9.1
16
- hdrdir = /usr/include/ruby-1.9.1
17
- arch_hdrdir = /usr/include/ruby-1.9.1/$(arch)
14
+ topdir = /usr/include/ruby-2.1.0
15
+ hdrdir = $(topdir)
16
+ arch_hdrdir = /usr/include/x86_64-linux-gnu/ruby-2.1.0
17
+ PATH_SEPARATOR = :
18
18
  VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
19
19
  prefix = $(DESTDIR)/usr
20
+ rubysitearchprefix = $(sitearchlibdir)/$(RUBY_BASE_NAME)
21
+ rubyarchprefix = $(archlibdir)/$(RUBY_BASE_NAME)
20
22
  rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
21
23
  exec_prefix = $(prefix)
24
+ vendorarchhdrdir = $(sitearchincludedir)/$(RUBY_VERSION_NAME)/vendor_ruby
25
+ sitearchhdrdir = $(sitearchincludedir)/$(RUBY_VERSION_NAME)/site_ruby
26
+ rubyarchhdrdir = $(archincludedir)/$(RUBY_VERSION_NAME)
22
27
  vendorhdrdir = $(rubyhdrdir)/vendor_ruby
23
28
  sitehdrdir = $(rubyhdrdir)/site_ruby
24
- rubyhdrdir = $(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)
25
- vendordir = $(DESTDIR)/usr/lib/ruby/vendor_ruby
29
+ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
30
+ vendorarchdir = $(rubysitearchprefix)/vendor_ruby/$(ruby_version)
31
+ vendorlibdir = $(vendordir)/$(ruby_version)
32
+ vendordir = $(rubylibprefix)/vendor_ruby
33
+ sitearchdir = $(DESTDIR)/usr/local/lib/x86_64-linux-gnu/site_ruby
34
+ sitelibdir = $(sitedir)/$(ruby_version)
26
35
  sitedir = $(DESTDIR)/usr/local/lib/site_ruby
36
+ rubyarchdir = $(rubyarchprefix)/$(ruby_version)
37
+ rubylibdir = $(rubylibprefix)/$(ruby_version)
38
+ sitearchincludedir = $(includedir)/$(sitearch)
39
+ archincludedir = $(includedir)/$(arch)
40
+ sitearchlibdir = $(libdir)/$(sitearch)
41
+ archlibdir = $(libdir)/$(arch)
27
42
  ridir = $(datarootdir)/$(RI_BASE_NAME)
28
43
  mandir = $(prefix)/share/man
29
44
  localedir = $(datarootdir)/locale
@@ -41,17 +56,11 @@ sharedstatedir = $(prefix)/com
41
56
  sysconfdir = $(DESTDIR)/etc
42
57
  datadir = $(datarootdir)
43
58
  datarootdir = $(prefix)/share
44
- libexecdir = $(prefix)/lib/ruby1.9.1
59
+ libexecdir = $(prefix)/lib/ruby2.1
45
60
  sbindir = $(exec_prefix)/sbin
46
61
  bindir = $(exec_prefix)/bin
47
- rubylibdir = $(rubylibprefix)/$(ruby_version)
48
- archdir = $(rubylibdir)/$(arch)
49
- sitelibdir = $(sitedir)/$(ruby_version)
50
- sitearchdir = $(sitelibdir)/$(sitearch)
51
- vendorlibdir = $(vendordir)/$(ruby_version)
52
- vendorarchdir = $(vendorlibdir)/$(sitearch)
62
+ archdir = $(rubyarchdir)
53
63
 
54
- NULLCMD = :
55
64
 
56
65
  CC = gcc
57
66
  CXX = g++
@@ -65,15 +74,16 @@ COUTFLAG = -o $(empty)
65
74
 
66
75
  RUBY_EXTCONF_H = extconf.h
67
76
  cflags = $(optflags) $(debugflags) $(warnflags)
68
- optflags = -O3
69
- debugflags = -ggdb
70
- warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
71
- CFLAGS = -fPIC -DRSM_VERSION=\"0.0.154\" -std=c99 -I/usr/include/rasqal -I/usr/include/raptor2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC $(ARCH_FLAG)
77
+ optflags = -O3 -fno-fast-math
78
+ debugflags = -ggdb3
79
+ warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
80
+ CCDLFLAGS = -fPIC
81
+ CFLAGS = $(CCDLFLAGS) -DRSM_VERSION=\"0.0.155\" -std=c99 -I/usr/include/rasqal -I/usr/include/raptor2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC $(ARCH_FLAG)
72
82
  INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
73
83
  DEFS =
74
84
  CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -D_FORTIFY_SOURCE=2 $(DEFS) $(cppflags)
75
- CXXFLAGS = $(CFLAGS) -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing
76
- ldflags = -lrasqal -lraptor2 -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby1.9.1-1.9.3.484/debian/lib -rdynamic -Wl,-export-dynamic
85
+ CXXFLAGS = $(CCDLFLAGS) -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security $(ARCH_FLAG)
86
+ ldflags = -lrasqal -lraptor2 -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby2.1-2.1.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic
77
87
  dldflags =
78
88
  ARCH_FLAG =
79
89
  DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
@@ -82,14 +92,20 @@ LDSHAREDXX = $(CXX) -shared
82
92
  AR = ar
83
93
  EXEEXT =
84
94
 
95
+ RUBY_INSTALL_NAME = ruby2.1
96
+ RUBY_SO_NAME = ruby-2.1
97
+ RUBYW_INSTALL_NAME =
98
+ RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
99
+ RUBYW_BASE_NAME = rubyw
85
100
  RUBY_BASE_NAME = ruby
86
- RUBY_INSTALL_NAME = ruby1.9.1
87
- RUBY_SO_NAME = ruby-1.9.1
88
- arch = x86_64-linux
101
+
102
+ arch = x86_64-linux-gnu
89
103
  sitearch = $(arch)
90
- ruby_version = 1.9.1
91
- ruby = /usr/bin/ruby1.9.1
104
+ ruby_version = 2.1.0
105
+ ruby = $(bindir)/ruby2.1
92
106
  RUBY = $(ruby)
107
+ ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h $(RUBY_EXTCONF_H)
108
+
93
109
  RM = rm -f
94
110
  RM_RF = $(RUBY) -run -e rm -- -rf
95
111
  RMDIRS = rmdir --ignore-fail-on-non-empty -p
@@ -104,8 +120,8 @@ TOUCH = exit >
104
120
 
105
121
  preload =
106
122
 
107
- libpath = . $(libdir) /usr/lib
108
- LIBPATH = -L. -L$(libdir) -L/usr/lib
123
+ libpath = . $(archlibdir) /usr/lib
124
+ LIBPATH = -L. -L$(archlibdir) -L/usr/lib
109
125
  DEFFILE =
110
126
 
111
127
  CLEANFILES = mkmf.log
@@ -116,9 +132,11 @@ extout =
116
132
  extout_prefix =
117
133
  target_prefix = /rdf
118
134
  LOCAL_LIBS =
119
- LIBS = $(LIBRUBYARG_SHARED) -lrasqal -lraptor2 -lpthread -lrt -ldl -lcrypt -lm -lc
120
- SRCS = rsm.c
135
+ LIBS = $(LIBRUBYARG_SHARED) -lrasqal -lraptor2 -lpthread -lgmp -ldl -lcrypt -lm -lc
136
+ ORIG_SRCS = rsm.c
137
+ SRCS = $(ORIG_SRCS)
121
138
  OBJS = rsm.o
139
+ HDRS = $(srcdir)/extconf.h $(srcdir)/rsm.h
122
140
  TARGET = smart
123
141
  TARGET_NAME = smart
124
142
  TARGET_ENTRY = Init_$(TARGET_NAME)
@@ -126,6 +144,7 @@ DLLIB = $(TARGET).so
126
144
  EXTSTATIC =
127
145
  STATIC_LIB =
128
146
 
147
+ TIMESTAMP_DIR = .
129
148
  BINDIR = $(bindir)
130
149
  RUBYCOMMONDIR = $(sitedir)$(target_prefix)
131
150
  RUBYLIBDIR = $(sitelibdir)$(target_prefix)
@@ -140,7 +159,7 @@ CLEANOBJS = *.o *.bak
140
159
  all: $(DLLIB)
141
160
  static: $(STATIC_LIB)
142
161
  .PHONY: all install static install-so install-rb
143
- .PHONY: clean clean-so clean-rb
162
+ .PHONY: clean clean-so clean-static clean-rb
144
163
 
145
164
  clean-static::
146
165
  clean-rb-default::
@@ -152,18 +171,17 @@ clean: clean-so clean-static clean-rb-default clean-rb
152
171
  distclean-rb-default::
153
172
  distclean-rb::
154
173
  distclean-so::
155
- distclean: clean distclean-so distclean-rb-default distclean-rb
156
- @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
157
- @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
158
- @-$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
174
+ distclean-static::
175
+ distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
176
+ -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
177
+ -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
178
+ -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
159
179
 
160
180
  realclean: distclean
161
181
  install: install-so install-rb
162
182
 
163
- install-so: $(RUBYARCHDIR)/$(DLLIB)
164
- $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
165
- -$(Q)$(MAKEDIRS) $(@D)
166
- $(INSTALL_PROG) $(DLLIB) $(@D)
183
+ install-so: $(DLLIB) $(TIMESTAMP_DIR)/.RUBYARCHDIR.-.rdf.time
184
+ $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
167
185
  clean-static::
168
186
  -$(Q)$(RM) $(STATIC_LIB)
169
187
  install-rb: pre-install-rb install-rb-default
@@ -172,8 +190,8 @@ pre-install-rb: Makefile
172
190
  pre-install-rb-default: Makefile
173
191
  pre-install-rb-default:
174
192
  $(ECHO) installing default smart libraries
175
- ./.RUBYARCHDIR.time:
176
- $(Q) $(MAKEDIRS) $(RUBYARCHDIR)
193
+ $(TIMESTAMP_DIR)/.RUBYARCHDIR.-.rdf.time:
194
+ $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
177
195
  $(Q) $(TOUCH) $@
178
196
 
179
197
  site-install: site-install-so site-install-rb
@@ -217,4 +235,4 @@ $(DLLIB): $(OBJS) Makefile
217
235
 
218
236
 
219
237
 
220
- $(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h $(RUBY_EXTCONF_H)
238
+ $(OBJS): $(HDRS) $(ruby_headers)
data/ext/mkmf.log CHANGED
@@ -1,6 +1,6 @@
1
1
  have_library: checking for main() in -lraptor2... -------------------- yes
2
2
 
3
- "gcc -o conftest -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby1.9.1-1.9.3.484/debian/lib -rdynamic -Wl,-export-dynamic -lruby-1.9.1 -lpthread -lrt -ldl -lcrypt -lm -lc"
3
+ "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby2.1-2.1.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc"
4
4
  checked program was:
5
5
  /* begin */
6
6
  1: #include "ruby.h"
@@ -11,42 +11,17 @@ checked program was:
11
11
  6: }
12
12
  /* end */
13
13
 
14
- "gcc -o conftest -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby1.9.1-1.9.3.484/debian/lib -rdynamic -Wl,-export-dynamic -lruby-1.9.1 -lraptor2 -lpthread -lrt -ldl -lcrypt -lm -lc"
14
+ "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby2.1-2.1.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lraptor2 -lpthread -lgmp -ldl -lcrypt -lm -lc"
15
15
  conftest.c: In function ‘t’:
16
- conftest.c:4:53: error: ‘mainundeclared (first use in this function)
17
- int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
18
- ^
19
- conftest.c:4:53: note: each undeclared identifier is reported only once for each function it appears in
20
- conftest.c:4:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
21
- int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
22
- ^
16
+ conftest.c:13:32: warning: variable pset but not used [-Wunused-but-set-variable]
17
+ int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
18
+ ^
23
19
  checked program was:
24
20
  /* begin */
25
21
  1: #include "ruby.h"
26
22
  2:
27
23
  3: /*top*/
28
- 4: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
29
- 5: int main(int argc, char **argv)
30
- 6: {
31
- 7: if (argc > 1000000) {
32
- 8: printf("%p", &t);
33
- 9: }
34
- 10:
35
- 11: return 0;
36
- 12: }
37
- /* end */
38
-
39
- "gcc -o conftest -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby1.9.1-1.9.3.484/debian/lib -rdynamic -Wl,-export-dynamic -lruby-1.9.1 -lraptor2 -lpthread -lrt -ldl -lcrypt -lm -lc"
40
- conftest.c: In function ‘t’:
41
- conftest.c:4:1: warning: implicit declaration of function ‘main’ [-Wimplicit-function-declaration]
42
- int t() { main(); return 0; }
43
- ^
44
- checked program was:
45
- /* begin */
46
- 1: #include "ruby.h"
47
- 2:
48
- 3: /*top*/
49
- 4: int t() { main(); return 0; }
24
+ 4: extern int t(void);
50
25
  5: int main(int argc, char **argv)
51
26
  6: {
52
27
  7: if (argc > 1000000) {
@@ -55,48 +30,24 @@ checked program was:
55
30
  10:
56
31
  11: return 0;
57
32
  12: }
33
+ 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
58
34
  /* end */
59
35
 
60
36
  --------------------
61
37
 
62
38
  have_library: checking for main() in -lrasqal... -------------------- yes
63
39
 
64
- "gcc -o conftest -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby1.9.1-1.9.3.484/debian/lib -rdynamic -Wl,-export-dynamic -lraptor2 -lruby-1.9.1 -lrasqal -lraptor2 -lpthread -lrt -ldl -lcrypt -lm -lc"
65
- conftest.c: In function ‘t’:
66
- conftest.c:4:53: error: ‘main’ undeclared (first use in this function)
67
- int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
68
- ^
69
- conftest.c:4:53: note: each undeclared identifier is reported only once for each function it appears in
70
- conftest.c:4:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
71
- int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
72
- ^
73
- checked program was:
74
- /* begin */
75
- 1: #include "ruby.h"
76
- 2:
77
- 3: /*top*/
78
- 4: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
79
- 5: int main(int argc, char **argv)
80
- 6: {
81
- 7: if (argc > 1000000) {
82
- 8: printf("%p", &t);
83
- 9: }
84
- 10:
85
- 11: return 0;
86
- 12: }
87
- /* end */
88
-
89
- "gcc -o conftest -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby1.9.1-1.9.3.484/debian/lib -rdynamic -Wl,-export-dynamic -lraptor2 -lruby-1.9.1 -lrasqal -lraptor2 -lpthread -lrt -ldl -lcrypt -lm -lc"
40
+ "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -g -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby2.1-2.1.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lraptor2 -lruby-2.1 -lrasqal -lraptor2 -lpthread -lgmp -ldl -lcrypt -lm -lc"
90
41
  conftest.c: In function ‘t’:
91
- conftest.c:4:1: warning: implicit declaration of function ‘main’ [-Wimplicit-function-declaration]
92
- int t() { main(); return 0; }
93
- ^
42
+ conftest.c:13:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
43
+ int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
44
+ ^
94
45
  checked program was:
95
46
  /* begin */
96
47
  1: #include "ruby.h"
97
48
  2:
98
49
  3: /*top*/
99
- 4: int t() { main(); return 0; }
50
+ 4: extern int t(void);
100
51
  5: int main(int argc, char **argv)
101
52
  6: {
102
53
  7: if (argc > 1000000) {
@@ -105,6 +56,7 @@ checked program was:
105
56
  10:
106
57
  11: return 0;
107
58
  12: }
59
+ 13: int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
108
60
  /* end */
109
61
 
110
62
  --------------------
data/ext/rsm.c CHANGED
@@ -204,7 +204,7 @@ VALUE rsm_execute(VALUE self, VALUE query) {
204
204
  rasqal_query_results *results;
205
205
  rasqal_world *world;
206
206
  raptor_world* raptor_world_ptr = NULL;
207
- char* output;
207
+ char* output = NULL;
208
208
  size_t len = 0;
209
209
  int i;
210
210
  raptor_sequence* data_graphs = NULL;
@@ -306,7 +306,7 @@ VALUE rsm_execute(VALUE self, VALUE query) {
306
306
  }
307
307
 
308
308
  rasqal_free_query_results(results);
309
-
309
+
310
310
  tidy_query:
311
311
  if(data_graphs) raptor_free_sequence(data_graphs);
312
312
  if(rq) rasqal_free_query(rq);
@@ -316,7 +316,7 @@ VALUE rsm_execute(VALUE self, VALUE query) {
316
316
  enc = rb_enc_find_index("UTF-8");
317
317
  rb_enc_associate_index(routput, enc);
318
318
 
319
- free(output);
319
+ if(output) free(output);
320
320
 
321
321
  return routput;
322
322
  }
data/ext/rsm.o CHANGED
Binary file
data/ext/smart.so CHANGED
Binary file
data/rdf-smart.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rdf-smart'
3
- s.version = '0.0.154'
3
+ s.version = '0.0.155'
4
4
  s.date = '2014-06-17'
5
5
  s.summary ="RDF.rb segfaults. A lot. We don't. RDF.rb has lots of features. We don't."
6
6
  s.description ="Minimal sparql support for ruby. Basically the roqet tool from http://librdf.org, with always guessing input type, and always json output."
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-smart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.154
5
- prerelease:
4
+ version: 0.0.155
6
5
  platform: ruby
7
6
  authors:
8
7
  - Florian Stertz
@@ -22,39 +21,38 @@ extensions:
22
21
  - ext/extconf.rb
23
22
  extra_rdoc_files: []
24
23
  files:
25
- - ext/extconf.h
26
- - ext/rsm.o
27
- - ext/smart.so
28
- - ext/rsm.h
29
- - ext/rsm.c
24
+ - README.md
30
25
  - ext/Makefile
26
+ - ext/extconf.h
31
27
  - ext/extconf.rb
32
28
  - ext/mkmf.log
29
+ - ext/rsm.c
30
+ - ext/rsm.h
31
+ - ext/rsm.o
32
+ - ext/smart.so
33
33
  - lib/rdf/smart.rb
34
34
  - rdf-smart.gemspec
35
- - README.md
36
35
  homepage: https://github.com/Triarier/rdf-smart
37
36
  licenses: []
37
+ metadata: {}
38
38
  post_install_message:
39
39
  rdoc_options: []
40
40
  require_paths:
41
41
  - lib
42
42
  required_ruby_version: !ruby/object:Gem::Requirement
43
- none: false
44
43
  requirements:
45
- - - ! '>='
44
+ - - ">="
46
45
  - !ruby/object:Gem::Version
47
46
  version: '0'
48
47
  required_rubygems_version: !ruby/object:Gem::Requirement
49
- none: false
50
48
  requirements:
51
- - - ! '>='
49
+ - - ">="
52
50
  - !ruby/object:Gem::Version
53
51
  version: '0'
54
52
  requirements: []
55
53
  rubyforge_project:
56
- rubygems_version: 1.8.23
54
+ rubygems_version: 2.2.2
57
55
  signing_key:
58
- specification_version: 3
56
+ specification_version: 4
59
57
  summary: RDF.rb segfaults. A lot. We don't. RDF.rb has lots of features. We don't.
60
58
  test_files: []