From nobody Wed May 04 11:06:02 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 3E3CE1ABC4DC for ; Wed, 4 May 2022 11:06:11 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 4KtYst1jQxz4tTQ for ; Wed, 4 May 2022 11:06:10 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8E74D5C0129; Wed, 4 May 2022 07:06:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 04 May 2022 07:06:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=patmaddox.com; h=cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1651662364; x=1651748764; bh=JtBoE620EL /opynyL+TANhcbEcociu4Hbn9HTYWzFJA=; b=gjbrwPbEOZ4ibGb1gS9U172F16 FglMbr0wh3NV4nXdGYVtasVaIRFOO7yTl6aqll8EnMiB9AkqAbAaL35CxJ1VwUJh /q3W71NijHLHYDIKxC23g78hfsm3E/TaUl0bkeOMC5WA19DZLkNlid+6YIxTdt3T ZOtRnO1xvDs3U8GydoGXIjwtkOoTOgxn7M8sZ1Ma1LUkFDw1L4wwUszYQxSc75E7 fLdwRSTGBVKPIw7mhyttp7VSE0+H3Qi81EwWWNZZZvQrkNlBg7d1Z9mKu3MrAnfz uV+LTvJfxFFGgVtwOAxc7ktCr9qvgKbcp/ipiC6qHtasRIsJDdGPYjO5IeMg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:message-id:mime-version :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=1651662364; x= 1651748764; bh=JtBoE620EL/opynyL+TANhcbEcociu4Hbn9HTYWzFJA=; b=V H59Y3X4Qm8YUXZbPVOOoOJRVMlDajpyr9a5qDZsbBn59nKxLvUWGuQojzi9WW9a5 NBOmYv/hwQYq9VtNjsUQmavgVS5WqLMGAPVz6fjpq0lpcRkJH/43JLVsO9mJ2na7 nhLFBsXS2E2MBlaCYKztAebz9FW5X9q3N9RnioqlRUTRzd4VcXK88da4PrLBdSJg VxrOyXQLxWbGYTyjuA6ik/R0iWqQhqryo4Nws+FmPa9sAexVfarAxIY5aJkjytaj K2OjvjFbbfAmygUyA24bk7bzncKf4UqHqspylpsyzrErSuRUe/b6m9y07oP2a4QP xUS/OLU2YzK1FToN8fCUQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdelgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffoffkgggtgfesthhqmhdtre dtjeenucfhrhhomhepfdfrrghtucforgguughogidfuceophgrthesphgrthhmrgguugho gidrtghomheqnecuggftrfgrthhtvghrnhepveefgeekvedtvddutedtveeihfejieette eigefhtdekgfekhedvfffhvdevheevnecuffhomhgrihhnpehgihhthhhusgdrtghomhen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehprghtse hprghtmhgrugguohigrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 4 May 2022 07:06:04 -0400 (EDT) From: "Pat Maddox" To: freebsd-erlang@FreeBSD.org Subject: package mix release works, port doesn't? (and neither is self-contained) Date: Wed, 04 May 2022 04:06:02 -0700 X-Mailer: MailMate (1.13.2r5673) Message-ID: <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: quoted-printable X-Rspamd-Queue-Id: 4KtYst1jQxz4tTQ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=patmaddox.com header.s=fm3 header.b=gjbrwPbE; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="V H59Y3X"; dmarc=none; spf=pass (mx1.freebsd.org: domain of pat@patmaddox.com designates 66.111.4.26 as permitted sender) smtp.mailfrom=pat@patmaddox.com X-Spamd-Result: default: False [-4.59 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.26:from]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.26]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[patmaddox.com:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-0.99)[-0.995]; 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.26:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[patmaddox.com:s=fm3,messagingengine.com:s=fm1]; FREEFALL_USER(0.00)[pat]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-erlang@freebsd.org]; DMARC_NA(0.00)[patmaddox.com]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; MLMMJ_DEST(0.00)[freebsd-erlang] X-ThisMailContainsUnwantedMimeParts: N Hi, I am trying to build a package from a mix release. My first attempt used pkg-create, and it was successful. I can run `make = package`, install the package, and then run `ex_ample start_iex`. = Here=E2=80=99s that Makefile: = https://github.com/patmaddox/ex_ample/blob/5814a1bb921ef3c045852b375fa54b= c7b93c0565/Makefile. = It does require me to have an erlang runtime installed to run it, which = was surprising. The elixir docs say that mix releases don=E2=80=99t need = erlang or elixir to run them, they=E2=80=99re supposed to be self-contain= ed. Then I decided to try building a port with poudriere. I successfully = built the package, but it won=E2=80=99t run. Running `ex_ample start_iex`= = fails with an error about missing /usr/local/lib/erlang24/bin/erl as = well. When I _do_ install erlang-runtime24 (or any erlang package), `ex_ample = start_iex` crashes: {"init terminating in = do_boot",{load_failed,[supervisor,proc_lib,lists,logger_simple_h,logger_c= onfig,logger_backend,logger_server,logger_filters,logger,kernel,heart,gen= _server,gen_event,gen,file_io_server,file_server,filename,file,ets,error_= logger,erl_parse,erl_lint,erl_eval,code_server,code,application_master,ap= plication_controller,application,error_handler]}}. So my questions are: 1. What is going on with poudriere that=E2=80=99s different, where the pa= ckage = runs fine but the built port crashes? 2. How do I fix it? 3. Why do the package and port require an erlang runtime to run, if = I=E2=80=99m using mix release? Pat