From patchwork Tue Aug 15 15:23:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Johann X-Patchwork-Id: 1725 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7656127BBEA; Tue, 15 Aug 2023 16:24:23 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B35FD27BBE2 for ; Tue, 15 Aug 2023 16:24:20 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVvts-00038P-LP; Tue, 15 Aug 2023 11:24:04 -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 1qVvtr-000389-6K for guix-patches@gnu.org; Tue, 15 Aug 2023 11:24:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qVvtq-00050g-UE for guix-patches@gnu.org; Tue, 15 Aug 2023 11:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qVvtq-0000eC-F1 for guix-patches@gnu.org; Tue, 15 Aug 2023 11:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65313] [PATCH 0/1] gnu: Add erlang-lfe. Resent-From: Tim Johann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 15 Aug 2023 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65313 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65313@debbugs.gnu.org Cc: Tim Johann X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16921130372476 (code B ref -1); Tue, 15 Aug 2023 15:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Aug 2023 15:23:57 +0000 Received: from localhost ([127.0.0.1]:36498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVvtk-0000dq-Nd for submit@debbugs.gnu.org; Tue, 15 Aug 2023 11:23:57 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVvti-0000de-OE for submit@debbugs.gnu.org; Tue, 15 Aug 2023 11:23:55 -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 1qVvtd-00036v-GM for guix-patches@gnu.org; Tue, 15 Aug 2023 11:23:49 -0400 Received: from ms-10.1blu.de ([178.254.4.101]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVvtb-0004jw-5P for guix-patches@gnu.org; Tue, 15 Aug 2023 11:23:49 -0400 Received: from [176.199.211.189] (helo=dolos.fritz.box) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVvtW-0003MZ-Jw; Tue, 15 Aug 2023 17:23:42 +0200 From: Tim Johann Date: Tue, 15 Aug 2023 17:23:28 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Con-Id: 303810 X-Con-U: 0-t1m X-Originating-IP: 176.199.211.189 Received-SPF: pass client-ip=178.254.4.101; envelope-from=t1m@phrogstar.de; helo=ms-10.1blu.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Please, find attached a package definition for Lisp Flavoured Erlang. I am aware of the earlier attempt to package LFE by jgart [1] (since a few days), but I was already on track with everything, including the replacement of the 'check' phase, and did not take anything from that solution. I guess, that jgart's problem was the same as I encountered: while the binaries are built with a standard gnu Makefile, the tests use rebar3. rebar3 would download the dependencies instead of reusing existing Guix packages. My solution was 'inspired' by how the rebar3 build method handles dependencies. The rebar3-build-system links the dependencies to a subdirectory _checkouts from which the later _build directory is copied and used for fetching all rebar3 plugins, overriding the download locations in rebar.config [2,3]. But with linking the dependencies, the file permissions stay read-only, and with rebar trying multiple times to copy to _build, the 'check' phase would fail with permission denied. This is the reason for copying dependencies from the store, to be able to modify the permissions. [1] https://issues.guix.gnu.org/60372 [2] https://blog.erlware.org/rebar3-features-part-6-_checkouts-2/ [3] http://rebar3.org/docs/configuration/dependencies/ Tim Johann (1): * gnu/packages/erlang.scm (erlang-lfe): New variable. gnu/packages/erlang.scm | 77 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) base-commit: 2279e3e60479e91838db2d7261e86e91f9891650