From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PS7Ts-0000Xn-Qc for garchives@archives.gentoo.org; Mon, 13 Dec 2010 12:26:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9300E0538; Mon, 13 Dec 2010 12:25:33 +0000 (UTC) Received: from mta-2.ms.rz.rwth-aachen.de (mta-2.ms.rz.RWTH-Aachen.DE [134.130.7.73]) by pigeon.gentoo.org (Postfix) with ESMTP id 53122E0538 for ; Mon, 13 Dec 2010 12:25:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_VOh/eAiWyfBczlpYq+RCXA)" Received: from ironport-out-1.rz.rwth-aachen.de ([134.130.5.40]) by mta-2.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0LDD00H0R96KXTF0@mta-2.ms.rz.RWTH-Aachen.de> for gentoo-science@lists.gentoo.org; Mon, 13 Dec 2010 13:25:32 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.59,335,1288566000"; d="diff'?scan'208";a="85100023" Received: from relay-auth-1.ms.rz.rwth-aachen.de (HELO relay-auth-1) ([134.130.7.78]) by ironport-in-1.rz.rwth-aachen.de with ESMTP; Mon, 13 Dec 2010 13:25:32 +0100 Received: from localhost.localnet ([unknown] [137.226.40.41]) by relay-auth-1.ms.rz.rwth-aachen.de (Sun Java(tm) System Messaging Server 7.0-3.01 64bit (built Dec 9 2008)) with ESMTPA id <0LDD00HZU96K5100@relay-auth-1.ms.rz.rwth-aachen.de> for gentoo-science@lists.gentoo.org; Mon, 13 Dec 2010 13:25:32 +0100 (CET) From: Jan Marten Simons Organization: Institut =?iso-8859-1?q?f=FCr?= Kristallographie To: gentoo-science@lists.gentoo.org Subject: Re: [gentoo-science] cctbx version-bump to 2010.09.15.2318? Date: Mon, 13 Dec 2010 13:25:31 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-gentoo-r3; KDE/4.4.5; x86_64; ; ) References: <201012031548.42284.marten@xtal.rwth-aachen.de> In-reply-to: <201012031548.42284.marten@xtal.rwth-aachen.de> Message-id: <201012131325.31734.marten@xtal.rwth-aachen.de> X-Archives-Salt: e7e938c0-2d65-4db8-b091-56a8f81cf657 X-Archives-Hash: 6f25f2742033cd0102a2b4b5dd8ad937 --Boundary_(ID_VOh/eAiWyfBczlpYq+RCXA) Content-type: Text/Plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT 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 --Boundary_(ID_VOh/eAiWyfBczlpYq+RCXA) Content-type: text/x-patch; charset=UTF-8; name=cctbx.python.diff Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=cctbx.python.diff --- /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 --Boundary_(ID_VOh/eAiWyfBczlpYq+RCXA)--