Simon Tournier <zimon.toutoune@HIDDEN>
to control <at> debbugs.gnu.org.
Full text available.
Received: (at submit) by debbugs.gnu.org; 19 Oct 2023 09:49:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 19 05:49:19 2023
Received: from localhost ([127.0.0.1]:35860 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1qtPeY-0003UL-MJ
for submit <at> 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 <zimon.toutoune@HIDDEN>) id 1qtPeV-0003TO-Cd
for submit <at> 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 <zimon.toutoune@HIDDEN>)
id 1qtPdz-0007IE-6r
for bug-guix@HIDDEN; 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 <zimon.toutoune@HIDDEN>)
id 1qtPdx-0004gH-1J
for bug-guix@HIDDEN; Thu, 19 Oct 2023 05:48:42 -0400
Received: by mail-lj1-x231.google.com with SMTP id
38308e7fff4ca-2c506d1798eso16763561fa.0
for <bug-guix@HIDDEN>; 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 <bug-guix@HIDDEN>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 19 Oct 2023 02:48:38 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@HIDDEN>
To: bug-guix@HIDDEN
Date: Thu, 19 Oct 2023 11:36:11 +0200
Message-ID: <87fs27ned0.fsf@HIDDEN>
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@HIDDEN; 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-Spam-Score: 2.9 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Hi, Trying to answer to this message [1], I notice something
unexpected for me. I read from the manual: --8<cut herestart>8--- --
Procedure:
url-fetch url hash-algo hash [name] [#:executable? #f] Return a fixed-output
derivation that fetches data from URL (a st [...]
Content analysis details: (2.9 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (zimon.toutoune[at]gmail.com)
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
1.8 MISSING_SUBJECT Missing Subject: header
0.2 NO_SUBJECT Extra score for no subject
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: 1.9 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Hi, Trying to answer to this message [1], I notice something
unexpected for me. I read from the manual: --8<cut herestart>8--- -- Procedure:
url-fetch url hash-algo hash [name] [#:executable? #f] Return a fixed-output
derivation that fetches data from URL (a st [...]
Content analysis details: (1.9 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (zimon.toutoune[at]gmail.com)
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
1.8 MISSING_SUBJECT Missing Subject: header
0.2 NO_SUBJECT Extra score for no subject
-1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list
manager
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 #<procedure 7f31d1cb85d0 at guix/ui.s=
cm:1219:2 (continue store things mode)> _)
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 <moralesrodrigo1100@HIDDEN>
Wed, 20 Sep 2023 19:18:57 +0000
id:CAGxMbPbuP1HOFU1UwfV0AojP+7z62Q2wv_FGUYY6kvkK4XytiQ@HIDDEN
https://lists.gnu.org/archive/html/help-guix/2023-09
https://yhetil.org/guix/CAGxMbPbuP1HOFU1UwfV0AojP+7z62Q2wv_FGUYY6kvkK4XytiQ=
@mail.gmail.com
Simon Tournier <zimon.toutoune@HIDDEN>:bug-guix@HIDDEN.
Your message did not contain a Subject field. They are recommended and useful because the title of a $gBug is determined using this field. Please remember to include a Subject field in your messages in future.
Full text available.
bug-guix@HIDDEN:bug#66633; Package guix.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.