<div dir="ltr">Hi all,<div><br></div><div>I'm working on converting a large project that uses PyQt 4.10.1 (x11-gpl sources) to be able to build a system installed python. My changes have been working on Arch Linux, but when tested on Ubuntu 14.04LTS, we encounter the following issue:</div><div><br></div><div>PyQt is being configured with (newlines added for readability):</div><div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px">env<span style="color:rgb(192,192,192)"> </span>PYTHONPATH=/home/user1/build_sys/install/lib/python2.7/site-packages</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>/usr/bin/python<span style="color:rgb(192,192,192)"> </span>configure.py</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-q<span style="color:rgb(192,192,192)"> </span>/usr/bin/qmake</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>--confirm-license</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-b<span style="color:rgb(192,192,192)"> </span>/home/user1/build_sys/install/bin</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-d<span style="color:rgb(192,192,192)"> </span>/home/user1/build_sys/install/lib/python2.7/site-packages</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-v<span style="color:rgb(192,192,192)"> </span>/home/user1/build_sys/install/include</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-v<span style="color:rgb(192,192,192)"> </span>/home/user1/build_sys/install/share</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-p<span style="color:rgb(192,192,192)"> </span>/home/user1/build_sys/install/share/plugins</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-n<span style="color:rgb(192,192,192)"> </span>/home/user1/build_sys/install/share/qsci</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>--assume-shared</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-e<span style="color:rgb(192,192,192)"> </span>QtGui<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtHelp<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtMultimedia<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtNetwork<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtDeclarative</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-e<span style="color:rgb(192,192,192)"> </span>QtOpenGL<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtScript<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtScriptTools<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtSql<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtSvg</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">    </span>-e<span style="color:rgb(192,192,192)"> </span>QtTest<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtWebKit<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtXml<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtXmlPatterns<span style="color:rgb(192,192,192)"> </span>-e<span style="color:rgb(192,192,192)"> </span>QtCore</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">Aside from the redundant -v option (I'll look into this separately), these options seem to make sense with the build instructions here:</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><a href="http://pyqt.sourceforge.net/Docs/PyQt4/installation.html">http://pyqt.sourceforge.net/Docs/PyQt4/installation.html</a><br></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">The build is successful, however the installation step fails with the error:</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px">cp:<span style="color:rgb(192,192,192)"> </span>cannot<span style="color:rgb(192,192,192)"> </span>remove<span style="color:rgb(192,192,192)"> </span>‘/usr/lib/python2.7/dist-packages/dbus/mainloop/qt.so’:<span style="color:rgb(192,192,192)"> </span>Permission<span style="color:rgb(192,192,192)"> </span>denied</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">This seems like a bug, as the build system is attempting to remove a file outside of the specified prefixes.</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">Am I overlooking a configuration option? Any suggestions to fix this?</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">Let me know if there's any other helpful information I can provide.</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">Thanks,</pre><pre style="margin-top:0px;margin-bottom:0px">Dave</pre></pre></div></div>