From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?5a6L5paH5q2m?= Subject: Re: [PATCH 2/2] gnu: libxml2: Build python bindings separately. Date: Sun, 31 May 2015 10:29:21 +0800 Message-ID: <87d21hlbsu.fsf@gmail.com> References: <1432977172-14658-1-git-send-email-iyzsong@gmail.com> <1432977172-14658-2-git-send-email-iyzsong@gmail.com> <87d21iuk0r.fsf@netris.org> 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]:50447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyszT-0000n6-CD for guix-devel@gnu.org; Sat, 30 May 2015 22:28:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyszQ-0003bA-5E for guix-devel@gnu.org; Sat, 30 May 2015 22:28:43 -0400 Received: from mail-pd0-x22a.google.com ([2607:f8b0:400e:c02::22a]:34474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyszP-0003at-Tv for guix-devel@gnu.org; Sat, 30 May 2015 22:28:40 -0400 Received: by pdbki1 with SMTP id ki1so81832416pdb.1 for ; Sat, 30 May 2015 19:28:39 -0700 (PDT) In-Reply-To: <87d21iuk0r.fsf@netris.org> 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: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver writes: > =E5=AE=8B=E6=96=87=E6=AD=A6 writes: > >> * gnu/packages/xml.scm (libxml2)[native-inputs]: Remove python. >> [arguments]: Remove. >> (python-libxml2, python2-libxml): New variables. >> --- >> gnu/packages/xml.scm | 53 ++++++++++++++++++++++++++++++---------------= ------- >> 1 file changed, 31 insertions(+), 22 deletions(-) >> >> diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm >> index a4c81b2..22d4e52 100644 >> --- a/gnu/packages/xml.scm >> +++ b/gnu/packages/xml.scm > > [...] > >> +(define-public python2-libxml >> + (package-with-python2 python-libxml2)) >> + > > Due to non-obvious complications arising from the fact that xml.scm and > python.scm are mutually dependent on each other, we can't use > 'package-with-python2' from xml.scm. For now, I suggest moving it to > python.scm, where all other uses of 'package-with-python2' are currently > located. > > For an explanation, see: > > https://lists.gnu.org/archive/html/guix-devel/2014-12/msg00355.html Thanks for explainging, but when I put it into python.scm, I got "Unbound variable: libxml2" when running: $ ./pre-inst-env guix package -i python2-libxml or: $ make but not: $ ./pre-inst-env guix build python2-libxml Any ideas? Thanks!