From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Two packages are called =?utf-8?Q?=E2=80=98python-wrapper?= =?utf-8?Q?=E2=80=99?= Date: Mon, 21 Dec 2015 11:51:30 +0100 Message-ID: <87h9jcnkgd.fsf_-_@gnu.org> References: <87vb7srbji.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAy41-0008G1-9q for guix-devel@gnu.org; Mon, 21 Dec 2015 05:51:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAy3x-00030v-5K for guix-devel@gnu.org; Mon, 21 Dec 2015 05:51:37 -0500 In-Reply-To: (Federico Beffa's message of "Mon, 21 Dec 2015 10:12:35 +0100") 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: Federico Beffa Cc: Guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Federico Beffa skribis: > The problem appears to be that installing 'python-wrapper' brings > in 'python-minimal' instead of 'python': > > $ guix environment --pure --ad-hoc python-wrapper -- python > guix environment: warning: ambiguous package specification `python-wrappe= r' > guix environment: warning: choosing python-wrapper-3.4.3 from > gnu/packages/python.scm:312:2 Indeed, we have two packages called =E2=80=9Cpython-wrapper=E2=80=9D, a mis= take from 95288fc. This is fixed with: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 95c24a6..e81e251 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -308,7 +308,9 @@ data types.") (inputs `(("openssl" ,openssl) ("zlib" ,zlib))))) -(define* (wrap-python3 python #:optional (name "python-wrapper")) +(define* (wrap-python3 python + #:optional + (name (string-append (package-name python) "-wrapper"))) (package (inherit python) (name name) (source #f) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable However, this entails a big rebuild, so this will have to go to =E2=80=98core-updates=E2=80=99. In the meantime, I would recommend using -e to unambiguously refer to the right wrapper. Otherwise, we could come up with workarounds, such as keeping the =E2=80=98python-minimal-wrapper=E2=80=99 private. Thoughts? Ludo=E2=80=99. --=-=-=--