From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Packages with libraries and binaries Date: Sat, 05 Oct 2013 14:52:47 +0200 Message-ID: <87txgvswv4.fsf@gnu.org> References: <20130922120624.GA4534@debian> <87zjr47ib1.fsf@gnu.org> <20131004175542.GA27833@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]:34062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSRQl-0001tg-HG for guix-devel@gnu.org; Sat, 05 Oct 2013 08:58:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSRQb-0001Pn-Lf for guix-devel@gnu.org; Sat, 05 Oct 2013 08:57:59 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:55609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSRQb-0001Pj-F8 for guix-devel@gnu.org; Sat, 05 Oct 2013 08:57:49 -0400 In-Reply-To: <20131004175542.GA27833@debian> (Andreas Enge's message of "Fri, 4 Oct 2013 19:55:42 +0200") 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: > On Sun, Sep 22, 2013 at 09:44:18PM +0200, Ludovic Court=C3=A8s wrote: >> In such cases, we must set the RUNPATH, using patchelf as Nikita notes. >> The recommended way to do that is to use =E2=80=98augment-rpath=E2=80=99= from (guix >> build rpath), as done in python.scm (make sure to add =E2=80=98patchelf= =E2=80=99 as an >> input). > > When copy-pasting the phases argument from python-2 into cdparanoia, the > build phase fails as follows: > > phase `strip' succeeded after 0 seconds > starting phase `add-lib-to-runpath' [...] > ERROR: In procedure memoize-variable-access!: > ERROR: Unbound variable: cut > > As if an import of module srfi-26 were missing somewhere, but both python= and > cdparanoia use the same gnu build system. Exactly. You need that snippet, as in python.scm: --8<---------------cut here---------------start------------->8--- #:modules ((guix build gnu-build-system) (guix build utils) (guix build rpath) (srfi srfi-26)) #:imported-modules ((guix build gnu-build-system) (guix build utils) (guix build rpath)) --8<---------------cut here---------------end--------------->8--- #:modules tells what modules are to be imported in the lexical environment of the build program, while #:imported-modules says what .scm/.go files need to be available in the build chroot (since srfi-26 is part of Guile, it=E2=80=99s listed in the former but not the latter.) HTH, Ludo=E2=80=99.