rpms/qt/devel qt-x11-opensource-src-4.5.1-mysql_config-1.patch, NONE, 1.1 qt.spec, 1.272, 1.273

Rex Dieter rdieter at fedoraproject.org
Mon May 4 00:44:35 UTC 2009


Author: rdieter

Update of /cvs/pkgs/rpms/qt/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32302

Modified Files:
	qt.spec 
Added Files:
	qt-x11-opensource-src-4.5.1-mysql_config-1.patch 
Log Message:
* Sun May 03 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.5.1-8
- fix invalid assumptions about mysql_config --libs (bug #440673)


qt-x11-opensource-src-4.5.1-mysql_config-1.patch:

--- NEW FILE qt-x11-opensource-src-4.5.1-mysql_config-1.patch ---
diff -up qt-x11-opensource-src-4.5.1/configure.rex qt-x11-opensource-src-4.5.1/configure
--- qt-x11-opensource-src-4.5.1/configure.rex	2009-04-21 18:57:35.000000000 -0500
+++ qt-x11-opensource-src-4.5.1/configure	2009-05-03 17:46:30.236077416 -0500
@@ -4334,8 +4334,8 @@ for _SQLDR in $CFG_SQL_AVAILABLE; do
 		[ -z "$CFG_MYSQL_CONFIG" ] && CFG_MYSQL_CONFIG=`$WHICH mysql_config`
                 if [ -x "$CFG_MYSQL_CONFIG" ]; then
                     QT_CFLAGS_MYSQL=`$CFG_MYSQL_CONFIG --include 2>/dev/null`
-                    QT_LFLAGS_MYSQL_R=`$CFG_MYSQL_CONFIG --libs_r 2>/dev/null`
-                    QT_LFLAGS_MYSQL=`$CFG_MYSQL_CONFIG --libs 2>/dev/null`
+                    QT_LFLAGS_MYSQL_R="-L`$CFG_MYSQL_CONFIG --plugindir 2>/dev/null`/.. -lmysqlclient_r"
+                    QT_LFLAGS_MYSQL="-L`$CFG_MYSQL_CONFIG --plugindir 2>/dev/null`/.. -lmysqlclient"
 		    QT_MYSQL_VERSION=`$CFG_MYSQL_CONFIG --version 2>/dev/null`
                     QT_MYSQL_VERSION_MAJOR=`echo $QT_MYSQL_VERSION | cut -d . -f 1`
                 fi


Index: qt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qt/devel/qt.spec,v
retrieving revision 1.272
retrieving revision 1.273
diff -u -p -r1.272 -r1.273
--- qt.spec	29 Apr 2009 23:52:15 -0000	1.272
+++ qt.spec	4 May 2009 00:44:04 -0000	1.273
@@ -12,7 +12,7 @@ Epoch:   1
 Name:    qt4
 %endif
 Version: 4.5.1
-Release: 7%{?dist}
+Release: 8%{?dist}
 
 # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
 License: LGPLv2 with exceptions or GPLv3 with exceptions
@@ -51,6 +51,11 @@ Patch52: qt-4.5-sparc64.patch
 # should fix the reference counting in qt_toX11Pixmap and thus the Kolourpaint
 # crash with Qt 4.5
 Patch53: qt-x11-opensource-src-4.5.0-fix-qatomic-inline-asm.patch
+# fix invalid assumptions about mysql_config --libs
+# http://bugzilla.redhat.com/440673
+# well, not quite upstreamable yet, not but it's a first try...
+# until mysql_config can export a usable linker flags 
+Patch54: qt-x11-opensource-src-4.5.1-mysql_config-1.patch
 
 ## qt-copy patches
 %define qt_copy 20090424
@@ -347,6 +352,7 @@ test -x apply_patches && ./apply_patches
 %patch51 -p1 -b .qdoc3
 %patch52 -p1 -b .sparc64
 %patch53 -p1 -b .qatomic-inline-asm
+%patch54 -p1 -b .mysql_config
 
 # drop -fexceptions from $RPM_OPT_FLAGS
 RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|-fexceptions||g'`
@@ -821,6 +827,9 @@ gtk-update-icon-cache -q %{_datadir}/ico
 
 
 %changelog
+* Sun May 03 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.5.1-8
+- fix invalid assumptions about mysql_config --libs (bug #440673)
+
 * Wed Apr 29 2009 Rex Dieter <rdieter at fedoraproject.org> - 4.5.1-7
 - -devel: Provides: qt4-devel%%{?_isa} ...
 




More information about the fedora-extras-commits mailing list