pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/p5-DBD-ODBC Updating databases/p5-DBD-ODBC f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76f38dd8b8b5
branches:  trunk
changeset: 398985:76f38dd8b8b5
user:      sno <sno%pkgsrc.org@localhost>
date:      Sat Sep 12 18:54:50 2009 +0000

description:
Updating databases/p5-DBD-ODBC from 1.22 to 1.23

pkgsrc changes:
  - remove patch to detect iODBC correctly after is was applied upstream

Upstream changes:
Changes in DBD::ODBC 1.23 September 11, 2009
  - Only a readme change and version bumped to 1.23. This is a full release
    of all the 1.22_x development releases.

Changes in DBD::ODBC 1.22_3 August 19, 2009

  - Fix skip count in rt_38977.t and typo in ok call.
  - Workaround a bug in unixODBC 2.2.11 which can write off the end of the
    string buffer passed to SQLColAttributes.
  - Fix skip count in rt_null_nvarchar.t test for non SQL Server drivers.
  - Fix test in 02simple.t which reported a fail if you have no ODBC
    datasources.
  - In 99_yaml.t pick up the yaml spec version from the meta file instead
    of specifying it.
  - Change calls to SQLPrepare which passed in the string lenth of the SQL to
    use SQL_NTS because a) they are null terminated and more importantly b)
    unixODBC contains a bug in versions up to 2.2.16 which can overwrite the
    stack by 1 byte if the string length is specified and not built with iconv
    support and converting the SQL from ASCII to Unicode.
  - Fixed bug in ping method reported by Lee Anne Lester where it dies if used
    after the connection is closed.
  - A great deal of changes to Makefile.PL to improve the automatic detection
    and configuration for ODBC driver managers - especially on 64bit platforms.
    See rt47650 from Marten Lehmann which started it all off.
  - Add changes from Chris Clark for detecting IngresCLI.
  - Fix for rt 48304. If you are using a Microsoft SQL Server database and
    nvarchar(max) you could not insert values between 4001 and 8000 (inclusive)
    in size. A test was added to the existing rt_38977.t test. Thanks to
    Michael Thomas for spotting this.
  - Added FAQ on UTF-8 encoding and IBM iSeries ODBC driver.
  - Add support for not passing usernames and passwords in call to connect.
    Previously DBD::ODBC would set an unspecified username/password to '' in
    ODBC.pm before calling one of the login_xxx functions. This allows the
    driver to pull the username/password from elsewhere e.g., like the
    odbc.ini file.

Changes in DBD::ODBC 1.22_1 June 16, 2009
  - Applied a slightly modified version of patch from Jens Rehsack to improve
    support for finding the iODBC driver manager.
  - A UNICODE enabled DBD::ODBC (the default on Windows) did not handle
    UNICODE usernames and passwords in the connect call properly.
  - Updated "Attribution" in ODBC.pm.
  - Unicode support is no longer experimental hence warning and prompt removed
    from the Makefile.PL.
  - old_ping method removed.
  - Fixed bug in 02simple.t test which is supposed to check you have at least
    one data source defined. Unfortunately, it was checking you had more than
    1 data source defined.
  - rt_null_varchar had wrong skip count meaning non-sql-server drivers or
sql server drivers too old skipped 2 tests more than were planned.

diffstat:

 databases/p5-DBD-ODBC/Makefile         |   6 +-
 databases/p5-DBD-ODBC/distinfo         |   9 +--
 databases/p5-DBD-ODBC/patches/patch-aa |  72 ----------------------------------
 3 files changed, 8 insertions(+), 79 deletions(-)

diffs (112 lines):

diff -r d9f6d77a2a4a -r 76f38dd8b8b5 databases/p5-DBD-ODBC/Makefile
--- a/databases/p5-DBD-ODBC/Makefile    Sat Sep 12 18:44:40 2009 +0000
+++ b/databases/p5-DBD-ODBC/Makefile    Sat Sep 12 18:54:50 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2009/07/07 15:23:15 sno Exp $
+# $NetBSD: Makefile,v 1.4 2009/09/12 18:54:50 sno Exp $
 #
 
-DISTNAME=      DBD-ODBC-1.22
+DISTNAME=      DBD-ODBC-1.23
 PKGNAME=       p5-${DISTNAME}
 CATEGORIES=    databases perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=DBD/}
@@ -18,6 +18,8 @@
 
 PERL5_PACKLIST=        auto/DBD/ODBC/.packlist
 
+MAKE_ENV+=     PERL_MM_USE_DEFAULT=1
+
 .include "../../databases/p5-DBI/buildlink3.mk"
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r d9f6d77a2a4a -r 76f38dd8b8b5 databases/p5-DBD-ODBC/distinfo
--- a/databases/p5-DBD-ODBC/distinfo    Sat Sep 12 18:44:40 2009 +0000
+++ b/databases/p5-DBD-ODBC/distinfo    Sat Sep 12 18:54:50 2009 +0000
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.2 2009/06/14 21:23:57 sno Exp $
+$NetBSD: distinfo,v 1.3 2009/09/12 18:54:50 sno Exp $
 
-SHA1 (DBD-ODBC-1.22.tar.gz) = 31094dae98d2dbe04be6d4b21bebea6ce9b34e14
-RMD160 (DBD-ODBC-1.22.tar.gz) = b7c96f9cfd189c0fb17ed57d19c35bfcf54b03d7
-Size (DBD-ODBC-1.22.tar.gz) = 179081 bytes
-SHA1 (patch-aa) = e731a710838e86f05c4f3b223f768968ba1d9489
+SHA1 (DBD-ODBC-1.23.tar.gz) = d8fbebb17733984e6fc06e093a572d89718777ce
+RMD160 (DBD-ODBC-1.23.tar.gz) = f804c47c0382174f036b57dbb5aca30a8ac43613
+Size (DBD-ODBC-1.23.tar.gz) = 184925 bytes
diff -r d9f6d77a2a4a -r 76f38dd8b8b5 databases/p5-DBD-ODBC/patches/patch-aa
--- a/databases/p5-DBD-ODBC/patches/patch-aa    Sat Sep 12 18:44:40 2009 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,72 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2009/05/17 13:29:15 sno Exp $
-
-# Fix issues detecting iODBC
-
---- Makefile.PL.orig   2009-05-16 08:36:54.000000000 +0000
-+++ Makefile.PL        2009-05-16 08:49:56.000000000 +0000
-@@ -154,7 +154,6 @@
- 
- EOT
-     }
--    prompt("Press return to continue...");
- }
- print "Overriding ODBC Directory with command line option: $opt_o\n"
-     if $opt_o ;
-@@ -242,6 +241,7 @@
-             # exist until 2.2.11 and it was broken wrt --cflags in 2.2.11/2.2.12
-             # i.e. --cflags did not include -I/xxx/yyy
-             my $odbc_config_v = `odbc_config --version 2>&1`;
-+            my $iodbc_config_v = `iodbc-config --version 2>&1`;
-             print "Looking for odbc_config\n";
-             if ($odbc_config_v && ($odbc_config_v =~ /^(\d\.)+/)) {
-                 print "  Found odbc_config versions $odbc_config_v\n";
-@@ -257,6 +257,20 @@
-                     print "  but cannot find header files in that path so ignoring\n";
-                     $odbchome = '';
-                 }
-+            } elsif ($iodbc_config_v && ($iodbc_config_v =~ /^(\d\.)+/)) {
-+                print "  Found iodbc-config versions $iodbc_config_v\n";
-+                $odbchome = `iodbc-config --prefix 2>&1`;
-+                print "  iodbc-config reports --prefix=$odbchome\n";
-+                chomp $odbchome;
-+                if ((-e $odbchome) && (-e "$odbchome/include") &&
-+                        (-f "$odbchome/include/sql.h") &&
-+                            (-f "$odbchome/include/sqlext.h") &&
-+                                (-f "$odbchome/include/sqltypes.h")) {
-+                    print "  Set ODBCHOME to $odbchome from iodbc-config\n";
-+                } else {
-+                    print "  but cannot find header files in that path so ignoring\n";
-+                    $odbchome = '';
-+                }
-             } else {
-                 print "  odbc_config not found - ok, there are other things I can do\n";
-             }
-@@ -272,6 +286,11 @@
-                                  -f '/usr/local/include/sqltypes.h') {
-                     print "  Found sql header files in /use/local/include\n";
-                     $odbchome = '/usr/local';
-+                } elsif (-f '/usr/pkg/include/sql.h' &&
-+                             -f '/usr/pkg/include/sqlext.h' &&
-+                                 -f '/usr/pkg/include/sqltypes.h') {
-+                    print "  Found sql header files in /use/pkg/include\n";
-+                    $odbchome = '/usr/pkg';
-                 } elsif (-d '/usr/local/easysoft/unixODBC') {
-                     print "  Found sql header files in /use/local/easysoft/include\n";
-                     $odbchome = '/usr/local/easysoft/unixODBC';
-@@ -346,13 +365,13 @@
-     # fix to avoid foo..ext on many systems.
-     $arext =~ s/^\.//;
- 
--    $myodbc = 'unixodbc'
--              if !$myodbc && glob "$odbchome/lib/libodbc.*";
--
-     $myodbc = 'iodbc'
-               if !$myodbc && ((glob "$odbchome/*iodbc*") ||
-                                     (glob "$odbchome/lib/*iodbc*"));
- 
-+    $myodbc = 'unixodbc'
-+              if !$myodbc && glob "$odbchome/lib/libodbc.*";
-+
-     $myodbc = 'empress'
-               if !$myodbc && glob "$odbchome/lib/libempodbc.*";
- 



Home | Main Index | Thread Index | Old Index