- 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:
Michal Hrusecky (old before rename to _miska_) 2012-11-06 09:45:33 +00:00 committed by Git OBS Bridge
parent b265ae6f50
commit f987edfef0
16 changed files with 172 additions and 511 deletions

View File

@ -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
{

View File

@ -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

View File

@ -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 );
}
/**********************************************************************

View File

@ -1,10 +1,10 @@
Index: odbcinst/odbcinst.exp
================================================================================
--- odbcinst/odbcinst.exp
===================================================================
--- odbcinst/odbcinst.exp.orig
+++ odbcinst/odbcinst.exp
@@ -60,3 +60,50 @@
_odbcinst_SystemINI
_odbcinst_UserINI
@@ -64,3 +64,50 @@ _odbcinst_UserINI
_odbcinst_FileINI
_SQLDriverConnectPrompt
inst_logPushMsg
+iniAllTrim
+iniAppend

View File

@ -1,27 +1,23 @@
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;
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;
}
--- Drivers/PostgreSQL/convert.c
+++ Drivers/PostgreSQL/convert.c
@@ -178,6 +178,7 @@
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);

View File

@ -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
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:52695ca80d5dff5a0ba89827d2c93372a2ad38157448eeb499b9f0908408b94c
size 1356506

View File

@ -1,42 +1,31 @@
--- Drivers/PostgreSQL/info.c
+++ Drivers/PostgreSQL/info.c
@@ -1667,7 +1667,7 @@
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
Index: exe/odbc-config.c
===================================================================
--- exe/odbc-config.c.orig
+++ exe/odbc-config.c
@@ -22,6 +22,8 @@
**********************************************************************/
@@ -23,6 +23,8 @@
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
static void usage( void )
{
@@ -169,4 +171,5 @@
exit( -1 );
}
}
+ return 0;
}
--- Drivers/nn/nndate.c
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
Index: Drivers/nn/nndate.c
===================================================================
--- Drivers/nn/nndate.c.orig
+++ Drivers/nn/nndate.c
@@ -15,6 +15,7 @@
#include <config.h>
@@ -16,6 +16,7 @@
#include <nnconfig.h>
#include <nndate.h>
+#include "misc.h"
static char* month_name[] =
{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
--- Drivers/nn/misc.h
Index: Drivers/nn/misc.h
===================================================================
--- /dev/null
+++ Drivers/nn/misc.h
@@ -0,0 +1,7 @@
+#ifndef _MISC_H
@ -46,30 +35,23 @@
+
+
+#endif
--- Drivers/nn/connect.c
Index: Drivers/nn/connect.c
===================================================================
--- Drivers/nn/connect.c.orig
+++ Drivers/nn/connect.c
@@ -13,6 +13,7 @@
GNU General Public License for more details.
@@ -14,6 +14,7 @@
**/
#include <config.h>
#include "driver.h"
+#include "misc.h"
void* nnodbc_getenverrstack(void* henv)
{
--- Drivers/nn/config.h
+++ Drivers/nn/config.h
@@ -21,6 +21,8 @@
# 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
Index: Drivers/nn/nntp.c
===================================================================
--- Drivers/nn/nntp.c.orig
+++ Drivers/nn/nntp.c
@@ -35,6 +35,7 @@
@@ -36,6 +36,7 @@
#endif
#include <nntp.h>
@ -77,9 +59,11 @@
typedef struct {
long article_num;
--- Drivers/nn/nncol.c
Index: Drivers/nn/nncol.c
===================================================================
--- Drivers/nn/nncol.c.orig
+++ Drivers/nn/nncol.c
@@ -17,6 +17,7 @@
@@ -18,6 +18,7 @@
#include <nncol.h>
#include "nncol.ci"
@ -87,17 +71,20 @@
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
@@ -21,10 +21,10 @@
@@ -21,11 +21,11 @@
#endif
#ifndef WIN32
+# include <string.h>
-# include <string.h>
# include <ctype.h>
# ifdef UNIXODBC
# include <odbcinst.h>
# else
-# include <string.h>
+# include <string.h>
# include "gpps.h"
# 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)

View File

@ -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

View File

@ -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

View File

@ -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
@@ -100,7 +100,7 @@
@@ -100,7 +100,7 @@ SOCK_connect_to_ip(SocketClass *self, un
{
struct hostent *host;
struct sockaddr_in sadr;
@ -9,29 +11,7 @@
if (self->socket != -1) {
self->errornumber = SOCKET_ALREADY_CONNECTED;
@@ -113,8 +113,8 @@
/* 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 @@
@@ -113,8 +113,8 @@ unsigned long iaddr;
/* If it is a valid IP address, use it.
Otherwise use hostname lookup.
*/

View File

@ -1,16 +1,8 @@
--- DriverManager/SQLAllocHandle.c
+++ DriverManager/SQLAllocHandle.c
@@ -224,6 +224,7 @@
*
**********************************************************************/
+
#include "drivermanager.h"
#if defined ( COLLECT_STATS ) && defined( HAVE_SYS_SEM_H )
#include "__stats.h"
--- DriverManager/SQLConnect.c
Index: DriverManager/SQLConnect.c
===================================================================
--- DriverManager/SQLConnect.c.orig
+++ DriverManager/SQLConnect.c
@@ -764,6 +764,7 @@
@@ -919,6 +919,7 @@ static void odbc_dlclose( void *handle )
}
mutex_lib_exit();
@ -18,46 +10,25 @@
}
/*
--- cur/SQLAllocHandle.c
+++ cur/SQLAllocHandle.c
@@ -139,4 +139,5 @@
}
break;
}
+ return 0;
}
--- cur/SQLEndTran.c
Index: cur/SQLEndTran.c
===================================================================
--- cur/SQLEndTran.c.orig
+++ cur/SQLEndTran.c
@@ -70,4 +70,5 @@
@@ -78,4 +78,5 @@ SQLRETURN CLEndTran( SQLSMALLINT handle_
default:
return SQL_ERROR;
}
+ return 0;
}
--- cur/SQLError.c
+++ cur/SQLError.c
@@ -149,4 +149,5 @@
return SQL_NO_DATA;
}
+ return 0;
}
--- cur/SQLFreeHandle.c
+++ cur/SQLFreeHandle.c
@@ -102,5 +102,6 @@
*/
return SQL_ERROR;
}
+ return 0;
}
--- odbcinst/SQLSetConfigMode.c
Index: odbcinst/SQLSetConfigMode.c
===================================================================
--- odbcinst/SQLSetConfigMode.c.orig
+++ odbcinst/SQLSetConfigMode.c
@@ -23,6 +23,7 @@
__set_config_mode( int mode )
@@ -24,6 +24,7 @@ static int __config_mode = ODBC_BOTH_DSN
void __set_config_mode( int mode )
{
__config_mode = mode;
+ return 0;
}
__get_config_mode()
int __get_config_mode( void )

View File

@ -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 \

View File

@ -1,130 +1,156 @@
--- DRVConfig/MiniSQL/Makefile.am
Index: DRVConfig/MiniSQL/Makefile.am
===================================================================
--- DRVConfig/MiniSQL/Makefile.am.orig
+++ DRVConfig/MiniSQL/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ libodbcminiS_la_LDFLAGS = -no-undefined
libodbcminiS_la_SOURCES = odbcminiS.c
+libdir = @libdir@/unixODBC
--- DRVConfig/MySQL/Makefile.am
Index: DRVConfig/MySQL/Makefile.am
===================================================================
--- DRVConfig/MySQL/Makefile.am.orig
+++ DRVConfig/MySQL/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ libodbcmyS_la_LDFLAGS = -no-undefined -
libodbcmyS_la_SOURCES = odbcmyS.c
+libdir = @libdir@/unixODBC
--- DRVConfig/Oracle/Makefile.am
Index: DRVConfig/Oracle/Makefile.am
===================================================================
--- DRVConfig/Oracle/Makefile.am.orig
+++ DRVConfig/Oracle/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ liboraodbcS_la_LDFLAGS = -no-undefined
liboraodbcS_la_SOURCES = oraodbcS.c
+libdir = @libdir@/unixODBC
--- DRVConfig/PostgreSQL/Makefile.am
Index: DRVConfig/PostgreSQL/Makefile.am
===================================================================
--- DRVConfig/PostgreSQL/Makefile.am.orig
+++ DRVConfig/PostgreSQL/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ libodbcpsqlS_la_LDFLAGS = -no-undefined
libodbcpsqlS_la_SOURCES = odbcpsqlS.c
+libdir = @libdir@/unixODBC
--- DRVConfig/drvcfg1/Makefile.am
Index: DRVConfig/drvcfg1/Makefile.am
===================================================================
--- DRVConfig/drvcfg1/Makefile.am.orig
+++ DRVConfig/drvcfg1/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ libodbcdrvcfg1S_la_LDFLAGS = -no-undefin
libodbcdrvcfg1S_la_SOURCES = drvcfg1.c
+libdir = @libdir@/unixODBC
--- DRVConfig/drvcfg2/Makefile.am
Index: DRVConfig/drvcfg2/Makefile.am
===================================================================
--- DRVConfig/drvcfg2/Makefile.am.orig
+++ DRVConfig/drvcfg2/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ libodbcdrvcfg2S_la_LDFLAGS = -no-undefin
libodbcdrvcfg2S_la_SOURCES = drvcfg2.c
+libdir = @libdir@/unixODBC
--- DRVConfig/esoob/Makefile.am
Index: DRVConfig/esoob/Makefile.am
===================================================================
--- DRVConfig/esoob/Makefile.am.orig
+++ DRVConfig/esoob/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ libesoobS_la_LDFLAGS = -no-undefined -v
libesoobS_la_SOURCES = esoobS.c
+libdir = @libdir@/unixODBC
--- DRVConfig/nn/Makefile.am
Index: DRVConfig/nn/Makefile.am
===================================================================
--- DRVConfig/nn/Makefile.am.orig
+++ DRVConfig/nn/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ libodbcnnS_la_LDFLAGS = -no-undefined -
libodbcnnS_la_SOURCES = drvcfg.c
+libdir = @libdir@/unixODBC
--- DRVConfig/oplodbc/Makefile.am
Index: DRVConfig/oplodbc/Makefile.am
===================================================================
--- DRVConfig/oplodbc/Makefile.am.orig
+++ DRVConfig/oplodbc/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ liboplodbcS_la_LDFLAGS = -no-undefined
liboplodbcS_la_SOURCES = oplodbc.c
+libdir = @libdir@/unixODBC
--- DRVConfig/sapdb/Makefile.am
Index: DRVConfig/sapdb/Makefile.am
===================================================================
--- DRVConfig/sapdb/Makefile.am.orig
+++ DRVConfig/sapdb/Makefile.am
@@ -9,3 +9,5 @@
@@ -7,3 +7,5 @@ libsapdbS_la_LDFLAGS = -no-undefined -v
libsapdbS_la_SOURCES = sapdb.c
EXTRA_DIST = README
+
+libdir = @libdir@/unixODBC
--- DRVConfig/tds/Makefile.am
Index: DRVConfig/tds/Makefile.am
===================================================================
--- DRVConfig/tds/Makefile.am.orig
+++ DRVConfig/tds/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ libtdsS_la_LDFLAGS = -no-undefined -ver
libtdsS_la_SOURCES = tdsS.c
+libdir = @libdir@/unixODBC
--- DRVConfig/txt/Makefile.am
Index: DRVConfig/txt/Makefile.am
===================================================================
--- DRVConfig/txt/Makefile.am.orig
+++ DRVConfig/txt/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ libodbctxtS_la_LDFLAGS = -no-undefined
libodbctxtS_la_SOURCES = drvcfg.c
+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
@@ -69,3 +69,5 @@
@@ -72,3 +72,5 @@ libodbcpsql_la_SOURCES = \
statement.c \
tuple.c \
tuplelist.c
+
+libdir = @libdir@/unixODBC
--- Drivers/PostgreSQL/Makefile.am
+++ Drivers/PostgreSQL/Makefile.am
@@ -64,3 +64,5 @@
statement.c \
tuple.c \
tuplelist.c
+
+libdir = @libdir@/unixODBC
--- Drivers/nn/Makefile.am
Index: Drivers/nn/Makefile.am
===================================================================
--- Drivers/nn/Makefile.am.orig
+++ Drivers/nn/Makefile.am
@@ -76,3 +76,4 @@
@@ -74,3 +74,4 @@ libnn_la_SOURCES = \
nndate.c \
nntp.c
+libdir = @libdir@/unixODBC
--- Drivers/txt/Makefile.am
+++ Drivers/txt/Makefile.am
@@ -112,3 +112,4 @@
driver.h \
driverextras.h
+libdir = @libdir@/unixODBC
--- DRVConfig/Mimer/Makefile.am
Index: DRVConfig/Mimer/Makefile.am
===================================================================
--- DRVConfig/Mimer/Makefile.am.orig
+++ DRVConfig/Mimer/Makefile.am
@@ -8,3 +8,4 @@
@@ -6,3 +6,4 @@ libmimerS_la_LDFLAGS = -no-undefined -ve
libmimerS_la_SOURCES = mimerS.c
+libdir = @libdir@/unixODBC
--- Drivers/template/Makefile.am
Index: Drivers/template/Makefile.am
===================================================================
--- Drivers/template/Makefile.am.orig
+++ Drivers/template/Makefile.am
@@ -101,3 +101,5 @@
@@ -99,3 +99,5 @@ libtemplate_la_SOURCES = \
_NativeTypeDesc.c \
_NativeTypeLength.c \
_NativeTypePrecision.c
+
+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

View File

@ -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

View File

@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@ -20,10 +20,10 @@
Name: unixODBC
BuildRequires: gcc-c++ libtool
Version: 2.2.12
Version: 2.3.1
Release: 0
Summary: ODBC driver manager with some drivers included
License: GPLv2+ ; LGPLv2.1+
License: GPL-2.0+ ; LGPL-2.1+
Url: http://www.unixodbc.org/
Group: Productivity/Databases/Tools
# bug437293
@ -39,21 +39,16 @@ Source: unixODBC-%{version}.tar.bz2
Source1: README.SuSE
Source2: baselibs.conf
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: %{name}-%{version}-libodbcinst-exports.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
Patch10: %{name}-2.2.12-libodbcinst-exports.patch
Patch13: %{name}-2.2.12-uninitialized.patch
Patch15: unixODBC-2.2.12-locking_fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%package devel
License: GPLv2+ ; LGPLv2.1+
License: GPL-2.0+ ; LGPL-2.1+
Summary: Includes and Static Libraries for ODBC Development
Group: Development/Libraries/C and C++
AutoReqProv: on
@ -89,23 +84,19 @@ Authors:
%prep
%setup -q
%patch1
%patch4
%patch5
%patch6
%patch7
#patch8 -p1
%patch10
%patch11
%patch12
%patch13
%patch14 -p1
%patch15 -p1
#%patch15 -p1
install -m 644 %{S:1} .
%build
export -n LANG LINGUAS LC_ALL
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"
%configure \
--prefix=%{_prefix} \
@ -134,7 +125,7 @@ rm -rf "$RPM_BUILD_ROOT"
%files
%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}/ODBCDataSources
%dir %{_libdir}/%{name}
@ -145,29 +136,18 @@ rm -rf "$RPM_BUILD_ROOT"
%{_prefix}/bin/iusql
%{_prefix}/bin/odbcinst
%{_prefix}/bin/odbc_config
%{_libdir}/libodbc.so
%{_libdir}/libodbc.so.*
#%{_libdir}/libodbcextras.so.*
%{_libdir}/libodbcinst.so
%{_libdir}/libodbcinst.so.*
%{_libdir}/libboundparam.so.*
%{_libdir}/libgtrtst.so.*
%{_libdir}/libodbccr.so.*
%{_libdir}/unixODBC/*.so*
%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/libboundparam.la
%{_libdir}/libgtrtst.la
%{_libdir}/libodbc.so
%{_libdir}/libodbcinst.so
%{_libdir}/libodbc.la
%{_libdir}/libodbccr.la
#%{_libdir}/libodbcextras.la
%{_libdir}/libodbcinst.la
%{_libdir}/libboundparam.so
%{_libdir}/libgtrtst.so
%{_libdir}/libodbccr.so
#%{_libdir}/libodbcextras.so
%{_libdir}/unixODBC/*.la
%changelog