From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WLffFci+GWS/QgAASxT56A (envelope-from ) for ; Tue, 21 Mar 2023 15:27:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IPHJFci+GWTnXgEA9RJhRA (envelope-from ) for ; Tue, 21 Mar 2023 15:27:20 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0849010BA1 for ; Tue, 21 Mar 2023 15:27:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pecxD-0005ZZ-NH; Tue, 21 Mar 2023 10:27:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pecx5-0005Vu-K2 for guix-patches@gnu.org; Tue, 21 Mar 2023 10:27:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pecx4-0001Cg-7T for guix-patches@gnu.org; Tue, 21 Mar 2023 10:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pecx4-0005Qf-3O for guix-patches@gnu.org; Tue, 21 Mar 2023 10:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#60372] [PATCH] gnu: lisp: Add lfe. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Mar 2023 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60372 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: jgart Cc: 60372@debbugs.gnu.org Received: via spool by 60372-submit@debbugs.gnu.org id=B60372.167940876220758 (code B ref 60372); Tue, 21 Mar 2023 14:27:02 +0000 Received: (at 60372) by debbugs.gnu.org; 21 Mar 2023 14:26:02 +0000 Received: from localhost ([127.0.0.1]:60118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pecw6-0005OT-6G for submit@debbugs.gnu.org; Tue, 21 Mar 2023 10:26:02 -0400 Received: from mail-qv1-f41.google.com ([209.85.219.41]:35596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pecw3-0005O7-Hw for 60372@debbugs.gnu.org; Tue, 21 Mar 2023 10:26:00 -0400 Received: by mail-qv1-f41.google.com with SMTP id t13so9981251qvn.2 for <60372@debbugs.gnu.org>; Tue, 21 Mar 2023 07:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679408753; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=noloisrZyQ9X454V0KiSqGKF/UBcJm4Dirs1eL13po4=; b=OOYpmAgw6PJXow1gSl1/SZ6xnkC2obGH3vaqcHQ74B1pslqpImDNrQ8WDhjHG2QM1k 5yeRp+bWZ0D/TCqs/NUJdTjCM0mO+H2sOP+iKAfzETTZLQZEHBz4zPQw8TjUkRuB2FEU CobJvI+q4/0qO7wHrpjfm9wI9VE54P3JDDnUfOcB6Yu7IJ//WkGEGCVjsjRfJ0VzJIVR fNe4DG3gEHljY/lzilBfCtj63l6fLIdhXWHtpiLl10dld9Uw0ME+xL+dRBjgBJm2IDXm EDl1o88VHzCq1pk1nNcun4tUFWWv+UPfYH1qv7phYkgZ4b3fu1oIFnRLN5w8d1FLcOWM AH8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679408753; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=noloisrZyQ9X454V0KiSqGKF/UBcJm4Dirs1eL13po4=; b=OPIqHY8f1RebeVh7DQprSR9aJnupNBJmxumi2spq/0NDgXgWwkIChGqJk/ZbU777bv /JeUYP6RmWEqfrKFZTC3oUcg23z2ymPqloNwDxV7au2gdKv7YiT/rrPu2Tc9wWUiX9TU uQXtaI3+UKIL6R60zrFfn4JGciz6E/xkzFQ7+PMg6u48HWw9jpL6YcOItMAmNdVZyu06 A27S7jz41OFxKmIAbigArTbIrfWVNmjNZ3dxEVW+bVUqKXXjAb42Mxkby36TcIhslvoZ anmJJDL55cyQH95eYdjjUDUd0t0LkpE4b4mMbrxTYoYgKSIFJ22uJ8iIuretXQUo8Bd9 cvwQ== X-Gm-Message-State: AO0yUKVXu7vBfIl3AkaVjW7UWdSOo/gC/iLnDFE6O498drtbM4+wku9d LSRwdY4hPLNRW7ECH73e2TdYq4hcwIQJzQ== X-Google-Smtp-Source: AK7set+QNLeabm9E8KP0JlWo4cDBUASjeRsUxrcQrVDampwS+HME5Gyhy02t7GnNSeJBdQU44foGoQ== X-Received: by 2002:a05:6214:d05:b0:56f:37a:4561 with SMTP id 5-20020a0562140d0500b0056f037a4561mr20625qvh.34.1679408753027; Tue, 21 Mar 2023 07:25:53 -0700 (PDT) Received: from hurd ([2607:fad8:4:3::1004]) by smtp.gmail.com with ESMTPSA id o197-20020a3741ce000000b0073b575f3603sm9385071qka.101.2023.03.21.07.25.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 07:25:52 -0700 (PDT) From: Maxim Cournoyer References: <20221228015219.16759-1-jgart@dismail.de> <20221228040545.30885-1-jgart@dismail.de> Date: Tue, 21 Mar 2023 10:25:51 -0400 In-Reply-To: <20221228040545.30885-1-jgart@dismail.de> (jgart@dismail.de's message of "Tue, 27 Dec 2022 22:05:46 -0600") Message-ID: <87y1nqp4eo.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679408840; a=rsa-sha256; cv=none; b=V9itnZX3uSZA6fgrfQdovT8eUy3NJF7ThJCEU9Q4r/KpRdk0A+Z9JRNDzo3F1uckXA0ieh QvZsAJFDEfm8jIvfnsZF0anIRPwYequQRaXkvfiNuvYLrXfe72eS4BGxnnSkxXKdjkudxs zdpzZu0o7e4WPkxTA6RLLZKs0LBoTOUqoublofCH9vtA4G4sxMtSD1hdQhR46+Fy7cKPEw OaLgNxBWep7jcZ6+tMPeTfMrYO5bjfN9Nn54ZgwrRRHCTaP6ilGA3Jzl9m//KR+uyDvKLn +qeUlofH7l4FSjup/DYYXn5UG7bzsyQaHf/DmY9KX7wrlXKSSyyC9SAlaq0nHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=OOYpmAgw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679408840; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=noloisrZyQ9X454V0KiSqGKF/UBcJm4Dirs1eL13po4=; b=rFcaNtfFUoo+aFXkiO6awNjFnIe8D+QowLq7IvzXp6LoV+fm3mvSx2wXq8i+cmLLOkktB4 AadQhjGyjjcPA0DIYb+u9OUv1kVSI38JMixm+SFiyIfdLNEOFnQs7JuIHXb6i1bfjBp7w/ sj2Agv7isSbdbYA4jA3abe/roLSjATgdaaO/j7XKg7loQHDj/ejeJ4F2IAop4hZY6B6Pwt SLWtC30tZQkIJ7j9QjENtHztH3lDbA5vKiEtTlJcmb0R0cGAaxMaZLJK7adzOjDP26+hLM cwGHXNs+gisemn6DmloeF3zJFpPZpf8RWtHhNXlm9nurUYzwx470YRQLPyphAg== X-Migadu-Spam-Score: 6.75 X-Spam-Score: 6.75 X-Migadu-Queue-Id: 0849010BA1 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=OOYpmAgw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-TUID: yfQ+4Ob9oqLZ Hi, jgart writes: > * gnu/packages/lisp.scm (lfe): New variable. I think that should go in (gnu packages erlang). Also, the convention is to use just 'gnu: ' as prefix, not 'gnu: module:'. > Here's a v2 but this a WIP as the tests are disabled. Unless we can > merge this and enable the tests later after we figure out whether we > want to do that with rebar-build-system or via a custom phase? > > I have an issue open here asking about running the tests: > > https://github.com/lfe/lfe/issues/450 > > I tried running the tests by manually calling rebar but I get a homeless-shelter write error. You could try setting HOME to /tmp. Search for existing set-HOME phases in the code base. > For test commands that I tried see the following section in the lfe project's CI: > > https://github.com/lfe/lfe/blob/develop/.github/workflows/cicd.yml#L36 > > If anyone would like to collaborate on this patch feel free to make > changes and just list me as co-author with you. > > all best, > > jgart > --- > gnu/packages/lisp.scm | 35 +++++++++++++++++++++++++++++++++++ > 1 file changed, 35 insertions(+) > > diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm > index 753952152e..67105a5c93 100644 > --- a/gnu/packages/lisp.scm > +++ b/gnu/packages/lisp.scm > @@ -66,6 +66,7 @@ (define-module (gnu packages lisp) > #:use-module (gnu packages compression) > #:use-module (gnu packages dbm) > #:use-module (gnu packages ed) > + #:use-module (gnu packages erlang) > #:use-module (gnu packages fontutils) > #:use-module (gnu packages gcc) > #:use-module (gnu packages gettext) > @@ -1228,6 +1229,40 @@ (define-public picolisp > (inherit picolisp32) > (name "picolisp"))))) > > +(define-public lfe > + (package > + (name "lfe") > + (version "2.0.1") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/lfe/lfe") > + (commit version))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "0a5cfnk3021idvv4bv2lvnksjy9d0yyd13bnj793ks86j5f3hdv5")))) > + (build-system gnu-build-system) > + (inputs (list erlang)) > + (arguments > + (list #:tests? #f > + #:make-flags > + #~(list (string-append "PREFIX=" #$output)) > + #:phases > + #~(modify-phases %standard-phases > + (delete 'configure) > + ;; https://github.com/lfe/lfe/pull/449 > + (add-after 'unpack 'patch-gcc > + (lambda* (#:key inputs #:allow-other-keys) > + (substitute* "Makefile" > + (("cc") #$(cc-for-target)))))))) You can set 'cc' as a Make flag; that'd be more elegant. -- Thanks, Maxim