Message ID | 20160914093812.28422-5-rekado@elephly.net |
---|---|
State | New |
Headers |
Received: (qmail 69821 invoked by uid 89); 14 Sep 2016 09:45:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:970 X-Spam-Status: No, score=-4.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Sep 2016 09:45:09 +0000 Received: from localhost ([::1]:54696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guix-devel-bounces+patchwork=sourceware.org@gnu.org>) id 1bk6kZ-0000yi-QF for patchwork@sourceware.org; Wed, 14 Sep 2016 05:45:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rekado@elephly.net>) id 1bk6eO-0004hh-MG for guix-devel@gnu.org; Wed, 14 Sep 2016 05:38:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <rekado@elephly.net>) id 1bk6eI-0003I0-Rf for guix-devel@gnu.org; Wed, 14 Sep 2016 05:38:39 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:21433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rekado@elephly.net>) id 1bk6eI-0003Hn-Je for guix-devel@gnu.org; Wed, 14 Sep 2016 05:38:34 -0400 Received: from localhost (141.80.188.147 [141.80.188.147]) by mx.zohomail.com with SMTPS id 1473845911097997.923738663653; Wed, 14 Sep 2016 02:38:31 -0700 (PDT) From: Ricardo Wurmus <rekado@elephly.net> To: guix-devel@gnu.org Subject: [PATCH 4/7] gnu: Add llvm-for-extempore. Date: Wed, 14 Sep 2016 11:38:09 +0200 Message-Id: <20160914093812.28422-5-rekado@elephly.net> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20160914093812.28422-1-rekado@elephly.net> References: <20160914093812.28422-1-rekado@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 74.201.84.163 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." <guix-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/guix-devel/> List-Post: <mailto:guix-devel@gnu.org> List-Help: <mailto:guix-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=subscribe> Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" <guix-devel-bounces+patchwork=sourceware.org@gnu.org> |
Commit Message
Ricardo Wurmus
Sept. 14, 2016, 9:38 a.m. UTC
* gnu/packages/llvm.scm (llvm-for-extempore): New variable. --- gnu/packages/llvm.scm | 8 ++++++++ 1 file changed, 8 insertions(+)
Comments
On Wed, Sep 14, 2016 at 5:38 AM, Ricardo Wurmus <rekado@elephly.net> wrote: > * gnu/packages/llvm.scm (llvm-for-extempore): New variable. > --- > gnu/packages/llvm.scm | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm > index a9eba79..b55a200 100644 > --- a/gnu/packages/llvm.scm > +++ b/gnu/packages/llvm.scm > @@ -3,6 +3,7 @@ > ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> > ;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org> > ;;; Copyright © 2016 Dennis Mungai <dmngaie@gmail.com> > +;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -267,3 +268,10 @@ code analysis tools.") > (define-public clang-3.5 > (clang-from-llvm llvm-3.5 clang-runtime-3.5 > "0846h8vn3zlc00jkmvrmy88gc6ql6014c02l4jv78fpvfigmgssg")) > + > +(define-public llvm-for-extempore > + (package (inherit llvm-3.7) > + (source > + (origin > + (inherit (package-source llvm-3.7)) > + (patches (list (search-patch "llvm-for-extempore.patch"))))))) This could use a comment explaining the rationale. Also, you forgot to include the patch file in this commit. - Dave
> + (patches (list (search-patch "llvm-for-extempore.patch")))))))
Hmm... is this patch file somewhere?
Thompson, David <dthompson2@worcester.edu> writes: > On Wed, Sep 14, 2016 at 5:38 AM, Ricardo Wurmus <rekado@elephly.net> wrote: >> * gnu/packages/llvm.scm (llvm-for-extempore): New variable. >> --- >> gnu/packages/llvm.scm | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm >> index a9eba79..b55a200 100644 >> --- a/gnu/packages/llvm.scm >> +++ b/gnu/packages/llvm.scm >> @@ -3,6 +3,7 @@ >> ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> >> ;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org> >> ;;; Copyright © 2016 Dennis Mungai <dmngaie@gmail.com> >> +;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> >> ;;; >> ;;; This file is part of GNU Guix. >> ;;; >> @@ -267,3 +268,10 @@ code analysis tools.") >> (define-public clang-3.5 >> (clang-from-llvm llvm-3.5 clang-runtime-3.5 >> "0846h8vn3zlc00jkmvrmy88gc6ql6014c02l4jv78fpvfigmgssg")) >> + >> +(define-public llvm-for-extempore >> + (package (inherit llvm-3.7) >> + (source >> + (origin >> + (inherit (package-source llvm-3.7)) >> + (patches (list (search-patch "llvm-for-extempore.patch"))))))) > > This could use a comment explaining the rationale. Also, you forgot > to include the patch file in this commit. Oh, I did indeed forget it. I’ve added it and put a long comment to the top, which I’ll quote here: ~~~~~~~~~~~~~~ This patch to LLVM is required by the developers of the Extempore language. The following explanation was posted to the extemporelang@googlegroups.com mailing list: "There is an assumption in the parser that all definitions occur within the same compilation unit - i.e. the parser has local state about what has been parsed in this unit of work. Extempore obviously does lots of little units rather than one big unit and this causes problems for named types that were defined in another unit - which they always are. The patch simply checks the current module to see if the type has been previously defined, and intervenes appropriately if it has." Message-ID: <CAOjrPOqoreXuZo4ZpDBvHE7M_tgAR_V8Txq5JFjh1HnGRn2EsA@mail.gmail.com> ~~~~~~~~~~~~~~ Thanks for the review! ~~ Ricardo
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index a9eba79..b55a200 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2016 Dennis Mungai <dmngaie@gmail.com> +;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net> ;;; ;;; This file is part of GNU Guix. ;;; @@ -267,3 +268,10 @@ code analysis tools.") (define-public clang-3.5 (clang-from-llvm llvm-3.5 clang-runtime-3.5 "0846h8vn3zlc00jkmvrmy88gc6ql6014c02l4jv78fpvfigmgssg")) + +(define-public llvm-for-extempore + (package (inherit llvm-3.7) + (source + (origin + (inherit (package-source llvm-3.7)) + (patches (list (search-patch "llvm-for-extempore.patch")))))))