From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id MF9bKQWoWGUjdAEA9RJhRA:P1 (envelope-from ) for ; Sat, 18 Nov 2023 13:03:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MF9bKQWoWGUjdAEA9RJhRA (envelope-from ) for ; Sat, 18 Nov 2023 13:03:17 +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 33BDF10C6F for ; Sat, 18 Nov 2023 13:03:17 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=deeplinks-com.20230601.gappssmtp.com header.s=20230601 header.b=hEtI7hIn; dmarc=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-Seal: i=1; s=key1; d=yhetil.org; t=1700308997; a=rsa-sha256; cv=none; b=b9lJ52RDdotvekHy+9YJxcYcfr3Ahs/3loKH5j8N/KeCNzimPtBDWPImD+YAYmz/oRmz1u btOaUfwdGIXwl02kv7igg8+aMStJjcx5LQHYBBmazkwRHvMig0aN1AvPl8dKPu6kDyBWCt cReLGefb+zncA7GF8mumpuv74oiRKkR/4cj4x56Ehm6oz6j93Q+QlzR+cigUxDCJjS7V/w KDKHQHYc/pRtVBpgJ1IuqsdaNu07j/Zk9gd6nG5i7ZlmWOXiuIBEwZvDaIBSi87DjVad8b GgYfB+Q4cpXrK6oxBsXAYQkh8icBiCxE7aw1tUuCjjArmnY7YREe49zfBT9zsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700308997; 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: content-transfer-encoding:content-transfer-encoding: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=wD3GTSz8hfAZHlQjdr5sC8ixV5pw/anA1BYQWWRhRjE=; b=MLbnif6E6TOrytn13USrxmD1tLZlX7wgcGgfgDZ9PxvNJm7z8LmTnaGDPJs0KbRooypZKC y+Pf9Vd8ohykN8jdhUi7AusVgFQky8Lw8KLT076R2sspBrE/8G6oKCF/dq/OPQtzFDu94b BYCrcnxMB996vXZl8MddZaZwYWTO4M8WZAoNaiOxlQY5Z4Upz55TtIRhELbuYPrGHHMHAh LNtBt9orxafIAq1oFUaw4KYDgHRxUz9S1ru39R2JWV3HriEzSyWvrKvRUozZt+emha1o1E Z5l9a2MQIWrzD1T2a6UMKoEkfYmJu4NBd0nI11XLV3GEXv3nA4CeN/U6EmBUFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=deeplinks-com.20230601.gappssmtp.com header.s=20230601 header.b=hEtI7hIn; dmarc=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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4K2S-0000oL-4U; Sat, 18 Nov 2023 07:03:04 -0500 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 1r4K2Q-0000mZ-60 for guix-patches@gnu.org; Sat, 18 Nov 2023 07:03:02 -0500 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 1r4K2P-0000lv-Tj for guix-patches@gnu.org; Sat, 18 Nov 2023 07:03:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r4K2Q-0003Pp-D4 for guix-patches@gnu.org; Sat, 18 Nov 2023 07:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66801] [PATCH v3 01/14] build-system: Add mix-build-system. Resent-From: Pierre-Henry =?UTF-8?Q?Fr=C3=B6hring?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Nov 2023 12:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66801 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: 66801@debbugs.gnu.org Received: via spool by 66801-submit@debbugs.gnu.org id=B66801.170030895513095 (code B ref 66801); Sat, 18 Nov 2023 12:03:02 +0000 Received: (at 66801) by debbugs.gnu.org; 18 Nov 2023 12:02:35 +0000 Received: from localhost ([127.0.0.1]:47927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4K1y-0003P8-Fr for submit@debbugs.gnu.org; Sat, 18 Nov 2023 07:02:34 -0500 Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]:46309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4K1w-0003Op-2m for 66801@debbugs.gnu.org; Sat, 18 Nov 2023 07:02:33 -0500 Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5c8c8f731aaso10393937b3.0 for <66801@debbugs.gnu.org>; Sat, 18 Nov 2023 04:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=deeplinks-com.20230601.gappssmtp.com; s=20230601; t=1700308945; x=1700913745; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wD3GTSz8hfAZHlQjdr5sC8ixV5pw/anA1BYQWWRhRjE=; b=hEtI7hInoptcqpFO4h6dmikxeDgoCThixz30agOXKnhvCWStij75VZICVajeickkYk G/LY8s67NL11D1ZLdrauZmHNMXDrIjHkl6t5iHCpZAGR2k7QAOI49cYQuT70ov/YSafU w+U6otyxst1+oXBrZ9YGmk6RH55LihEDiLH7bS306s11slqBq89naB0liwGoznbuBl60 ZFPIa48o4mpP8U85URy4uMAgmLrcBiGjQU+ScpD0wNmB1fB7+rFf/J66/wn6X22PGtrk VCp8815wTgesXrV3aBVc0cHYw0nzn3yVPx0Z8Z9+l8cBcGX7Rgdty2ozMmbGOm2CFuO/ KTkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700308945; x=1700913745; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wD3GTSz8hfAZHlQjdr5sC8ixV5pw/anA1BYQWWRhRjE=; b=Jg+EF/La7V6q+6rL8EjUV9gsZ7v50t67GKKomWOkvpJnXZsYiJkdD8bqiXvd5F9ZI2 MPIw4uFpXaSXSnZebvlZ7giEfO2NwQfcXMQkglLnk7X/GDM9WJwLbYAlSWK8Jtk20Xi0 Km8b0ne2VCv9clOv/GrTlU74oRvvSNZVgjxbJ7nncMyKUlTfXZIL76l20hZYPFtVDuv2 N4UgJh3Ut4WyjEH7li/bXnqfL1gNTCAYEIdInFVgZY35r3YIHM6CPJT3T8p7fxP7CsH/ 7TTGX06paxuOXDUKMmxjufGINQPFG0SMNp9ohCZx68FpV7a0BWCsYNTyRNpWsMOcONYl +k2A== X-Gm-Message-State: AOJu0YyYddZt0zwKH+yL8/SsrnQGxM4+OiVERHAEudrHoKWpsEI+YrDp RVCbDqKMSfWnlGq/gFJw5xp8+eZyGtg3Q5iySeKYBg== X-Google-Smtp-Source: AGHT+IFQJ3i9IgwP0HbIUCZdPIYjTwiXW5CSl657ejcD9aOD1wMITUILykdTylbNIPhodWautwFapEky5tAPLgICadQ= X-Received: by 2002:a81:48d6:0:b0:5c5:a04b:91bc with SMTP id v205-20020a8148d6000000b005c5a04b91bcmr2169170ywa.31.1700308945504; Sat, 18 Nov 2023 04:02:25 -0800 (PST) MIME-Version: 1.0 References: <2c000a904dd5960752a4cc6a5855c048466f142a.camel@gmail.com> In-Reply-To: <2c000a904dd5960752a4cc6a5855c048466f142a.camel@gmail.com> From: Pierre-Henry =?UTF-8?Q?Fr=C3=B6hring?= Date: Sat, 18 Nov 2023 13:02:14 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -2.09 X-Migadu-Queue-Id: 33BDF10C6F X-Migadu-Spam-Score: -2.09 X-TUID: C/CpEdgb7gGJ ** lilyp I'm not sure whether we really need the GUIX_ prefix here; you'd have to ch= eck whether the justification for GUIX_PYTHONPATH also holds for erlang and elixir. *** phf Replacing "Python" by "Elixir" in https://guix.gnu.org/manual/en/html_node/Build-Systems.html, we have: #+begin_quote For packages that install stand-alone Elixir programs under bin/, it takes care of wrapping these programs so that their GUIX_ERL_LIBS environment variable points to all the compiled Elixir and Erlang libraries they depend on. #+end_quote This seems reasonable for Elixir stand-alone programs. #+begin_quote Which Elixir package is used to perform the build can be specified with the #:elixir parameter. This is a useful way to force a package to be built for= a specific version of the Elixir interpreter, which might be necessary if the package is only compatible with a single interpreter version. #+end_quote Reading: https://hexdocs.pm/elixir/1.15.7/compatibility-and-deprecations.ht= ml, this seems reasonable too. This seems to point to GUIX_ERL_LIBS rather than ERL_LIBS. ** lilyp Anyhow, assuming that elixir and erlang code can be used interchangeably by each once compiled, you should use a single (GUIX_)?ERL_LIBS in both packag= es. You might also see whether we could use a single path instead of needing th= e lib/erlang and lib/elixir split, but I leave that up to you. *** phf "elixir and erlang code can be used interchangeably by each once compiled" = is true because: "Elixir compiles into BEAM byte code (via Erlang Abstract Format). This means that Elixir code can be called from Erlang and vice ver= sa, without the need to write any bindings." See: https://elixir-lang.org/crash-course.html#adding-elixir-to-existing-erlang-= programs Ha=E2=80=A6 finally, we see that things should change on the Erlang side to= o. According to https://hexdocs.pm/elixir/1.15.7/compatibility-and-deprecations.html, to a version of Elixir are associated with a few versions of compatible Erlang/OTP. Since the Elixir package mentions a particular version of Erlan= g, then it means that we have X.Y version of Elixir and U.V version for Erlang= . If we have a single path like lib/beam/A.B, then A.B is rather ambiguous. = If instead we have lib/erlang/U.V and lib/elixir/X.Y, then no ambiguities. This seems to point to lib/erlang/U.V and lib/elixir/X.Y. Cheers