Hi Francois,<div><br></div><div>I am a little bit confused by your email. Just to be clear, is this the change you are proposing?</div><div><br></div><div><div> SET( XdmfGzipSource</div><div> gzstream</div><div>@@ -504,7 +504,7 @@ IF(XDMF_WRAP_PYTHON)</div>
<div><br></div><div> # Compile Byte Code</div><div> INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${Xdmf_SOURCE_DIR}/CMake/CompileXdmfByteCode.py</div><div>- ${CMAKE_INSTALL_PREFIX}/${XDMF_WRAP_PYTHON_INSTALL_PY_DIR})")</div>
<div>+ ${XDMF_WRAP_PYTHON_INSTALL_DIR})")</div><div><br></div><div> ENDIF(XDMF_WRAP_PYTHON)</div><div><br></div><div>Let me know and I will gladly commit the fix.</div><br><div class="gmail_quote">On Tue, Jun 15, 2010 at 6:07 AM, François Bissey <span dir="ltr"><<a href="mailto:f.r.bissey@massey.ac.nz">f.r.bissey@massey.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
A problem that I encountered while packaging paraview-3.8.0.<br>
Here is a build log extract:<br>
-- Installing: /media/anthill/portage/sci-<br>
visualization/paraview-3.8.0/image/usr/lib/python2.6/site-<br>
packages/Xdmf/__init__.py<br>
-- Installing: /media/anthill/portage/sci-<br>
visualization/paraview-3.8.0/image/usr/lib/python2.6/site-<br>
packages/Xdmf/Xdmf.py<br>
Listing /usr/ ...<br>
Listing /usr/bin ...<br>
Compiling /usr/bin/add_esri_column.py ...<br>
Sorry [Errno 13] Permission denied: '/usr/bin/add_esri_column.pyc'<br>
Compiling /usr/bin/build_pcs.py ...<br>
Sorry [Errno 13] Permission denied: '/usr/bin/build_pcs.pyc'<br>
<snip><br>
Listing /usr/i686-pc-linux-gnu ...<br>
Listing /usr/i686-pc-linux-gnu/bin ...<br>
Listing /usr/i686-pc-linux-gnu/binutils-bin ...<br>
Listing /usr/i686-pc-linux-gnu/binutils-bin/2.20.1 ...<br>
Listing /usr/i686-pc-linux-gnu/gcc-bin ...<br>
Listing /usr/i686-pc-linux-gnu/gcc-bin/3.3 ...<br>
Listing /usr/i686-pc-linux-gnu/gcc-bin/4.3.4 ...<br>
Listing /usr/i686-pc-linux-gnu/gcc-bin/4.4.3 ...<br>
Listing /usr/i686-pc-linux-gnu/lib ...<br>
<snip><br>
Listing /usr/src/linux-2.6.32-gentoo-r7/virt/kvm ...<br>
Listing /usr/tmp-vrooom ...<br>
-- Installing: /media/anthill/portage/sci-<br>
visualization/paraview-3.8.0/image/usr/lib/paraview-3.8/libXdmf.so<br>
<br>
So two points: first it doesn't respect DESTDIR - in the end bytecompiling is<br>
the responsibility of the package manager so I disabled that completely.<br>
<br>
Second it all come from this bit in Utilities/Xdmf2/libsrc/CMakeList.txt<br>
(lines 505-507):<br>
# Compile Byte Code<br>
INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE}<br>
${Xdmf_SOURCE_DIR}/CMake/CompileXdmfByteCode.py<br>
${CMAKE_INSTALL_PREFIX}/${XDMF_WRAP_PYTHON_INSTALL_PY_DIR})")<br>
<br>
It turns out that we scan /usr which is CMAKE_INSTALL_PREFIX because<br>
XDMF_WRAP_PYTHON_INSTALL_PY_DIR is never defined. I suspect the intent<br>
was to define it earlier and to use it to set XDMF_WRAP_PYTHON_INSTALL_DIR<br>
as we can see earlier in the same file (lines 472):<br>
SET(XDMF_WRAP_PYTHON_INSTALL_DIR<br>
${CMAKE_INSTALL_PREFIX}${XDMF_WRAP_PYTHON_INSTALL_DIR}/Xdmf)<br>
<br>
Which I think may have been meant:<br>
SET(XDMF_WRAP_PYTHON_INSTALL_DIR<br>
${CMAKE_INSTALL_PREFIX}${XDMF_WRAP_PYTHON_INSTALL_PY_DIR}/Xdmf)<br>
<br>
--------------<br>
If we don't care about DESTDIR replacing<br>
${CMAKE_INSTALL_PREFIX}/${XDMF_WRAP_PYTHON_INSTALL_PY_DIR}<br>
in line 507 by:<br>
${XDMF_WRAP_PYTHON_INSTALL_DIR}<br>
will look in the right place.<br>
<br>
Francois<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>