[opendbx] Fixed compile error caused by freetds API break via a patch
Martin Preisler
mpreisle at fedoraproject.org
Wed Jan 18 12:34:29 UTC 2012
commit 8b189451316b85bf03dbbc06bfded3025b4d1974
Author: Martin Preisler <mpreisle at redhat.com>
Date: Wed Jan 18 13:33:26 2012 +0100
Fixed compile error caused by freetds API break via a patch
opendbx-1.4.5-freetds-fix.patch | 16 ++++++++++++++++
opendbx.spec | 8 ++++++--
2 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/opendbx-1.4.5-freetds-fix.patch b/opendbx-1.4.5-freetds-fix.patch
new file mode 100644
index 0000000..5e17461
--- /dev/null
+++ b/opendbx-1.4.5-freetds-fix.patch
@@ -0,0 +1,16 @@
+--- backends/mssql/mssql_basic.c.orig 2012-01-18 13:15:51.147655411 +0100
++++ backends/mssql/mssql_basic.c 2012-01-18 13:16:23.450426435 +0100
+@@ -474,13 +474,8 @@
+ case SYBDATETIMN:
+ if( dbdatecrack( dbproc, &di, (DBDATETIME*) data ) != FAIL )
+ {
+-#ifdef HAVE_LIBSYBDB_MSLIB
+ gres[i].length = snprintf( (char*) gres[i].value, gres[i].mlen, "%.4ld-%.2ld-%.2ld %.2ld:%.2ld:%.2ld",
+ (long) di.year, (long) di.month+1, (long) di.day, (long) di.hour, (long) di.minute, (long) di.second );
+-#else
+- gres[i].length = snprintf( (char*) gres[i].value, gres[i].mlen, "%.4ld-%.2ld-%.2ld %.2ld:%.2ld:%.2ld",
+- (long) di.dateyear, (long) di.datemonth+1, (long) di.datedmonth, (long) di.datehour, (long) di.dateminute, (long) di.datesecond );
+-#endif
+ }
+ continue;
+ }
diff --git a/opendbx.spec b/opendbx.spec
index c73e122..7c7d8b3 100644
--- a/opendbx.spec
+++ b/opendbx.spec
@@ -1,6 +1,6 @@
Name: opendbx
Version: 1.4.5
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Lightweight but extensible database access library written in C
#License: LGPLv2+
@@ -9,6 +9,7 @@ Summary: Lightweight but extensible database access library written in C
License: GPLv2+
URL: http://www.linuxnetworks.de/doc/index.php/OpenDBX
Source0: http://linuxnetworks.de/opendbx/download/%{name}-%{version}.tar.gz
+Patch0: opendbx-1.4.5-freetds-fix.patch
BuildRequires: mysql-devel, postgresql-devel, sqlite2-devel, sqlite-devel, firebird-devel, readline-devel
BuildRequires: freetds-devel
@@ -94,7 +95,7 @@ The %{name}-utils package provides the odbx-sql tool.
%prep
%setup -q
-
+%patch0 -p0
%build
%configure --with-backends="mysql pgsql sqlite sqlite3 firebird mssql sybase" CPPFLAGS="-I%{_includedir}/mysql" --disable-test --disable-static LDFLAGS="-L%{_libdir}/mysql"
@@ -159,6 +160,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_mandir}/man1/odbx-sql.1.gz
%changelog
+* Wed Jan 18 2012 Martin Preisler <mpreisle at redhat.com> 1.4.5-7
+- fixed compile error caused by freetds API break via a patch
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list