[52205] trunk/dports/databases/libdbi

blb at macports.org blb at macports.org
Thu Jun 11 23:06:33 PDT 2009


Revision: 52205
          http://trac.macports.org/changeset/52205
Author:   blb at macports.org
Date:     2009-06-11 23:06:21 -0700 (Thu, 11 Jun 2009)
Log Message:
-----------
databases/libdbi - fix endian issue and add debug variant, ticket #19425

Modified Paths:
--------------
    trunk/dports/databases/libdbi/Portfile

Added Paths:
-----------
    trunk/dports/databases/libdbi/files/
    trunk/dports/databases/libdbi/files/endian.patch

Modified: trunk/dports/databases/libdbi/Portfile
===================================================================
--- trunk/dports/databases/libdbi/Portfile	2009-06-12 05:57:00 UTC (rev 52204)
+++ trunk/dports/databases/libdbi/Portfile	2009-06-12 06:06:21 UTC (rev 52205)
@@ -4,6 +4,7 @@
 
 name                libdbi
 version             0.8.3
+revision            1
 categories          databases devel
 maintainers         umich.edu:mta
 description         Database independent abstraction layer for C
@@ -18,8 +19,14 @@
 
 configure.args      --disable-docs
 
+patchfiles          endian.patch
+
 variant docs description "Build the documentation" {
         configure.args-delete --disable-docs
 
         depends_build port:openjade
 }
+
+variant debug description "Build with debugger symbols" {
+        build.target debug
+}

Added: trunk/dports/databases/libdbi/files/endian.patch
===================================================================
--- trunk/dports/databases/libdbi/files/endian.patch	                        (rev 0)
+++ trunk/dports/databases/libdbi/files/endian.patch	2009-06-12 06:06:21 UTC (rev 52205)
@@ -0,0 +1,33 @@
+--- old/dbi_result.c	2009-05-21 19:07:09.000000000 -0400
++++ src/dbi_result.c	2009-05-23 00:25:42.000000000 -0400
+@@ -891,6 +891,7 @@
+ 
+   switch (RESULT->field_attribs[fieldidx] & DBI_INTEGER_SIZEMASK) {
+   case DBI_INTEGER_SIZE1:
++    return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_char;
+   case DBI_INTEGER_SIZE2:
+     return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_short;
+   case DBI_INTEGER_SIZE3:
+@@ -947,7 +948,9 @@
+ 
+   switch (RESULT->field_attribs[fieldidx] & DBI_INTEGER_SIZEMASK) {
+   case DBI_INTEGER_SIZE1:
++    return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_char;
+   case DBI_INTEGER_SIZE2:
++    return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_short;
+   case DBI_INTEGER_SIZE3:
+   case DBI_INTEGER_SIZE4:
+     return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_long;
+@@ -995,9 +998,12 @@
+ 
+   switch (RESULT->field_attribs[fieldidx] & DBI_INTEGER_SIZEMASK) {
+   case DBI_INTEGER_SIZE1:
++    return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_char;
+   case DBI_INTEGER_SIZE2:
++    return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_short;
+   case DBI_INTEGER_SIZE3:
+   case DBI_INTEGER_SIZE4:
++    return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_long;
+   case DBI_INTEGER_SIZE8:
+     return RESULT->rows[RESULT->currowidx]->field_values[fieldidx].d_longlong;
+   default:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090611/ff30ad30/attachment.html>


More information about the macports-changes mailing list