Am Freitag 03 Dezember 2010 15:48:42 schrieb Jan Marten Simons:
> Hi,
> 
> I recently found out cctbx has released a new version (see
> http://cci.lbl.gov/cctbx_build/). I tried to do a version-bump with the
> ebuild, but as some code changed some patches don't apply anymore.

By now there is another new release: 2010_12_06_2139 availiable at 
http://cci.lbl.gov/cctbx_build/: 

http://cci.lbl.gov/cctbx_build/results/2010_12_06_2139/cctbx_bundle.tar.gz

As one of the changes is "Migration to Python 2.7.1" it might be neccessary to 
depend on python >=2.7.1
 

I did a simple version-bump with the most recent ebuild in tree and found out: 

* -tst-server.py.patch can be dropped, as the code it tries to correct has 
been removed upstream
* -clipper.patch still applies.
* -boost.patch, -flags.patch and -soname.patch both don't apply to the new 
version and I'm not sure if I know enough about Scons to fix them up.

More details on the bug I found:
(/usr/lib64/cctbx/cctbx_build/bin/cctbx.python is refering to paths in
/var/tmp/portage, which don't exist post-install and therefore calling
cctbx.python does not give a useable environment. After fixing up those
paths (manually) I got a working python shell where import cctbx works
like it should.)

I attached a diff between the broken version (installed by the ebuild) and my 
working version. A solution would be to either fix the paths post build via sed 
or to get the build to write correct paths, which might be much more difficult.


I'll gladly help in debugging/testing an ebuld of the most recent version
of cctbx. I've joined irc as well.

With regards,
 
 Jan Simons
 
Institute of Crystallography
RWTH Aachen University
--- /usr/lib64/cctbx/cctbx_build/bin/cctbx.python	2010-11-23 12:38:18.944000011 +0100
+++ /usr/lib64/cctbx/cctbx_build/bin/cctbx.pythonfixed	2010-11-23 14:21:56.061000008 +0100
@@ -21,29 +21,29 @@
 unset PYTHONHOME
 LC_ALL=C
 export LC_ALL
-LIBTBX_BUILD="/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_build"
+LIBTBX_BUILD="/usr/lib64/cctbx/cctbx_build"
 export LIBTBX_BUILD
 LIBTBX_DISPATCHER_NAME="cctbx.python"
 export LIBTBX_DISPATCHER_NAME
 if [ -n "$PYTHONPATH" ]; then
-  PYTHONPATH="/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_sources:/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_sources/PyCifRW:/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_sources/clipper_adaptbx:/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_sources/boost_adaptbx:/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_sources/libtbx/pythonpath:/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_build/lib:$PYTHONPATH"
+  PYTHONPATH="/usr/lib64/cctbx/cctbx_sources:/usr/lib64/cctbx/cctbx_sources/PyCifRW:/usr/lib64/cctbx/cctbx_sources/clipper_adaptbx:/usr/lib64/cctbx/cctbx_sources/boost_adaptbx:/usr/lib64/cctbx/cctbx_sources/libtbx/pythonpath:/usr/lib64/cctbx/cctbx_build/lib:$PYTHONPATH"
   export PYTHONPATH
 else
-  PYTHONPATH="/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_sources:/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_sources/PyCifRW:/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_sources/clipper_adaptbx:/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_sources/boost_adaptbx:/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_sources/libtbx/pythonpath:/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_build/lib"
+  PYTHONPATH="/usr/lib64/cctbx/cctbx_sources:/usr/lib64/cctbx/cctbx_sources/PyCifRW:/usr/lib64/cctbx/cctbx_sources/clipper_adaptbx:/usr/lib64/cctbx/cctbx_sources/boost_adaptbx:/usr/lib64/cctbx/cctbx_sources/libtbx/pythonpath:/usr/lib64/cctbx/cctbx_build/lib"
   export PYTHONPATH
 fi
 if [ -n "$LD_LIBRARY_PATH" ]; then
-  LD_LIBRARY_PATH="/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_build/lib:$LD_LIBRARY_PATH"
+  LD_LIBRARY_PATH="/usr/lib64/cctbx/cctbx_build/lib:$LD_LIBRARY_PATH"
   export LD_LIBRARY_PATH
 else
-  LD_LIBRARY_PATH="/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_build/lib"
+  LD_LIBRARY_PATH="/usr/lib64/cctbx/cctbx_build/lib"
   export LD_LIBRARY_PATH
 fi
 if [ -n "$PATH" ]; then
-  PATH="/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_build/bin:$PATH"
+  PATH="/usr/lib64/cctbx/cctbx_build/bin:$PATH"
   export PATH
 else
-  PATH="/var/tmp/portage/sci-libs/cctbx-2010.03.29.2334-r1/work/cctbx_build/bin"
+  PATH="/usr/lib64/cctbx/cctbx_build/bin"
   export PATH
 fi
 if [ -n "$LIBTBX__VALGRIND_FLAG__" ]; then

Reply via email to