From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#26949: Python path conflict Date: Wed, 17 May 2017 21:54:07 +0200 Message-ID: <87vaozuun4.fsf@gnu.org> References: <20170516100008.GA8723@thebird.nl> <878tlvy6kq.fsf@gnu.org> <20170517132312.GA17216@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dB52I-00035c-D1 for bug-guix@gnu.org; Wed, 17 May 2017 15:55:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dB52E-00078a-5E for bug-guix@gnu.org; Wed, 17 May 2017 15:55:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48671) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dB52E-00078P-2M for bug-guix@gnu.org; Wed, 17 May 2017 15:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dB52D-000648-PF for bug-guix@gnu.org; Wed, 17 May 2017 15:55:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170517132312.GA17216@thebird.nl> (Pjotr Prins's message of "Wed, 17 May 2017 15:23:12 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Pjotr Prins Cc: 26949@debbugs.gnu.org Hello, Pjotr Prins skribis: > On Wed, May 17, 2017 at 03:08:05PM +0200, Ludovic Court??s wrote: >> Hi, >>=20 >> Pjotr Prins skribis: >>=20 >> > Note that I do most of my buiding with --no-grafts. >>=20 >> This is an unsafe thing to do. > > Depends on the machine and what it is used for. Yes, for services that > can be vulnerable you need to use grafts using an older guix tree. But > I mostly build against git checkouts of guix - which means I am using > the latest versions of packages anyway. Agree? Yes, sure; I just wanted to make sure you had check the =E2=80=9CI understa= nd the risks=E2=80=9D box. ;-) >> > In ./guix/build/union.scm: >> > 50: 1 [file-is-directory? "/gnu/store/q5kdj7gpawi94pqd15x3wizjq0nx4z= hx-python-2.7.13/share/man/man1/python.1"] >> > In unknown file: >> > ?: 0 [stat "/gnu/store/q5kdj7gpawi94pqd15x3wizjq0nx4zhx-python-2.7.= 13/share/man/man1/python.1" ...] >> > >> > ERROR: In procedure stat: >> > ERROR: In procedure stat: No such file or directory: "/gnu/store/q5kdj= 7gpawi94pqd15x3wizjq0nx4zhx-python-2.7.13/share/man/man1/python.1" >> > builder for `/gnu/store/hrl55dd3m9v8jqwf3jn5g0j36ix5n1n5-profile.drv' = failed with exit code 1 >> > guix package: error: build failed: build of `/gnu/store/hrl55dd3m9v8jq= wf3jn5g0j36ix5n1n5-profile.drv' failed >>=20 >> I can???t seem to reproduce it: >=20=20 >> --8<---------------cut here---------------start------------->8--- >> $ ./pre-inst-env guix package -p foo -i python@2.7 >> The following package will be installed: >> python 2.7.13 /gnu/store/p0ygwmwspjpn4pwnla3p26n0xrypzdxv-python-2.7.= 13 >>=20 >> substitute: updating list of substitutes from 'https://bayfront.guixsd.o= rg'... 100.0% >> substitute: updating list of substitutes from 'https://mirror.hydra.gnu.= org'... 100.0% >> The following derivations will be built: >> /gnu/store/x0pffs6dzzzrajvhajicwgw6aj0g34zl-profile.drv >> /gnu/store/xi5js16n6f9v5vr4cdqsqnh9vcm3yppn-manual-database.drv >> substitute: updating list of substitutes from 'https://mirror.hydra.gnu.= org'... 100.0% >> Creating manual page database for 1 packages... done in 0.015 s >> find-files: /gnu/store/p0ygwmwspjpn4pwnla3p26n0xrypzdxv-python-2.7.13/sh= are/man/man1/python.1: No such file or directory >> 1 package in profile >> The following environment variable definitions may be needed: >> export PATH=3D"foo/bin${PATH:+:}$PATH" >> export PYTHONPATH=3D"foo/lib/python2.7/site-packages${PYTHONPATH:+:}$= PYTHONPATH" >> $ git describe >> v0.12.0-3905-g516bfed7a >> --8<---------------cut here---------------end--------------->8--- >>=20 >> Could you check if the problem occurs with current Guix, and if it does, >> whether the above command is easy to reproduce it? > > I am using current Guix. The problem occurs on an existing profile. On > a new profile it does not happen. > > I remember the python.1 path is a symlink not pointing anywhere. We > dealt with that a year ago. Maybe it now confuses the man db builder. > Does it somehow use the (existing) profile? Yes, it could be that it happens with a particular combination of packages in the profile. Could you try to see if you could reproduce the problem in a fresh profile starting from what the offending profile has and gradually reducing the package set? Thanks, Ludo=E2=80=99.