From nobody Tue May 17 16:01:43 2022 X-Original-To: erlang@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 76DF51B33E26 for ; Tue, 17 May 2022 16:01:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L2gpv19cxz4twp for ; Tue, 17 May 2022 16:01:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 08FC717D91 for ; Tue, 17 May 2022 16:01:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24HG1guE093225 for ; Tue, 17 May 2022 16:01:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24HG1g5E093224 for erlang@FreeBSD.org; Tue, 17 May 2022 16:01:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: erlang@FreeBSD.org Subject: maintainer-feedback requested: [Bug 264046] lang/elixir-devel: doesn't produce self-contained mix releases Date: Tue, 17 May 2022 16:01:43 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: erlang@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Support of Erlang-related ports List-Archive: https://lists.freebsd.org/archives/freebsd-erlang List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-erlang@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652803303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qPTDdU2nDCfa+6T8B7O8IUOuO4GFJTDFYGFEMhScro0=; b=WQTXmm8mYdwl5QseBmsmtGNl0ziaLBo3B9dO+P4NELwOvHCsN1xyByJhU983WjcsuSTP1L ePlQiiaSO+JHLTYVgGlez9+g/Dm3X5afOnLtt1g2Ok33cLoE0oqX4gl4CdKyjF+ikiNe+c VE4iZbBwqoWMj4r42ngGn8vI5AYcsfaQ59H2Tr8SpH6LfkYJOiL6ad9VX2dOUbT4tgICGJ kUAHGs+3JTVrPMsNCwdpBQicTPrmP8a6m63V7KnbkJV8O61DtkNhfzfkMft9G5H0MTBy/5 kPfUhus6A+T370t4jqlarvHfk5ieaPqekgegArlFgKJOM2E9BbJTYY6TYgbhdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652803303; a=rsa-sha256; cv=none; b=a82Ne0jhHOW85L2zyLXjkelT2shhI07m8ZRv5el215Z/oY3BLIYCag+WS9slfsdgc6z7mw UKp7Syif2euh1rZr91i/r0SpQLDNxkjpsgcEIItVVop7SPKvZNURcbj6/3V4KHnn7xD5z9 LciM79upcHTm/kalXWCk3Plerj/WU8NCg8kxCoxdCFWuRKc5TQ2Nt1jl2hW+qNZV6V/orQ GUoOVm6x+iAJwkHbD73B96Swbqhbpl05iPGoift853F1mit9uD6mwyddw0QB1diMJ8bKi3 0cbK4X1sz+rkcb1hwAyNJxNiIVEZ4afsMrddnYKBlu/ZUxnBkbzCWtsW1KDyyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-erlang (Nobody) for maintainer-feedback: Bug 264046: lang/elixir-devel: doesn't produce self-contained mix releases https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264046 --- Description --- Problem: lang/elixir-devel produces mix releases that require an Erlang run= time to be installed. This occurs because it patches the `elixir` startup script= to replace ERTS_BIN. It specifies a path that's hard-coded to a file in the lang/erlang-runtime* that was used to build elixir, as described in https://lists.freebsd.org/archives/freebsd-erlang/2022-May/000629.html --- Goal: Build a mix release, and then run it on a FreeBSD system with no Erla= ng or Elixir runtime. From mix release docs: https://hexdocs.pm/mix/Mix.Tasks.Release.html#module-why-releases > Self-contained. A release does not require the source code to be included= in your production artifacts. All of the code is precompiled and packaged. Releases do not even require Erlang or Elixir in your servers, as it includ= es the Erlang VM and its runtime by default. Furthermore, both Erlang and Elix= ir standard libraries are stripped to bring only the parts you are actually us= ing. In other words, you should be able to: pkg install -y elixir-devel mix new my_app cd my_app && mix release pkg remove -y elixir-devel pkg autoremove -y ./_build/dev/rel/my_app/bin/my_app start_iex --- What happens: `exec: /usr/local/lib/erlang24/bin/erl: not found` What should happen: an IEX console