From nobody Tue May 17 12:54:06 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 556A11B389CF for ; Tue, 17 May 2022 12:54:27 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (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 4L2bfp5Jp3z3sZ6 for ; Tue, 17 May 2022 12:54:26 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A6EE15C00C7; Tue, 17 May 2022 08:54:26 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute2.internal (MEProxy); Tue, 17 May 2022 08:54:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=cc:cc: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=fm2; t=1652792066; x=1652878466; bh=V1 vc/RSws0fdDYU3rSldDM5LoFATjIAT+GR63otozJY=; b=xAGkPHiSbACdsodxGs sN14Q2R4G17G8xMQRAe6PR1vbgg86duVUjqq7BONmjPVOzCKZKmddZhKjhJr6MME sMyO0llDkBo6VNRfvXacN8ZP4LzW+E3UzjXY9zxm3W/0tN09azCzuDASMGlwS3A8 olQGXlCfjTVqEDfLiEcH1egwDCbulkuIdYlWECJDWJGzUYwW7tYp6uJ+I/3K317g E+fEgweGX2FrfO7Z0N7zWEYjlWdgiFMLTpJaPM3+84way/y64184PsnIsb6ZDJIZ HIEEnqoUjV1KyUlDhHwT3jj+2tLzA4xXXcpsn9s22kPvZE/2j93xaQuu0geqj8Nq D7Hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id: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=1652792066; x=1652878466; bh=V1vc/RSws0fdDYU3rSldDM5LoFAT jIAT+GR63otozJY=; b=oCQ2PsPWehf/K0IJ8LrWQDvo9PCo0KpW9mJI8QgLX1HJ diKWP8wbXS2pJ2K6R2XlUSuFjXRtcsVDXhLEG6GjTk5umunP+KwBbRg8wg8rpH4n /U+60feWKyt4cR6DJM3Kf05QOSznB0JQ75+vZ3a+dzDmMJgccddELzd6Y+Eh4gWd wOvnDCoWDxPLHDQio7QOsKSlkAAHFrOtp/z6bLZV7qCgOVUYD4ljdztuIl3tpHwZ UPPgTD8yKKXFXcTOfsPbMV0p2THfE9oa1Jhb58uxo3EeU+lyn43gAf7ZFK/JR3KI SyL3LeX/Qd8Z4sB/iJZotjHXETb29I0x1CnJxnj7Xg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrheejgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvfevufgtsehttd ertderredtnecuhfhrohhmpedfffgrvhgvucevohhtthhlvghhuhgsvghrfdcuoegutghh sehskhhunhhkfigvrhhkshdrrghtqeenucggtffrrghtthgvrhhnpeekueekfeejkeegud efgfevuddtudefveehkedugffhuefgvdegtdevteduheduheenucffohhmrghinhepfhhr vggvsghsugdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegutghhsehskhhunhhkfigvrhhkshdrrght X-ME-Proxy: Feedback-ID: ic0e84090:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 71F1536A0060; Tue, 17 May 2022 08:54:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 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 Message-Id: In-Reply-To: <7814C787-2101-45DC-971D-2571E29EF4F6@patmaddox.com> References: <42EA9771-2440-49D3-BEFA-05A888F8D90A@patmaddox.com> <9B6718AD-FC61-4DBC-8DF1-9FF0E207B945@patmaddox.com> <7814C787-2101-45DC-971D-2571E29EF4F6@patmaddox.com> Date: Tue, 17 May 2022 12:54:06 +0000 From: "Dave Cottlehuber" To: "Pat Maddox" Cc: erlang Subject: Re: package mix release works, port doesn't? (and neither is self-contained) Content-Type: text/plain X-Rspamd-Queue-Id: 4L2bfp5Jp3z3sZ6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=skunkwerks.at header.s=fm2 header.b=xAGkPHiS; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=oCQ2PsPW; dmarc=none; spf=pass (mx1.freebsd.org: domain of dch@skunkwerks.at designates 66.111.4.27 as permitted sender) smtp.mailfrom=dch@skunkwerks.at X-Spamd-Result: default: False [-3.41 / 15.00]; XM_UA_NO_VERSION(0.01)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.27:c]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[skunkwerks.at:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.82)[-0.817]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.27:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[skunkwerks.at:s=fm2,messagingengine.com:s=fm1]; FREEFALL_USER(0.00)[dch]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[skunkwerks.at]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-erlang]; MID_RHS_WWW(0.50)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, 5 May 2022, at 10:41, Pat Maddox wrote: > On 4 May 2022, at 23:48, Pat Maddox wrote: > However, the port replaces it: > https://cgit.freebsd.org/ports/tree/lang/elixir-devel/Makefile#n48 > > So where mix release produces the following lines in > ex_ample/releases/0.1.0/elixir: > > ERTS_BIN= > ERTS_BIN="$SCRIPT_PATH"/../../erts-12.3./bin/ > > The port changes them to: > > ERTS_BIN=/usr/local/lib/erlang24/bin/ I think I'm missing something here about how this is setup / deployed & used. when you build a release, it shouldn't end up with an elixir-specific PATH embedded in it, and if that does happen we should fix that. lang/elixir-devel is hardwired because the BEAM bytecode varies across releases, and we need to both build & run with the new shiny OTP versions, rather than whatever versions you have installed. but the OTP release machinery should assemble you a release with the correct bits either way. At least log an issue for this on bugs.freebsd.org (per my other email to list) and we will fix it. A+ Dave