Accepting request 157820 from server:database
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/157820 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/unixODBC?expand=0&rev=21
This commit is contained in:
commit
cdd97d7b9f
@ -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,26 +0,0 @@
|
|||||||
--- odbcinstQ/CTracing.cpp
|
|
||||||
+++ odbcinstQ/CTracing.cpp
|
|
||||||
@@ -85,12 +85,12 @@
|
|
||||||
|
|
||||||
SQLGetPrivateProfileString( "ODBC", "Trace", "No", szTracing, sizeof(szTracing), "odbcinst.ini" );
|
|
||||||
if ( szTracing[0] == '1' || toupper( szTracing[0] ) == 'Y'
|
|
||||||
- || ( toupper( szTracing[0] ) == 'O' && toupper( szForce[0] ) == 'N' ))
|
|
||||||
+ || ( toupper( szTracing[0] ) == 'O' && toupper( szTracing[1] ) == 'N' ))
|
|
||||||
pTracing->setChecked( true );
|
|
||||||
|
|
||||||
SQLGetPrivateProfileString( "ODBC", "ForceTrace", "No", szForce, sizeof(szForce), "odbcinst.ini" );
|
|
||||||
if ( szForce[0] == '1' || toupper( szForce[0] ) == 'Y'
|
|
||||||
- || ( toupper( szForce[0] ) == 'O' && toupper( szForce[0] ) == 'N' ))
|
|
||||||
+ || ( toupper( szForce[0] ) == 'O' && toupper( szForce[1] ) == 'N' ))
|
|
||||||
pForce->setChecked( true );
|
|
||||||
|
|
||||||
SQLGetPrivateProfileString( "ODBC", "TraceFile", "/tmp/sql.log", szTracingFile, sizeof(szTracingFile)-1, "odbcinst.ini" );
|
|
||||||
@@ -98,7 +98,7 @@
|
|
||||||
|
|
||||||
SQLGetPrivateProfileString( "ODBC", "Pooling", "No", szPooling, sizeof(szPooling), "odbcinst.ini" );
|
|
||||||
if ( szPooling[0] == '1' || toupper( szPooling[0] ) == 'Y'
|
|
||||||
- || ( toupper( szPooling[0] ) == 'O' && toupper( szForce[0] ) == 'N' ))
|
|
||||||
+ || ( toupper( szPooling[0] ) == 'O' && toupper( szPooling[1] ) == 'N' ))
|
|
||||||
pPooling->setChecked( true );
|
|
||||||
|
|
||||||
connect( pSetDefault, SIGNAL(clicked()), SLOT(setDefault()) );
|
|
@ -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,273 +0,0 @@
|
|||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLAllocHandle.c unixODBC-2.2.12/DriverManager/SQLAllocHandle.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLAllocHandle.c 2010-09-03 13:22:09.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLAllocHandle.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -1235,6 +1235,8 @@
|
|
||||||
if ( __validate_env( (DMHENV) input_handle ))
|
|
||||||
{
|
|
||||||
DMHENV environment = (DMHENV) input_handle;
|
|
||||||
+
|
|
||||||
+ thread_protect( SQL_HANDLE_ENV, environment );
|
|
||||||
__post_internal_error( &environment -> error,
|
|
||||||
ERROR_HY092, NULL,
|
|
||||||
environment -> requested_version );
|
|
||||||
@@ -1244,6 +1246,8 @@
|
|
||||||
else if ( __validate_dbc( (DMHDBC) input_handle ))
|
|
||||||
{
|
|
||||||
DMHDBC connection = (DMHDBC) input_handle;
|
|
||||||
+
|
|
||||||
+ thread_protect( SQL_HANDLE_DBC, connection );
|
|
||||||
__post_internal_error( &connection -> error,
|
|
||||||
ERROR_HY092, NULL,
|
|
||||||
connection -> environment -> requested_version );
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLBrowseConnect.c unixODBC-2.2.12/DriverManager/SQLBrowseConnect.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLBrowseConnect.c 2005-11-21 09:25:43.000000000 -0800
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLBrowseConnect.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -259,7 +259,7 @@
|
|
||||||
ERROR_08002, NULL,
|
|
||||||
connection -> environment -> requested_version );
|
|
||||||
|
|
||||||
- return function_return( -1, connection, SQL_ERROR );
|
|
||||||
+ return function_return( IGNORE_THREAD, connection, SQL_ERROR );
|
|
||||||
}
|
|
||||||
|
|
||||||
thread_protect( SQL_HANDLE_DBC, connection );
|
|
||||||
@@ -578,7 +578,7 @@
|
|
||||||
|
|
||||||
if( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_DBC, connection, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, connection, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !__connect_part_two( connection ))
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLBrowseConnectW.c unixODBC-2.2.12/DriverManager/SQLBrowseConnectW.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLBrowseConnectW.c 2005-09-27 08:44:06.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLBrowseConnectW.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -595,7 +595,7 @@
|
|
||||||
|
|
||||||
if( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_DBC, connection, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, connection, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !__connect_part_two( connection ))
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLColAttribute.c unixODBC-2.2.12/DriverManager/SQLColAttribute.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLColAttribute.c 2006-03-08 01:18:41.000000000 -0800
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLColAttribute.c 2010-09-03 13:30:30.000000000 -0700
|
|
||||||
@@ -314,7 +314,7 @@
|
|
||||||
__post_internal_error( &statement -> error,
|
|
||||||
ERROR_07009, NULL,
|
|
||||||
statement -> connection -> environment -> requested_version );
|
|
||||||
- return function_return( statement, SQL_ERROR );
|
|
||||||
+ return function_return( SQL_HANDLE_STMT, statement, SQL_ERROR );
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLColAttributeW.c unixODBC-2.2.12/DriverManager/SQLColAttributeW.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLColAttributeW.c 2005-09-27 08:44:06.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLColAttributeW.c 2010-09-03 13:31:01.000000000 -0700
|
|
||||||
@@ -180,7 +180,7 @@
|
|
||||||
__post_internal_error( &statement -> error,
|
|
||||||
ERROR_07009, NULL,
|
|
||||||
statement -> connection -> environment -> requested_version );
|
|
||||||
- return function_return( statement, SQL_ERROR );
|
|
||||||
+ return function_return( SQL_HANDLE_STMT, statement, SQL_ERROR );
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLColumns.c unixODBC-2.2.12/DriverManager/SQLColumns.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLColumns.c 2005-09-27 08:44:06.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLColumns.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -371,7 +371,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLColumnsW.c unixODBC-2.2.12/DriverManager/SQLColumnsW.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLColumnsW.c 2005-09-27 08:44:06.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLColumnsW.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -284,7 +284,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLDisconnect.c unixODBC-2.2.12/DriverManager/SQLDisconnect.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLDisconnect.c 2006-02-21 03:59:22.000000000 -0800
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLDisconnect.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -321,7 +321,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_DBC, connection, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, connection, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLExecDirect.c unixODBC-2.2.12/DriverManager/SQLExecDirect.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLExecDirect.c 2006-04-11 03:22:56.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLExecDirect.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -431,7 +431,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
local_ret = SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLExecDirectW.c unixODBC-2.2.12/DriverManager/SQLExecDirectW.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLExecDirectW.c 2006-04-11 03:22:56.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLExecDirectW.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -333,7 +333,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
local_ret = SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLExecute.c unixODBC-2.2.12/DriverManager/SQLExecute.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLExecute.c 2005-09-27 08:44:06.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLExecute.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -294,7 +294,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
local_ret = SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLForeignKeys.c unixODBC-2.2.12/DriverManager/SQLForeignKeys.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLForeignKeys.c 2005-09-27 08:44:06.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLForeignKeys.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -407,7 +407,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLForeignKeysW.c unixODBC-2.2.12/DriverManager/SQLForeignKeysW.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLForeignKeysW.c 2005-09-27 08:44:06.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLForeignKeysW.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -315,7 +315,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLFreeHandle.c unixODBC-2.2.12/DriverManager/SQLFreeHandle.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLFreeHandle.c 2006-04-21 07:25:55.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLFreeHandle.c 2010-09-03 13:27:41.000000000 -0700
|
|
||||||
@@ -226,8 +226,6 @@
|
|
||||||
ERROR_HY010, NULL,
|
|
||||||
environment -> requested_version );
|
|
||||||
|
|
||||||
- thread_release( SQL_HANDLE_ENV, environment );
|
|
||||||
-
|
|
||||||
return function_return( SQL_HANDLE_ENV, environment, SQL_ERROR );
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -293,8 +291,6 @@
|
|
||||||
ERROR_HY010, NULL,
|
|
||||||
connection -> environment -> requested_version );
|
|
||||||
|
|
||||||
- thread_release( SQL_HANDLE_ENV, environment );
|
|
||||||
-
|
|
||||||
return function_return( SQL_HANDLE_ENV, environment, SQL_ERROR );
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -396,8 +392,6 @@
|
|
||||||
ERROR_HY010, NULL,
|
|
||||||
statement -> connection -> environment -> requested_version );
|
|
||||||
|
|
||||||
- thread_release( SQL_HANDLE_STMT, statement );
|
|
||||||
-
|
|
||||||
return function_return( SQL_HANDLE_STMT, statement, SQL_ERROR );
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -525,8 +519,6 @@
|
|
||||||
ERROR_IM001, NULL,
|
|
||||||
connection -> environment -> requested_version );
|
|
||||||
|
|
||||||
- thread_release( SQL_HANDLE_DESC, descriptor );
|
|
||||||
-
|
|
||||||
return function_return( SQL_HANDLE_DESC, descriptor, SQL_ERROR );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLMoreResults.c unixODBC-2.2.12/DriverManager/SQLMoreResults.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLMoreResults.c 2006-03-08 01:18:41.000000000 -0800
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLMoreResults.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -249,7 +249,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLParamData.c unixODBC-2.2.12/DriverManager/SQLParamData.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLParamData.c 2005-11-21 09:25:43.000000000 -0800
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLParamData.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -261,7 +261,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
local_ret = SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLPrimaryKeys.c unixODBC-2.2.12/DriverManager/SQLPrimaryKeys.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLPrimaryKeys.c 2005-09-27 08:44:06.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLPrimaryKeys.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -364,7 +364,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLPrimaryKeysW.c unixODBC-2.2.12/DriverManager/SQLPrimaryKeysW.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLPrimaryKeysW.c 2005-09-27 08:44:06.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLPrimaryKeysW.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -287,7 +287,7 @@
|
|
||||||
|
|
||||||
if ( ret == SQL_SUCCESS_WITH_INFO )
|
|
||||||
{
|
|
||||||
- function_return_ex( SQL_HANDLE_STMT, statement, ret, TRUE );
|
|
||||||
+ function_return_ex( IGNORE_THREAD, statement, ret, TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
SQLNUMRESULTCOLS( statement -> connection,
|
|
||||||
diff -urN unixODBC-2.2.12.orig/DriverManager/SQLTransact.c unixODBC-2.2.12/DriverManager/SQLTransact.c
|
|
||||||
--- unixODBC-2.2.12.orig/DriverManager/SQLTransact.c 2006-05-31 10:35:34.000000000 -0700
|
|
||||||
+++ unixODBC-2.2.12/DriverManager/SQLTransact.c 2010-09-03 13:26:23.000000000 -0700
|
|
||||||
@@ -434,8 +434,6 @@
|
|
||||||
ERROR_HY012, NULL,
|
|
||||||
environment -> requested_version );
|
|
||||||
|
|
||||||
- thread_release( SQL_HANDLE_ENV, environment );
|
|
||||||
-
|
|
||||||
return function_return( SQL_HANDLE_ENV, environment, SQL_ERROR );
|
|
||||||
}
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
|||||||
--- sqp/sqpStoreDataType.c
|
|
||||||
+++ sqp/sqpStoreDataType.c
|
|
||||||
@@ -6,9 +6,20 @@
|
|
||||||
*
|
|
||||||
****************************************/
|
|
||||||
|
|
||||||
+#ifdef HAVE_CONFIG_H
|
|
||||||
+#include "config.h"
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#include "sqp.h"
|
|
||||||
#include <sqlext.h>
|
|
||||||
|
|
||||||
+#ifndef WIN32
|
|
||||||
+#ifndef HAVE_STRICMP
|
|
||||||
+#define stricmp(s1,s2) strcasecmp(s1,s2)
|
|
||||||
+#define strnicmp(s1,s2,n) strncasecmp(s1,s2,n)
|
|
||||||
+#endif
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
void sqpStoreDataType( char *pszType, int nPrecision, int nScale )
|
|
||||||
{
|
|
||||||
HSQPDATATYPE hDataType;
|
|
||||||
--- sqp/Makefile.am
|
|
||||||
+++ sqp/Makefile.am
|
|
||||||
@@ -46,6 +46,8 @@
|
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
||||||
+AM_YFLAGS = -d
|
|
||||||
+
|
|
||||||
EXTRA_DIST = \
|
|
||||||
yac.h
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
htbl_stmt hasn't yet been allocated in both cases
|
|
||||||
--- Drivers/PostgreSQL/info.c
|
|
||||||
+++ Drivers/PostgreSQL/info.c
|
|
||||||
@@ -2043,7 +2043,6 @@
|
|
||||||
stmt->errormsg = "No Table specified to SQLPrimaryKeys.";
|
|
||||||
stmt->errornumber = STMT_INTERNAL_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
|
|
||||||
+++ Drivers/PostgreSQL/convert.c
|
|
||||||
@@ -178,6 +178,7 @@
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
+ 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);
|
|
||||||
|
|
||||||
if ( ! value) {
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:813aa3a6d8a92e895fb50f73bc6b17869ae6a435f53bce719048df87c50daefe
|
|
||||||
size 2158675
|
|
22
unixODBC-2.3.1-bison.patch
Normal file
22
unixODBC-2.3.1-bison.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Index: Drivers/nn/yyparse.y
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/yyparse.y.orig
|
||||||
|
+++ Drivers/nn/yyparse.y
|
||||||
|
@@ -36,7 +36,7 @@ static char sccsid[]
|
||||||
|
# define yylex() nnsql_yylex(&yylval, pyyenv)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#define yyparse(x) nnsql_yyparse (pyyenv)
|
||||||
|
+#define yyparse(x) nnsql_yyparse (yyenv_t* pyyenv)
|
||||||
|
#define yyerror(msg) nnsql_yyerror (pyyenv, msg)
|
||||||
|
#define SETYYERROR(env, code) { env->pstmt->errcode = code; \
|
||||||
|
env->pstmt->errpos = env->errpos;}
|
||||||
|
@@ -1197,7 +1197,7 @@ static int add_ins_value( yystmt_t* pstm
|
||||||
|
{
|
||||||
|
if( !idx )
|
||||||
|
{
|
||||||
|
- MEM_FREE(pstmt->ins_values)
|
||||||
|
+ MEM_FREE(pstmt->ins_values);
|
||||||
|
pstmt->ins_values = (node_t*)MEM_ALLOC( FILTER_CHUNK_SIZE * sizeof(node_t));
|
||||||
|
}
|
||||||
|
else if( ! idx%FILTER_CHUNK_SIZE )
|
180
unixODBC-2.3.1-declarations.patch
Normal file
180
unixODBC-2.3.1-declarations.patch
Normal file
@ -0,0 +1,180 @@
|
|||||||
|
Index: Drivers/nn/SQLBindCol.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/SQLBindCol.c.orig
|
||||||
|
+++ Drivers/nn/SQLBindCol.c
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
#include "driver.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
RETCODE SQL_API SQLBindCol(
|
||||||
|
HSTMT hstmt,
|
||||||
|
Index: Drivers/nn/SQLBindParameter.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/SQLBindParameter.c.orig
|
||||||
|
+++ Drivers/nn/SQLBindParameter.c
|
||||||
|
@@ -13,6 +13,7 @@
|
||||||
|
GNU General Public License for more details.
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
+#include <string.h>
|
||||||
|
#include "driver.h"
|
||||||
|
|
||||||
|
RETCODE SQL_API SQLBindParameter(
|
||||||
|
Index: Drivers/nn/SQLDescribeCol.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/SQLDescribeCol.c.orig
|
||||||
|
+++ Drivers/nn/SQLDescribeCol.c
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
#include "driver.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
RETCODE SQL_API SQLDescribeCol(
|
||||||
|
HSTMT hstmt,
|
||||||
|
Index: Drivers/nn/SQLError.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/SQLError.c.orig
|
||||||
|
+++ Drivers/nn/SQLError.c
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
#include "driver.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
RETCODE SQL_API SQLError(
|
||||||
|
HENV henv,
|
||||||
|
Index: Drivers/nn/SQLFetch.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/SQLFetch.c.orig
|
||||||
|
+++ Drivers/nn/SQLFetch.c
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
#include "driver.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
RETCODE SQL_API SQLFetch( HSTMT hstmt )
|
||||||
|
{
|
||||||
|
Index: Drivers/nn/SQLGetData.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/SQLGetData.c.orig
|
||||||
|
+++ Drivers/nn/SQLGetData.c
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
#include "driver.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
RETCODE SQL_API SQLGetData(
|
||||||
|
HSTMT hstmt,
|
||||||
|
Index: Drivers/nn/SQLPutData.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/SQLPutData.c.orig
|
||||||
|
+++ Drivers/nn/SQLPutData.c
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
#include "driver.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
RETCODE SQL_API SQLPutData(
|
||||||
|
HSTMT hstmt,
|
||||||
|
Index: Drivers/nn/convert.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/convert.c.orig
|
||||||
|
+++ Drivers/nn/convert.c
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
#include "driver.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
/* It looks silly to use a MEM_ALLOC() in function char2str(), etc,
|
||||||
|
* for converting C data type into STRING SQL data type. Esspecially
|
||||||
|
Index: Drivers/nn/nndate.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/nndate.c.orig
|
||||||
|
+++ Drivers/nn/nndate.c
|
||||||
|
@@ -16,6 +16,7 @@
|
||||||
|
#include <nnconfig.h>
|
||||||
|
|
||||||
|
#include <nndate.h>
|
||||||
|
+#include <string.h>
|
||||||
|
#include "misc.h"
|
||||||
|
|
||||||
|
static char* month_name[] =
|
||||||
|
Index: Drivers/nn/prepare.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/prepare.c.orig
|
||||||
|
+++ Drivers/nn/prepare.c
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
#include "driver.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
void* nnodbc_getstmterrstack(void* hstmt)
|
||||||
|
{
|
||||||
|
Index: Drivers/nn/yyevl.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/yyevl.c.orig
|
||||||
|
+++ Drivers/nn/yyevl.c
|
||||||
|
@@ -16,6 +16,7 @@
|
||||||
|
#include <nnconfig.h>
|
||||||
|
#include <yystmt.h>
|
||||||
|
#include <yylex.h>
|
||||||
|
+#include <string.h>
|
||||||
|
#include <nncol.h>
|
||||||
|
#include <nndate.h>
|
||||||
|
|
||||||
|
Index: Drivers/nn/yyparse.y
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/yyparse.y.orig
|
||||||
|
+++ Drivers/nn/yyparse.y
|
||||||
|
@@ -25,6 +25,7 @@ static char sccsid[]
|
||||||
|
#include <yylex.h>
|
||||||
|
#include <yyerr.h>
|
||||||
|
#include <nndate.h>
|
||||||
|
+#include <stdio.h>
|
||||||
|
|
||||||
|
# ifdef YYLSP_NEEDED
|
||||||
|
# undef YYLSP_NEEDED
|
||||||
|
Index: Drivers/nn/yystmt.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/yystmt.c.orig
|
||||||
|
+++ Drivers/nn/yystmt.c
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
#include "driver.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
static char sccsid[]
|
||||||
|
= "@(#)NNSQL(NetNews SQL) v0.5, Copyright(c) 1995, 1996 by Ke Jin";
|
||||||
|
Index: Drivers/nn/connect.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/connect.c.orig
|
||||||
|
+++ Drivers/nn/connect.c
|
||||||
|
@@ -14,6 +14,7 @@
|
||||||
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
+#include <string.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include "driver.h"
|
||||||
|
#include "misc.h"
|
||||||
|
Index: Drivers/nn/yylex.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/yylex.c.orig
|
||||||
|
+++ Drivers/nn/yylex.c
|
||||||
|
@@ -26,6 +26,7 @@
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
+#include <ctype.h>
|
||||||
|
|
||||||
|
static int getcmpopidxbyname(char* name)
|
||||||
|
{
|
@ -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
|
25
unixODBC-2.3.1-uninitialized.patch
Normal file
25
unixODBC-2.3.1-uninitialized.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
htbl_stmt hasn't yet been allocated in both cases
|
||||||
|
Index: Drivers/Postgre7.1/info.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/Postgre7.1/info.c.orig
|
||||||
|
+++ Drivers/Postgre7.1/info.c
|
||||||
|
@@ -2345,6 +2345,7 @@ Int2 result_cols;
|
||||||
|
if(!stmt->result) {
|
||||||
|
SC_set_error(stmt, STMT_NO_MEMORY_ERROR, "Couldn't allocate memory for SQLForeignKeys result.");
|
||||||
|
SC_log_error(func, "", stmt);
|
||||||
|
+ PG__SQLFreeStmt(htbl_stmt, SQL_DROP);
|
||||||
|
return SQL_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
Index: Drivers/Postgre7.1/convert.c
|
||||||
|
===================================================================
|
||||||
|
--- 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));
|
||||||
|
mylog("copy_and_convert: field_type = %d, fctype = %d, value = '%s', cbValueMax=%d\n", field_type, fCType, (value==NULL)?"<NULL>":value, cbValueMax);
|
||||||
|
|
||||||
|
if ( ! value) {
|
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,37 @@
|
|||||||
+
|
+
|
||||||
+
|
+
|
||||||
+#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 @@
|
@@ -13,7 +13,10 @@
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
**/
|
**/
|
||||||
|
#include <config.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
+#include <sys/types.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 @@
|
@@ -19,6 +19,10 @@
|
||||||
|
#include <string.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <nntp.h>
|
||||||
|
+#include <sys/socket.h>
|
||||||
|
+#include <netinet/in.h>
|
||||||
|
+#include <arpa/inet.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
|
||||||
|
# include "nntp.ci"
|
||||||
|
|
||||||
|
@@ -36,6 +37,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <nntp.h>
|
#include <nntp.h>
|
||||||
@ -77,9 +73,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 +85,53 @@
|
|||||||
|
|
||||||
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)
|
||||||
|
@@ -38,6 +38,7 @@
|
||||||
|
|
||||||
|
#include "dlg_specific.h"
|
||||||
|
#include "convert.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
#ifndef BOOL
|
||||||
|
#define BOOL int
|
||||||
|
Index: Drivers/nn/yylex.c
|
||||||
|
===================================================================
|
||||||
|
--- Drivers/nn/yylex.c.orig
|
||||||
|
+++ Drivers/nn/yylex.c
|
||||||
|
@@ -25,6 +25,7 @@
|
||||||
|
# define YYERRCODE 256
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
static int getcmpopidxbyname(char* name)
|
||||||
|
{
|
||||||
|
Index: exe/iusql.c
|
||||||
|
===================================================================
|
||||||
|
--- exe/iusql.c.orig
|
||||||
|
+++ exe/iusql.c
|
||||||
|
@@ -29,6 +29,8 @@
|
||||||
|
static int OpenDatabase( SQLHENV *phEnv, SQLHDBC *phDbc, char *szDSN, char *szUID, char *szPWD );
|
||||||
|
static int ExecuteSQL( SQLHDBC hDbc, char *szSQL, char cDelimiter, int bColumnNames, int bHTMLTable );
|
||||||
|
static int ExecuteHelp( SQLHDBC hDbc, char *szSQL, char cDelimiter, int bColumnNames, int bHTMLTable );
|
||||||
|
+static int CloseDatabase( SQLHENV hEnv, SQLHDBC hDbc );
|
||||||
|
+
|
||||||
|
|
||||||
|
static void WriteHeaderHTMLTable( SQLHSTMT hStmt );
|
||||||
|
static void WriteHeaderNormal( SQLHSTMT hStmt, SQLCHAR *szSepLine );
|
||||||
|
@ -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: GPL-2.0+
|
|
||||||
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,34 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 4 15:04:52 CET 2013 - mhrusecky@suse.cz
|
||||||
|
|
||||||
|
- Adding missing includes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 4 13:02:10 CET 2013 - mhrusecky@suse.cz
|
||||||
|
|
||||||
|
- fixed compilation issues with bison
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 27 09:04:52 UTC 2012 - cfarrell@suse.com
|
||||||
|
|
||||||
|
- license update: GPL-2.0+ and LGPL-2.1+
|
||||||
|
Semicolon is ambigous. Use ^and^ or ^or^ depending on the nature of the
|
||||||
|
interaction of the license code componentes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 7 11:46:34 CET 2012 - mhrusecky@suse.cz
|
||||||
|
|
||||||
|
- Including some basic drivers
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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) 2013 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
|
||||||
@ -19,11 +19,11 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: unixODBC
|
Name: unixODBC
|
||||||
BuildRequires: gcc-c++ libtool
|
BuildRequires: bison 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: GPL-2.0+ ; LGPL-2.1+
|
License: GPL-2.0+ and LGPL-2.1+
|
||||||
Url: http://www.unixodbc.org/
|
Url: http://www.unixodbc.org/
|
||||||
Group: Productivity/Databases/Tools
|
Group: Productivity/Databases/Tools
|
||||||
# bug437293
|
# bug437293
|
||||||
@ -39,22 +39,18 @@ 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.3.1-libodbcinst-exports.patch
|
||||||
Patch10: %{name}-%{version}-libodbcinst-exports.patch
|
Patch13: %{name}-2.3.1-uninitialized.patch
|
||||||
Patch11: %{name}-%{version}-flex.patch
|
Patch15: %{name}-2.3.1-bison.patch
|
||||||
Patch12: %{name}-%{version}-sqp.patch
|
Patch16: %{name}-2.3.1-declarations.patch
|
||||||
Patch13: %{name}-%{version}-uninitialized.patch
|
|
||||||
Patch14: unixODBC-2.2.12-CVE-2011-1145.patch
|
|
||||||
Patch15: unixODBC-2.2.12-locking_fix.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: GPL-2.0+ ; LGPL-2.1+
|
License: GPL-2.0+ and LGPL-2.1+
|
||||||
Summary: Includes and Static Libraries for ODBC Development
|
Summary: Includes for ODBC Development
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
# bug437293
|
# bug437293
|
||||||
@ -77,7 +73,7 @@ Authors:
|
|||||||
Nick Gorham <nick@easysoft.com>
|
Nick Gorham <nick@easysoft.com>
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Includes and static libraries for ODBC development (based on unixODBC).
|
Includes for ODBC development (based on unixODBC).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -89,24 +85,22 @@ 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
|
||||||
%patch15 -p1
|
%patch16
|
||||||
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
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
autoreconf --force --install
|
||||||
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||||
|
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||||
%configure \
|
%configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
@ -114,8 +108,10 @@ export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fn
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--sysconfdir=%{_sysconfdir}/%{name} \
|
--sysconfdir=%{_sysconfdir}/%{name} \
|
||||||
--enable-gui=no \
|
--enable-gui=no \
|
||||||
--disable-stats
|
--disable-stats \
|
||||||
make CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
|
--enable-drivers \
|
||||||
|
--enable-driver-conf
|
||||||
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
|
install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}
|
||||||
@ -124,6 +120,7 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
|||||||
rm -rf $RPM_BUILD_ROOT/usr/share/libtool
|
rm -rf $RPM_BUILD_ROOT/usr/share/libtool
|
||||||
# packaged in gui-gtk
|
# packaged in gui-gtk
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmimerS.*
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmimerS.*
|
||||||
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.la
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf "$RPM_BUILD_ROOT"
|
rm -rf "$RPM_BUILD_ROOT"
|
||||||
@ -134,7 +131,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 +142,19 @@ 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*
|
%{_libdir}/%{name}
|
||||||
|
|
||||||
%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