ibm_db 5.5.0 → 5.5.1
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 +4 -4
- data/CHANGES +6 -0
- data/ext/Makefile +29 -28
- data/ext/extconf.rb +12 -3
- data/ext/ibm_db.bundle +0 -0
- data/ext/ibm_db.c +3 -3
- data/ext/ibm_db.o +0 -0
- data/ext/mkmf.log +11 -15
- data/ext/ruby_ibm_db_cli.c +1 -1
- data/ext/ruby_ibm_db_cli.o +0 -0
- data/lib/IBM_DB.rb +1 -1
- data/lib/ibm_db.so +1 -0
- metadata +7 -6
- data/ext/ibm_db.so +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64bf4ebfa86937d52fb6d1ff87abf63cabf6b3d696b386b61c190e3fe4731842
|
4
|
+
data.tar.gz: 982845fcdebb72af189de2a6c4ae919ef16a2fc830340976275c62b7e8cd7087
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43f50779d0b202f247d63576263666c6516d96606d2f993f3519ebc8933b585e9f0004faf95dc0ff676ae3abb2febc89270015b12d0f8148e7c9b8267e5682b0
|
7
|
+
data.tar.gz: a4402e11047db606ec816e271587631eb79e2f65e7d29263aa6a6ea509b3a86f084b88d7e4c9ea90a5197d9b6edba71033ffd8be4a3d7bddff7b9f28c7862763
|
data/CHANGES
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
Change Log
|
2
2
|
==============
|
3
|
+
2024/12/13 (IBM_DB adapter 5.5.1, driver 3.1.1)
|
4
|
+
- Support for MAC ARM64
|
5
|
+
|
6
|
+
2024/07/10 (IBM_DB adapter 5.5.0, driver 3.1.0)
|
7
|
+
- Support for ruby 3.2 and rails 7.1.3.2
|
8
|
+
|
3
9
|
2023/10/11 (IBM_DB adapter 5.4.2, driver 3.1.0)
|
4
10
|
- config.yml to have Environment variables to specify credentials.
|
5
11
|
|
data/ext/Makefile
CHANGED
@@ -13,12 +13,12 @@ NULLCMD = :
|
|
13
13
|
#### Start of system configuration section. ####
|
14
14
|
|
15
15
|
srcdir = .
|
16
|
-
topdir = /
|
16
|
+
topdir = /Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0
|
17
17
|
hdrdir = $(topdir)
|
18
|
-
arch_hdrdir = /
|
18
|
+
arch_hdrdir = /Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24
|
19
19
|
PATH_SEPARATOR = :
|
20
20
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
21
|
-
prefix = $(DESTDIR)/
|
21
|
+
prefix = $(DESTDIR)/Users/pnarayanappa/ROR32/ruby_exe
|
22
22
|
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
23
23
|
rubyarchprefix = $(rubylibprefix)/$(arch)
|
24
24
|
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
@@ -52,7 +52,7 @@ htmldir = $(docdir)
|
|
52
52
|
infodir = $(datarootdir)/info
|
53
53
|
docdir = $(datarootdir)/doc/$(PACKAGE)
|
54
54
|
oldincludedir = $(DESTDIR)/usr/include
|
55
|
-
includedir = $(prefix)/include
|
55
|
+
includedir = $(SDKROOT)$(prefix)/include
|
56
56
|
runstatedir = $(localstatedir)/run
|
57
57
|
localstatedir = $(prefix)/var
|
58
58
|
sharedstatedir = $(prefix)/com
|
@@ -66,47 +66,47 @@ archdir = $(rubyarchdir)
|
|
66
66
|
|
67
67
|
|
68
68
|
CC_WRAPPER =
|
69
|
-
CC =
|
70
|
-
CXX =
|
69
|
+
CC = clang
|
70
|
+
CXX = clang++
|
71
71
|
LIBRUBY = $(LIBRUBY_A)
|
72
72
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
73
|
-
LIBRUBYARG_SHARED =
|
74
|
-
LIBRUBYARG_STATIC = -
|
73
|
+
LIBRUBYARG_SHARED =
|
74
|
+
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework CoreFoundation $(MAINLIBS)
|
75
75
|
empty =
|
76
76
|
OUTFLAG = -o $(empty)
|
77
77
|
COUTFLAG = -o $(empty)
|
78
78
|
CSRCFLAG = $(empty)
|
79
79
|
|
80
80
|
RUBY_EXTCONF_H = unicode_support_version.h
|
81
|
-
cflags = $(optflags) $(debugflags) $(warnflags)
|
81
|
+
cflags = -fdeclspec $(optflags) $(debugflags) $(warnflags)
|
82
82
|
cxxflags =
|
83
83
|
optflags = -O3 -fno-fast-math
|
84
84
|
debugflags = -ggdb3
|
85
|
-
warnflags = -Wall -Wextra -Wdeprecated-declarations -
|
85
|
+
warnflags = -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef
|
86
86
|
cppflags =
|
87
|
-
CCDLFLAGS = -
|
88
|
-
CFLAGS = $(CCDLFLAGS) $(cflags) $(ARCH_FLAG)
|
87
|
+
CCDLFLAGS = -fno-common
|
88
|
+
CFLAGS = $(CCDLFLAGS) $(cflags) -pipe $(ARCH_FLAG)
|
89
89
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
90
90
|
DEFS =
|
91
|
-
CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -I/
|
92
|
-
CXXFLAGS = $(CCDLFLAGS)
|
93
|
-
ldflags = -L. -fstack-protector-strong
|
94
|
-
dldflags = -Wl
|
91
|
+
CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
|
92
|
+
CXXFLAGS = $(CCDLFLAGS) -fdeclspec $(ARCH_FLAG)
|
93
|
+
ldflags = -L. -fstack-protector-strong
|
94
|
+
dldflags = -Wl,-undefined,dynamic_lookup -bundle_loader '$(BUILTRUBY)'
|
95
95
|
ARCH_FLAG =
|
96
96
|
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
97
|
-
LDSHARED = $(CC) -
|
98
|
-
LDSHAREDXX = $(CXX) -
|
99
|
-
AR =
|
97
|
+
LDSHARED = $(CC) -dynamic -bundle
|
98
|
+
LDSHAREDXX = $(CXX) -dynamic -bundle
|
99
|
+
AR = /Library/Developer/CommandLineTools/usr/bin/ar
|
100
100
|
EXEEXT =
|
101
101
|
|
102
102
|
RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
|
103
|
-
RUBY_SO_NAME = ruby
|
103
|
+
RUBY_SO_NAME = ruby.3.2
|
104
104
|
RUBYW_INSTALL_NAME =
|
105
105
|
RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
|
106
106
|
RUBYW_BASE_NAME = rubyw
|
107
107
|
RUBY_BASE_NAME = ruby
|
108
108
|
|
109
|
-
arch =
|
109
|
+
arch = arm64-darwin24
|
110
110
|
sitearch = $(arch)
|
111
111
|
ruby_version = 3.2.0
|
112
112
|
ruby = $(bindir)/$(RUBY_BASE_NAME)
|
@@ -116,8 +116,8 @@ ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h
|
|
116
116
|
|
117
117
|
RM = rm -f
|
118
118
|
RM_RF = rm -fr
|
119
|
-
RMDIRS = rmdir
|
120
|
-
MAKEDIRS =
|
119
|
+
RMDIRS = rmdir -p
|
120
|
+
MAKEDIRS = mkdir -p
|
121
121
|
INSTALL = /usr/bin/install -c
|
122
122
|
INSTALL_PROG = $(INSTALL) -m 0755
|
123
123
|
INSTALL_DATA = $(INSTALL) -m 644
|
@@ -127,8 +127,8 @@ TOUCH = exit >
|
|
127
127
|
#### End of system configuration section. ####
|
128
128
|
|
129
129
|
preload =
|
130
|
-
libpath = . $(libdir) /
|
131
|
-
LIBPATH = -L. -L$(libdir) -
|
130
|
+
libpath = . $(libdir) /Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib
|
131
|
+
LIBPATH = -L. -L$(libdir) -L/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib
|
132
132
|
DEFFILE =
|
133
133
|
|
134
134
|
CLEANFILES = mkmf.log
|
@@ -139,7 +139,7 @@ extout =
|
|
139
139
|
extout_prefix =
|
140
140
|
target_prefix =
|
141
141
|
LOCAL_LIBS =
|
142
|
-
LIBS = -ldb2 -
|
142
|
+
LIBS = -ldb2 -lpthread
|
143
143
|
ORIG_SRCS = ibm_db.c ruby_ibm_db_cli.c
|
144
144
|
SRCS = $(ORIG_SRCS)
|
145
145
|
OBJS = ibm_db.o ruby_ibm_db_cli.o
|
@@ -148,7 +148,7 @@ LOCAL_HDRS =
|
|
148
148
|
TARGET = ibm_db
|
149
149
|
TARGET_NAME = ibm_db
|
150
150
|
TARGET_ENTRY = Init_$(TARGET_NAME)
|
151
|
-
DLLIB = $(TARGET).
|
151
|
+
DLLIB = $(TARGET).bundle
|
152
152
|
EXTSTATIC =
|
153
153
|
STATIC_LIB =
|
154
154
|
|
@@ -161,7 +161,7 @@ HDRDIR = $(sitehdrdir)$(target_prefix)
|
|
161
161
|
ARCHHDRDIR = $(sitearchhdrdir)$(target_prefix)
|
162
162
|
TARGET_SO_DIR =
|
163
163
|
TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
|
164
|
-
CLEANLIBS = $(TARGET_SO)
|
164
|
+
CLEANLIBS = $(TARGET_SO) $(TARGET_SO).dSYM
|
165
165
|
CLEANOBJS = $(OBJS) *.bak
|
166
166
|
TARGET_SO_DIR_TIMESTAMP = $(TIMESTAMP_DIR)/.sitearchdir.time
|
167
167
|
|
@@ -263,6 +263,7 @@ $(TARGET_SO): $(OBJS) Makefile
|
|
263
263
|
$(ECHO) linking shared-object $(DLLIB)
|
264
264
|
-$(Q)$(RM) $(@)
|
265
265
|
$(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
266
|
+
$(Q) $(POSTLINK)
|
266
267
|
|
267
268
|
|
268
269
|
|
data/ext/extconf.rb
CHANGED
@@ -10,7 +10,7 @@ require 'down'
|
|
10
10
|
# +----------------------------------------------------------------------+
|
11
11
|
# | Licensed Materials - Property of IBM |
|
12
12
|
# | |
|
13
|
-
# | (C) Copyright IBM Corporation 2006 -
|
13
|
+
# | (C) Copyright IBM Corporation 2006 - 2024 |
|
14
14
|
# +----------------------------------------------------------------------+
|
15
15
|
|
16
16
|
TAR_LONGLINK = '././@LongLink'
|
@@ -90,8 +90,11 @@ elsif (RUBY_PLATFORM =~ /solaris/i)
|
|
90
90
|
DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/sunamd32_odbc_cli.tar.gz"
|
91
91
|
end
|
92
92
|
elsif (RUBY_PLATFORM =~ /darwin/i)
|
93
|
-
if(
|
94
|
-
puts "Detected platform - MacOS
|
93
|
+
if (RUBY_PLATFORM =~ /arm64/i)
|
94
|
+
puts "Detected platform - MacOS darwin arm64"
|
95
|
+
DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macarm64_odbc_cli.tar.gz"
|
96
|
+
elsif(RUBY_PLATFORM =~ /x86_64/i || is64Bit)
|
97
|
+
puts "Detected platform - MacOS darwin x86_64"
|
95
98
|
DOWNLOADLINK = "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz"
|
96
99
|
else
|
97
100
|
puts "Mac OS 32 bit not supported. Please use an x64 architecture."
|
@@ -151,11 +154,17 @@ def untarCLIPackage(archive,destination)
|
|
151
154
|
FileUtils.mkdir_p file, :mode => entry.header.mode, :verbose => false
|
152
155
|
elsif entry.file?
|
153
156
|
FileUtils.rm_rf file if File.directory? file
|
157
|
+
if (RUBY_PLATFORM =~ /darwin/i) && (RUBY_PLATFORM =~ /arm64/i) && File.exist?(file)
|
158
|
+
FileUtils.chmod 755, file, :verbose => false
|
159
|
+
end
|
154
160
|
File.open file, "wb" do |f|
|
155
161
|
f.print entry.read
|
156
162
|
end
|
157
163
|
FileUtils.chmod entry.header.mode, file, :verbose => false
|
158
164
|
elsif entry.header.typeflag == '2' #Symlink!
|
165
|
+
if (RUBY_PLATFORM =~ /darwin/i) && (RUBY_PLATFORM =~ /arm64/i) && File.exist?(file)
|
166
|
+
File.delete file if File.file? file
|
167
|
+
end
|
159
168
|
File.symlink entry.header.linkname, file
|
160
169
|
end
|
161
170
|
end
|
data/ext/ibm_db.bundle
ADDED
Binary file
|
data/ext/ibm_db.c
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
+----------------------------------------------------------------------+
|
3
3
|
| Licensed Materials - Property of IBM |
|
4
4
|
| |
|
5
|
-
| (C) Copyright IBM Corporation 2006 -
|
5
|
+
| (C) Copyright IBM Corporation 2006 - 2024 |
|
6
6
|
+----------------------------------------------------------------------+
|
7
7
|
| Authors: Sushant Koduru, Lynh Nguyen, Kanchana Padmanabhan, |
|
8
8
|
| Dan Scott, Helmut Tessarek, Sam Ruby, Kellen Bombardier, |
|
@@ -12,7 +12,7 @@
|
|
12
12
|
+----------------------------------------------------------------------+
|
13
13
|
*/
|
14
14
|
|
15
|
-
#define MODULE_RELEASE "3.1.
|
15
|
+
#define MODULE_RELEASE "3.1.1"
|
16
16
|
|
17
17
|
#ifdef HAVE_CONFIG_H
|
18
18
|
#include "config.h"
|
@@ -11237,7 +11237,7 @@ VALUE ibm_db_server_info(int argc, VALUE *argv, VALUE self)
|
|
11237
11237
|
rb_scan_args(argc, argv, "1", &connection);
|
11238
11238
|
|
11239
11239
|
|
11240
|
-
if(NIL_P(
|
11240
|
+
if(NIL_P(connection))
|
11241
11241
|
{
|
11242
11242
|
}
|
11243
11243
|
if(&connection == NULL)
|
data/ext/ibm_db.o
CHANGED
Binary file
|
data/ext/mkmf.log
CHANGED
@@ -14,7 +14,8 @@ unicode_support_version.h is:
|
|
14
14
|
|
15
15
|
have_library: checking for SQLConnect() in -ldb2... -------------------- yes
|
16
16
|
|
17
|
-
|
17
|
+
DYLD_FALLBACK_LIBRARY_PATH=.:/Users/pnarayanappa/ROR32/ruby_exe/lib "clang -o conftest -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24 -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/ruby/backward -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0 -I. -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -pipe conftest.c -L. -L/Users/pnarayanappa/ROR32/ruby_exe/lib -L/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -lruby.3.2-static -framework CoreFoundation -ldl -lobjc -lpthread -lpthread "
|
18
|
+
ld: warning: ignoring duplicate libraries: '-lpthread'
|
18
19
|
checked program was:
|
19
20
|
/* begin */
|
20
21
|
1: #include "ruby.h"
|
@@ -25,17 +26,11 @@ checked program was:
|
|
25
26
|
6: }
|
26
27
|
/* end */
|
27
28
|
|
28
|
-
|
29
|
-
conftest.c:
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
conftest.c:14:57: note: each undeclared identifier is reported only once for each function it appears in
|
34
|
-
conftest.c: At top level:
|
35
|
-
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
|
36
|
-
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
|
37
|
-
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
|
38
|
-
cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’
|
29
|
+
DYLD_FALLBACK_LIBRARY_PATH=.:/Users/pnarayanappa/ROR32/ruby_exe/lib "clang -o conftest -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24 -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/ruby/backward -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0 -I. -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -pipe conftest.c -L. -L/Users/pnarayanappa/ROR32/ruby_exe/lib -L/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -lruby.3.2-static -framework CoreFoundation -ldl -lobjc -lpthread -ldb2 -lpthread "
|
30
|
+
conftest.c:14:57: error: use of undeclared identifier 'SQLConnect'
|
31
|
+
int t(void) { void ((*volatile p)()); p = (void ((*)()))SQLConnect; return !p; }
|
32
|
+
^
|
33
|
+
1 error generated.
|
39
34
|
checked program was:
|
40
35
|
/* begin */
|
41
36
|
1: #include "ruby.h"
|
@@ -54,7 +49,8 @@ checked program was:
|
|
54
49
|
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))SQLConnect; return !p; }
|
55
50
|
/* end */
|
56
51
|
|
57
|
-
|
52
|
+
DYLD_FALLBACK_LIBRARY_PATH=.:/Users/pnarayanappa/ROR32/ruby_exe/lib "clang -o conftest -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24 -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/ruby/backward -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0 -I. -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -pipe conftest.c -L. -L/Users/pnarayanappa/ROR32/ruby_exe/lib -L/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/lib -L. -fstack-protector-strong -lruby.3.2-static -framework CoreFoundation -ldl -lobjc -lpthread -ldb2 -lpthread "
|
53
|
+
ld: warning: ignoring duplicate libraries: '-lpthread'
|
58
54
|
checked program was:
|
59
55
|
/* begin */
|
60
56
|
1: #include "ruby.h"
|
@@ -78,7 +74,7 @@ checked program was:
|
|
78
74
|
|
79
75
|
have_header: checking for gil_release_version.h... -------------------- yes
|
80
76
|
|
81
|
-
|
77
|
+
DYLD_FALLBACK_LIBRARY_PATH=.:/Users/pnarayanappa/ROR32/ruby_exe/lib "clang -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24 -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/ruby/backward -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0 -I. -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -pipe -c conftest.c"
|
82
78
|
checked program was:
|
83
79
|
/* begin */
|
84
80
|
1: #include "ruby.h"
|
@@ -90,7 +86,7 @@ checked program was:
|
|
90
86
|
|
91
87
|
have_header: checking for unicode_support_version.h... -------------------- yes
|
92
88
|
|
93
|
-
|
89
|
+
DYLD_FALLBACK_LIBRARY_PATH=.:/Users/pnarayanappa/ROR32/ruby_exe/lib "clang -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/arm64-darwin24 -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0/ruby/backward -I/Users/pnarayanappa/ROR32/ruby_exe/include/ruby-3.2.0 -I. -I/Users/pnarayanappa/ROR32/ruby-ibmdb/IBM_DB_Adapter/ibm_db/ext/../lib/clidriver/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -pipe -c conftest.c"
|
94
90
|
checked program was:
|
95
91
|
/* begin */
|
96
92
|
1: #include "ruby.h"
|
data/ext/ruby_ibm_db_cli.c
CHANGED
@@ -208,7 +208,7 @@ int _ruby_ibm_db_SQLForeignKeys_helper(metadata_args *data) {
|
|
208
208
|
|
209
209
|
data->stmt_res->is_executing = 1;
|
210
210
|
|
211
|
-
if(!NIL_P(data->table_type))
|
211
|
+
if(data->table_type != NULL && !NIL_P(*data->table_type))
|
212
212
|
{
|
213
213
|
#ifndef UNICODE_SUPPORT_VERSION_H
|
214
214
|
rc = SQLForeignKeys( (SQLHSTMT) data->stmt_res->hstmt, data->qualifier, data->qualifier_len,
|
data/ext/ruby_ibm_db_cli.o
CHANGED
Binary file
|
data/lib/IBM_DB.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
if(RUBY_PLATFORM =~ /darwin/i)
|
2
2
|
cliPackagePath = File.dirname(__FILE__) + '/clidriver'
|
3
|
-
if(Dir.
|
3
|
+
if(Dir.exist?(cliPackagePath))
|
4
4
|
currentPath = "#{File.expand_path(File.dirname(File.dirname(__FILE__)))}"
|
5
5
|
|
6
6
|
cmd = "chmod 755 #{currentPath}/lib/ibm_db.bundle "
|
data/lib/ibm_db.so
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
../ext/ibm_db.so
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibm_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.5.
|
4
|
+
version: 5.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IBM
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -78,7 +78,7 @@ dependencies:
|
|
78
78
|
- - "<"
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '7.2'
|
81
|
-
description:
|
81
|
+
description:
|
82
82
|
email: opendev@us.ibm.com
|
83
83
|
executables: []
|
84
84
|
extensions:
|
@@ -98,9 +98,9 @@ files:
|
|
98
98
|
- ext/Makefile.nt32.191
|
99
99
|
- ext/extconf.rb
|
100
100
|
- ext/gil_release_version.h
|
101
|
+
- ext/ibm_db.bundle
|
101
102
|
- ext/ibm_db.c
|
102
103
|
- ext/ibm_db.o
|
103
|
-
- ext/ibm_db.so
|
104
104
|
- ext/mkmf.log
|
105
105
|
- ext/ruby_ibm_db.h
|
106
106
|
- ext/ruby_ibm_db_cli.c
|
@@ -113,6 +113,7 @@ files:
|
|
113
113
|
- lib/active_record/connection_adapters/ibm_db_pstmt.rb
|
114
114
|
- lib/active_record/connection_adapters/ibmdb_adapter.rb
|
115
115
|
- lib/active_record/vendor/db2-i5-zOS.yaml
|
116
|
+
- lib/ibm_db.so
|
116
117
|
- test/active_record/connection_adapters/fake_adapter.rb
|
117
118
|
- test/activejob/destroy_association_async_test.rb
|
118
119
|
- test/activejob/destroy_async_job_not_present_test.rb
|
@@ -867,7 +868,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
867
868
|
version: '0'
|
868
869
|
requirements: []
|
869
870
|
rubygems_version: 3.4.19
|
870
|
-
signing_key:
|
871
|
+
signing_key:
|
871
872
|
specification_version: 4
|
872
873
|
summary: 'Rails Driver and Adapter for IBM Data Servers: {DB2 on Linux/Unix/Windows,
|
873
874
|
DB2 on zOS, DB2 on i5/OS, Informix (IDS)}'
|
data/ext/ibm_db.so
DELETED
Binary file
|