From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:37935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmRMV-0003Bv-9J for guix-patches@gnu.org; Wed, 23 Jan 2019 17:51:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmR6v-0005hC-Kz for guix-patches@gnu.org; Wed, 23 Jan 2019 17:35:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmR6s-0005fe-UI for guix-patches@gnu.org; Wed, 23 Jan 2019 17:35:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gmR6s-0006ld-OL for guix-patches@gnu.org; Wed, 23 Jan 2019 17:35:02 -0500 Subject: bug#34146: [PATCH] gnu: Add ghc-c2hs. Resent-To: guix-patches@gnu.org Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875zujv07j.fsf@gmail.com> Date: Wed, 23 Jan 2019 23:34:30 +0100 In-Reply-To: <875zujv07j.fsf@gmail.com> (Gabriel Hondet's message of "Sun, 20 Jan 2019 16:03:03 +0100") Message-ID: <877eevdmvd.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: Gabriel Hondet Cc: 34146-done@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Gabriel Hondet skribis: > * gnu/packages/haskell.scm (ghc-c2hs): New variable. Applied with the changes below. It=E2=80=99d be nice to report the test failures upstream since it could be fairly problematic for such a tool to fail to parse C headers. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 02af900354..b8ea36852b 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -11429,7 +11429,10 @@ man pages with practical examples.") ("ghc-text" ,ghc-text) ("gcc" ,gcc))) (arguments - `(#:tests? #f ;some tests fail because of syntax errors + `(;; XXX: Test failures are induced by a parse error in + ;; of glibc 2.28. + #:tests? #f + #:phases (modify-phases %standard-phases (add-before 'check 'set-cc @@ -11450,8 +11453,7 @@ man pages with practical examples.") (delete-file-recursively cc-dir) #t)))))) (home-page "https://github.com/haskell/c2hs") - (synopsis - "C->Haskell FFI tool that gives some cross-language type safety") + (synopsis "Create Haskell bindings to C libraries") (description "C->Haskell assists in the development of Haskell bindings to C libraries. It extracts interface information from C header files and generates Haskell code with foreign imports and marshaling. Unlike writing --=-=-=--