From patchwork Fri Sep 25 09:02:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Tarasievich X-Patchwork-Id: 24296 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B0F8627BBE9; Fri, 25 Sep 2020 17:09:27 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D02E627BBE8 for ; Fri, 25 Sep 2020 17:09:23 +0100 (BST) Received: from localhost ([::1]:55442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLqHi-00074Z-RP for patchwork@mira.cbaines.net; Fri, 25 Sep 2020 12:09:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLplU-0006hm-0m for guix-patches@gnu.org; Fri, 25 Sep 2020 11:36:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLplR-00075o-Vh for guix-patches@gnu.org; Fri, 25 Sep 2020 11:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLplR-0001zr-Ti for guix-patches@gnu.org; Fri, 25 Sep 2020 11:36:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43613] compiling 1.1.0 from sources on linux with guile 3 Resent-From: Yury Tarasievich Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Sep 2020 15:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43613 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 43613@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16010481477651 (code B ref -1); Fri, 25 Sep 2020 15:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Sep 2020 15:35:47 +0000 Received: from localhost ([127.0.0.1]:45110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLplB-0001zJ-GA for submit@debbugs.gnu.org; Fri, 25 Sep 2020 11:35:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:46166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLjcX-00062G-3U for submit@debbugs.gnu.org; Fri, 25 Sep 2020 05:02:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLjcW-0006vz-Cy for guix-patches@gnu.org; Fri, 25 Sep 2020 05:02:24 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:33886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLjcS-0006qV-1U for guix-patches@gnu.org; Fri, 25 Sep 2020 05:02:23 -0400 Received: by mail-lf1-x12d.google.com with SMTP id u8so1996637lff.1 for ; Fri, 25 Sep 2020 02:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=fWvbL8IagQS1jHeXm5DRGZ3GhGBJUhQKDybd+M2Viyk=; b=VNwjwKrCH0im18Z/JKJeejgW9vWHwDyEzwR86GvcO+W2cUoUVShLVH5zLbw/igpJwm sRBOxlFodefcFbWD0cH9IF6paMLovtGkx9IA5PZe+lMMJNsVNxGg5OltoZZ1Mpy2rfai 0nEVQm/cB/vwmnSE9Oop95Z6rJ+dvKD0X0Wc9mYwP4c/kIFjnm9lERkp7QPfJfMjTwRB GWlGy9Rz1qJ4HzS+JVeJ/a9KMm3rIUpPmLh3QwJm9Zq6bWUe24YceSSuNOzClZPFRe5Q Tz/hDBw/r4iUfw1v1icX2DAUweKf0hzdrX58JVKfCnrdMlmKmjnWJsfdYt3CY0JJPNi8 hB8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=fWvbL8IagQS1jHeXm5DRGZ3GhGBJUhQKDybd+M2Viyk=; b=SHUlekGpwr1zcFTPtmsAVAqluqBdv8kx3NMZOGv3Qfo7ZZMhnrriGBhbomGArnzTSh V6l5xalmL0+eJUgGcYviFBitSWUT1hnepx+cRdaHXl5r4Fy4XpDjGPI0qIbthSA+Ia2M yot778NtrS4TFiVGpW5VHUBXbOoZbze3VcVEZ7eH95eVI3Qk2rZX3l1KLo4kZnv1M72f GpOFMxjckhFUV2ukndLsJzFtlXo4MBbLCGqbu6tHHthGQx2rCmiL5PVaAfgkt6EVFBbc Bqf8uayv1Lgn9beV9Y7Hie2BAtYpFBiFprnTR2kdWJdSbv3q9b2GY8x1EsV95eElWo5P fwdA== X-Gm-Message-State: AOAM533DX7EkCWUVp9J1of9eaZ4WJEVXiJfiGJEYiXC4+CAC3CcpsVSc XMHFGRGCDkIpF1T6WJ00fUtnnd/hWrM= X-Google-Smtp-Source: ABdhPJyvbIMg9YDJshXdHSa3SqZic8EALFFnpWiOTNc2MyuQGd50zngwlWWve//u9uBEMRt7LYb4lg== X-Received: by 2002:ac2:5333:: with SMTP id f19mr1134512lfh.339.1601024537414; Fri, 25 Sep 2020 02:02:17 -0700 (PDT) Received: from sandys.from.by ([37.212.55.155]) by smtp.gmail.com with ESMTPSA id g63sm1763432lfd.28.2020.09.25.02.02.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Sep 2020 02:02:16 -0700 (PDT) From: Yury Tarasievich Message-ID: <27781955-6d6c-df8c-b648-1db140775993@gmail.com> Date: Fri, 25 Sep 2020 12:02:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 Content-Language: ru Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=yury.tarasievich@gmail.com; helo=mail-lf1-x12d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, LH_URI_DOM_IN_PATH=1.902, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 25 Sep 2020 11:35:44 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 25 Sep 2020 11:53:13 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello, Had an issue with compiling 1.1.0 from source on linux (64-bit slackware, almost current) with guile 3.0.4. First thing, it couldn't find guild with the default configure template. I had to add a kludge (configure.ac.diff, attached). Then, it wouldn't compile some files in guix/ subdir. The diagnostics went like this in each case: WARNING: (guix swh): `define-json-mapping' imported from both (guix json) and (json) WARNING: (guix swh): `define-json-mapping' imported from both (guix json) and (json) ice-9/eval.scm:293:34: error: define-json-mapping: unbound variable hint: Did you forget `(use-modules (json record))'? I took the compiler's suggestion and added '(use-modules (json record))'. Have no idea how that works. I'm attaching the patch for that compilation_define-json-mapping.diff. Hope that helps. -Yury --- guix/import/crate.scm.prev 2020-03-24 17:44:45.000000000 +0300 +++ guix/import/crate.scm 2020-09-24 23:16:07.076901808 +0300 @@ -52,6 +52,7 @@ ;; Crates. A crate is essentially a "package". It can have several ;; "versions", each of which has its own set of dependencies, license, ;; etc.--see below. +(use-modules (json record)) (define-json-mapping make-crate crate? json->crate (name crate-name) ;string --- guix/swh.scm.prev 2020-03-10 22:19:30.000000000 +0300 +++ guix/swh.scm 2020-09-24 23:11:45.910912646 +0300 @@ -251,6 +251,7 @@ docstring (call (swh-url components ...) json->value))))) +(use-modules (json record)) ;; (define-json-mapping make-origin origin? json->origin --- guix/cve.scm.prev 2019-10-23 17:40:23.000000000 +0300 +++ guix/cve.scm 2020-09-24 23:12:16.596911372 +0300 @@ -70,6 +70,7 @@ (define (string->date* str) (string->date str "~Y-~m-~dT~H:~M~z")) +(use-modules (json record)) (define-json-mapping cve-item cve-item? json->cve-item (cve cve-item-cve "cve" json->cve) ; --- guix/ci.scm.prev 2020-03-31 15:55:42.000000000 +0300 +++ guix/ci.scm 2020-09-24 23:08:53.074919818 +0300 @@ -52,6 +52,8 @@ ;;; ;;; Code: +(use-modules (json record)) + (define-json-mapping make-build build? json->build (id build-id "id") ;integer