From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: Python 3.5 start of update Date: Thu, 3 Mar 2016 22:15:07 -0500 Message-ID: <20160304031506.GC30676@jasmine> References: <3746864.VkbyMe6eV1@myrada> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abgCu-0007jz-QV for guix-devel@gnu.org; Thu, 03 Mar 2016 22:15:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abgCr-0001iM-Hw for guix-devel@gnu.org; Thu, 03 Mar 2016 22:15:12 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abgCr-0001iI-EN for guix-devel@gnu.org; Thu, 03 Mar 2016 22:15:09 -0500 Content-Disposition: inline In-Reply-To: <3746864.VkbyMe6eV1@myrada> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Diane Trout Cc: guix-devel@gnu.org On Fri, Feb 26, 2016 at 09:19:40PM -0800, Diane Trout wrote: > Hi, > > Attached is the patch I used for trying to update python 3 to 3.5. I disabled > a test and added an exception handler for some code calling pwd.getpwuid(0) > and the group equivalent. > > It builds outside of the python.scm module but if I change the version in > python.scm python-minimal ends up with a link error. > > *** WARNING: renaming "_ctypes" since importing it failed: build/lib.linux- > x86_64-3.5/_ctypes.cpython-35m-x86_64-linux-gnu.so: cannot open shared object > file: No such file or directory > error: [Errno 2] No such file or directory: 'build/lib.linux- > x86_64-3.5/_ctypes.cpython-35m-x86_64-linux-gnu.so' -> 'build/lib.linux- > x86_64-3.5/_ctypes.cpython-35m-x86_64-linux-gnu_failed.so' > Makefile:608: recipe for target 'sharedmods' failed > > I'm currently pretty baffled by the link error as if I do --keep-failed I can > get it to build with: > cd /tmp/nix-builc-python-minimal-3.5.1.drv > chown -R me . > guix environment python-minimal > cd Python-3.5.1 > make Thanks for attempting this major upgrade! I think that using `guix environment python-minimal` will not get you the exact environment that exists while building with the daemon. Without the '--pure' or '--container' options, `guix environment` augments your existing environment rather than replacing it. Also, the 'python-minimal' offered by `guix environment python-minimal` is likely the one that lives on the master branch, deployed by `guix pull`, unless you symlinked your git checkout to '~/.config/guix/latest'. Could you try something like this, having checked out the branch where you are attempting this upgrade: `~/src/guix/pre-inst-env guix environment --pure python-minimal` I would suggest '--container' but you'd have to make some changes to your system if you are on Debian. You could also try to source the 'environment-variables' file in the failed build directory, although you will again want to unset your pre-existing environment first (I'm not sure how to do that). Sorry if I've misunderstood your dilemma.