From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCqid-0008Sr-Jo for guix-patches@gnu.org; Mon, 22 May 2017 13:02:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCqiY-00021q-Oi for guix-patches@gnu.org; Mon, 22 May 2017 13:02:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58709) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCqiY-00021m-Ly for guix-patches@gnu.org; Mon, 22 May 2017 13:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dCqiY-00013F-ET for guix-patches@gnu.org; Mon, 22 May 2017 13:02:02 -0400 Subject: bug#26966: [PATCH 10/22] gnu: Add ecj-javac-on-jamvm-wrapper. Resent-Message-ID: References: <20170517171905.7840-1-rekado@elephly.net> <20170517171905.7840-10-rekado@elephly.net> From: Ricardo Wurmus In-reply-to: Date: Mon, 22 May 2017 19:01:23 +0200 Message-ID: <87k258bzbw.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Roel Janssen Cc: 26966@debbugs.gnu.org Roel Janssen writes: > Ricardo Wurmus writes: > >> * gnu/packages/java.scm (ecj-javac-on-jamvm-wrapper): New variable. >> --- >> gnu/packages/java.scm | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 86 insertions(+) >> >> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm >> index ae9a5b3d7..940587057 100644 >> --- a/gnu/packages/java.scm >> +++ b/gnu/packages/java.scm >> @@ -542,6 +542,92 @@ gnu.classpath.tools.~a.~a $@" >> the GNU Classpath library. They are executed by the JamVM virtual >> machine."))) >> >> +(define ecj-javac-on-jamvm-wrapper >> + (package (inherit ecj-javac-wrapper) >> + (name "ecj-javac-on-jamvm-wrapper") >> + (arguments >> + `(#:modules ((guix build utils)) >> + #:builder >> + ;; TODO: This builder is exactly the same as in ecj-javac-wrapper, >> + ;; except that the backend is 'jamvm here. Can we reuse the same >> + ;; builder somehow? > > That would be nice to reuse the same builder. Maybe we could create a > package for the builder function that will generate the builder code. I don’t know how. It would be easy if we could use a plain gexp as a builder. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net