From owner-freebsd-erlang@freebsd.org Mon Dec 17 21:54:21 2018 Return-Path: Delivered-To: freebsd-erlang@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B979134D88F for ; Mon, 17 Dec 2018 21:54:21 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 767AB8C918; Mon, 17 Dec 2018 21:54:19 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 8304722127; Mon, 17 Dec 2018 16:54:18 -0500 (EST) Received: from web6 ([10.202.2.216]) by compute7.internal (MEProxy); Mon, 17 Dec 2018 16:54:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=message-id:from:to:cc:mime-version:content-transfer-encoding :content-type:date:subject:in-reply-to:references; s=fm1; bh=lfZ RHtCI7m0Mc+IhuQrRk0ji/ZmdWvQP/O6xJgdbn7U=; b=WOkl8j1Un1IFQVS/6CI COjRFWexdspH0oiLT6e/enLsCuc0NfUPi5MUNmMLgv0NLQ8kqPUogIsrIZ/TLnwO uFP3DkJ1ILstKc/wIwqgBcErm3SGjUXK094prqaEyalOzlU9wSUcevnEJVoAoKJe 7R/4LBnr4vSJ/pi/Uf9OIUVqTqE7a/HSXB9tZqaAxf5qCadm6D0fA3yRoON5Byql sKhqXu4ChzmyOoe4SGasWw5lNf0n36AHJ8Eowg8UkaxiMeykkJJPZXpxIJCRwGol gAuIah15kgr2PzAKkGkKcT3sFXYoPuhvcYWl4dym9SuW0wHhnjAppnxlehAlzxJw B8w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=lfZRHtCI7m0Mc+IhuQrRk0ji/ZmdWvQP/O6xJgdbn 7U=; b=XYUAlLxISExvCt4BLDvVgmvHbNUNLnNULfW4CLpTJ+oWxrz6aPbbMNfjT voB+hsc2/I96fnEqyCcfQNdkehM9OxMlxYfyAagQxKUcNJX1plZJxrlvbJyEfx2f XTBQRzMoFJKPOy6/he2zo6mHMg7xge5ksiTYQiOlykDzVT36W4jqxPSN5bDtCtd8 N+qsn7pEKFoy3KaJhD9/ijWvqA4/F4CPynxgYpvftpxdTtbawiUJx1lN4CLMKDVm g9NmnmUKFMApk4ZsX6xxFDEWIK3cGOnXqqqV+4QvOlqXCpW9kzPDbkvcIOJjhep0 BcKgKhIdgdm+qZTaUKJzlvoVyaXMw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudeifedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkhffvggfgtg fofffujghfsehtjeertdertdejnecuhfhrohhmpeffrghvvgcuvehothhtlhgvhhhusggv rhcuoegutghhsehskhhunhhkfigvrhhkshdrrghtqeenucffohhmrghinhepfhhrvggvsg hsugdrohhrghenucfrrghrrghmpehmrghilhhfrhhomhepuggthhesshhkuhhnkhifvghr khhsrdgrthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 2660B42A9; Mon, 17 Dec 2018 16:54:18 -0500 (EST) Message-Id: <1545083658.3844726.1611810712.3E70D623@webmail.messagingengine.com> From: Dave Cottlehuber To: Mark Felder Cc: freebsd-erlang@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-2f590f9a Date: Mon, 17 Dec 2018 22:54:18 +0100 Subject: Re: OTP 21 for Elixir In-Reply-To: <1543169033.1614100.1588217512.255D59F1@webmail.messagingengine.com> References: <1543082061.2469181.1587532960.27FCA82A@webmail.messagingengine.com> <1543154636.3838455.1588079696.6FEBA2CC@webmail.messagingengine.com> <1543169033.1614100.1588217512.255D59F1@webmail.messagingengine.com> X-Rspamd-Queue-Id: 767AB8C918 X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=skunkwerks.at header.s=fm1 header.b=WOkl8j1U; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=XYUAlLxI; spf=pass (mx1.freebsd.org: domain of dch@skunkwerks.at designates 66.111.4.25 as permitted sender) smtp.mailfrom=dch@skunkwerks.at X-Spamd-Result: default: False [-7.19 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[skunkwerks.at:s=fm1,messagingengine.com:s=fm1]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.25]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[skunkwerks.at]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[skunkwerks.at:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com]; NEURAL_HAM_SHORT(-0.97)[-0.972,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; IP_SCORE(-3.61)[ip: (-9.47), ipnet: 66.111.4.0/24(-4.69), asn: 11403(-3.80), country: US(-0.08)]; RCVD_IN_DNSWL_LOW(-0.10)[25.4.111.66.list.dnswl.org : 127.0.5.1] X-BeenThere: freebsd-erlang@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Support of Erlang-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Dec 2018 21:54:21 -0000 > On Sun, Nov 25, 2018, at 08:03, Dave Cottlehuber wrote: > > ``` > > $ export PATH=/usr/local/lib/erlang21/bin:$PATH > > $ mix ... > > Elixir will not currently compile with lang/erlang-runtime21; I assume > because erlc is not in $PATH. I haven't had time to dig into the > specifics of the elixir-runtime ports. Are they complete but just > lacking symlinks of binaries into ${PREFIX}/bin ? If so I think we might > be able to fix this easier. > > > -- > Mark Felder Hi Mark, Just following up on this, apologies if this is all obvious to you already. - normally people create an "OTP release" for distributing applications (e.g. databases/couchdb2 and net/rabbitmq) - these releases are byte code + erlang runtime + sometimes DLLs (aka NIFs) - the elixir mix compiler (built under OTP 19) will happily build a release for a newer OTP release (e.g. OTP 21) if that erlc is in the PATH as above - the resulting release can be run independently of the OTP19 + elixir originally used to build with I'm only aware of a couple of obscure cases where the OTP build used for Elixir has any bearing on the ability to build and run elixir apps using a newer OTP runtime, so you should be fine with prepending the Elixir path where-ever required. https://svnweb.freebsd.org/ports/head/databases/couchdb2/files/couchdb2.in?view=markup#l39 is a pretty solid example of doing this, (although it includes a hack to force Erlang to use the existing erlang package release in patch-rel_reltool.config). If you need more info let me know, happy to help. Regarding the ports, it's reasonably common to have multiple OTP versions installed concurrently and softlinking them doesn't feel right to me. A+ Dave