From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2CxdEc37MGX9CgAAG6o9tA:P1 (envelope-from ) for ; Thu, 19 Oct 2023 11:50:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2CxdEc37MGX9CgAAG6o9tA (envelope-from ) for ; Thu, 19 Oct 2023 11:50:05 +0200 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 1F08E4CE41 for ; Thu, 19 Oct 2023 11:50:05 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=J4wrlMnF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697709005; a=rsa-sha256; cv=none; b=pH59OtMNtZk3bF+YJXkkY+qwAzU55+wE5IgCpuiSDWfz/tCuc7cF2z1nHHgHS0vqT3xY2A ghI1tEFWiVVbkdhiMZR3CNTHZIOopCdyjPMQ5Ii2d6KId9tU+XXHrlkm0XN6euTx980xYE SJpIUkLDxOSp2HQOCp8/NOh88lsKPiS9UTtAHoq0iZ0+zgLoFuzGFH2E9j7mL4vEurGyAy xtW6XzktnaF4lKHdNy0taVOJTvk02l0KW9+EDVzzZHD2DUZDTadRgN13CuMGauSGRtPsFz GUIpFhfNHUOdS0hw6LheW+Cb+qyUUobnS9L/n5X4RTiEpirxJa+Rxh0xE9Y+vg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=J4wrlMnF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697709005; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=FK8j/HebUBCpyvei+0G6HYglX7ZvDVO3zcPkwwciKuc=; b=mEoEDvF3DFj9KRqqpWBvreT2e+oxZexyEHKczPFUopuP0ewiNQc9Tl6rJWw6SdPh+i71Yl CMjaQFfC2cgpQdtFdpTY3VZ3lg2sFyy0Rs8KkAmw6TaBJYl8KiiP1VpyG/eOI20c5Txudd cXgUf8IFnGhfNeB3WA2Rd/Ovp7jH12EFWWhTeUG6sYRBcWd2P1hzDqdE6wDm9UkPo7UpP8 5o3hxyidRXU8fRaRwPZeBLEXdByzjWxdray/CTF395mwV+EoKBzNNIw6M9HtUpMFRJCLWA J3RR50h1swzEWivqitV0iCIEGjL31WWlaZy3Bilf6T+JxUT2FYetGy/D3hbLNg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtPeu-0000O6-UG; Thu, 19 Oct 2023 05:49:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtPeq-0000Ft-EN for bug-guix@gnu.org; Thu, 19 Oct 2023 05:49:36 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtPeq-0004qc-5R for bug-guix@gnu.org; Thu, 19 Oct 2023 05:49:36 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtPfG-0003Vx-KE for bug-guix@gnu.org; Thu, 19 Oct 2023 05:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66633: (no subject) Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 19 Oct 2023 09:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66633 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 66633@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169770895913424 (code B ref -1); Thu, 19 Oct 2023 09:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Oct 2023 09:49:19 +0000 Received: from localhost ([127.0.0.1]:35860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtPeY-0003UL-MJ for submit@debbugs.gnu.org; Thu, 19 Oct 2023 05:49:19 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtPeV-0003TO-Cd for submit@debbugs.gnu.org; Thu, 19 Oct 2023 05:49:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtPdz-0007IE-6r for bug-guix@gnu.org; Thu, 19 Oct 2023 05:48:43 -0400 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtPdx-0004gH-1J for bug-guix@gnu.org; Thu, 19 Oct 2023 05:48:42 -0400 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c506d1798eso16763561fa.0 for ; Thu, 19 Oct 2023 02:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697708919; x=1698313719; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:to:from:from :to:cc:subject:date:message-id:reply-to; bh=FK8j/HebUBCpyvei+0G6HYglX7ZvDVO3zcPkwwciKuc=; b=J4wrlMnFw0ySzGL0GgsabrzWf33CQV0DXlH2rTbKS7n8iAM+N/5nHg/KJxzpvLnuci 3vFIocQSbBI33cXaoiZpQjw0d/u4umUJBtWnRKW9/Q6IB2151AhXnEaxy1R/FFNMSW0G Lk/FlwACgJM64UZJ7ycobErlBhwAfnxTBlZGfU7y5IY0IaQj+1c6/jt0CCIq3SSUdKXT NLUoSWapWhH9e+sR+OPgje6V48FQe+Jq2I2e273hfxabbmUcsYb0dDU6v+UZohYz+x9M 82W47A1F8oQNWsjx216eq6aZ25ejyrxQaeKUfVGBBxLFn/B4rvTdktiuA8anEwOXJTSp d32w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697708919; x=1698313719; h=content-transfer-encoding:mime-version:message-id:date:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FK8j/HebUBCpyvei+0G6HYglX7ZvDVO3zcPkwwciKuc=; b=LqVhcIGCTkPwTvsqKPCbIFt85WKYeV0INqABLRGzXC17xzHShaUFUpRgdl17aoalmT DRPRQlHPNhxLUrbcSvgsSAJbiGJ3UtnNeRPwhwGy8p5oDkq2gFB2ybTlOWU9zmMnfFv0 c6p8sqvjY1j4sEr+AF22oKUWkthe1R3SrJ1oAodjLtCn8J9RVIS9AhanIbc2rQjzqf7t 2qgLmmF4/ZVWSSAKGMBjPQwepLrqpnQ0hsE21Koa4VG1G8IHfirxLY69+H/X3unVFZd5 y7o7QR2xvmNGI8rBbnR4KBcsn85pJiviP6eOAlobBCCRnoBpYfd7eaqg64+YhvKbUncD DuKw== X-Gm-Message-State: AOJu0YyhUabgBPcDQXBpYfAYwkRiJ4YGrFdDObWvrpD14i0fyxUkSweY TEUoOXb8Ll2dFKa17TNN6x0LxnTdGNo= X-Google-Smtp-Source: AGHT+IFYeMyHmEhTRuc0pXQZaPCFTwPe9tQ/Cigv+VZaI4cQBwoU5oPI6rpHrgiBSpXyuJD6mCTxag== X-Received: by 2002:a2e:a233:0:b0:2bf:e5dc:aa68 with SMTP id i19-20020a2ea233000000b002bfe5dcaa68mr928544ljm.3.1697708919130; Thu, 19 Oct 2023 02:48:39 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id j6-20020adff006000000b003198a9d758dsm4066053wro.78.2023.10.19.02.48.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 02:48:38 -0700 (PDT) From: Simon Tournier Date: Thu, 19 Oct 2023 11:36:11 +0200 Message-ID: <87fs27ned0.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=zimon.toutoune@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 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, MISSING_SUBJECT=1.799, 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-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 2.84 X-Spam-Score: 2.84 X-Migadu-Queue-Id: 1F08E4CE41 X-TUID: 85ncpCs4ywTI Hi, Trying to answer to this message [1], I notice something unexpected for me. I read from the manual: --8<---------------cut here---------------start------------->8--- -- Procedure: url-fetch url hash-algo hash [name] [#:executable? #f] Return a fixed-output derivation that fetches data from URL (a string, or a list of strings denoting alternate URLs), which is expected to have hash HASH of type HASH-ALGO (a symbol). By default, the file name is the base name of URL; optionally, NAME can specify a different file name. When EXECUTABLE? is true, make the downloaded file executable. When one of the URL starts with =E2=80=98mirror://=E2=80=99, then its = host part is interpreted as the name of a mirror scheme, taken from =E2=80=98%mirror-file=E2=80=99. Alternatively, when URL starts with =E2=80=98file://=E2=80=99, return = the corresponding file name in the store. --8<---------------cut here---------------end--------------->8--- Therefore, I do: --8<---------------cut here---------------start------------->8--- (define-module (pkg) #:use-module (guix packages) #:use-module (guix download) #:use-module (gnu packages pdf) #:use-module (gnu packages gnome)) (define-public zathura-custom (package (inherit zathura) (name "zathura-custom") (version "4.0") (source (origin (method url-fetch) (uri ;"https://pwmt.org/projects/zathura/download/zathura-0.5.2.tar.xz" "file:///tmp/zathura-custom/zathura-mine.tar.xz" ) (sha256 (base32 "0000000000000000000000000000000000000000000000000000")))))) --8<---------------cut here---------------end--------------->8--- And then: --8<---------------cut here---------------start------------->8--- $ guix build -L /tmp/zathura-custom zathura-custom -S -d Backtrace: 12 (primitive-load "/home/simon/.config/guix/current/bin/guix") In guix/ui.scm: 2323:7 11 (run-guix . _) 2286:10 10 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/status.scm: 839:4 8 (call-with-status-report _ _) In ice-9/boot-9.scm: 1752:10 7 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/store.scm: 659:37 6 (thunk) 1298:8 5 (call-with-build-handler # _) In guix/scripts/build.scm: 797:43 4 (_) In srfi/srfi-1.scm: 586:17 3 (map1 ("/gnu/store/mkx0xbh68sihhqxdwbjcdi1njdqra7cq-zathura-mi= ne.tar.xz")) In guix/derivations.scm: 136:0 2 (%derivation-file-name-procedure "/gnu/store/mkx0xbh68sihhqxdw= bjcdi1njdqra7cq-zathura-mine.tar.xz") In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure struct-vtable: Wrong type argument in position 1 (expecting st= ruct): "/gnu/store/mkx0xbh68sihhqxdwbjcdi1njdqra7cq-zathura-mine.tar.xz" --8<---------------cut here---------------end--------------->8--- Note: $ guix hash /tmp/zathura-custom/zathura-mine.tar.xz 15314m9chmh5jkrd9vk2h2gwcwkcffv2kjcxkd4v3wmckz5sfjy6 $ guix download https://pwmt.org/projects/zathura/download/zathura-0.5.= 2.tar.xz Starting download of /tmp/guix-file.d3GzTC [...] 15314m9chmh5jkrd9vk2h2gwcwkcffv2kjcxkd4v3wmckz5sfjy6 Cheers, simon 1: [TIL] guix doesn't check hash when uri starts with file:/// Rodrigo Morales Wed, 20 Sep 2023 19:18:57 +0000 id:CAGxMbPbuP1HOFU1UwfV0AojP+7z62Q2wv_FGUYY6kvkK4XytiQ@mail.gmail.com https://lists.gnu.org/archive/html/help-guix/2023-09 https://yhetil.org/guix/CAGxMbPbuP1HOFU1UwfV0AojP+7z62Q2wv_FGUYY6kvkK4XytiQ= @mail.gmail.com