From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Sprang Subject: Re: [PATCH] gnu: Add erlang. Date: Wed, 16 Mar 2016 17:18:57 -0700 Message-ID: References: <20160104043952.GA29303@jasmine> <877fjpzi07.fsf@igalia.com> <87wprmg088.fsf@gnu.org> <87y4c1ww4y.fsf@igalia.com> <20160213004446.GB13163@jasmine> <20160213231244.1ecfb8be@debian-netbook> <87io1hvl62.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=089e01229aaa92eed7052e339368 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agLeW-00017M-Gg for guix-devel@gnu.org; Wed, 16 Mar 2016 20:19:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agLeV-0004G1-1A for guix-devel@gnu.org; Wed, 16 Mar 2016 20:19:00 -0400 Received: from mail-ig0-x22a.google.com ([2607:f8b0:4001:c05::22a]:33587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agLeU-0004FX-MH for guix-devel@gnu.org; Wed, 16 Mar 2016 20:18:58 -0400 Received: by mail-ig0-x22a.google.com with SMTP id ig19so2792899igb.0 for ; Wed, 16 Mar 2016 17:18:58 -0700 (PDT) In-Reply-To: <87io1hvl62.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --089e01229aaa92eed7052e339368 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Oops, I didn't follow up on this. I made the suggested changes to the patch. I also bumped the version to 18.3, which has subsequently become available. -Steve On Sun, Feb 21, 2016 at 12:54 PM, Ludovic Court=C3=A8s wrote= : > Efraim Flashner skribis: > >> On Fri, 12 Feb 2016 19:44:46 -0500 >> Leo Famulari wrote: >> >>> On Sat, Feb 06, 2016 at 12:45:39PM -0800, Steve Sprang wrote: >>> > It looks like downloading the tarball from erlang.org works now. >>> > Here's an improved patch. >>> > + (lambda* _ >>> > + (let ((escripts >>> > + (append >>> > + (find-files "." "\\.escript") >>> > + (find-files "lib/stdlib/test/escript_SUITE_data/") >>> > + '("erts/lib_src/utils/make_atomics_api" >>> > + "erts/preloaded/src/add_abstract_code" >>> > + "lib/diameter/bin/diameterc" >>> > + "lib/reltool/examples/display_args" >>> > + "lib/reltool/examples/mnesia_core_dump_viewer" >>> > + "lib/snmp/src/compile/snmpc.src" >>> > + "make/verify_runtime_dependencies" >>> > + "make/emd2exml.in")))) >>> > + (substitute* escripts >>> > + (("/usr/bin/env") (which "env")))))) >>> > + (add-before >>> > + 'configure 'set-erl-top >>> > + (lambda* _ >>> > + (setenv "ERL_TOP" (getcwd))))) >>> >>> I _think_ that 'lambda _' would be appropriate here. I need a real >>> Schemer to weigh in ;) >>> >> >> I'm definately not a "real schemer," but since the lambda only leads int= o the >> let (ie. one item), I'm pretty sure 'lambda _' should be sufficient. > > Correct. =E2=80=98lambda*=E2=80=99 is for when one wants to use optional= or keyword > arguments (info "(guile) lambda* and define*"). > > Ludo=E2=80=99. > --089e01229aaa92eed7052e339368 Content-Type: text/x-patch; charset=UTF-8; name="erlang.patch" Content-Disposition: attachment; filename="erlang.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ilvj2lic0 RnJvbSA0Zjk2ZjE2ZGYwMzkzZDNiZjAzZWM3ZTcwMWQxYzg3NTU2NTAyM2NkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGV2ZSBTcHJhbmcgPHNjc0BzdGV2ZXNwcmFuZy5jb20+CkRh dGU6IFNhdCwgNiBGZWIgMjAxNiAxMjo0MDo1MyAtMDgwMApTdWJqZWN0OiBbUEFUQ0hdIGdudTog QWRkIGVybGFuZy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yBhbG9uZyB3aXRoIEdOVSBHdWl4LiAgSWYgbm90LCBzZWUg PGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+LgorCisoZGVmaW5lLW1vZHVsZSAoZ251IHBh Y2thZ2VzIGVybGFuZykKKyAgIzp1c2UtbW9kdWxlICgoZ3VpeCBsaWNlbnNlcykgIzpwcmVmaXgg bGljZW5zZTopCisgICM6dXNlLW1vZHVsZSAoZ3VpeCBwYWNrYWdlcykKKyAgIzp1c2UtbW9kdWxl IChndWl4IGRvd25sb2FkKQorICAjOnVzZS1tb2R1bGUgKGd1aXggYnVpbGQtc3lzdGVtIGdudSkK KyAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMgbmN1cnNlcykKKyAgIzp1c2UtbW9kdWxlIChn bnUgcGFja2FnZXMgcGVybCkKKyAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMgdGxzKSkKKwor KGRlZmluZS1wdWJsaWMgZXJsYW5nCisgIChwYWNrYWdlCisgICAgKG5hbWUgImVybGFuZyIpCisg ICAgKHZlcnNpb24gIjE4LjMiKQorICAgIChzb3VyY2UgKG9yaWdpbgorICAgICAgICAgICAgICAo bWV0aG9kIHVybC1mZXRjaCkKKyAgICAgICAgICAgICAgKHVyaSAoc3RyaW5nLWFwcGVuZAorICAg ICAgICAgICAgICAgICAgICAiaHR0cDovL2VybGFuZy5vcmcvZG93bmxvYWQvb3RwX3NyY18iCisg ICAgICAgICAgICAgICAgICAgIHZlcnNpb24KKyAgICAgICAgICAgICAgICAgICAgIi50YXIuZ3oi KSkKKyAgICAgICAgICAgICAgKHNoYTI1NgorICAgICAgICAgICAgICAgKGJhc2UzMgorICAgICAg ICAgICAgICAgICIxaHk5c2xxOWdqdndkYjUwNGRtdnA2cmF4OTBpc25reTZjaHFreXE1djR5Ymw0 bHEzYXp4IikpKSkKKyAgICAoYnVpbGQtc3lzdGVtIGdudS1idWlsZC1zeXN0ZW0pCisgICAgKG5h dGl2ZS1pbnB1dHMKKyAgICAgYCgoInBlcmwiICxwZXJsKSkpCisgICAgKGlucHV0cworICAgICBg KCgibmN1cnNlcyIgLG5jdXJzZXMpCisgICAgICAgKCJvcGVuc3NsIiAsb3BlbnNzbCkpKQorICAg IChhcmd1bWVudHMKKyAgICAgYCgjOnBoYXNlcworICAgICAgIChtb2RpZnktcGhhc2VzICVzdGFu ZGFyZC1waGFzZXMKKwkgKGFkZC1hZnRlciAncGF0Y2gtc291cmNlLXNoZWJhbmdzICdwYXRjaC1z b3VyY2UtZW52CisJICAgKGxhbWJkYSBfCisJICAgICAobGV0ICgoZXNjcmlwdHMKKwkJICAgIChh cHBlbmQKKwkJICAgICAoZmluZC1maWxlcyAiLiIgIlxcLmVzY3JpcHQiKQorCQkgICAgIChmaW5k LWZpbGVzICJsaWIvc3RkbGliL3Rlc3QvZXNjcmlwdF9TVUlURV9kYXRhLyIpCisJCSAgICAgJygi ZXJ0cy9saWJfc3JjL3V0aWxzL21ha2VfYXRvbWljc19hcGkiCisJCSAgICAgICAiZXJ0cy9wcmVs b2FkZWQvc3JjL2FkZF9hYnN0cmFjdF9jb2RlIgorCQkgICAgICAgImxpYi9kaWFtZXRlci9iaW4v ZGlhbWV0ZXJjIgorCQkgICAgICAgImxpYi9yZWx0b29sL2V4YW1wbGVzL2Rpc3BsYXlfYXJncyIK KwkJICAgICAgICJsaWIvcmVsdG9vbC9leGFtcGxlcy9tbmVzaWFfY29yZV9kdW1wX3ZpZXdlciIK KwkJICAgICAgICJsaWIvc25tcC9zcmMvY29tcGlsZS9zbm1wYy5zcmMiCisJCSAgICAgICAibWFr ZS92ZXJpZnlfcnVudGltZV9kZXBlbmRlbmNpZXMiCisJCSAgICAgICAibWFrZS9lbWQyZXhtbC5p biIpKSkpCisJICAgICAgIChzdWJzdGl0dXRlKiBlc2NyaXB0cworCQkgKCgiL3Vzci9iaW4vZW52 IikgKHdoaWNoICJlbnYiKSkpKSkpCisgICAgICAgICAoYWRkLWJlZm9yZSAnY29uZm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