{"id":556,"date":"2014-09-28T08:54:04","date_gmt":"2014-09-28T08:54:04","guid":{"rendered":"http:\/\/www.selinuxplus.com\/?p=556"},"modified":"2014-09-28T08:55:50","modified_gmt":"2014-09-28T08:55:50","slug":"el7%e7%8e%af%e5%a2%83%e4%b8%8bmock%e7%bc%96%e8%af%91qt%e7%9a%84patch","status":"publish","type":"post","link":"http:\/\/www.selinuxplus.com\/?p=556","title":{"rendered":"EL7\u73af\u5883\u4e0bmock\u7f16\u8bd1qt\u7684patch"},"content":{"rendered":"<p> 1 \u4e3b\u8981\u539f\u56e0\u662f\u9488\u5bf9mysql\u7684CFG_MYSQL_CONFIG\u4f7f\u7528<\/p>\n<pre class=\"lang:default decode:true \" >--- qt-everywhere-opensource-src-4.7.0-beta2-mysql_config.patch.bak     2014-08-09 14:06:14.091961783 +0800\r\n+++ qt-everywhere-opensource-src-4.7.0-beta2-mysql_config.patch 2014-08-09 14:08:29.833959939 +0800\r\n@@ -5,8 +5,8 @@ diff -up qt-everywhere-opensource-src-4.\r\n                [ -z \"$CFG_MYSQL_CONFIG\" ] &amp;&amp; CFG_MYSQL_CONFIG=`\"$WHICH\" mysql_config`\r\n                  if [ -x \"$CFG_MYSQL_CONFIG\" ]; then\r\n                      QT_CFLAGS_MYSQL=`$CFG_MYSQL_CONFIG --include 2&gt;\/dev\/null`\r\n-+                    $CFG_MYSQL_CONFIG --pkglibdir &amp;&gt;\/dev\/null &amp;&amp; \\\r\n-+                      QT_MYSQL_PKGLIBDIR=`$CFG_MYSQL_CONFIG --pkglibdir 2&gt;\/dev\/null`\r\n++                    $CFG_MYSQL_CONFIG --variable=pkglibdir &amp;&gt;\/dev\/null &amp;&amp; \\\r\n++                      QT_MYSQL_PKGLIBDIR=`$CFG_MYSQL_CONFIG  --variable=pkglibdir 2&gt;\/dev\/null`\r\n +                    if [ -n \"$QT_MYSQL_PKGLIBDIR\" ]; then\r\n +                    QT_LFLAGS_MYSQL_R=\"-L$QT_MYSQL_PKGLIBDIR -lmysqlclient_r\"\r\n +                    QT_LFLAGS_MYSQL=\"-L$QT_MYSQL_PKGLIBDIR -lmysqlclient\"<\/pre>\n<p>2 qt.spec\u6587\u4ef6\u7f3a\u5c11\u4f9d\u8d56\u8f6f\u4ef6\u5305<\/p>\n<pre class=\"lang:default decode:true \" >[root@localhost qt]# cat qt.spec.patch \r\n--- qt.spec.bak 2014-08-09 14:10:26.513958353 +0800\r\n+++ qt.spec     2014-08-09 14:10:42.096958141 +0800\r\n@@ -221,6 +221,10 @@ Source31: hi48-app-qt4-logo.png\r\n %define _qt4_translationdir %{_datadir}\/qt4\/translations\r\n \r\n BuildRequires: cups-devel\r\n+BuildRequires: ibm-data-db2\r\n+BuildRequires: sqlite-devel\r\n+BuildRequires: postgresql-devel\r\n+BuildRequires: unixODBC-devel\r\n BuildRequires: desktop-file-utils\r\n BuildRequires: findutils\r\n BuildRequires: libjpeg-devel<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1 \u4e3b\u8981\u539f\u56e0\u662f\u9488\u5bf9mysql\u7684CFG_MYSQL_&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[108,109,85],"_links":{"self":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/556"}],"collection":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=556"}],"version-history":[{"count":3,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions"}],"predecessor-version":[{"id":560,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions\/560"}],"wp:attachment":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}