From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Package version at build side Date: Tue, 04 Nov 2014 22:45:43 +0100 Message-ID: <87vbmu7i7s.fsf@gnu.org> References: <20141104193524.GA5700@debian> 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]:36414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlluq-0002BW-NJ for guix-devel@gnu.org; Tue, 04 Nov 2014 16:45:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlluk-0002kI-OJ for guix-devel@gnu.org; Tue, 04 Nov 2014 16:45:28 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:47198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlluk-0002jj-HH for guix-devel@gnu.org; Tue, 04 Nov 2014 16:45:22 -0500 In-Reply-To: <20141104193524.GA5700@debian> (Andreas Enge's message of "Tue, 4 Nov 2014 20:35:24 +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: Andreas Enge Cc: guix-devel@gnu.org Andreas Enge skribis: > for kdelibs, I need to pass the version of the input docbook-xsl as > a configure flag. So I added something like > > #:configure-flags > (list "-DCMAKE_VERBOSE_MAKEFILE=3DON" ; for debugging > (let ((docbook-xsl (assoc-ref %build-inputs "docbook-xsl"))) > (string-append "-DDOCBOOKXSL_DIR=3D" > docbook-xsl > "/xml/xsl/docbook-xsl-" > (package-version docbook-xsl) ^ Missing unquote (comma) here. --=E2=80=99 See gps.scm for an example. > Now package-version seems to be defined in (guix package); when I add thi= s as > modules, more and more of them are pulled in. Currently I have > > #:modules ((guix packages) ; for PACKAGE-VERSION > (guix base32) > (guix config) > (guix derivations) > (guix records) > (guix serialization) > (guix store) > (guix utils) > (guix build syscalls) > (guix build utils)) The raison d=E2=80=99=C3=AAtre of the (guix build =E2=80=A6) name space is = precisely to distinguish modules to be used on the build side from modules to be used on the host side (info "(guix) G-Expressions"). The above approach is not going to work, because it tries to import purely host code on the build side. Thanks, Ludo=E2=80=99.