From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QmKjKLlKxmA4RQEAgWs5BA (envelope-from ) for ; Sun, 13 Jun 2021 20:13:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OI2FI7lKxmB5DAAAbx9fmQ (envelope-from ) for ; Sun, 13 Jun 2021 18:13:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BA73F15A31 for ; Sun, 13 Jun 2021 20:13:12 +0200 (CEST) Received: from localhost ([::1]:38244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsUbd-0000YH-Ph for larch@yhetil.org; Sun, 13 Jun 2021 14:13:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsUbW-0000Xz-Hg for bug-guix@gnu.org; Sun, 13 Jun 2021 14:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsUbW-00025Z-6y for bug-guix@gnu.org; Sun, 13 Jun 2021 14:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lsUbV-0006vd-Tz for bug-guix@gnu.org; Sun, 13 Jun 2021 14:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49006: MELPA importer uses the wrong source when called from CLI Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 13 Jun 2021 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49006 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49006@debbugs.gnu.org Received: via spool by 49006-submit@debbugs.gnu.org id=B49006.162360792826571 (code B ref 49006); Sun, 13 Jun 2021 18:13:01 +0000 Received: (at 49006) by debbugs.gnu.org; 13 Jun 2021 18:12:08 +0000 Received: from localhost ([127.0.0.1]:44350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsUae-0006uU-0t for submit@debbugs.gnu.org; Sun, 13 Jun 2021 14:12:08 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:44428 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsUab-0006tt-8M for 49006@debbugs.gnu.org; Sun, 13 Jun 2021 14:12:06 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1623607916; bh=QExOthFPLtVRfApU4KKq70mSvdezq5D4hvsAFIZadZM=; h=From:To:Subject:In-Reply-To:References:Date; b=sfiXyi+anVZkMommZohQzO5f5YSzWqAd3iraGuQSe307a3HSS76PUJhNSMgaPjk/h fL8nI/YqeptxmiJoaOIVqFQHCxaywI6mNP1soac1H6Ju7DmLICVd6drpo+JTwBHzGc y2om0FuN1vlZXsUsWr3BIpGZOLUGzc7iTCuhjXAY= In-Reply-To: <87fsxl91oh.fsf@yoctocell.xyz> References: <87fsxl91oh.fsf@yoctocell.xyz> Date: Sun, 13 Jun 2021 20:11:55 +0200 Message-ID: <87czsp8wic.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623607993; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=P145/c+w2iat6tiqsYb6xxjQWVmT3hIOkSBzwZJq+Cw=; b=kvGQ5HPF+oprsffIQboZdupd/EFcfo0X8qX0vTUkMU1UWVjxhfx0hF30/gE4x9wONajX2M Bpgc6rz/MQhXfe6iGF7v/OhIk/xbP53VLfwU53eFAu0e6lmdLDCNfebl4c7wLDOJX5INH1 PgZZyIzmJ8He1+AthEii6b6pm2/6nZhXJEhvTB+YJtLJFrc+W8DAfMcoDm9j8QEKfEB4Eh 4a4UJve0swbgWY7A0DT4UYxfeO0DJWnAiBfAa3LrX76C4rIuCDm/BQDz0ug41St5X95g4S 7JpdHD2CDkBfLklZN+YoEJUSZm9G86fvLkU0b2Svm3HSvNX8p/aHhtCN49G/QQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623607993; a=rsa-sha256; cv=none; b=L2BlixjqJ/Rhhz30R+Ke8tlC3kKQaBgc900ff04FoBTJe3u94agKgWntflO2g1+OvbHnYh rX2aPxLk1K9uO3x3pLf4ijokAXxd60NPY+eQDTWzs11yuhGKUVP+ovdPmz/SMSumQzbTXs 8cyASxyXFCwzMigONchBQ9GtE4Eovzk6WZy9ygey6KvKzdRC1zQ5KsMPn8lCD4Z7uLCdwu THrjmnPXeTvK7qBCtQHOPkYPDQMkUoWh3PEKd0z18iC8XLjRmUG/eB3Dh26rsl7pxO13Ha EBskqNsFLqIUefjDA4ZyeLtjqPS91Kc4LybAT6o8TzpZZyTZhBT/dLMN0MOqcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=sfiXyi+a; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=sfiXyi+a; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: BA73F15A31 X-Spam-Score: -3.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: pdOvTJvCp1cA --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Okay, so new findings: When the (guix import elpa) module has been compiled, the generated package definition uses =E2=80=98url-fetch=E2=80=99 to fetch the source. =2D-8<---------------cut here---------------start------------->8--- ~/src/guix [env]$ ./pre-inst-env guix import elpa -a melpa magit Starting download of /tmp/guix-file.US750W From=20https://melpa.org/packages/magit-20210609.2000.tar... =E2=80=A6609.2000.tar 1.7MiB 365KiB/s 00:05 [#############= #####] 100.0% (package (name "emacs-magit") (version "20210609.2000") (source (origin (method url-fetch) (uri (string-append "https://melpa.org/packages/magit-" version ".tar")) (sha256 (base32 "0pplizxy20i3i9zqm5kfjz4la93gpz8wwh1ybwdwngv5ks7vhdsr")))) (build-system emacs-build-system) (propagated-inputs `(("emacs-dash" ,emacs-dash) ("emacs-git-commit" ,emacs-git-commit) ("emacs-magit-section" ,emacs-magit-section) ("emacs-transient" ,emacs-transient) ("emacs-with-editor" ,emacs-with-editor))) (home-page "https://github.com/magit/magit") (synopsis "A Git porcelain inside Emacs.") (description "Magit is a text-based Git user interface that puts an unmatched focus on streamlining workflows. Commands are invoked using short mnemonic key sequences that take the cursor=E2=80=99s position in the highly actiona= ble interface into account to provide context-sensitive behavior. With Magit you can do nearly everything that you can do when using Git on the command-line, but at greater speed and while taking advantage of advanced features that previously seemed too daunting to use on a daily basis. Many users will find that by using Magit they can become more effective Git user. ") (license #f)) =2D-8<---------------cut here---------------end--------------->8--- However, if the (guix import elpa) module hasn=E2=80=99t been compiled, say= I just add a dummy comment to it, then the generated package definition uses =E2=80=98git-fetch=E2=80=99 instead of =E2=80=98url-fetch=E2=80=99. N= otice the messages emitted by Guile. =2D-8<---------------cut here---------------start------------->8--- ~/src/guix [env]$ ./pre-inst-env guix import elpa -a melpa magit ;;; note: source file /home/yoctocell/src/guix/guix/import/elpa.scm ;;; newer than compiled /home/yoctocell/src/guix/guix/import/elpa.go ;;; note: source file /home/yoctocell/src/guix/guix/import/elpa.scm ;;; newer than compiled /home/yoctocell/.config/guix/current/lib/guil= e/3.0/site-ccache/guix/import/elpa.go ;;; note: source file /home/yoctocell/src/guix/guix/import/elpa.scm ;;; newer than compiled /home/yoctocell/.guix-home/profile/lib/guile/= 3.0/site-ccache/guix/import/elpa.go ;;; note: source file /home/yoctocell/src/guix/guix/import/elpa.scm ;;; newer than compiled /home/yoctocell/.config/guix/current/lib/guil= e/3.0/site-ccache/guix/import/elpa.go ;;; note: source file /home/yoctocell/src/guix/guix/import/elpa.scm ;;; newer than compiled guix/import/elpa.go ;;; note: source file /home/yoctocell/src/guix/guix/import/elpa.scm ;;; newer than compiled /home/yoctocell/.cache/guile/ccache/3.0-LE-8-= 4.5/home/yoctocell/src/guix/guix/import/elpa.scm.go (package (name "emacs-magit") (version "20210609.2000") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/magit/magit.git") (commit "71f57c5582448be81b02ba53750dd2ea39ed0eaf"))) (sha256 (base32 "16ip50a46nk6xxj8qkpf6rmp28zjc1bhyjj9bfgibim8ywj87dlq")))) (build-system emacs-build-system) (propagated-inputs `(("emacs-dash" ,emacs-dash) ("emacs-git-commit" ,emacs-git-commit) ("emacs-magit-section" ,emacs-magit-section) ("emacs-transient" ,emacs-transient) ("emacs-with-editor" ,emacs-with-editor))) (arguments '(#:include '("^lisp/magit$" "^lisp/magit[^/]+.el$" "^lisp/git-rebase.el$" "^Documentation/magit.texi$" "^Documentation/AUTHORS.md$" "^LICENSE$") #:exclude '("^lisp/magit-libgit.el$" "^lisp/magit-section.el$"))) (home-page "https://github.com/magit/magit") (synopsis "A Git porcelain inside Emacs.") (description "Magit is a text-based Git user interface that puts an unmatched focus on streamlining workflows. Commands are invoked using short mnemonic key sequences that take the cursor=E2=80=99s position in the highly actiona= ble interface into account to provide context-sensitive behavior. With Magit you can do nearly everything that you can do when using Git on the command-line, but at greater speed and while taking advantage of advanced features that previously seemed too daunting to use on a daily basis. Many users will find that by using Magit they can become more effective Git user. ") (license #f)) =2D-8<---------------cut here---------------end--------------->8--- Maybe there is some problem with Guile itself? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmDGSmsVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5b8oP+wTVXlFENDq0VOXR5U3z/nCrvHFe 0XASR77E63n3hHaH+4VEnASHHnGBI/KmMwFtwSLU1MXfC4tQ7dPEDrBsOqm0QfbB HnVIjdo+DKf7+jSQFAwKD067F5Mts5+92lZuveanmd2MtLHGK5iYHJ0xkZOjW/p4 fulftakDSWNbG8JdC9nPQgbx26IeFR+0kX3Y8vkuzcTOor11HE98Bp4bzBzo+yZ3 Bl17dQY35VLFmkfXCdKDlx6uxLOxWR9XxMbADKznlegxy6HTU+zB2X5PIOnhYjoy jt275h0aY0sHKHpVG5HUGk+wHQlcHetROXNRz2Ri0yj1LOhCAq7ZtMfmbRWEQwrx SZ5ZwVEC1kfHrR9auUm6C3eMTOJfYsV+AQpasUfDFpYTrIKr9OF0eiQoaPVcq1MM Zfpa7rYRO9xcHtHviJIA0W0WJXVOyX5rSOuOhPZyjmBCJxSNj5FT7LoWc7pQjwzS abJHwpjBeitHdH/+9amqqtZMqcd6e1J0uOq/fxniaL4GWkiURHDjXiMkvGlgqYgC MlQv+dFZVSMcXJnu2Mr5XT+eGvHZrm+b3vOh6O47ayAxYAuY43dWc6UOtMbZ0Mrx eIOYFCgR+nIjwln7MNwRrMGxzx+C5McF0FRO4Yfc9y3XpmJyVkbiByi58VBhuKDV FmmW27NAcBAZLKXh =JWgp -----END PGP SIGNATURE----- --=-=-=--