From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Brielmaier Subject: bug#36811: Guix fails to build with libgc 8.0.4 Date: Tue, 19 Nov 2019 13:09:19 +0100 Message-ID: <7fa97933-fbb8-8cc1-0f6a-f67cb4436712@web.de> References: <154d15a4-2851-6cc3-16b1-b020e27e02e9@web.de> <87o8x9i87h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:53894) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iX2K5-0003wB-Ud for bug-guix@gnu.org; Tue, 19 Nov 2019 07:09:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iX2K0-0003V2-TD for bug-guix@gnu.org; Tue, 19 Nov 2019 07:09:33 -0500 In-Reply-To: <87o8x9i87h.fsf@gnu.org> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sender: "bug-guile" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36811@debbugs.gnu.org, bug-guix@gnu.org List-Id: bug-guix.gnu.org On 18.11.19 15:13, Ludovic Court=C3=A8s wrote: > To isolate the problem, how about: > > 1. Defining a Guix package for libgc 8.0.4; > > 2. Running =E2=80=9Cguix build guile --with-input=3Dlibgc@7=3Dlibgc@8= =E2=80=9D (or > defining a package along these lines). I did this and the build was fine as I expected. Guile builds fine against libgc-8. But building Guix with a guile-libgc8 goes wrong. I got now this little patch and try to build guix with: ./pre-inst-env guix build guix -K ``` diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm index 7196ffcd32..172833780f 100644 =2D-- a/gnu/packages/bdw-gc.scm +++ b/gnu/packages/bdw-gc.scm @@ -91,6 +91,19 @@ C or C++ programs, though that is not its primary goal.= ") (license (x11-style (string-append home-page "license.txt"))))) +(define-public libgc-8 + (package + (inherit libgc) + (version "8.0.4") + (name "libgc") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/ivmai/bdwgc/release= s" + "/download/v" version "/gc-" version ".tar.gz")) + (sha256 + (base32 + "1798rp3mcfkgs38ynkbg2p47bq59pisrc6mn0l20pb5iczf0ssj3")))))= ) + (define-public libgc/back-pointers (package (inherit libgc) diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm index 4419c48d1a..bc69488fa2 100644 =2D-- a/gnu/packages/guile.scm +++ b/gnu/packages/guile.scm @@ -250,6 +250,14 @@ without requiring the source code to be rewritten.") (variable "GUILE_LOAD_COMPILED_PATH") (files '("lib/guile/2.2/site-ccache"))))))) +(define-public guile-2.2-libgc8 + (package + (inherit guile-2.2) + (propagated-inputs + `(("libgc" ,libgc-8) + ,@(srfi-1:alist-delete "bdw-gc" + (package-propagated-inputs guile-2.2)))))) + (define-public guile-2.2/fixed ;; A package of Guile 2.2 that's rarely changed. It is the one used ;; in the `base' module, and thus changing it entails a full rebuild. diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 1daab4e879..d80e71749d 100644 =2D-- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -285,7 +285,7 @@ ("sqlite" ,sqlite) ("libgcrypt" ,libgcrypt) - ("guile" ,guile-2.2) + ("guile" ,guile-2.2-libgc8) ;; Some of the tests use "unshare" when it is available. ("util-linux" ,util-linux) ```