From nobody Thu May 05 06:48:48 2022 X-Original-To: freebsd-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 366EB1AB320C for ; Thu, 5 May 2022 06:48:52 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4Kv46W2Bt8z4vWb for ; Thu, 5 May 2022 06:48:51 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 1AE245C01E6; Thu, 5 May 2022 02:48:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 05 May 2022 02:48:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=patmaddox.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1651733331; x= 1651819731; bh=fFCd93oGnZknFBOLjNenQdId3ApLJWdtxQXgZEim2sE=; b=w iWHs4Fw6QlvHT9jPt+rhH8Od+OzuHcvbPf7KrKt8UgixNGkIOc13j49lZ+wyJX5Y NRVDoIbme4LHPKmp/CHz/7BDSlx4LS3mZhrAljvSOHcXR/SlTg0vyavPQRHnL/cL fefG+9zljZLL+LFBdFJ8iCBKGRcvc52piaXY1oPzvLH3OtcT/mkeVCMOdIihx7Tz wVEScN0o8Yj99eRZJwGFfNWXpytCG+Kx/CBKzHGaQC5ltzjRYu4EjDuraUyshgRZ bnL+z6oTB8EoriJngM5N256p7QxnrL5CPumNcDIUqg3OIl+BZ//bFGbS40qJLUGW ZcvbPaONGZyLwY07hBShQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1651733331; x=1651819731; bh=fFCd93oGnZknF BOLjNenQdId3ApLJWdtxQXgZEim2sE=; b=e2oDKcWaxRADLBsEyaSS9jMTT+Tgw 36NM+1Hk5McP88TLHghaAjp9Tio5cfsyk40QqEudcyeh2DMbrBKEKkolWnsDXASY IvQjPxgDN+NLB0s6uxg0YSXjLdIQE/e3ZVt4n924n8pCILmM6cIU7xmuZwVanvnS KCbMBx8lPcH48MkqzvnjsjXDCJe+Gi/SeEAhUbFI40pEt+6dPSIRWseHXGFZd9Q3 pQazSEfJjAhMpNLuGDzPH/4NTGx9LHWlP/970BpUQL7xNciyNl9s6EawfXBSCqvs /sF1hX7wT2bztR00NFLJowcbH7hSSEqWfmlclgptKl5yep9QYMKgInrXQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtgdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffoffkjghfgggtgfesth ekmhdtredtjeenucfhrhhomhepfdfrrghtucforgguughogidfuceophgrthesphgrthhm rgguughogidrtghomheqnecuggftrfgrthhtvghrnhepgeejheffgedvgeekueetveevie ejgeelueevffegvefgffeiheeggeffjeekhefhnecuffhomhgrihhnpehhvgigughotghs rdhpmhdpghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepphgrthesphgrthhmrgguughogidrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 May 2022 02:48:50 -0400 (EDT) From: "Pat Maddox" To: "Dave Cottlehuber" Cc: erlang Subject: Re: package mix release works, port doesn't? (and neither is self-contained) Date: Wed, 04 May 2022 23:48:48 -0700 X-Mailer: MailMate (1.13.2r5673) Message-ID: <9B6718AD-FC61-4DBC-8DF1-9FF0E207B945@patmaddox.com> In-Reply-To: References: <42EA9771-2440-49D3-BEFA-05A888F8D90A@patmaddox.com> 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 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Kv46W2Bt8z4vWb X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=patmaddox.com header.s=fm3 header.b="w iWHs4F"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=e2oDKcWa; dmarc=none; spf=pass (mx1.freebsd.org: domain of pat@patmaddox.com designates 66.111.4.29 as permitted sender) smtp.mailfrom=pat@patmaddox.com X-Spamd-Result: default: False [-3.86 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[patmaddox.com:s=fm3,messagingengine.com:s=fm1]; FREEFALL_USER(0.00)[pat]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.29]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[patmaddox.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[patmaddox.com:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.26)[-0.262]; MLMMJ_DEST(0.00)[freebsd-erlang]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.29:from] X-ThisMailContainsUnwantedMimeParts: N On 4 May 2022, at 7:16, Dave Cottlehuber wrote: > On Wed, 4 May 2022, at 11:16, Pat Maddox wrote: >> I still don’t understand why I need an erlang runtime at all >> though, >> after the mix release has been built. >> >> Pat > > you don't; whether erts is bundled in the release is defined in your > mix release config. I'm assuming your ExAmple app picks up whatever > the default is, see the hello app for an appropriate example. > > https://hexdocs.pm/mix/Mix.Tasks.Release.html > & > https://github.com/skunkwerks/hello/blob/master/rel/config.exs#L33 > > I've tried both approaches in the past, and now I always bundle > erts within the application. > > You do need to run the epmd daemon somewhere, this is easily > enough done via including lang/erlang as a package dependency, > or via your CI/CD deployment tools, and starting the epmd service > that is provided on FreeBSD. hrm... according to the mix release docs (https://hexdocs.pm/mix/Mix.Tasks.Release.html): “If mix release is invoked and there are no names, a release using the application name and default values is assembled.” “Releases do not even require Erlang or Elixir in your servers, as it includes the Erlang VM and its runtime by default.” “:include_erts ... The default is true, which is also the recommended value” My point is that I don’t think I should have to install lang/erlang to run the mix release - that’s part of the point of mix release, is to provide everything needed to run the app, no additional runtimes required. It’s also different behavior than I see on ubuntu, where we mix release, copy the dir to a fresh image (no elixir or erlang) and it runs fine. I’m definitely missing something here. Pat