From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4DWDJUUhTWP/pgAAbAwnHQ (envelope-from ) for ; Mon, 17 Oct 2022 11:32:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oEFnJUUhTWNgZAEAauVa8A (envelope-from ) for ; Mon, 17 Oct 2022 11:32:53 +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 26C373F18D for ; Mon, 17 Oct 2022 11:32:53 +0200 (CEST) Received: from localhost ([::1]:58212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okMUI-0005rz-Q9 for larch@yhetil.org; Mon, 17 Oct 2022 05:32:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okMSe-0005iD-Ce for bug-guix@gnu.org; Mon, 17 Oct 2022 05:31:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okMSe-0003jS-4a for bug-guix@gnu.org; Mon, 17 Oct 2022 05:31:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okMSd-0008D7-Va for bug-guix@gnu.org; Mon, 17 Oct 2022 05:31:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58561: Source hash mismatch with aggregator + possible guix bug with hashes. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 17 Oct 2022 09:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58561 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: mail@brendan.scot, 58561@debbugs.gnu.org Cc: phodina , Marius Bakke Received: via spool by 58561-submit@debbugs.gnu.org id=B58561.166599906231533 (code B ref 58561); Mon, 17 Oct 2022 09:31:03 +0000 Received: (at 58561) by debbugs.gnu.org; 17 Oct 2022 09:31:02 +0000 Received: from localhost ([127.0.0.1]:47356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okMSc-0008CE-84 for submit@debbugs.gnu.org; Mon, 17 Oct 2022 05:31:02 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:45009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okMSa-0008BV-EI for 58561@debbugs.gnu.org; Mon, 17 Oct 2022 05:31:00 -0400 Received: by mail-wm1-f46.google.com with SMTP id bg9-20020a05600c3c8900b003bf249616b0so9532729wmb.3 for <58561@debbugs.gnu.org>; Mon, 17 Oct 2022 02:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ID8Yk9BR/zwd0N5EohjFm8tPCDhtUrcRdt5kUlQXSQw=; b=FSsgC6M0VHc1XkGgfdav80TzNbOc0VG5efG06WksJiLpADYUoUqQwByCWVQ5ISrcJd f08Tfdg8Pt6/knXJZve5/0SoDEi3WS3Vp9+4pJhYIPyyxffGPapted7IJlKTCJAOMS8s f5vi/xSiXnimAND4KTyHuB7q4Z2KTatKbEA7m4GcFE+hx76g/i1xUo+d1A2C0oxCPq2A 7bGKjln1jHyoakRE5CsSOpd7j6+FZFDJcS9XJTG3CxLL9r09HghXgi+sF8GeFBaNe/oe HA7t0W4wYfea7Fn9LUWLuy0KPXntWEohLUi2/B2W8j6VBtM0duVVuqYAUGK750BGTPRk sfvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ID8Yk9BR/zwd0N5EohjFm8tPCDhtUrcRdt5kUlQXSQw=; b=2G/I0KF/lIvOvqQ3YIUhtqJ9TdYeh0xINWrpQamy+YU91tZ9Jo7FWSc8bugXU4nIvB gL9qqQYifRfhWmRMQaTjNt62abTEvvxoRfNqWmSTBCharh1XHwGPWV6w7WLVf4t1vJwh A/mDqzaPauh1eedR32LgIhAkzUko+sLWLrXEuMhxrfbaMi6xzJSaHAg3pSl/5QZSZdhq YGfBqsi+LjYo86Sq8oPUA47LMANQ3Jxzv0dlFu8DkoF4hPb2wRNrir6aSijFwxDLYFpe NXkzTUDfzmQzCyOXpHF2MMHIC8BwdHiEVBmq2/QioIzkHG9Pb4qcMZ5f9BLnfBsxUCg8 wiUg== X-Gm-Message-State: ACrzQf1x6wQxe2YLSuhl6wCJPTVKIHpFLRvS2FT+E0AmR6KcVr0cAevq QQ4ZpQ2ALm7+TUrghEyWf2Y= X-Google-Smtp-Source: AMsMyM4AeaWivegEEua3DkyVOlc+dngoTAjCavmMaQ9A7sC+bHmr5p6UreoQY9AwymGSpWO6ZJnXnQ== X-Received: by 2002:a05:600c:1989:b0:3c6:fabb:ea73 with SMTP id t9-20020a05600c198900b003c6fabbea73mr1150653wmq.19.1665999054611; Mon, 17 Oct 2022 02:30:54 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id h8-20020a5d4308000000b0022cdb687bf9sm9825496wrq.0.2022.10.17.02.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 02:30:54 -0700 (PDT) From: zimoun In-Reply-To: <0df50579-d645-5a43-d558-4c49e503bb57@brendan.scot> References: <0df50579-d645-5a43-d558-4c49e503bb57@brendan.scot> Date: Mon, 17 Oct 2022 10:44:33 +0200 Message-ID: <87y1ten8jy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665999173; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=ID8Yk9BR/zwd0N5EohjFm8tPCDhtUrcRdt5kUlQXSQw=; b=j69QyZthxdwxAbh5irKdcITTSzbRhPS4o4LW8Q5greKItaTt+0pByLWGKA8agkintpNX+Z /fNYW7rHeamya//F++8CeINik0rn1u6EMfyIkUCz5Jy1HRVmbcnxJaGBBphfraqNUQPOf/ n6CCC6rFLjZUjninuVHFgCe82KdFUNSSuAKr+FwUYHCIlE5SzDbnny+wIii/6dcMMh2w4X UroDBR3S1ZC+ZtFTqA3GeDbc4b/L5B8XBIcAwZj3s1DqJOGx1rB+S2UOg9eL3bTJLNLVO2 9uRT5C1X9PDPYwA/usZ4eCIACDz9ZogysAoayrJxeY7Ds4OR99QIVRIZ60dPag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665999173; a=rsa-sha256; cv=none; b=bjR3GVoUUywEDRkr2f30001Bf3VWPSApDMk73HiMvzoYYETfX+kx0vPjl26xt5PcE1g5Bj vZeMuhar+09FPvA4mVDMxcd6i7dM3+PxpYOQcTPCu3Th23zj9azbhLdJHdxRwpQqYg2qH6 liMty+Jw3jEuJCocaPx6DY1FL1ObHd1Rf+zmHzrKc2NNi3a6Lw7xQBv67tdEQwCLda4SS5 V3w16LnMDcIyu56uhiVsSKGodLpLb69uon4cjUqicptLZIUxAL9goOQXAEZdemTKS/sB8j eJn5SYR0+HNtW9yJs9IS6i/Uo+0UHX6/SqGIpZruKuGOXXXTLOCbFFJwSJkq5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FSsgC6M0; 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" X-Migadu-Spam-Score: 4.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FSsgC6M0; 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" X-Migadu-Queue-Id: 26C373F18D X-Spam-Score: 4.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: yIhFf5Pp0gpf Hi, I am also confused. On dim., 16 oct. 2022 at 14:42, Brendan Tildesley wrote: > sha256 hash mismatch for=20 > /gnu/store/iv6ixlrvh0swq22fjal0cbfbr9ayaq7m-akregator-22.04.3.tar.xz: > =C2=A0 expected hash: 1yy5c29zxpli4cddknmdvjkgii3j7pvw6lhwqfrqjc8jh83gm8= f8 > =C2=A0 actual hash: 08n713271i7ifnbrgwrqmxvcpvj45wfqjiidw8zf9rpwxg2m2m9g > > > However what concerned me more is that when I look in the source code it= =20 > looks like this: > > (sha256 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (base32 "9yy5c29zxpli4cddknmd= vjkgii3j7pvw6lhwqfrqjc8jh83gm8f8")) > > Notice how at the start its a '9', not a '1'? Indeed, commit 6971feca53a19d60fdd2b39fb2a8966ccf1d6598 pushed on core-updates reads, --8<---------------cut here---------------start------------->8--- (define-public akregator (package (name "akregator") - (version "21.12.3") + (version "22.04.3") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/akregator-" version ".tar.xz")) (sha256 - (base32 "1yy5c29zxpli4cddknmdvjkgii3j7pvw6lhwqfrqjc8jh83gm8f8")))) + (base32 "9yy5c29zxpli4cddknmdvjkgii3j7pvw6lhwqfrqjc8jh83gm8f8")))) (build-system qt-build-system) --8<---------------cut here---------------end--------------->8--- > Is there a bug with how guix is reading/writing sha256 hashes? Is it a mistake here? A human-typo replacing =E2=80=991=E2=80=99 by =E2=80= =999=E2=80=99? Or something else? Petr? Then, indeed KDE did a in-place replacement since the hash is now, --8<---------------cut here---------------start------------->8--- $ guix download https://mirrors.xtom.de/kde/stable/release-service/22.04.3/= src/akregator-22.04.3.tar.xz Starting download of /tmp/guix-file.JTZn04 >From https://mirrors.xtom.de/kde/stable/release-service/22.04.3/src/akregat= or-22.04.3.tar.xz... =E2=80=A6.04.3.tar.xz 2.2MiB = 22.2MiB/s 00:00 [##################] 100.0% /gnu/store/w4jqrza9ffsflim5ilwq7jr75rxicn1g-akregator-22.04.3.tar.xz 08n713271i7ifnbrgwrqmxvcpvj45wfqjiidw8zf9rpwxg2m2m9g --8<---------------cut here---------------end--------------->8--- as submitted in patch#57608 [1]. 1: Cheers, simon