rpms/unixODBC/F-11 odbcint64-config.patch, NONE, 1.1 odbcinst.ini, 1.4, 1.5 unixODBC.spec, 1.49, 1.50 import.log, 1.1, NONE
Tom Lane
tgl at fedoraproject.org
Fri Aug 21 20:49:45 UTC 2009
- Previous message: rpms/redhat-rpm-config/F-11 redhat-rpm-config-9.0.3-filtering-macros.patch, NONE, 1.1 redhat-rpm-config.spec, 1.64, 1.65
- Next message: rpms/apbs/devel LGPL_V2, NONE, 1.1 apbs-configure.ac.patch, NONE, 1.1 apbs-makefile.am.patch, NONE, 1.1 apbs.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: tgl
Update of /cvs/pkgs/rpms/unixODBC/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25056
Modified Files:
odbcinst.ini unixODBC.spec
Added Files:
odbcint64-config.patch
Removed Files:
import.log
Log Message:
Switch to building against qt4; fix misdeclaration of SQLBIGINT and SQLUBIGINT.
odbcint64-config.patch:
odbc-config.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--- NEW FILE odbcint64-config.patch ---
Fix output of odbc_config --header, per bug #518623.
This error results in SQLBIGINT and SQLUBIGINT being misdefined as
int, where they need to be [unsigned] long or long long.
diff -Naur unixODBC-2.2.14.orig/exe/odbc-config.c unixODBC-2.2.14/exe/odbc-config.c
--- unixODBC-2.2.14.orig/exe/odbc-config.c 2008-05-20 08:58:17.000000000 -0400
+++ unixODBC-2.2.14/exe/odbc-config.c 2009-08-21 14:15:35.000000000 -0400
@@ -66,12 +66,15 @@
printf( "#ifndef HAVE_LONG_LONG\n #define HAVE_LONG_LONG\n#endif\n" );
#endif
+#define xstr(s) str(s)
+#define str(s) #s
+
#ifdef ODBCINT64
- printf( "#ifndef ODBCINT64\n #define ODBCINT64\n#endif\n" );
+ printf( "#ifndef ODBCINT64\n #define ODBCINT64 %s\n#endif\n", xstr(ODBCINT64) );
#endif
#ifdef UODBCINT64
- printf( "#ifndef UODBCINT64\n #define UODBCINT64\n#endif\n" );
+ printf( "#ifndef UODBCINT64\n #define UODBCINT64 %s\n#endif\n", xstr(UODBCINT64) );
#endif
#ifdef DISABLE_INI_CACHING
Index: odbcinst.ini
===================================================================
RCS file: /cvs/pkgs/rpms/unixODBC/F-11/odbcinst.ini,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- odbcinst.ini 20 Feb 2009 17:22:19 -0000 1.4
+++ odbcinst.ini 21 Aug 2009 20:49:45 -0000 1.5
@@ -1,6 +1,4 @@
# Example driver definitions
-# Note: on a 64-bit machine, change /usr/lib to /usr/lib64
-#
# Driver from the postgresql-odbc package
# Setup from the unixODBC package
@@ -8,6 +6,8 @@
Description = ODBC for PostgreSQL
Driver = /usr/lib/psqlodbc.so
Setup = /usr/lib/libodbcpsqlS.so
+Driver64 = /usr/lib64/psqlodbc.so
+Setup64 = /usr/lib64/libodbcpsqlS.so
FileUsage = 1
@@ -17,4 +17,6 @@ FileUsage = 1
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc5.so
Setup = /usr/lib/libodbcmyS.so
+Driver64 = /usr/lib64/libmyodbc5.so
+Setup64 = /usr/lib64/libodbcmyS.so
FileUsage = 1
Index: unixODBC.spec
===================================================================
RCS file: /cvs/pkgs/rpms/unixODBC/F-11/unixODBC.spec,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -p -r1.49 -r1.50
--- unixODBC.spec 9 Jun 2009 11:25:26 -0000 1.49
+++ unixODBC.spec 21 Aug 2009 20:49:45 -0000 1.50
@@ -1,7 +1,7 @@
Summary: A complete ODBC driver manager for Linux
Name: unixODBC
Version: 2.2.14
-Release: 4%{?dist}
+Release: 6%{?dist}
Group: System Environment/Libraries
URL: http://www.unixODBC.org/
# Programs are GPL, libraries are LGPL, except News Server library is GPL.
@@ -10,8 +10,8 @@ License: GPLv2+ and LGPLv2+
Source: http://www.unixODBC.org/%{name}-%{version}.tar.gz
Source1: odbcinst.ini
Source2: ODBCConfig.desktop
-Source3: DataManager.desktop
Source4: conffile.h
+
Patch1: depcomp.patch
Patch2: multilib-config.patch
Patch3: warning-cleanup.patch
@@ -19,10 +19,11 @@ Patch6: export-symbols.patch
Patch7: libtool-config.patch
Patch8: so-version-bump.patch
Patch9: keep-typedefs.patch
+Patch10: odbcint64-config.patch
Conflicts: iodbc
BuildRequires: libX11-devel libXt-devel libXext-devel
-BuildRequires: qt3-devel readline-devel
+BuildRequires: qt4-devel readline-devel
BuildRequires: automake autoconf libtool libtool-ltdl-devel bison flex
BuildRequires: desktop-file-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@@ -48,8 +49,8 @@ Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description kde
-This package contains components for the ODBCConfig and DataManager
-(KDE) components of unixODBC.
+This package contains components for the ODBCConfig
+(KDE) component of unixODBC.
%prep
%setup -q
@@ -60,6 +61,8 @@ This package contains components for the
%patch7 -p1
%patch8 -p1
%patch9 -p1
+%patch10 -p1
+
chmod 0644 Drivers/MiniSQL/*.c
chmod 0644 Drivers/nn/*.c
chmod 0644 Drivers/template/*.c
@@ -75,11 +78,9 @@ libtoolize --install || libtoolize
%build
# pick up qt path
-export QTDIR=
-. /etc/profile.d/qt.sh
+export PATH="%{_qt4_bindir}:$PATH"
# clean up old moc files
-(cd ODBCConfig && rm -f mclass*.cpp)
-(cd DataManager && rm -f mclass*.cpp)
+(cd odbcinstQ4 && rm -f mC*.cpp)
aclocal
automake --add-missing
@@ -90,13 +91,12 @@ CFLAGS="%{optflags} -fno-strict-aliasing
CXXFLAGS="$CFLAGS"
export CFLAGS CXXFLAGS
-%configure --with-gnu-ld=yes --enable-threads=yes --enable-gui=yes --enable-drivers --enable-ltdllib
+%configure --with-gnu-ld=yes --enable-threads=yes --enable-gui=yes --enable-drivers --enable-ltdllib --with-qt-programs="%{_qt4_bindir}" --with-qt-libraries="%{_qt4_libdir}"
make all
%install
# pick up qt path
-export QTDIR=
-. /etc/profile.d/qt.sh
+export PATH="%{_qt4_bindir}:$PATH"
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
@@ -104,14 +104,9 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixm
make DESTDIR=$RPM_BUILD_ROOT install
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
-cp DataManager/LinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps
-cp DataManager/ODBC.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps/odbc.xpm
-cp DataManagerII/LinuxODBC.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps
-cp DataManagerII/ODBC.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps/odbc.xpm
# installing *.desktop files
desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE2}
-desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE3}
# multilib header hacks
# we only apply this to known Red Hat multilib arches, per bug #181335
@@ -177,13 +172,7 @@ rm -rf $RPM_BUILD_ROOT
%files kde
%defattr(-,root,root)
%{_bindir}/ODBCConfig
-%{_bindir}/DataManager
-%{_bindir}/DataManagerII
-%{_bindir}/odbctest
%{_datadir}/applications/ODBCConfig.desktop
-%{_datadir}/applications/DataManager.desktop
-%{_datadir}/pixmaps/LinuxODBC.xpm
-%{_datadir}/pixmaps/odbc.xpm
%{_libdir}/libodbcinstQ*so
%{_libdir}/libodbcinstQ*so.*
@@ -194,6 +183,15 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig
%changelog
+* Fri Aug 21 2009 Tom Lane <tgl at redhat.com> 2.2.14-6
+- Switch to building against qt4, not qt3. This means the DataManager,
+ DataManagerII, and odbctest applications are gone.
+Resolves: #514064
+- Use Driver64/Setup64 to eliminate need for hand-adjustment of odbcinst.ini
+Resolves: #514688
+- Fix misdeclaration of SQLBIGINT and SQLUBIGINT in generated header files
+Resolves: #518623
+
* Tue Jun 9 2009 Peter Lemenkov <lemenkov at gmail.com> - 2.2.14-4
- Properly install *.desktop files
- No need to ship INSTALL in docs
--- import.log DELETED ---
- Previous message: rpms/redhat-rpm-config/F-11 redhat-rpm-config-9.0.3-filtering-macros.patch, NONE, 1.1 redhat-rpm-config.spec, 1.64, 1.65
- Next message: rpms/apbs/devel LGPL_V2, NONE, 1.1 apbs-configure.ac.patch, NONE, 1.1 apbs-makefile.am.patch, NONE, 1.1 apbs.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list