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 817F51B33F30 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 4L2gpv2DDlz4v3T 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 2CE1D17B3C 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 24HG1h43093230 for ; Tue, 17 May 2022 16:01:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24HG1hNx093229 for erlang@FreeBSD.org; Tue, 17 May 2022 16:01:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: erlang@FreeBSD.org Subject: [Bug 264046] lang/elixir-devel: doesn't produce self-contained mix releases Date: Tue, 17 May 2022 16:01:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: pat@patmaddox.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: erlang@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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; bh=vWOKEwfjUtcyEqw53OVu+Qu4Wiylhupz8nbInlw3SuU=; b=ypoEbHXFwWJfhYLIsXMlCGfQqtL3p2KjXBWBZs7L6668ghEP5+gQRFPlCKKV0sFzjoFXSG 8QLZOzBL850yHupci7cQZ1wi4koWoAvT7n4r/O3alhOSFMsm39Xdarcuy9/5QBXi+xnCG7 +09Ex6tPRi0xItUWRf9tHb5AftWU1RqbRu7milvenycMGSagupyr8aepXlVE6q0PbIZE5u JRTjJdFkMw5foeP1inJDQmNxl6lXrXQBOkIKte9vhp9+nZD75gd/gws9uUUwusJEPpWS4Q yamO2jsEFGJLwSYJz0HgfMxUtCcEsBXTHnEb3LWTNJaZITNAcU2SJalHyy0Leg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652803303; a=rsa-sha256; cv=none; b=HzTXYVG2skjvXed6z/uidZu37ZCjkZmSzaDR0VaY53rvdAUVO1yUbu9fKhJ3vgZ1E9KHUX a5m7P7sZsKut8uFLNLtEoNS5nIeBsjuJcGOOWk2zhGyPy4zY0o7IUEecY+/VjLWr/WMSeQ A2OkCw8fFW7UJylzACl2Ek4UY5V0kBAr2AqE8B/+ltXWWN49mgnnSG52IszxjU88mmcpef A0LbXsRf2dnvjVlHuWO9T0MEwIn347vUlNhuFC4Fu75oRLpKfM022Y2ZS2aRxUwVrfWWIn gePbEdrKgUnb1Afh/CgL2k23gbQ9Egq0w6VIRrvNPrD7nIWMSyYKch0gXjHbFw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264046 Bug ID: 264046 Summary: lang/elixir-devel: doesn't produce self-contained mix releases Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: erlang@FreeBSD.org Reporter: pat@patmaddox.com Assignee: erlang@FreeBSD.org Flags: maintainer-feedback?(erlang@FreeBSD.org) 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 inclu= des the Erlang VM and its runtime by default. Furthermore, both Erlang and = Elixir standard libraries are stripped to bring only the parts you are actu= ally using. 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 --=20 You are receiving this mail because: You are the assignee for the bug.=