- updated to versio 2.3.1
* reduced unixODBC, after the GUI and additional driver parts have been split off to their own project. * change to the new default SQLLEN size for 64 bit platforms * number of bug fixes and changes, see http://www.unixodbc.org/ OBS-URL: https://build.opensuse.org/package/show/server:database/unixODBC?expand=0&rev=13
This commit is contained in:
parent
b265ae6f50
commit
f987edfef0
@ -1,26 +0,0 @@
|
|||||||
--- trunk/DriverManager/SQLDriverConnect.c 2011/01/12 15:50:07 23
|
|
||||||
+++ trunk/DriverManager/SQLDriverConnect.c 2011/03/09 15:38:55 27
|
|
||||||
@@ -664,7 +664,7 @@
|
|
||||||
{
|
|
||||||
DMHDBC connection = (DMHDBC)hdbc;
|
|
||||||
struct con_struct con_struct;
|
|
||||||
- char *driver, *dsn = NULL, *filedsn, *tsavefile, savefile[ 128 ];
|
|
||||||
+ char *driver, *dsn = NULL, *filedsn, *tsavefile, savefile[ INI_MAX_PROPERTY_VALUE + 1 ];
|
|
||||||
char lib_name[ INI_MAX_PROPERTY_VALUE + 1 ];
|
|
||||||
char driver_name[ INI_MAX_PROPERTY_VALUE + 1 ];
|
|
||||||
SQLRETURN ret_from_connect;
|
|
||||||
@@ -969,7 +969,13 @@
|
|
||||||
tsavefile = __get_attribute_value( &con_struct, "SAVEFILE" );
|
|
||||||
if ( tsavefile )
|
|
||||||
{
|
|
||||||
- strcpy( savefile, tsavefile );
|
|
||||||
+ if ( strlen( tsavefile ) > INI_MAX_PROPERTY_VALUE ) {
|
|
||||||
+ memcpy( savefile, tsavefile, INI_MAX_PROPERTY_VALUE );
|
|
||||||
+ savefile[ INI_MAX_PROPERTY_VALUE ] = '\0';
|
|
||||||
+ }
|
|
||||||
+ else {
|
|
||||||
+ strcpy( savefile, tsavefile );
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
@ -1,43 +0,0 @@
|
|||||||
diff -ur unixODBC-orig/DataManager/Makefile.am unixODBC-2.2.11/DataManager/Makefile.am
|
|
||||||
--- unixODBC-orig/DataManager/Makefile.am 2004-09-13 16:46:11.000000000 +0200
|
|
||||||
+++ unixODBC-2.2.11/DataManager/Makefile.am 2005-04-25 16:08:17.000000000 +0200
|
|
||||||
@@ -9,10 +9,11 @@
|
|
||||||
@USER_LDFLAGS@ \
|
|
||||||
@LIB_QT@ \
|
|
||||||
../odbcinst/libodbcinst.la \
|
|
||||||
+ ../ini/libinilc.la \
|
|
||||||
../DriverManager/libodbc.la
|
|
||||||
|
|
||||||
DataManager_DEPENDANCIES = \
|
|
||||||
- ../odbcinst/libodbcinst.la \
|
|
||||||
+ ../odbcinst/libodbcinst.la \
|
|
||||||
../DriverManager/libodbc.la
|
|
||||||
|
|
||||||
DataManager_SOURCES = \
|
|
||||||
diff -ur unixODBC-orig/DataManagerII/Makefile.am unixODBC-2.2.11/DataManagerII/Makefile.am
|
|
||||||
--- unixODBC-orig/DataManagerII/Makefile.am 2004-11-20 13:57:38.000000000 +0100
|
|
||||||
+++ unixODBC-2.2.11/DataManagerII/Makefile.am 2005-04-25 17:31:06.000000000 +0200
|
|
||||||
@@ -9,10 +9,11 @@
|
|
||||||
@USER_LDFLAGS@ \
|
|
||||||
@LIB_QT@ \
|
|
||||||
../odbcinst/libodbcinst.la \
|
|
||||||
+ ../ini/libinilc.la \
|
|
||||||
../DriverManager/libodbc.la
|
|
||||||
|
|
||||||
DataManagerII_DEPENDANCIES = \
|
|
||||||
- ../odbcinst/libodbcinst.la \
|
|
||||||
+ ../odbcinst/libodbcinst.la \
|
|
||||||
../DriverManager/libodbc.la
|
|
||||||
|
|
||||||
DataManagerII_SOURCES = \
|
|
||||||
diff -ur unixODBC-orig/odbctest/Makefile.am unixODBC-2.2.11/odbctest/Makefile.am
|
|
||||||
--- unixODBC-orig/odbctest/Makefile.am 2004-09-13 16:47:34.000000000 +0200
|
|
||||||
+++ unixODBC-2.2.11/odbctest/Makefile.am 2005-04-25 18:35:38.000000000 +0200
|
|
||||||
@@ -10,6 +10,7 @@
|
|
||||||
@LIB_QT@ \
|
|
||||||
../odbcinst/libodbcinst.la \
|
|
||||||
../DriverManager/libodbc.la \
|
|
||||||
+ ../ini/libinilc.la \
|
|
||||||
$(LIBLTDL) $(LIBADD_DL)
|
|
||||||
|
|
||||||
odbctest_DEPENDANCIES = ../odbcinst/libodbcinst.la ../DriverManager/libodbc.la
|
|
@ -1,11 +0,0 @@
|
|||||||
--- sqp/lex.l
|
|
||||||
+++ sqp/lex.l
|
|
||||||
@@ -237,7 +237,7 @@
|
|
||||||
{
|
|
||||||
sprintf( g_szError, "%s processing '%s' on line %d", s, yytext, g_nLineNo );
|
|
||||||
|
|
||||||
- YY_FLUSH_BUFFER;
|
|
||||||
+ yy_flush_buffer( YY_CURRENT_BUFFER );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**********************************************************************
|
|
@ -1,10 +1,10 @@
|
|||||||
Index: odbcinst/odbcinst.exp
|
Index: odbcinst/odbcinst.exp
|
||||||
================================================================================
|
===================================================================
|
||||||
--- odbcinst/odbcinst.exp
|
--- odbcinst/odbcinst.exp.orig
|
||||||
+++ odbcinst/odbcinst.exp
|
+++ odbcinst/odbcinst.exp
|
||||||
@@ -60,3 +60,50 @@
|
@@ -64,3 +64,50 @@ _odbcinst_UserINI
|
||||||
_odbcinst_SystemINI
|
_odbcinst_FileINI
|
||||||
_odbcinst_UserINI
|
_SQLDriverConnectPrompt
|
||||||
inst_logPushMsg
|
inst_logPushMsg
|
||||||
+iniAllTrim
|
+iniAllTrim
|
||||||
+iniAppend
|
+iniAppend
|
||||||
|
@ -1,27 +1,23 @@
|
|||||||
htbl_stmt hasn't yet been allocated in both cases
|
htbl_stmt hasn't yet been allocated in both cases
|
||||||
--- Drivers/PostgreSQL/info.c
|
Index: Drivers/Postgre7.1/info.c
|
||||||
+++ Drivers/PostgreSQL/info.c
|
===================================================================
|
||||||
@@ -2043,7 +2043,6 @@
|
--- Drivers/Postgre7.1/info.c.orig
|
||||||
stmt->errormsg = "No Table specified to SQLPrimaryKeys.";
|
+++ Drivers/Postgre7.1/info.c
|
||||||
stmt->errornumber = STMT_INTERNAL_ERROR;
|
@@ -2345,6 +2345,7 @@ Int2 result_cols;
|
||||||
SC_log_error(func, "", stmt);
|
if(!stmt->result) {
|
||||||
- PG__SQLFreeStmt(htbl_stmt, SQL_DROP);
|
SC_set_error(stmt, STMT_NO_MEMORY_ERROR, "Couldn't allocate memory for SQLForeignKeys result.");
|
||||||
return SQL_ERROR;
|
SC_log_error(func, "", stmt);
|
||||||
}
|
+ PG__SQLFreeStmt(htbl_stmt, SQL_DROP);
|
||||||
|
return SQL_ERROR;
|
||||||
@@ -2228,7 +2227,6 @@
|
|
||||||
stmt->errormsg = "Couldn't allocate memory for SQLForeignKeys result.";
|
|
||||||
stmt->errornumber = STMT_NO_MEMORY_ERROR;
|
|
||||||
SC_log_error(func, "", stmt);
|
|
||||||
- PG__SQLFreeStmt(htbl_stmt, SQL_DROP);
|
|
||||||
return SQL_ERROR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
--- Drivers/PostgreSQL/convert.c
|
Index: Drivers/Postgre7.1/convert.c
|
||||||
+++ Drivers/PostgreSQL/convert.c
|
===================================================================
|
||||||
@@ -178,6 +178,7 @@
|
--- Drivers/Postgre7.1/convert.c.orig
|
||||||
|
+++ Drivers/Postgre7.1/convert.c
|
||||||
|
@@ -223,6 +223,7 @@ struct tm tp;
|
||||||
|
|
||||||
}
|
memset(&st, 0, sizeof(SIMPLE_TIME));
|
||||||
|
|
||||||
+ memset(&st, 0, sizeof(SIMPLE_TIME));
|
+ memset(&st, 0, sizeof(SIMPLE_TIME));
|
||||||
mylog("copy_and_convert: field_type = %d, fctype = %d, value = '%s', cbValueMax=%d\n", field_type, fCType, (value==NULL)?"<NULL>":value, cbValueMax);
|
mylog("copy_and_convert: field_type = %d, fctype = %d, value = '%s', cbValueMax=%d\n", field_type, fCType, (value==NULL)?"<NULL>":value, cbValueMax);
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:813aa3a6d8a92e895fb50f73bc6b17869ae6a435f53bce719048df87c50daefe
|
|
||||||
size 2158675
|
|
3
unixODBC-2.3.1.tar.bz2
Normal file
3
unixODBC-2.3.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:52695ca80d5dff5a0ba89827d2c93372a2ad38157448eeb499b9f0908408b94c
|
||||||
|
size 1356506
|
@ -1,42 +1,31 @@
|
|||||||
--- Drivers/PostgreSQL/info.c
|
Index: exe/odbc-config.c
|
||||||
+++ Drivers/PostgreSQL/info.c
|
===================================================================
|
||||||
@@ -1667,7 +1667,7 @@
|
--- exe/odbc-config.c.orig
|
||||||
StatementClass *col_stmt, *indx_stmt;
|
|
||||||
char column_name[MAX_INFO_STRING];
|
|
||||||
char **column_names = 0;
|
|
||||||
-Int4 column_name_len;
|
|
||||||
+SQLLEN column_name_len;
|
|
||||||
int total_columns = 0;
|
|
||||||
char error = TRUE;
|
|
||||||
ConnInfo *ci;
|
|
||||||
--- exe/odbc-config.c
|
|
||||||
+++ exe/odbc-config.c
|
+++ exe/odbc-config.c
|
||||||
@@ -22,6 +22,8 @@
|
@@ -23,6 +23,8 @@
|
||||||
**********************************************************************/
|
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
+#include <stdlib.h>
|
+#include <stdlib.h>
|
||||||
+#include <string.h>
|
+#include <string.h>
|
||||||
|
|
||||||
static void usage( void )
|
#ifdef HAVE_STDLIB_H
|
||||||
{
|
#include <stdlib.h>
|
||||||
@@ -169,4 +171,5 @@
|
Index: Drivers/nn/nndate.c
|
||||||
exit( -1 );
|
===================================================================
|
||||||
}
|
--- Drivers/nn/nndate.c.orig
|
||||||
}
|
|
||||||
+ return 0;
|
|
||||||
}
|
|
||||||
--- Drivers/nn/nndate.c
|
|
||||||
+++ Drivers/nn/nndate.c
|
+++ Drivers/nn/nndate.c
|
||||||
@@ -15,6 +15,7 @@
|
@@ -16,6 +16,7 @@
|
||||||
#include <config.h>
|
#include <nnconfig.h>
|
||||||
|
|
||||||
#include <nndate.h>
|
#include <nndate.h>
|
||||||
+#include "misc.h"
|
+#include "misc.h"
|
||||||
|
|
||||||
static char* month_name[] =
|
static char* month_name[] =
|
||||||
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
||||||
--- Drivers/nn/misc.h
|
Index: Drivers/nn/misc.h
|
||||||
|
===================================================================
|
||||||
|
--- /dev/null
|
||||||
+++ Drivers/nn/misc.h
|
+++ Drivers/nn/misc.h
|
||||||
@@ -0,0 +1,7 @@
|
@@ -0,0 +1,7 @@
|
||||||
+#ifndef _MISC_H
|
+#ifndef _MISC_H
|
||||||
@ -46,30 +35,23 @@
|
|||||||
+
|
+
|
||||||
+
|
+
|
||||||
+#endif
|
+#endif
|
||||||
--- Drivers/nn/connect.c
|
Index: Drivers/nn/connect.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/connect.c.orig
|
||||||
+++ Drivers/nn/connect.c
|
+++ Drivers/nn/connect.c
|
||||||
@@ -13,6 +13,7 @@
|
@@ -14,6 +14,7 @@
|
||||||
GNU General Public License for more details.
|
|
||||||
**/
|
**/
|
||||||
|
#include <config.h>
|
||||||
#include "driver.h"
|
#include "driver.h"
|
||||||
+#include "misc.h"
|
+#include "misc.h"
|
||||||
|
|
||||||
void* nnodbc_getenverrstack(void* henv)
|
void* nnodbc_getenverrstack(void* henv)
|
||||||
{
|
{
|
||||||
--- Drivers/nn/config.h
|
Index: Drivers/nn/nntp.c
|
||||||
+++ Drivers/nn/config.h
|
===================================================================
|
||||||
@@ -21,6 +21,8 @@
|
--- Drivers/nn/nntp.c.orig
|
||||||
# include <stdlib.h>
|
|
||||||
# include <errno.h>
|
|
||||||
# include <sys/types.h>
|
|
||||||
+# include <string.h>
|
|
||||||
+# include <unistd.h>
|
|
||||||
|
|
||||||
# define MEM_ALLOC(size) (malloc((size_t)(size)))
|
|
||||||
# define MEM_FREE(ptr) {if(ptr) free(ptr);}
|
|
||||||
--- Drivers/nn/nntp.c
|
|
||||||
+++ Drivers/nn/nntp.c
|
+++ Drivers/nn/nntp.c
|
||||||
@@ -35,6 +35,7 @@
|
@@ -36,6 +36,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <nntp.h>
|
#include <nntp.h>
|
||||||
@ -77,9 +59,11 @@
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
long article_num;
|
long article_num;
|
||||||
--- Drivers/nn/nncol.c
|
Index: Drivers/nn/nncol.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/nncol.c.orig
|
||||||
+++ Drivers/nn/nncol.c
|
+++ Drivers/nn/nncol.c
|
||||||
@@ -17,6 +17,7 @@
|
@@ -18,6 +18,7 @@
|
||||||
|
|
||||||
#include <nncol.h>
|
#include <nncol.h>
|
||||||
#include "nncol.ci"
|
#include "nncol.ci"
|
||||||
@ -87,17 +71,20 @@
|
|||||||
|
|
||||||
int nnsql_getcolidxbyname( char* col_name )
|
int nnsql_getcolidxbyname( char* col_name )
|
||||||
{
|
{
|
||||||
--- Drivers/Postgre7.1/dlg_specific.c
|
Index: Drivers/Postgre7.1/dlg_specific.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/Postgre7.1/dlg_specific.c.orig
|
||||||
+++ Drivers/Postgre7.1/dlg_specific.c
|
+++ Drivers/Postgre7.1/dlg_specific.c
|
||||||
@@ -21,10 +21,10 @@
|
@@ -21,11 +21,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
+# include <string.h>
|
-# include <string.h>
|
||||||
|
# include <ctype.h>
|
||||||
# ifdef UNIXODBC
|
# ifdef UNIXODBC
|
||||||
# include <odbcinst.h>
|
# include <odbcinst.h>
|
||||||
# else
|
# else
|
||||||
-# include <string.h>
|
+# include <string.h>
|
||||||
# include "gpps.h"
|
# include "gpps.h"
|
||||||
# define SQLGetPrivateProfileString(a,b,c,d,e,f) GetPrivateProfileString(a,b,c,d,e,f)
|
# define SQLGetPrivateProfileString(a,b,c,d,e,f) GetPrivateProfileString(a,b,c,d,e,f)
|
||||||
# define SQLWritePrivateProfileString(a,b,c,d) WritePrivateProfileString(a,b,c,d)
|
# define SQLWritePrivateProfileString(a,b,c,d) WritePrivateProfileString(a,b,c,d)
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Mon Jun 13 11:17:00 CEST 2011 - mhrusecky@suse.cz
|
|
||||||
|
|
||||||
- fixed CVE-2011-1145 (bnc#678796)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Oct 13 15:45:51 CEST 2008 - nadvornik@suse.cz
|
|
||||||
|
|
||||||
- dropped the dlopen patch, it no longer matches
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Nov 15 16:54:03 CET 2006 - anosek@suse.cz
|
|
||||||
|
|
||||||
- fixed compiler warning: variable is used before its value is set
|
|
||||||
[#218998] (ctracing.patch)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Oct 18 12:02:48 CEST 2006 - anosek@suse.cz
|
|
||||||
|
|
||||||
- updated to version 2.2.12
|
|
||||||
* bugfixes
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Jul 25 13:31:21 CEST 2006 - mmarek@suse.de
|
|
||||||
|
|
||||||
- fix build with modular Xorg
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu Jun 15 15:31:15 CEST 2006 - mmarek@suse.cz
|
|
||||||
|
|
||||||
- moved %{_libdir}/unixODBC/*.so to main package, so that libfoo.so
|
|
||||||
and libfooS.so can be used in driver configuration.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu Jun 15 10:06:51 CEST 2006 - mmarek@suse.cz
|
|
||||||
|
|
||||||
- updated distributed libltdl to make autoconf happy
|
|
||||||
- dropped unixODBC-gui-gtk
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu Jun 8 12:45:16 CEST 2006 - mmarek@suse.cz
|
|
||||||
|
|
||||||
- reduce BuildRequires
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Jan 25 21:42:27 CET 2006 - mls@suse.de
|
|
||||||
|
|
||||||
- converted neededforbuild to BuildRequires
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Jan 20 01:24:09 CET 2006 - ro@suse.de
|
|
||||||
|
|
||||||
- split specfile for gui packages
|
|
||||||
|
|
@ -1,127 +0,0 @@
|
|||||||
#
|
|
||||||
# spec file for package unixODBC-gui-qt
|
|
||||||
#
|
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
||||||
#
|
|
||||||
# All modifications and additions to the file contributed by third parties
|
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
|
||||||
# upon. The license for this file, and modifications and additions to the
|
|
||||||
# file, is the same license as for the pristine package itself (unless the
|
|
||||||
# license for the pristine package is not an Open Source License, in which
|
|
||||||
# case the license is the MIT License). An "Open Source License" is a
|
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
|
||||||
# published by the Open Source Initiative.
|
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
||||||
#
|
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
|
|
||||||
Name: unixODBC-gui-qt
|
|
||||||
BuildRequires: qt3-devel
|
|
||||||
BuildRequires: libtool
|
|
||||||
Version: 2.2.12
|
|
||||||
Release: 0
|
|
||||||
Summary: ODBC Configuration Utility, Data Source Browser, and ODBC Test Tool based
|
|
||||||
License: GPLv2+
|
|
||||||
Url: http://www.unixodbc.org/
|
|
||||||
Group: Productivity/Databases/Tools
|
|
||||||
Requires: unixODBC = %{version}
|
|
||||||
Source: unixODBC-%{version}.tar.bz2
|
|
||||||
Source1: README.SuSE
|
|
||||||
Patch1: unixODBC-paths.patch
|
|
||||||
Patch4: unixODBC-odbctest.patch
|
|
||||||
Patch5: unixODBC-iaddr.patch
|
|
||||||
Patch6: unixODBC-nonvoid.patch
|
|
||||||
Patch7: unixODBC-gccwarnings.patch
|
|
||||||
Patch8: unixODBC-%{version}-dm.patch
|
|
||||||
Patch10: unixODBC-%{version}-libodbcinst-exports.patch
|
|
||||||
Patch11: unixODBC-%{version}-flex.patch
|
|
||||||
Patch12: unixODBC-%{version}-ctracing.patch
|
|
||||||
Patch13: unixODBC-2.2.12-CVE-2011-1145.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
|
||||||
A collection of graphical tools (based on QT3) for UnixODBC.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Peter Harvey <pharvey@codebydesigns.com>
|
|
||||||
Nick Gorham <nick@easysoft.com>
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n unixODBC-%{version}
|
|
||||||
%patch1
|
|
||||||
%patch4
|
|
||||||
%patch5
|
|
||||||
%patch6
|
|
||||||
%patch7
|
|
||||||
#patch8 -p1
|
|
||||||
%patch10
|
|
||||||
%patch11
|
|
||||||
%patch12
|
|
||||||
%patch13 -p1
|
|
||||||
install -m 644 %{S:1} .
|
|
||||||
|
|
||||||
%build
|
|
||||||
export -n LANG LINGUAS LC_ALL
|
|
||||||
rm -rf libltdl
|
|
||||||
LIBTOOLIZE="libtoolize --ltdl" autoreconf --force --install
|
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
||||||
./configure \
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--mandir=%{_mandir} \
|
|
||||||
--infodir=%{_infodir} \
|
|
||||||
--libdir=%{_libdir} \
|
|
||||||
--sysconfdir=%{_sysconfdir}/unixODBC \
|
|
||||||
--with-qt-dir=/usr/lib/qt3 \
|
|
||||||
--with-qt-libraries=/usr/lib/qt3/%{_lib} \
|
|
||||||
--x-libraries=`pkg-config --variable libdir x11` \
|
|
||||||
--x-includes=`pkg-config --variable includedir x11` \
|
|
||||||
--disable-stats
|
|
||||||
make CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
|
|
||||||
|
|
||||||
%install
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
|
||||||
rm -rf $RPM_BUILD_ROOT/usr/share/libtool
|
|
||||||
#remove files packaged in main specfile
|
|
||||||
rm -f $RPM_BUILD_ROOT/etc/unixODBC/odbc.ini
|
|
||||||
rm -f $RPM_BUILD_ROOT/etc/unixODBC/odbcinst.ini
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/dltest
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/isql
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/iusql
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/odbc_config
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/bin/odbcinst
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/include/autotest.h
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/include/odbcconfig.h
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/include/odbcinst.h
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/include/odbcinstext.h
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/include/sql.h
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/include/sqlext.h
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/include/sqltypes.h
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/include/sqlucode.h
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/include/uodbc_stats.h
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/%_lib/libboundparam.*
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/%_lib/libgtrtst.*
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/%_lib/libodbc.*
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/%_lib/libodbccr.*
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/%_lib/libodbcinst.*
|
|
||||||
rm -f $RPM_BUILD_ROOT/usr/%_lib/libtemplate.*
|
|
||||||
rm -rf $RPM_BUILD_ROOT/usr/%_lib/unixODBC
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf "$RPM_BUILD_ROOT"
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_prefix}/bin/DataManager
|
|
||||||
%{_prefix}/bin/DataManagerII
|
|
||||||
%{_prefix}/bin/ODBCConfig
|
|
||||||
%{_prefix}/bin/qtodbctest
|
|
||||||
%{_libdir}/libodbcinstQ.*
|
|
||||||
%exclude /usr/include/uodbc_extras.h
|
|
||||||
|
|
||||||
%changelog
|
|
@ -1,6 +1,8 @@
|
|||||||
--- Drivers/Postgre7.1/socket.c
|
Index: Drivers/Postgre7.1/socket.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/Postgre7.1/socket.c.orig
|
||||||
+++ Drivers/Postgre7.1/socket.c
|
+++ Drivers/Postgre7.1/socket.c
|
||||||
@@ -100,7 +100,7 @@
|
@@ -100,7 +100,7 @@ SOCK_connect_to_ip(SocketClass *self, un
|
||||||
{
|
{
|
||||||
struct hostent *host;
|
struct hostent *host;
|
||||||
struct sockaddr_in sadr;
|
struct sockaddr_in sadr;
|
||||||
@ -9,29 +11,7 @@
|
|||||||
|
|
||||||
if (self->socket != -1) {
|
if (self->socket != -1) {
|
||||||
self->errornumber = SOCKET_ALREADY_CONNECTED;
|
self->errornumber = SOCKET_ALREADY_CONNECTED;
|
||||||
@@ -113,8 +113,8 @@
|
@@ -113,8 +113,8 @@ unsigned long iaddr;
|
||||||
/* If it is a valid IP address, use it.
|
|
||||||
Otherwise use hostname lookup.
|
|
||||||
*/
|
|
||||||
- iaddr = inet_addr(hostname);
|
|
||||||
- if (iaddr == INADDR_NONE) {
|
|
||||||
+ iaddr.s_addr = inet_addr(hostname);
|
|
||||||
+ if (iaddr.s_addr == INADDR_NONE) {
|
|
||||||
host = gethostbyname(hostname);
|
|
||||||
if (host == NULL) {
|
|
||||||
self->errornumber = SOCKET_HOST_NOT_FOUND;
|
|
||||||
--- Drivers/PostgreSQL/socket.c
|
|
||||||
+++ Drivers/PostgreSQL/socket.c
|
|
||||||
@@ -102,7 +102,7 @@
|
|
||||||
{
|
|
||||||
struct hostent *host;
|
|
||||||
struct sockaddr_in sadr;
|
|
||||||
-unsigned long iaddr;
|
|
||||||
+struct in_addr iaddr;
|
|
||||||
|
|
||||||
if (self->socket != -1) {
|
|
||||||
self->errornumber = SOCKET_ALREADY_CONNECTED;
|
|
||||||
@@ -115,8 +115,8 @@
|
|
||||||
/* If it is a valid IP address, use it.
|
/* If it is a valid IP address, use it.
|
||||||
Otherwise use hostname lookup.
|
Otherwise use hostname lookup.
|
||||||
*/
|
*/
|
||||||
|
@ -1,16 +1,8 @@
|
|||||||
--- DriverManager/SQLAllocHandle.c
|
Index: DriverManager/SQLConnect.c
|
||||||
+++ DriverManager/SQLAllocHandle.c
|
===================================================================
|
||||||
@@ -224,6 +224,7 @@
|
--- DriverManager/SQLConnect.c.orig
|
||||||
*
|
|
||||||
**********************************************************************/
|
|
||||||
|
|
||||||
+
|
|
||||||
#include "drivermanager.h"
|
|
||||||
#if defined ( COLLECT_STATS ) && defined( HAVE_SYS_SEM_H )
|
|
||||||
#include "__stats.h"
|
|
||||||
--- DriverManager/SQLConnect.c
|
|
||||||
+++ DriverManager/SQLConnect.c
|
+++ DriverManager/SQLConnect.c
|
||||||
@@ -764,6 +764,7 @@
|
@@ -919,6 +919,7 @@ static void odbc_dlclose( void *handle )
|
||||||
}
|
}
|
||||||
|
|
||||||
mutex_lib_exit();
|
mutex_lib_exit();
|
||||||
@ -18,46 +10,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
--- cur/SQLAllocHandle.c
|
Index: cur/SQLEndTran.c
|
||||||
+++ cur/SQLAllocHandle.c
|
===================================================================
|
||||||
@@ -139,4 +139,5 @@
|
--- cur/SQLEndTran.c.orig
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
+ return 0;
|
|
||||||
}
|
|
||||||
--- cur/SQLEndTran.c
|
|
||||||
+++ cur/SQLEndTran.c
|
+++ cur/SQLEndTran.c
|
||||||
@@ -70,4 +70,5 @@
|
@@ -78,4 +78,5 @@ SQLRETURN CLEndTran( SQLSMALLINT handle_
|
||||||
default:
|
default:
|
||||||
return SQL_ERROR;
|
return SQL_ERROR;
|
||||||
}
|
}
|
||||||
+ return 0;
|
+ return 0;
|
||||||
}
|
}
|
||||||
--- cur/SQLError.c
|
Index: odbcinst/SQLSetConfigMode.c
|
||||||
+++ cur/SQLError.c
|
===================================================================
|
||||||
@@ -149,4 +149,5 @@
|
--- odbcinst/SQLSetConfigMode.c.orig
|
||||||
|
|
||||||
return SQL_NO_DATA;
|
|
||||||
}
|
|
||||||
+ return 0;
|
|
||||||
}
|
|
||||||
--- cur/SQLFreeHandle.c
|
|
||||||
+++ cur/SQLFreeHandle.c
|
|
||||||
@@ -102,5 +102,6 @@
|
|
||||||
*/
|
|
||||||
return SQL_ERROR;
|
|
||||||
}
|
|
||||||
+ return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
--- odbcinst/SQLSetConfigMode.c
|
|
||||||
+++ odbcinst/SQLSetConfigMode.c
|
+++ odbcinst/SQLSetConfigMode.c
|
||||||
@@ -23,6 +23,7 @@
|
@@ -24,6 +24,7 @@ static int __config_mode = ODBC_BOTH_DSN
|
||||||
__set_config_mode( int mode )
|
void __set_config_mode( int mode )
|
||||||
{
|
{
|
||||||
__config_mode = mode;
|
__config_mode = mode;
|
||||||
+ return 0;
|
+ return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
__get_config_mode()
|
int __get_config_mode( void )
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
--- odbctest/Makefile.am
|
|
||||||
+++ odbctest/Makefile.am
|
|
||||||
@@ -1,10 +1,10 @@
|
|
||||||
if QT
|
|
||||||
|
|
||||||
-bin_PROGRAMS = odbctest
|
|
||||||
+bin_PROGRAMS = qtodbctest
|
|
||||||
|
|
||||||
INCLUDES = -I@top_srcdir@/include $(QT_CXXFLAGS) -DSYSTEM_FILE_PATH=\"@sysconfdir@\" $(LTDLINCL)
|
|
||||||
|
|
||||||
-odbctest_LDADD = \
|
|
||||||
+qtodbctest_LDADD = \
|
|
||||||
$(QT_LDFLAGS) \
|
|
||||||
$(QT_LIBS) \
|
|
||||||
../ini/libinilc.la \
|
|
||||||
@@ -12,9 +12,9 @@
|
|
||||||
../DriverManager/libodbc.la \
|
|
||||||
$(LIBLTDL) $(LIBADD_DL)
|
|
||||||
|
|
||||||
-odbctest_DEPENDANCIES = ../odbcinst/libodbcinst.la ../DriverManager/libodbc.la
|
|
||||||
+qtodbctest_DEPENDANCIES = ../odbcinst/libodbcinst.la ../DriverManager/libodbc.la
|
|
||||||
|
|
||||||
-odbctest_SOURCES = \
|
|
||||||
+qtodbctest_SOURCES = \
|
|
||||||
tools.cpp \
|
|
||||||
stmt.cpp \
|
|
||||||
results.cpp \
|
|
@ -1,130 +1,156 @@
|
|||||||
--- DRVConfig/MiniSQL/Makefile.am
|
Index: DRVConfig/MiniSQL/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/MiniSQL/Makefile.am.orig
|
||||||
+++ DRVConfig/MiniSQL/Makefile.am
|
+++ DRVConfig/MiniSQL/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ libodbcminiS_la_LDFLAGS = -no-undefined
|
||||||
|
|
||||||
libodbcminiS_la_SOURCES = odbcminiS.c
|
libodbcminiS_la_SOURCES = odbcminiS.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/MySQL/Makefile.am
|
Index: DRVConfig/MySQL/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/MySQL/Makefile.am.orig
|
||||||
+++ DRVConfig/MySQL/Makefile.am
|
+++ DRVConfig/MySQL/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ libodbcmyS_la_LDFLAGS = -no-undefined -
|
||||||
|
|
||||||
libodbcmyS_la_SOURCES = odbcmyS.c
|
libodbcmyS_la_SOURCES = odbcmyS.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/Oracle/Makefile.am
|
Index: DRVConfig/Oracle/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/Oracle/Makefile.am.orig
|
||||||
+++ DRVConfig/Oracle/Makefile.am
|
+++ DRVConfig/Oracle/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ liboraodbcS_la_LDFLAGS = -no-undefined
|
||||||
|
|
||||||
liboraodbcS_la_SOURCES = oraodbcS.c
|
liboraodbcS_la_SOURCES = oraodbcS.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/PostgreSQL/Makefile.am
|
Index: DRVConfig/PostgreSQL/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/PostgreSQL/Makefile.am.orig
|
||||||
+++ DRVConfig/PostgreSQL/Makefile.am
|
+++ DRVConfig/PostgreSQL/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ libodbcpsqlS_la_LDFLAGS = -no-undefined
|
||||||
|
|
||||||
libodbcpsqlS_la_SOURCES = odbcpsqlS.c
|
libodbcpsqlS_la_SOURCES = odbcpsqlS.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/drvcfg1/Makefile.am
|
Index: DRVConfig/drvcfg1/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/drvcfg1/Makefile.am.orig
|
||||||
+++ DRVConfig/drvcfg1/Makefile.am
|
+++ DRVConfig/drvcfg1/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ libodbcdrvcfg1S_la_LDFLAGS = -no-undefin
|
||||||
|
|
||||||
libodbcdrvcfg1S_la_SOURCES = drvcfg1.c
|
libodbcdrvcfg1S_la_SOURCES = drvcfg1.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/drvcfg2/Makefile.am
|
Index: DRVConfig/drvcfg2/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/drvcfg2/Makefile.am.orig
|
||||||
+++ DRVConfig/drvcfg2/Makefile.am
|
+++ DRVConfig/drvcfg2/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ libodbcdrvcfg2S_la_LDFLAGS = -no-undefin
|
||||||
|
|
||||||
libodbcdrvcfg2S_la_SOURCES = drvcfg2.c
|
libodbcdrvcfg2S_la_SOURCES = drvcfg2.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/esoob/Makefile.am
|
Index: DRVConfig/esoob/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/esoob/Makefile.am.orig
|
||||||
+++ DRVConfig/esoob/Makefile.am
|
+++ DRVConfig/esoob/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ libesoobS_la_LDFLAGS = -no-undefined -v
|
||||||
|
|
||||||
libesoobS_la_SOURCES = esoobS.c
|
libesoobS_la_SOURCES = esoobS.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/nn/Makefile.am
|
Index: DRVConfig/nn/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/nn/Makefile.am.orig
|
||||||
+++ DRVConfig/nn/Makefile.am
|
+++ DRVConfig/nn/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ libodbcnnS_la_LDFLAGS = -no-undefined -
|
||||||
|
|
||||||
libodbcnnS_la_SOURCES = drvcfg.c
|
libodbcnnS_la_SOURCES = drvcfg.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/oplodbc/Makefile.am
|
Index: DRVConfig/oplodbc/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/oplodbc/Makefile.am.orig
|
||||||
+++ DRVConfig/oplodbc/Makefile.am
|
+++ DRVConfig/oplodbc/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ liboplodbcS_la_LDFLAGS = -no-undefined
|
||||||
|
|
||||||
liboplodbcS_la_SOURCES = oplodbc.c
|
liboplodbcS_la_SOURCES = oplodbc.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/sapdb/Makefile.am
|
Index: DRVConfig/sapdb/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/sapdb/Makefile.am.orig
|
||||||
+++ DRVConfig/sapdb/Makefile.am
|
+++ DRVConfig/sapdb/Makefile.am
|
||||||
@@ -9,3 +9,5 @@
|
@@ -7,3 +7,5 @@ libsapdbS_la_LDFLAGS = -no-undefined -v
|
||||||
libsapdbS_la_SOURCES = sapdb.c
|
libsapdbS_la_SOURCES = sapdb.c
|
||||||
|
|
||||||
EXTRA_DIST = README
|
EXTRA_DIST = README
|
||||||
+
|
+
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/tds/Makefile.am
|
Index: DRVConfig/tds/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/tds/Makefile.am.orig
|
||||||
+++ DRVConfig/tds/Makefile.am
|
+++ DRVConfig/tds/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ libtdsS_la_LDFLAGS = -no-undefined -ver
|
||||||
|
|
||||||
libtdsS_la_SOURCES = tdsS.c
|
libtdsS_la_SOURCES = tdsS.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- DRVConfig/txt/Makefile.am
|
Index: DRVConfig/txt/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- DRVConfig/txt/Makefile.am.orig
|
||||||
+++ DRVConfig/txt/Makefile.am
|
+++ DRVConfig/txt/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ libodbctxtS_la_LDFLAGS = -no-undefined
|
||||||
|
|
||||||
libodbctxtS_la_SOURCES = drvcfg.c
|
libodbctxtS_la_SOURCES = drvcfg.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- Drivers/Postgre7.1/Makefile.am
|
Index: Drivers/Postgre7.1/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/Postgre7.1/Makefile.am.orig
|
||||||
+++ Drivers/Postgre7.1/Makefile.am
|
+++ Drivers/Postgre7.1/Makefile.am
|
||||||
@@ -69,3 +69,5 @@
|
@@ -72,3 +72,5 @@ libodbcpsql_la_SOURCES = \
|
||||||
statement.c \
|
statement.c \
|
||||||
tuple.c \
|
tuple.c \
|
||||||
tuplelist.c
|
tuplelist.c
|
||||||
+
|
+
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- Drivers/PostgreSQL/Makefile.am
|
Index: Drivers/nn/Makefile.am
|
||||||
+++ Drivers/PostgreSQL/Makefile.am
|
===================================================================
|
||||||
@@ -64,3 +64,5 @@
|
--- Drivers/nn/Makefile.am.orig
|
||||||
statement.c \
|
|
||||||
tuple.c \
|
|
||||||
tuplelist.c
|
|
||||||
+
|
|
||||||
+libdir = @libdir@/unixODBC
|
|
||||||
--- Drivers/nn/Makefile.am
|
|
||||||
+++ Drivers/nn/Makefile.am
|
+++ Drivers/nn/Makefile.am
|
||||||
@@ -76,3 +76,4 @@
|
@@ -74,3 +74,4 @@ libnn_la_SOURCES = \
|
||||||
nndate.c \
|
nndate.c \
|
||||||
nntp.c
|
nntp.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- Drivers/txt/Makefile.am
|
Index: DRVConfig/Mimer/Makefile.am
|
||||||
+++ Drivers/txt/Makefile.am
|
===================================================================
|
||||||
@@ -112,3 +112,4 @@
|
--- DRVConfig/Mimer/Makefile.am.orig
|
||||||
driver.h \
|
|
||||||
driverextras.h
|
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
|
||||||
--- DRVConfig/Mimer/Makefile.am
|
|
||||||
+++ DRVConfig/Mimer/Makefile.am
|
+++ DRVConfig/Mimer/Makefile.am
|
||||||
@@ -8,3 +8,4 @@
|
@@ -6,3 +6,4 @@ libmimerS_la_LDFLAGS = -no-undefined -ve
|
||||||
|
|
||||||
libmimerS_la_SOURCES = mimerS.c
|
libmimerS_la_SOURCES = mimerS.c
|
||||||
|
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
--- Drivers/template/Makefile.am
|
Index: Drivers/template/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/template/Makefile.am.orig
|
||||||
+++ Drivers/template/Makefile.am
|
+++ Drivers/template/Makefile.am
|
||||||
@@ -101,3 +101,5 @@
|
@@ -99,3 +99,5 @@ libtemplate_la_SOURCES = \
|
||||||
_NativeTypeDesc.c \
|
_NativeTypeDesc.c \
|
||||||
_NativeTypeLength.c \
|
_NativeTypeLength.c \
|
||||||
_NativeTypePrecision.c
|
_NativeTypePrecision.c
|
||||||
+
|
+
|
||||||
+libdir = @libdir@/unixODBC
|
+libdir = @libdir@/unixODBC
|
||||||
|
Index: Drivers/MiniSQL/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/MiniSQL/Makefile.am.orig
|
||||||
|
+++ Drivers/MiniSQL/Makefile.am
|
||||||
|
@@ -196,3 +196,4 @@ EXTRA_DIST = \
|
||||||
|
libodbcmini_la_LDFLAGS = -no-undefined -version-info 1:0:0 \
|
||||||
|
-L@msql_libraries@ -lmsql -module
|
||||||
|
|
||||||
|
+libdir = @libdir@/unixODBC
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 6 10:35:00 CET 2012 - mhrusecky@suse.cz
|
||||||
|
|
||||||
|
- updated to versio 2.3.1
|
||||||
|
* reduced unixODBC, after the GUI and additional driver parts have
|
||||||
|
been split off to their own project.
|
||||||
|
* change to the new default SQLLEN size for 64 bit platforms
|
||||||
|
* number of bug fixes and changes, see http://www.unixodbc.org/
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Nov 27 06:48:53 UTC 2011 - coolo@suse.com
|
Sun Nov 27 06:48:53 UTC 2011 - coolo@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package unixODBC
|
# spec file for package unixODBC
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -20,10 +20,10 @@
|
|||||||
|
|
||||||
Name: unixODBC
|
Name: unixODBC
|
||||||
BuildRequires: gcc-c++ libtool
|
BuildRequires: gcc-c++ libtool
|
||||||
Version: 2.2.12
|
Version: 2.3.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: ODBC driver manager with some drivers included
|
Summary: ODBC driver manager with some drivers included
|
||||||
License: GPLv2+ ; LGPLv2.1+
|
License: GPL-2.0+ ; LGPL-2.1+
|
||||||
Url: http://www.unixodbc.org/
|
Url: http://www.unixodbc.org/
|
||||||
Group: Productivity/Databases/Tools
|
Group: Productivity/Databases/Tools
|
||||||
# bug437293
|
# bug437293
|
||||||
@ -39,21 +39,16 @@ Source: unixODBC-%{version}.tar.bz2
|
|||||||
Source1: README.SuSE
|
Source1: README.SuSE
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Patch1: unixODBC-paths.patch
|
Patch1: unixODBC-paths.patch
|
||||||
Patch4: unixODBC-odbctest.patch
|
|
||||||
Patch5: unixODBC-iaddr.patch
|
Patch5: unixODBC-iaddr.patch
|
||||||
Patch6: unixODBC-nonvoid.patch
|
Patch6: unixODBC-nonvoid.patch
|
||||||
Patch7: unixODBC-gccwarnings.patch
|
Patch7: unixODBC-gccwarnings.patch
|
||||||
Patch8: unixODBC-%{version}-dm.patch
|
Patch10: %{name}-2.2.12-libodbcinst-exports.patch
|
||||||
Patch10: %{name}-%{version}-libodbcinst-exports.patch
|
Patch13: %{name}-2.2.12-uninitialized.patch
|
||||||
Patch11: %{name}-%{version}-flex.patch
|
|
||||||
Patch12: %{name}-%{version}-sqp.patch
|
|
||||||
Patch13: %{name}-%{version}-uninitialized.patch
|
|
||||||
Patch14: unixODBC-2.2.12-CVE-2011-1145.patch
|
|
||||||
Patch15: unixODBC-2.2.12-locking_fix.patch
|
Patch15: unixODBC-2.2.12-locking_fix.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: GPLv2+ ; LGPLv2.1+
|
License: GPL-2.0+ ; LGPL-2.1+
|
||||||
Summary: Includes and Static Libraries for ODBC Development
|
Summary: Includes and Static Libraries for ODBC Development
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
@ -89,23 +84,19 @@ Authors:
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1
|
%patch1
|
||||||
%patch4
|
|
||||||
%patch5
|
%patch5
|
||||||
%patch6
|
%patch6
|
||||||
%patch7
|
%patch7
|
||||||
#patch8 -p1
|
|
||||||
%patch10
|
%patch10
|
||||||
%patch11
|
|
||||||
%patch12
|
|
||||||
%patch13
|
%patch13
|
||||||
%patch14 -p1
|
#%patch15 -p1
|
||||||
%patch15 -p1
|
|
||||||
install -m 644 %{S:1} .
|
install -m 644 %{S:1} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export -n LANG LINGUAS LC_ALL
|
export -n LANG LINGUAS LC_ALL
|
||||||
rm -rf libltdl
|
rm -rf libltdl
|
||||||
LIBTOOLIZE="libtoolize --ltdl" autoreconf --force --install
|
libtoolize --ltdl
|
||||||
|
autoreconf --force --install
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||||
%configure \
|
%configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
@ -134,7 +125,7 @@ rm -rf "$RPM_BUILD_ROOT"
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README README.GTK README.SuSE doc/*.html doc/*.gif
|
%doc AUTHORS COPYING ChangeLog NEWS README README.SuSE doc/*.html doc/*.gif
|
||||||
%dir %{_sysconfdir}/%{name}
|
%dir %{_sysconfdir}/%{name}
|
||||||
%dir %{_sysconfdir}/%{name}/ODBCDataSources
|
%dir %{_sysconfdir}/%{name}/ODBCDataSources
|
||||||
%dir %{_libdir}/%{name}
|
%dir %{_libdir}/%{name}
|
||||||
@ -145,29 +136,18 @@ rm -rf "$RPM_BUILD_ROOT"
|
|||||||
%{_prefix}/bin/iusql
|
%{_prefix}/bin/iusql
|
||||||
%{_prefix}/bin/odbcinst
|
%{_prefix}/bin/odbcinst
|
||||||
%{_prefix}/bin/odbc_config
|
%{_prefix}/bin/odbc_config
|
||||||
%{_libdir}/libodbc.so
|
|
||||||
%{_libdir}/libodbc.so.*
|
%{_libdir}/libodbc.so.*
|
||||||
#%{_libdir}/libodbcextras.so.*
|
|
||||||
%{_libdir}/libodbcinst.so
|
|
||||||
%{_libdir}/libodbcinst.so.*
|
%{_libdir}/libodbcinst.so.*
|
||||||
%{_libdir}/libboundparam.so.*
|
|
||||||
%{_libdir}/libgtrtst.so.*
|
|
||||||
%{_libdir}/libodbccr.so.*
|
%{_libdir}/libodbccr.so.*
|
||||||
%{_libdir}/unixODBC/*.so*
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/libboundparam.la
|
%{_libdir}/libodbc.so
|
||||||
%{_libdir}/libgtrtst.la
|
%{_libdir}/libodbcinst.so
|
||||||
%{_libdir}/libodbc.la
|
%{_libdir}/libodbc.la
|
||||||
%{_libdir}/libodbccr.la
|
%{_libdir}/libodbccr.la
|
||||||
#%{_libdir}/libodbcextras.la
|
|
||||||
%{_libdir}/libodbcinst.la
|
%{_libdir}/libodbcinst.la
|
||||||
%{_libdir}/libboundparam.so
|
|
||||||
%{_libdir}/libgtrtst.so
|
|
||||||
%{_libdir}/libodbccr.so
|
%{_libdir}/libodbccr.so
|
||||||
#%{_libdir}/libodbcextras.so
|
|
||||||
%{_libdir}/unixODBC/*.la
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user