From mboxrd@z Thu Jan 1 00:00:00 1970 From: ajpatter@uwaterloo.ca Subject: Re: asdf-build-system: Problem running tests for cl-unicode Date: Fri, 30 Dec 2016 00:08:54 -0500 Message-ID: <20161230000854.13495kibs3lqmtba@www.nexusmail.uwaterloo.ca> References: <87a8bewvcy.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMpa1-0005O9-NS for guix-devel@gnu.org; Fri, 30 Dec 2016 00:18:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMpZy-0008Qw-Sa for guix-devel@gnu.org; Fri, 30 Dec 2016 00:18:13 -0500 Received: from ecserv7.uwaterloo.ca ([129.97.50.127]:51625) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMpZy-0008Mw-MF for guix-devel@gnu.org; Fri, 30 Dec 2016 00:18:10 -0500 In-Reply-To: <87a8bewvcy.fsf@elephly.net> Content-Disposition: inline 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" To: Ricardo Wurmus Cc: guix-devel Hi Ricardo, On Thu, 29 Dec 2016 17:30:53 +0100 Ricardo Wurmus wrote: > Hi, > > I=E2=80=99m trying to build a package for sbcl-cl-unicode, which I need fo= r a > JS uglifier (to be able to generate minified JS files in other > packages=E2=80=99 build processes). Since I'm curious, what are you packaging =3D)? > > Unfortunately, the tests fail with > > "The name NIL does not designate any package." > The problem seems to have been fixed in the most recent commit, with the commit logs since the last release suggesting that the definition file was problematic. > =E2=80=9Ccl-unicode=E2=80=9D seems to have more problems. When I ignore t= he tests and > try to build =E2=80=9Csbcl-cl-ppcre-unicode=E2=80=9D (see below), I get an= error about > =E2=80=9CCL-UNICODE=E2=80=9D not designating any package. > I think it's because there's another system in there for cl-unicode/base, and asdf-build-system needs a package for this. Of course, this exposes a severe problem with the way the build system works currently: it can't handle a system with '/' in the name. I hope to address that in the changes for the build system which I've been working on. For now, it's possible to work around it. Attached is a version of your patch which can build cl-ppcre-unicode. > Here=E2=80=99s the definition of =E2=80=9Csbcl-cl-ppcre-unicode=E2=80=9D: > > (define-public sbcl-cl-ppcre-unicode > (package (inherit sbcl-cl-ppcre) > (name "sbcl-cl-ppcre-unicode") > (arguments > `(#:asd-file "cl-ppcre-unicode.asd")) > (inputs > `(("sbcl-cl-ppcre" ,sbcl-cl-ppcre) > ("sbcl-cl-unicode" ,sbcl-cl-unicode))))) You'll also need a #:tests? #f here. I'm not fully sure how to fix the problem - you could drop the #:asd-file but then you'd rebuild cl-ppcre. Let me know if this works for the package you're working on. Thanks, -- Andy From 7739d883078d0be71f07d28c6863688d4f19cdcd Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 29 Dec 2016 17:30:53 +0100 Subject: [PATCH] WIP gnu: Add sbcl-cl-unicode. * gnu/packages/lisp.scm (sbcl-cl-unicode-base, sbcl-cl-unicode): New variables. --- gnu/packages/lisp.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index ec0bdaaa5..0887de54a 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -702,6 +702,49 @@ compatible with ANSI-compliant Common Lisp implementations.") (define-public ecl-cl-ppcre (sbcl-package->ecl-package sbcl-cl-ppcre)) +(define sbcl-cl-unicode-base + (let ((revision "1") + (commit "9fcd06fba1ddc9e66aed2f2d6c32dc9b764f03ea")) + (package + (name "sbcl-cl-unicode-base") + (version "0.1.5") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/edicl/cl-unicode.git") + (commit commit))) + (file-name (string-append "cl-unicode-" version "-checkout")) + (sha256 + (base32 + "1jicprb5b3bv57dy1kg03572gxkcaqdjhak00426s76g0plmx5ki")) + (modules '((guix build utils))) + (snippet + '(substitute* "cl-unicode.asd" + (("cl-unicode/base") "cl-unicode-base"))))) + (build-system asdf-build-system/sbcl) + (arguments + '(#:asd-file "cl-unicode.asd")) + (inputs + `(("sbcl-cl-ppcre" ,sbcl-cl-ppcre))) + (home-page "http://weitz.de/cl-unicode/") + (synopsis "Portable Unicode library for Common Lisp") + (description "CL-UNICODE is a portable Unicode library Common Lisp, which +is compatible with perl. It is pretty fast, thread-safe, and compatible with +ANSI-compliant Common Lisp implementations.") + (license license:bsd-2)))) + +(define-public sbcl-cl-unicode + (package + (inherit sbcl-cl-unicode-base) + (name "sbcl-cl-unicode") + (inputs + `(("sbcl-cl-unicode-base" ,sbcl-cl-unicode-base) + ,@(package-inputs sbcl-cl-unicode-base))) + (native-inputs + `(("tests:cl-flexi-streams" ,sbcl-flexi-streams))))) + (define-public sbcl-clx (let ((revision "1") (commit "1c62774b03c1cf3fe6e5cb532df8b14b44c96b95")) --=20 2.11.0