GNU bug report logs - #42543
lint failure for packages on load path specified with -L

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Jack Hill <jackhill@HIDDEN>; Keywords: patch; dated Sun, 26 Jul 2020 04:21:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Added tag(s) patch. Request was from zimoun <zimon.toutoune@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 42543 <at> debbugs.gnu.org:


Received: (at 42543) by debbugs.gnu.org; 27 Jul 2020 21:54:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 17:54:20 2020
Received: from localhost ([127.0.0.1]:55910 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k0B4e-0006BW-B6
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2020 17:54:20 -0400
Received: from mail-wr1-f42.google.com ([209.85.221.42]:39236)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1k0B4b-0006BL-OA
 for 42543 <at> debbugs.gnu.org; Mon, 27 Jul 2020 17:54:18 -0400
Received: by mail-wr1-f42.google.com with SMTP id a5so6335015wrm.6
 for <42543 <at> debbugs.gnu.org>; Mon, 27 Jul 2020 14:54:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:in-reply-to:references:date:message-id:mime-version
 :content-transfer-encoding;
 bh=aaWrwmh4SBhlQoGIAj2lTnmAL+cpT+XtEc2k2aaNEmA=;
 b=bfN6bVQsMxYoOJ6s1RQNpcw+5xVBU9RvGGzCqk2UP0suYAvanwLATd7TnbJ3QwwqDQ
 2EprMnf6D2ZAYx8Ra6XBWB9hBNE1G8UsTl7t5W0zmi676BdiRL4mdbwczC4ahtcqU/mC
 TT1l0redcWSPgSIjR55OPeWbrMtu5STnWtMj/fW194Zar1aMa8XDgbbS8z7y/iQM1+N/
 IwFhR9yHJX3Lxn7Qmwgzy6wyvG8XUVZSDuwLKofjj2v+EiLFblAWQg+XihR/gS1eGJ1K
 gHsU8j71Rz+l60O7eyB9gIUs8Mxy5eIqveYg4c/97DXll1rri8AkzJ7HBtGHutTMFB2R
 LDrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:in-reply-to:references:date
 :message-id:mime-version:content-transfer-encoding;
 bh=aaWrwmh4SBhlQoGIAj2lTnmAL+cpT+XtEc2k2aaNEmA=;
 b=b2Cw6cqanpX8oSyAFtoOBK8RgRJuNqYCiuthWwrBa3pXhppr0XIVTNgDiDF7IEoCkW
 Lg5Ts6sKj2UHBcvtYlI6d0NjqWlVIZxW4nExtGrRb7oc84wo/elvt6sEm1bDL0hvD1Zg
 NnoiqWdlZ8kcj07/FbWauEZ0xWajJjbYxxe6BSXr0g8ixWOhKft7xlOs2uXpF1+iQjYU
 QXnBSNmkNSq37JwzOeKEfAYl7Ows9n3kBtGJXj86SBuQYjkFaHLy7peLF3xNQ7ItgCY4
 3ZM9DxmmnRp082W8eaRw3m0QOejSeKVgbvuBLbedP+/bN/V9Je2pwIDKSjszKC0hMMzJ
 p0VQ==
X-Gm-Message-State: AOAM530O77eFdAKtR7RS9ARWhvPEkY8rk5vHcI3/4aFejZmeL4x1spjz
 rVQiSPUTt3PdepUs2KliROOmzWMR
X-Google-Smtp-Source: ABdhPJw2/byPVVgs/5IudX2ko1C/jTwIw1uMYcYcCvjnBgFLPiyB3Y32zK5ivSqNpUVlCnSwmGpxcQ==
X-Received: by 2002:adf:e504:: with SMTP id j4mr13520255wrm.205.1595886851497; 
 Mon, 27 Jul 2020 14:54:11 -0700 (PDT)
Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id l81sm1174219wmf.4.2020.07.27.14.54.10
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 27 Jul 2020 14:54:10 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: Jack Hill <jackhill@HIDDEN>, 42543 <at> debbugs.gnu.org
Subject: Re: bug#42543: lint failure for packages on load path specified with
 -L
In-Reply-To: <alpine.DEB.2.21.2007262318180.4809@HIDDEN>
References: <alpine.DEB.2.21.2007260012240.4809@HIDDEN>
 <alpine.DEB.2.21.2007262318180.4809@HIDDEN>
Date: Mon, 27 Jul 2020 23:54:10 +0200
Message-ID: <86365c1v5p.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42543
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dear,

The issue was in the =E2=80=9Cformatting=E2=80=9D and =E2=80=9Csource=E2=80=
=9D checkers, something
inconsistent with other parts (see =E2=80=9Csearch-path %load-path=E2=80=9D=
).

Therefore, =E2=80=9C--load-path=3Dpath/to/modules=E2=80=9D is now =E2=80=99=
canonicalize-path=E2=80=99,
directly in =E2=80=9C(guix scripts build)%standard-build-options=E2=80=9D f=
rom where the
other load-path options derive.

See patch http://issues.guix.gnu.org/42543#2


All the best,
simon




Information forwarded to bug-guix@HIDDEN:
bug#42543; Package guix. Full text available.

Message received at 42543 <at> debbugs.gnu.org:


Received: (at 42543) by debbugs.gnu.org; 27 Jul 2020 21:48:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 17:48:20 2020
Received: from localhost ([127.0.0.1]:55890 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k0Ayp-00061s-NZ
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2020 17:48:19 -0400
Received: from mail-wr1-f43.google.com ([209.85.221.43]:39965)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1k0Ayj-00061H-AM
 for 42543 <at> debbugs.gnu.org; Mon, 27 Jul 2020 17:48:13 -0400
Received: by mail-wr1-f43.google.com with SMTP id l2so5745600wrc.7
 for <42543 <at> debbugs.gnu.org>; Mon, 27 Jul 2020 14:48:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=gF+AQphtqhQZ6/cs+tYhef/Q0jckO/a1JgyGt1qyCi0=;
 b=S+eAK6CITlOpQSYwLoONdwgNVBarN6cOii+qSZ7NoQrHdT8P+h6rmt10+u6oDCHIDQ
 v5ArqtZuSlfahrSTSuu7D9MtJyHmnU1NALmGkUGqCnLHTSK+Gn5up5Iasa2v57rN3qHU
 QRX686Rh5AllqjE91CpRVhwEILEIbytGbHdOIXsqWQ1W8LQ+kLFLWUdJVeIrV7FvPiTj
 iS68/ymMU/natLmIC9/8dbkl1gjR4eL4QhThXvSctBMsJ6OyxxAhq8ENXj7J1bw/Ku1c
 SHVI6qqbfdqRRC5YKQRSCwvJsH+zMCx7+LlzydN5DWcqo/o/t6L2DuQe5FzjuytXImiq
 5lBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=gF+AQphtqhQZ6/cs+tYhef/Q0jckO/a1JgyGt1qyCi0=;
 b=U9K5E9elJfwtLgc8a0IRMeK3+WbhmP3YFcX5mdS/uhWNu7rCZeT7XTaxNcEcS4V2Cj
 /eswvn0R4gYQbmN8xTUAmlfT/3tu9FUl5/W6MMs42tbKWnothniwd2hlj4i7A9zD/rfg
 P0ZriQAAsueA7lyWrPWvIVXEgbQIkmUFptBDBWbuOw99dfqvmJeYwMdswEOqlrXApIAO
 Wn7LzMfHDnRawDrHwy0z3LLl4LM+l4O+WlqzykixVv6AQAiddWsEvz63U6m85Zf+Qg7y
 FR8pRucuN7uPkxUoBOktL45I3FUWGb7MhzC5MKIAA5zus9kD6xM7/SEsriaUhIgYV5gu
 ulxw==
X-Gm-Message-State: AOAM530OXs41MfkMviN4yw9On3TQFb8OqrYOKUElJkhws57QFK2wgeBd
 XCpJktcUPsdg+rQinKgJd90n1hLP
X-Google-Smtp-Source: ABdhPJxhlmJLRf2TF2kpW+fmWOdeKDHD6Tj6ESAdNPcfgqrPELV1Z1zH697XtoYCL+IrKAnXZHOWeg==
X-Received: by 2002:adf:e411:: with SMTP id g17mr18097380wrm.77.1595886487296; 
 Mon, 27 Jul 2020 14:48:07 -0700 (PDT)
Received: from lili.univ-paris-diderot.fr
 ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id g25sm1024388wmh.35.2020.07.27.14.48.06
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 27 Jul 2020 14:48:06 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: 42543 <at> debbugs.gnu.org
Subject: [PATCH 2/2] scripts: repl: Canonicalize 'load-path' option.
Date: Mon, 27 Jul 2020 23:47:54 +0200
Message-Id: <20200727214754.14297-3-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.26.2
In-Reply-To: <20200727214754.14297-1-zimon.toutoune@HIDDEN>
References: <20200727214754.14297-1-zimon.toutoune@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42543
Cc: zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* guix/scripts/repl.scm: Use (guix scripts build) '%standard-build-options' to
deal with 'load-path' option.
---
 guix/scripts/repl.scm | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index 0ea9c3655c..59edb543d1 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -21,6 +21,7 @@
 (define-module (guix scripts repl)
   #:use-module (guix ui)
   #:use-module (guix scripts)
+  #:use-module ((guix scripts build) #:select (%standard-build-options))
   #:use-module (guix repl)
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-26)
@@ -57,12 +58,9 @@
         (option '(#\q) #f #f
                 (lambda (opt name arg result)
                   (alist-cons 'ignore-dot-guile? #t result)))
-        (option '(#\L "load-path") #t #f
-                (lambda (opt name arg result)
-                  ;; XXX: Imperatively modify the search paths.
-                  (set! %load-path (cons arg %load-path))
-                  (set! %load-compiled-path (cons arg %load-compiled-path))
-                  result))))
+        (find (lambda (option)
+                (member "load-path" (option-names option)))
+              %standard-build-options)))
 
 
 (define (show-help)
-- 
2.26.2





Information forwarded to bug-guix@HIDDEN:
bug#42543; Package guix. Full text available.

Message received at 42543 <at> debbugs.gnu.org:


Received: (at 42543) by debbugs.gnu.org; 27 Jul 2020 21:48:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 17:48:19 2020
Received: from localhost ([127.0.0.1]:55888 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k0Aym-00061n-0V
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2020 17:48:19 -0400
Received: from mail-wm1-f66.google.com ([209.85.128.66]:50700)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1k0Ayh-00061F-DW
 for 42543 <at> debbugs.gnu.org; Mon, 27 Jul 2020 17:48:11 -0400
Received: by mail-wm1-f66.google.com with SMTP id c80so15435870wme.0
 for <42543 <at> debbugs.gnu.org>; Mon, 27 Jul 2020 14:48:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=0ZcefAcIxvsW8NuQPJINH56XwNj6hYsoSlfWGPupQtM=;
 b=AnQ419y8g9jRBMym3ngiPJejkmT1a8JDj28ULf1aWNwUlNI0JBWYsHLRF85WdWUgqO
 ga/u6pk2Js4xt+ikiiIQyXTYb/gxFapUMABtG1kioASRTvDrPG3Vyws79yhN5QN0+ag5
 XY1k9mv2xUzpJjnn4ml2ZIS8zmJKgf10uzAL6/gVs8AI75PTzj3PQqwi/U0OAQOH8aNa
 UjfpRNiMb5EcoK+4UPuS1sA3sLNIbw86HsILZ4ichIgI5k8H82lQ1oWVMLmBufihpf8y
 BrAGbCAi6Xomcmz4S22TYIeS7iIFCc3/PHpu+ADe6Tptw5hK4eyAblVjmdExMJjzF0ib
 FRtg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=0ZcefAcIxvsW8NuQPJINH56XwNj6hYsoSlfWGPupQtM=;
 b=D3XIAnfNV+h+gvnK/zT/fnl87RyO/fNmVTUeQSzUHaKQI5Jp1orK1rJPJSoMHTlc/R
 KZh0h8sItTFBKyQF7eJeU8hwKR6pFfsrNh6qxH2p50jBNbqSHIEE+Zk0pb2W+nOq5Jjc
 Fh/COnSdxsurQY9/Pl6WYtOXVX25gzKCtk/7Eyued/N1AlMHV5UUvuYbjlmG7POfpksQ
 xDHzehnfZA0yFlbDeyFzWkVBgz3Q8GsZmTGPQfhXyoCBs1EDzI2mnRdNgNn4xySTihZv
 EFK0sfppJ0PzFeVYPDuGvV1lEYYtx+7oGzqtqrKtb9ZhTDJrWREUTgalBp78BhFPYaS5
 c2Jg==
X-Gm-Message-State: AOAM533in0ym+3nuGVJ1ne/0tJ0/sSL+qemkSNE10/Eq6JS/2J3flTCn
 ISmpm5E/dYRkXjw17eIoThLKm831
X-Google-Smtp-Source: ABdhPJyjoRWsf0d+wnFP+KNsL7fDZWDzkf/veTEy4NS1Xs8SJLkCwRgEr7fbhmM/83MpocG60ZRFzQ==
X-Received: by 2002:a1c:e382:: with SMTP id a124mr991612wmh.96.1595886485531; 
 Mon, 27 Jul 2020 14:48:05 -0700 (PDT)
Received: from lili.univ-paris-diderot.fr
 ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id g25sm1024388wmh.35.2020.07.27.14.48.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 27 Jul 2020 14:48:04 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: 42543 <at> debbugs.gnu.org
Subject: [PATCH 1/2] scripts: build: Canonicalize 'load-path' option.
Date: Mon, 27 Jul 2020 23:47:53 +0200
Message-Id: <20200727214754.14297-2-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.26.2
In-Reply-To: <20200727214754.14297-1-zimon.toutoune@HIDDEN>
References: <20200727214754.14297-1-zimon.toutoune@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42543
Cc: zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Fixes <https://bugs.gnu.org/42543>.
Reported by Jack Hill <jackhill@HIDDEN>.

* guix/scripts/build.scm (%standard-build-options): Canonicalize 'load-path'.
---
 guix/scripts/build.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm
index 8ff2fd1910..f41221dd43 100644
--- a/guix/scripts/build.scm
+++ b/guix/scripts/build.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2013 Mark H Weaver <mhw@HIDDEN>
 ;;; Copyright © 2020 Marius Bakke <mbakke@HIDDEN>
 ;;; Copyright © 2020 Ricardo Wurmus <rekado@HIDDEN>
+;;; Copyright © 2020 Simon Tournier <zimon.toutoune@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -568,10 +569,11 @@ talking to a remote daemon\n")))
   (list (option '(#\L "load-path") #t #f
                 (lambda (opt name arg result . rest)
                   ;; XXX: Imperatively modify the search paths.
-                  (%package-module-path (cons arg (%package-module-path)))
-                  (%patch-path (cons arg (%patch-path)))
-                  (set! %load-path (cons arg %load-path))
-                  (set! %load-compiled-path (cons arg %load-compiled-path))
+                  (let ((path (canonicalize-path arg)))
+                    (%package-module-path (cons path (%package-module-path)))
+                    (%patch-path (cons path (%patch-path)))
+                    (set! %load-path (cons path %load-path))
+                    (set! %load-compiled-path (cons path %load-compiled-path)))
 
                   (apply values (cons result rest))))
         (option '(#\K "keep-failed") #f #f

base-commit: 7b58d009a952e0c36446a0a5d06582f1e9822bb6
-- 
2.26.2





Information forwarded to bug-guix@HIDDEN:
bug#42543; Package guix. Full text available.

Message received at 42543 <at> debbugs.gnu.org:


Received: (at 42543) by debbugs.gnu.org; 27 Jul 2020 21:48:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 27 17:48:12 2020
Received: from localhost ([127.0.0.1]:55885 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k0Ayh-00061S-KY
	for submit <at> debbugs.gnu.org; Mon, 27 Jul 2020 17:48:11 -0400
Received: from mail-wm1-f50.google.com ([209.85.128.50]:36395)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1k0Ayf-00061C-EN
 for 42543 <at> debbugs.gnu.org; Mon, 27 Jul 2020 17:48:10 -0400
Received: by mail-wm1-f50.google.com with SMTP id 3so9247864wmi.1
 for <42543 <at> debbugs.gnu.org>; Mon, 27 Jul 2020 14:48:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=WmPdaoBKI6M00yw2qrX8KK1qpH+q71ukHlBlBvzp5Lc=;
 b=qwwo5v6urLLF4+Ck11bffIfZ48bRC75GgJ/7WWpVrqRHGX3Zv/rS45scn9Ko2z77ar
 MuZnYySZTsAaVBCbJ2smzfG4kdzChzkrcvC8VYTXkaQZlddzbXpsIVxRgw2G8MGkN6Dz
 r65a5+ieqK5r/QES02yQ5rx/hrMGSpKrIgDKdaJUE21pDa502ekZVwWErvtA+1iN2h6n
 EMmTFBtKOZtVroyAkV8AjTa54BIembch85waAAYWYNIjd+j36pIt0xjyD60F8uUd3lzV
 mEfmwp6iH30MGqqGgW4Rk2d0njqOX1DK1JodHztz4SviwKhR6BNYuinUDLiN6Sbhdlkm
 vGlQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=WmPdaoBKI6M00yw2qrX8KK1qpH+q71ukHlBlBvzp5Lc=;
 b=TfT13nu8lBxzcRwTi9kTJQKRhe7fK5+sgXbavjYPxsKrf9XwFJr70AqNlp0fkG4BmK
 GH8KoXcqtDCEkwAWknjkIQZ19jPLeMUMuGhEtBDsqjuY1oeKPQc+Wo8NTerWqBiqbJrL
 n3hxgu98YWOHAy0pBB7IQ1FsfdmVZ76YARfHbWDRKxU9x6Bt4y3iJSoQNJR4js/eMd9S
 4wjlGYwh3sIpNBMPF0T0dxO5RpfYGv3A8KUQt+1Me/kEANMVqXFgNm+RAZDauk1WxBPw
 doTy4xw5X27Fc/iJ4ahekhAi2S9SOtzFhaXGwqk/Y1Brs3cvFD3Bo7LPUZM04tD3V52k
 I8cQ==
X-Gm-Message-State: AOAM531BryBgMwzGNCDq6jQ5Y/jnTsSN0iy41vP3k3o3XUSOGfqRXtyM
 DXPDkEUjWS0ShVRjYv8Z3fl9bflW
X-Google-Smtp-Source: ABdhPJzcbncVTIpHowt0Ji12x1fXQk7dG/xym8Vr82o7Rp3cxUt8v3aTq8wrAsFIl8P8vV+BNOxx5A==
X-Received: by 2002:a1c:67d4:: with SMTP id b203mr1068453wmc.8.1595886483169; 
 Mon, 27 Jul 2020 14:48:03 -0700 (PDT)
Received: from lili.univ-paris-diderot.fr
 ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id g25sm1024388wmh.35.2020.07.27.14.48.02
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 27 Jul 2020 14:48:02 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: 42543 <at> debbugs.gnu.org
Subject: [PATCH 0/2] Canonicalize 'load-path' option
Date: Mon, 27 Jul 2020 23:47:52 +0200
Message-Id: <20200727214754.14297-1-zimon.toutoune@HIDDEN>
X-Mailer: git-send-email 2.26.2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42543
Cc: zimoun <zimon.toutoune@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dear,

These 2 patches 'canonicalize-path' the command-line argument.  I have not
enough power to burn CPU and run all the test suite.  But from my local test,
it seems ok.

The second patch “improves“ the 'load-path' option by re-using
'%standard-build-options'; which means importing (guix scripts build).  It
does not appear to me an issue and probably something historical and
forgotten. Otherwise, please tell me.


All the best,
simon

zimoun (2):
  scripts: build: Canonicalize 'load-path' option.
  scripts: repl: Canonicalize 'load-path' option.

 guix/scripts/build.scm | 10 ++++++----
 guix/scripts/repl.scm  | 10 ++++------
 2 files changed, 10 insertions(+), 10 deletions(-)


base-commit: 7b58d009a952e0c36446a0a5d06582f1e9822bb6
-- 
2.26.2





Information forwarded to bug-guix@HIDDEN:
bug#42543; Package guix. Full text available.

Message received at 42543 <at> debbugs.gnu.org:


Received: (at 42543) by debbugs.gnu.org; 27 Jul 2020 03:36:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 26 23:36:21 2020
Received: from localhost ([127.0.0.1]:53680 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jztw5-0001mo-4s
	for submit <at> debbugs.gnu.org; Sun, 26 Jul 2020 23:36:21 -0400
Received: from minsky.hcoop.net ([104.248.1.95]:54238)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jackhill@HIDDEN>) id 1jztw2-0001mb-Rv
 for 42543 <at> debbugs.gnu.org; Sun, 26 Jul 2020 23:36:20 -0400
Received: from marsh.hcoop.net ([45.55.52.66])
 by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <jackhill@HIDDEN>)
 id 1jztvx-0002Kl-BS
 for 42543 <at> debbugs.gnu.org; Sun, 26 Jul 2020 23:36:13 -0400
Date: Sun, 26 Jul 2020 23:36:12 -0400 (EDT)
From: Jack Hill <jackhill@HIDDEN>
X-X-Sender: jackhill@HIDDEN
To: 42543 <at> debbugs.gnu.org
Subject: Re: lint failure for packages on load path specified with -L
In-Reply-To: <alpine.DEB.2.21.2007260012240.4809@HIDDEN>
Message-ID: <alpine.DEB.2.21.2007262318180.4809@HIDDEN>
References: <alpine.DEB.2.21.2007260012240.4809@HIDDEN>
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42543
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

I believe that this problem is in the formatting checker. As I understand 
it, that checker reads the actual sorece file. With that information, I 
tried re-running link the the full path passed to -L, and it works as 
expected:

guix lint -L /home/jackhill/lint-test my-hello

passing just the relative path, i.e. ./lint-test does not work. Passing 
the full path also changes the local reported by guix show.

It seems like canonicalizing the locad path is the right thing to do.

Thoughts?
Jack




Information forwarded to bug-guix@HIDDEN:
bug#42543; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Jul 2020 04:20:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 26 00:20:29 2020
Received: from localhost ([127.0.0.1]:51543 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jzY9E-0005SH-OQ
	for submit <at> debbugs.gnu.org; Sun, 26 Jul 2020 00:20:29 -0400
Received: from lists.gnu.org ([209.51.188.17]:45186)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jackhill@HIDDEN>) id 1jzY99-0005S5-Lk
 for submit <at> debbugs.gnu.org; Sun, 26 Jul 2020 00:20:27 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34014)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jackhill@HIDDEN>)
 id 1jzY99-0001rm-EA
 for bug-guix@HIDDEN; Sun, 26 Jul 2020 00:20:23 -0400
Received: from minsky.hcoop.net ([104.248.1.95]:40586)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jackhill@HIDDEN>)
 id 1jzY95-0004Uk-Sp
 for bug-guix@HIDDEN; Sun, 26 Jul 2020 00:20:23 -0400
Received: from marsh.hcoop.net ([45.55.52.66])
 by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <jackhill@HIDDEN>)
 id 1jzY94-0006YZ-Da
 for bug-guix@HIDDEN; Sun, 26 Jul 2020 00:20:18 -0400
Date: Sun, 26 Jul 2020 00:20:18 -0400 (EDT)
From: Jack Hill <jackhill@HIDDEN>
X-X-Sender: jackhill@HIDDEN
To: bug-guix@HIDDEN
Subject: lint failure for packages on load path specified with -L
Message-ID: <alpine.DEB.2.21.2007260012240.4809@HIDDEN>
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="925712948-1187974230-1595737218=:4809"
Received-SPF: pass client-ip=104.248.1.95; envelope-from=jackhill@HIDDEN;
 helo=minsky.hcoop.net
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/26 00:20:18
X-ACL-Warn: Detected OS   = Linux 3.11 and newer
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--925712948-1187974230-1595737218=:4809
Content-Type: text/plain; format=flowed; charset=UTF-8
Content-Transfer-Encoding: 8BIT

Hi Guix,

I'm running guix from commit 30aa5dd7e7180d163d409b080bf89e8a15a5ba4d. 
I've created a package in local directory lint-test. `guix lint` errors 
when processing this package, but other guix commands like build and show 
work as expected. A session with these commands:

```
jackhill@alperton ~$ guix lint -L lint-test my-hello
Backtrace:y-hello@HIDDEN [formatting]...
            8 (primitive-load "/home/jackhill/.config/guix/current/bi…")
In guix/ui.scm:
   1974:12  7 (run-guix-command _ . _)
In ice-9/boot-9.scm:
   1736:10  6 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
    631:22  5 (thunk)
In srfi/srfi-1.scm:
     634:9  4 (for-each #<procedure 7f40c0484020 at guix/scripts/lin…> …)
In guix/scripts/lint.scm:
      60:4  3 (run-checkers _ _ #:store _)
In srfi/srfi-1.scm:
     634:9  2 (for-each #<procedure 7f40b2ab53f0 at guix/scripts/lin…> …)
     241:2  1 (for-each _ _)
In ice-9/boot-9.scm:
   1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure for-each: Wrong type argument: #f
jackhill@alperton ~$ guix build -L lint-test my-hello
/gnu/store/h21bncim3hshjpfbs1dn4kvg1ri6zb7z-my-hello-2.10
jackhill@alperton ~$ guix show -L lint-test my-hello
name: my-hello
version: 2.10
outputs: out
systems: x86_64-linux i686-linux
dependencies: 
location: lint-test/my-hello.scm:8:2
homepage: https://www.gnu.org/software/hello/
license: GPL 3+
synopsis: Hello, GNU world: An example GNU package 
description: GNU Hello prints the message "Hello, world!" and then
+ exits.  It serves as an example of standard GNU coding practices.  As
+ such, it supports command-line arguments, multiple languages, and so on.
```

my-hello.scm looks like:

```
(define-module (my-hello)
   #:use-module (guix build-system gnu)
   #:use-module (guix download)
   #:use-module (guix licenses)
   #:use-module (guix packages))

(define-public my-hello
   (package
     (name "my-hello")
     (version "2.10")
     (source (origin
               (method url-fetch)
               (uri (string-append "mirror://gnu/hello/hello-" version
                                   ".tar.gz"))
               (sha256
                (base32
                 "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i"))))
     (build-system gnu-build-system)
     (synopsis "Hello, GNU world: An example GNU package")
     (description
      "GNU Hello prints the message \"Hello, world!\" and then exits.  It
serves as an example of standard GNU coding practices.  As such, it supports
command-line arguments, multiple languages, and so on.")
     (home-page "https://www.gnu.org/software/hello/")
     (license gpl3+)))
```

Best,
Jack
--925712948-1187974230-1595737218=:4809--




Acknowledgement sent to Jack Hill <jackhill@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#42543; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 27 Jul 2020 23:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.