From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH] gnu: Add erlang. Date: Mon, 4 Jan 2016 01:23:02 -0500 Message-ID: <20160104062302.GA6214@jasmine> References: <20160104043952.GA29303@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFyXs-0004NK-Jf for guix-devel@gnu.org; Mon, 04 Jan 2016 01:23:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFyXn-0003Zf-SW for guix-devel@gnu.org; Mon, 04 Jan 2016 01:23:08 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:42943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFyXn-0003Zb-Or for guix-devel@gnu.org; Mon, 04 Jan 2016 01:23:03 -0500 Content-Disposition: inline In-Reply-To: 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: Steve Sprang Cc: guix-devel@gnu.org On Sun, Jan 03, 2016 at 09:20:45PM -0800, Steve Sprang wrote: > I originally tried that tarball but I get an error downloading it: > > $ guix download > http://www.erlang.org/download/otp_src_18.2.1.tar.gz > > From http://www.erlang.org/download/otp_src_18.2.1.tar.gz... > ERROR: Bad qstring header component: kMSMAn68110840 Weird. I wonder if that is related to the recent discussion about Guile's http client being strict and rejecting non-standard headers? > > -Steve > > > On Sun, Jan 3, 2016 at 8:39 PM, Leo Famulari wrote: > > On Sun, Jan 03, 2016 at 07:56:07PM -0800, Steve Sprang wrote: > >> Add the Erlang programming language. > >> > >> Is there a better way to substitute "/usr/bin/env" with (which "env")? > >> There are a number of files throughout the source tree that require > >> the substitution, but there's not a handy way to identify many of them > >> without explicitly listing them. > >> > >> -Steve > > > >> From d31d3b2ece298b3e7610890390a7a12f865be881 Mon Sep 17 00:00:00 2001 > >> From: Steve Sprang > >> Date: Sun, 3 Jan 2016 19:46:40 -0800 > >> Subject: [PATCH] gnu: Add erlang. > >> > >> * gnu/packages/erlang.scm: New file. > >> * gnu-system.am (GNU_SYSTEM_MODULES): Add it. > >> --- > >> gnu-system.am | 1 + > >> gnu/packages/erlang.scm | 82 +++++++++++++++++++++++++++++++++++++++++++++++++ > >> 2 files changed, 83 insertions(+) > >> create mode 100644 gnu/packages/erlang.scm > >> > >> diff --git a/gnu-system.am b/gnu-system.am > >> index c0f8fac..19d0ec5 100644 > >> --- a/gnu-system.am > >> +++ b/gnu-system.am > >> @@ -99,6 +99,7 @@ GNU_SYSTEM_MODULES = \ > > > > [...] > > > >> + (native-inputs > >> + `(("perl" ,perl) > >> + ("autoconf" ,autoconf))) > > > > The tarball available on erlang.org is already bootstrapped. If we use > > that one, we don't need to explicitly include autoconf and we don't need > > the 'prep-configure phase. > > > > This seems to be the correct URL for downloading the current and past > > releases (there is no "archive" directory linked anywhere that I saw): > > http://www.erlang.org/download/otp_src_18.2.1.tar.gz > > > >> + (inputs > >> + `(("ncurses" ,ncurses) > >> + ("openssl" ,openssl))) > >> + (arguments > >> + `(#:phases > >> + (modify-phases %standard-phases > >> + (add-after > >> + 'patch-source-shebangs 'patch-source-env > >> + (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 'prep-configure > >> + (lambda* _ > >> + (setenv "ERL_TOP" (getcwd)) > >> + (zero? (system* "./otp_build" "autoconf"))))) > >> + #:test-target "release_tests")) > >> + (home-page "http://erlang.org/") > >> + (synopsis "The Erlang programming language") > >> + (description > >> + "Erlang is a programming language used to build massively > >> +scalable soft real-time systems with requirements on high > >> +availability. Some of its uses are in telecoms, banking, e-commerce, > >> +computer telephony and instant messaging. Erlang's runtime system has > >> +built-in support for concurrency, distribution and fault tolerance.") > >> + (license license:asl2.0))) > >> -- > >> 2.6.3 > >> > >