From patchwork Sun Apr 10 18:57:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 710 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 5414727BBEA; Sun, 10 Apr 2022 19:58:14 +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 autolearn=unavailable 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 07DE727BBE9 for ; Sun, 10 Apr 2022 19:58:14 +0100 (BST) Received: from localhost ([::1]:37152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndclJ-0003jF-2o for patchwork@mira.cbaines.net; Sun, 10 Apr 2022 14:58:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndcl8-0003i3-FY for guix-patches@gnu.org; Sun, 10 Apr 2022 14:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndcl8-0006Mc-6j for guix-patches@gnu.org; Sun, 10 Apr 2022 14:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndcl8-0005gu-6L for guix-patches@gnu.org; Sun, 10 Apr 2022 14:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54796] [PATCH v4 00/22] Add importer for hex.pm and rebar3 build-system for Erlang References: In-Reply-To: Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 Apr 2022 18:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54796 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54796@debbugs.gnu.org Received: via spool by 54796-submit@debbugs.gnu.org id=B54796.164961705021644 (code B ref 54796); Sun, 10 Apr 2022 18:58:02 +0000 Received: (at 54796) by debbugs.gnu.org; 10 Apr 2022 18:57:30 +0000 Received: from localhost ([127.0.0.1]:41414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndckb-0005d2-SW for submit@debbugs.gnu.org; Sun, 10 Apr 2022 14:57:30 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:45673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndcka-0005cl-41 for 54796@debbugs.gnu.org; Sun, 10 Apr 2022 14:57:28 -0400 Received: from hermia.goebel-consult.de ([87.176.137.15]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MZCOl-1nQCdU43Mn-00VCVY for <54796@debbugs.gnu.org>; Sun, 10 Apr 2022 20:57:22 +0200 Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id BD91266479; Sun, 10 Apr 2022 20:57:31 +0200 (CEST) From: Hartmut Goebel Date: Sun, 10 Apr 2022 20:57:19 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:Lpn2QQ8PWZAtH1k8YTirlTh1woPOKlTLTbBw8WNR9xWvJLJOPTv 3Nh/yByeptTWBgWiiNTgA59PJ9yWklhWKuGEGqMKrfculTyJ3/2tgWqS6QQlqLaN3JJPztr +4taun28xYR3t12hZOBZAMRXZ9vnD7+2jzfLoQXkkHqZ7vVC5y3xuFbIRQAEpJqIEonOOFH ODtdUMQLJVwMKKYxDgqtg== X-UI-Out-Filterresults: notjunk:1;V03:K0:dNF0iXmbbes=:Q3pYujk9WqdYcXqh85sBmX LwHEqTJtgs7SxW1xHKmDcIyRZlnJJ0XoRsLFFzUR5i+HVfrawefFyGvS6XnforzNxrltgaY9E p3390yMLp+jF4Hqii8pdPRIAqXuh8hyd/ppC5YMBrIDN7NmBQuV4cXaHYhrFdwzfPHWumHZ/X 7A5a7YkOLFnHPsWqAvmycWJnE17qrbArVII5x23WCAP4CkCvV/YBVw9oSU3qASVfJhKx2WkFb GL0zGBN3LeG4VwZPa0fdk10N2fwi+z/ZXKR7o4KJeP1jcH//AVfP6ddrrScTFdkUPmhMBcFqt 2S7zJoYBq1jt0JsTVCXu5wnt9hWNOl/taNpMglw9Pto7BTgBjIu8M7JOk2zKpfIoVEBmqjXtz /1eiWnnM1dTr4rnyT79JF1miQ6+nerjZs13dldtzjJN+WYiyKypG+VhpNptxrBu49peNH58xg 5wsQSw7wTA6+9lLXfmUrR24O3OMtR3tDVHFuBow/YtbEaYezeBS6VSUOlnA2B+Pv+MlB7BSI1 EMbHNy1ywmK7X2jnGov0JYI7kfURTAY+8NDQidnQ7+0uKu4oFxYXImxXtiQcxx057zTQyzDyD bmaKEGv27Aa08DxhCOF05EJ4Z+sVwnA2ZJ4sKEXxyuJhhtGl0LTLA9kHYMvuXTc+zHxWiwkaC ou4Vp9bWMdBHWvcn97ugzPaG4zwlleqHbaV7wIefW2cecixOhHusxq3rKSJPS3h73/DE94siu uzLa51NRVt2YndPL 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" X-getmail-retrieved-from-mailbox: Patches Thanks to Maxime Devos for the review of V3. Do ease review for other reviewers, here is a complete set of updated patches, incorporating Maxime's comments. Cover text from v3: this is an updated version of #42180 and #51061 (both are closed already). Notable changes are: * the „extracting downloader“ and „hexpm-fetch” are gone * documentation added for both the importer and the rebar3-build-system * tests added for the importer Some remarks on the patches: * First patch adds a file guix/hexpm-download.scm, containing definitions for the hex.pm repository. These are combined in this module here since different build-systems (will) use it. * The importer tries to detect the build system to be used. For Elexir packages it creates package definitions using the “mix-build-system‘. This I will add later (WIP). * Next there patches provide the packages required rebar3, rebar3 itself and some plugins for rebar3. Open question: * Shall the build system actually be called „rebar*3*“ or just „rebar“? There is also a build-tool „rebar2“, which is obsoltete and not supported by this build-system. Anyhow, somewhen in the future there might be some „rebar4“, which we might be able to cover with the same build-system. WDYT? Hartmut Goebel (22): import: Add hex.pm importer. build-system: Add 'rebar3-build-system'. gnu: Add erlang-cf. gnu: Add erlang-certifi. gnu: Add erlang-erlware-commons. gnu: Add erlang-cth-readable. gnu: Add erlang-bbmustache. gnu: Add erlang-getopt. gnu: Add erlang-eunit-formatters. gnu: Add erlang-providers. gnu: Add erlang-parse-trans. gnu: Add erlang-hex-core. gnu: Add erlang-ssl-verify-fun. gnu: Add erlang-relx. gnu: Add erlang-edown. gnu: Add erlang-jsone. gnu: Add erlang-proper. gnu: Add erlang-covertool. gnu: Add rebar3. gnu: Add rebar3-raw-deps. gnu: Add rebar3-git-vsn. gnu: Add rebar3-proper. Makefile.am | 5 + doc/guix.texi | 70 +++- gnu/packages/erlang.scm | 493 +++++++++++++++++++++++++++++ guix/build-system/rebar3.scm | 143 +++++++++ guix/build/rebar3-build-system.scm | 147 +++++++++ guix/hexpm-download.scm | 40 +++ guix/import/hexpm.scm | 347 ++++++++++++++++++++ guix/scripts/import.scm | 2 +- guix/scripts/import/hexpm.scm | 109 +++++++ guix/upstream.scm | 1 + tests/hexpm.scm | 257 +++++++++++++++ 11 files changed, 1612 insertions(+), 2 deletions(-) create mode 100644 guix/build-system/rebar3.scm create mode 100644 guix/build/rebar3-build-system.scm create mode 100644 guix/hexpm-download.scm create mode 100644 guix/import/hexpm.scm create mode 100644 guix/scripts/import/hexpm.scm create mode 100644 tests/hexpm.scm