pkgsrc/databases/sqlrelay/patches/patch-src_api_ruby_getsitearchdir.rb
fhajny 2c0f4b64b4 Update databases/sqlrelay to 0.63.
sqlrelay 0.63
- suppressed ruby configure warning
- fixed glib detection if pkg-config isn't present
- fixed mono detection on freebsd
- fixed node.js yes/no misreport bug in configure script
- added freetds tcl test
- fixed slashes in tcl tests for windows
- updated docs to mention firebird buffer size parameters
- updated MAX_ITEM_BUFFER_SIZE to 32768 for firebird
- fixed ruby detection on fedora 22
- fixed missing export for setAuth/ResponseTimeout in ruby api
- added manual include of inttypes.h in php api to work around issue
  with define/undef games, revealed on openbsd 5.7
- tweaked ruby cflags script for debian 8
- refactored mysql detection
- tweaked unixodbc detection to also look in /usr/include/odbc
- renamed "oracle8" connection plugin to "oracle"
- renamed "sybase" connection plugin to "sap"
- updated identity tests in api's/cmdline clients to use
  charstring::contains() rather than !charstring::compare()
- implemented missing destructors for ADO.NET Data Provider

sqlrelay 0.62
- added query filter plugin framework
- added regex, string and pattern filters
- added normalization translation
- added reformatdatetime result set translation
- fixed error in sqlrconfigfile class that could cause sqlr-start to crash
  if one instance defines addresses but the next doesn't
- added query status flag to sqlrservercursor
- tweaked odbc driver's SQLGetTypeInfo()
- field name is passed into runResultSetTranslations() now
- added support for maxitembuffersize, maxselectlistsize, and maxbindcount
  for firebird
- added native api for node.js
- added recognition of bigint, ubigint and uniqueidentifier fields
  in freetds/sybase
- added nullsasnulls command to sqlrsh
- added workaround for freetds empty (but non-null) text fields not getting
  properly converted to null-terminated empty strings
- fetchatonce, maxitembuffersize and maxselectlistsize are set to defaulting
  values if invalid values are given for them
- added lazyconnect option to PHP PDO and Perl DBI drivers (defaults to 1)
- direct Transact SQL which returns a result set is now supported
  with Sybase/SAP/MSSQLServer/FreeTDS
- added docs for authentication, query translation, query filter and
  result set translation modules
- added -fPIC to sqlrserver-config --cflags, if supported
- the "default" auth module is now called "userlist"
- added database auth module that is analagous to authtier="database"
- replaced passwordencryption attribute with passwordencryptionid
- added --disable-postgresql8-api configure option
- tweaked -Werror detection in configure script
- refactored sqlr-bench build to work on windows
- documentation, examples and tests are now covered by a license
- reflecting modern interpretation of the GPL, The license for
  The SQLRelay Server (as designated in COPYING) license now carries
  an exception, explicitly allowing it to be linked with various non-GPL
  compatible libraries
- license is installed now

sqlrelay 0.61 skipped

sqlrelay 0.60
- fixed true->false transposition in sqlrservercontroller::interceptQuery
  that could lead to a reLogIn loop
- disabled -Werror for gcc < 2.7
- applied George Carrette's patch to fix PDO connectstring options
- migrated directory/file paths info into sqlrpaths class
- removed undocumented and not-so-relevent-these-days
  MAX_CONNECTIONS/overridemaxconnections failsafe in sqlr-start
- fixed java header detection for javac located in /usr/bin
- updated java api to support non-null-tolerant implementations
  of environment::NewStringUTF()
- the perl api builds correctly on OSR5 again
- the postgresql sslmode is omitted entirely from the connect string now,
  if it's disabled, to prevent problems with older versions of postgresql
  that don't support the parameter at all
- mono 2.8 or greater is required now
- added a datedelimiters attribute to the instance tag in sqlrelay.conf
  to limit what date delimiters are used when translating dates
- re-added mssqlserver detection, which had been accidentally removed
- fixed statically-linked build
- fixed mysql lob field bug that could cause a crash
2015-09-02 12:39:33 +00:00

52 lines
1.6 KiB
Ruby

$NetBSD: patch-src_api_ruby_getsitearchdir.rb,v 1.2 2015/09/02 12:39:33 fhajny Exp $
* Fix Ruby 2.2 build.
--- src/api/ruby/getsitearchdir.rb.orig 2015-08-15 00:27:59.000000000 +0000
+++ src/api/ruby/getsitearchdir.rb
@@ -1,35 +1,35 @@
require "mkmf"
drive = File::PATH_SEPARATOR == ";" ? /\A\w:/ : /\A/
print "arch = "
-print CONFIG["arch"]
+print RbConfig::CONFIG["arch"]
print "\n"
print "sitearch = "
-print CONFIG["sitearch"]
+print RbConfig::CONFIG["sitearch"]
print "\n"
print "ruby_version = "
begin
-print Config::CONFIG["ruby_version"]
+print RbConfig::CONFIG["ruby_version"]
rescue
-print CONFIG["ruby_version"]
+print RbConfig::CONFIG["ruby_version"]
end
print "\n"
print "prefix = "
-print CONFIG["prefix"].sub(drive, "").sub("$(DESTDIR)","")
+print RbConfig::CONFIG["prefix"].sub(drive, "").sub("$(DESTDIR)","")
print "\n"
print "exec_prefix = "
-print CONFIG["exec_prefix"].sub(drive, "").sub("$(DESTDIR)","")
+print RbConfig::CONFIG["exec_prefix"].sub(drive, "").sub("$(DESTDIR)","")
print "\n"
print "libdir = "
print $libdir.sub(drive, "").sub("$(DESTDIR)","")
print "\n"
-if CONFIG["RUBY_BASE_NAME"]!=nil then
+if RbConfig::CONFIG["RUBY_BASE_NAME"]!=nil then
print "RUBY_BASE_NAME = "
- print CONFIG["RUBY_BASE_NAME"]
+ print RbConfig::CONFIG["RUBY_BASE_NAME"]
print "\n"
end
-if CONFIG["rubylibprefix"]!=nil then
+if RbConfig::CONFIG["rubylibprefix"]!=nil then
print "rubylibprefix = "
- print CONFIG["rubylibprefix"].sub(drive, "").sub("$(DESTDIR)","")
+ print RbConfig::CONFIG["rubylibprefix"].sub(drive, "").sub("$(DESTDIR)","")
print "\n"
end
print "rubylibdir = "