Message ID | 20241029173313.11755-1-adam.quandour@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 28A2B27BBEA; Tue, 29 Oct 2024 17:34:31 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EF0CE27BBE9 for <patchwork@mira.cbaines.net>; Tue, 29 Oct 2024 17:34:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1t5q6X-00086j-1U; Tue, 29 Oct 2024 13:34:05 -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 <Debian-debbugs@debbugs.gnu.org>) id 1t5q6U-00086V-MJ for guix-patches@gnu.org; Tue, 29 Oct 2024 13:34:02 -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 <Debian-debbugs@debbugs.gnu.org>) id 1t5q6U-0008LG-DO for guix-patches@gnu.org; Tue, 29 Oct 2024 13:34:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=Z/dXcO5vKFxULaCKzwMQUTIvr1nNb+LEZ+pRyffVgzQ=; b=A1D2LMDkYnGvKA6DJVn580DEf5TvN30AiSmA6B8x7eK4CI+yXj+i7i2e98c3GKkGV0AUnSUZFL98nu7aut3WHupMUvkhKmVWFFVSrAmCkHXzW1tN9/E2NUKm+MkqDd1gDV2RpCgI2gMiAMPLVKdTIi9yZAWRhqTdDJjrCgDNTnhujlBxft81D9dzcWkp7x6/BTD8UttFPo3Z9ZhnWoXwpTMoHF6qlsKEOH0+6JbwXM1bqbuNwx3wVg+NPdbcLp921bYO2RWnoplHN+1rI8cqvfI8HPpu9DjDow2ghQOFa9arhJfN3CKtQSp+VG7HusaJJmZ81qmBBwkdoef2FX/KLA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1t5q6U-00042b-5v for guix-patches@gnu.org; Tue, 29 Oct 2024 13:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#74092] [PATCH] fix gnutls package Resent-From: Adam Quandour <adam.quandour@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Oct 2024 17:34:01 +0000 Resent-Message-ID: <handler.74092.B.173022320615502@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74092 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74092@debbugs.gnu.org Cc: Adam Quandour <adam.quandour@gmail.com> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173022320615502 (code B ref -1); Tue, 29 Oct 2024 17:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Oct 2024 17:33:26 +0000 Received: from localhost ([127.0.0.1]:57626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1t5q5u-00041y-4U for submit@debbugs.gnu.org; Tue, 29 Oct 2024 13:33:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:56602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <adam.quandour@gmail.com>) id 1t5q5t-00041s-1p for submit@debbugs.gnu.org; Tue, 29 Oct 2024 13:33:25 -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 <adam.quandour@gmail.com>) id 1t5q5s-00084Q-6y for guix-patches@gnu.org; Tue, 29 Oct 2024 13:33:24 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <adam.quandour@gmail.com>) id 1t5q5q-0008IX-RM for guix-patches@gnu.org; Tue, 29 Oct 2024 13:33:23 -0400 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-53b15bc0731so753462e87.2 for <guix-patches@gnu.org>; Tue, 29 Oct 2024 10:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730223200; x=1730828000; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Z/dXcO5vKFxULaCKzwMQUTIvr1nNb+LEZ+pRyffVgzQ=; b=jahz37cQ5OkTKL4sYU7HcP/boyZqTa39ErYB0xT7T8oh9hcQ+Nbx7A+2qWDFKzx4N7 Kso9aSd24iHALMsWExjsfcp3QIChF3OnlOMSVYvc9KKVEJFiBcAg28fISL6q5mfBH3Y9 0a6rI+GC0u7E9XGtHPS6VDMhpcewI6SLrYDnT39YrOB5beUSOY7vd+cgO2Smo0XICiAJ 7izCRWPqi/PQzeBu8GmidyXwFGcwowJujVL3+H7jDu+bKWHuXBoBKsvw2qNy9D1s+Lds 0SWKQfJYFCdJrzbnrplsNekU2WhBEeNECKBagxJhZZyGxrQSEn7NPGwiqnjlZTs5fNSk D4NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730223200; x=1730828000; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Z/dXcO5vKFxULaCKzwMQUTIvr1nNb+LEZ+pRyffVgzQ=; b=t2fz6JkhfmNxh2GozBnx1+z/Eykwkan2cw4v8OtcdpPG4Qj9TH67JEhffWLrTqLg6h rlJNW8mnR/NLqIMsQqPo2+0LA0/2gWA1EwNR5ZvXcK9frMn8umGYBaOJ15Rla14f+MjC SWmiK7zrIB3y7AR1rwAzsyZtsRGw5ga4shtpKni0P1Qdbw/HhpU0+xwOU+vzxtOjaw6M nUwuVLvc2mr7FwHt6CwRVsbuIx8z/QmBVz7k1JdjqD2iIwqUzigmLm/xy7pYWasF/Zf2 SuaSCbD8V/rAKZf5+N44Jfs7Uu0TAXC9id4SbIBIpMYteVOJOmtn3UK5Ij0JNuqiCWCT Suiw== X-Gm-Message-State: AOJu0Yy/4YybGwQ+1s42pCMyTznfFOeXR74zEacKlax2CScuvgOCL6H3 6iqcFOR4FHxlE9qzhCqE4+vXkF0vkzRrlTyBqX5DuH67KbTmL4DAUHTXsyUf X-Google-Smtp-Source: AGHT+IHpwIQxt0vZ1sL6MM4hhyYzxtj69HiQAQMm9qkkRMPVTacFfxqlTkIq8uGhNMZgaHVDoyaNIw== X-Received: by 2002:a05:6512:1386:b0:539:f67b:b859 with SMTP id 2adb3069b0e04-53b348cb00fmr2129228e87.4.1730223199666; Tue, 29 Oct 2024 10:33:19 -0700 (PDT) Received: from localhost.localdomain ([2a00:1370:8182:3f33:574a:9f83:52e2:2c60]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-53bb838e4dbsm10039e87.115.2024.10.29.10.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2024 10:33:18 -0700 (PDT) From: Adam Quandour <adam.quandour@gmail.com> Date: Tue, 29 Oct 2024 20:33:13 +0300 Message-ID: <20241029173313.11755-1-adam.quandour@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=adam.quandour@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#74092] fix gnutls package
|
|
Commit Message
Adam <>
Oct. 29, 2024, 5:33 p.m. UTC
Actual hash of this package is not the same as the specified one. --- gnu/packages/tls.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Adam Quandour <adam.quandour@gmail.com> writes: > Actual hash of this package is not the same as the specified one. > --- > gnu/packages/tls.scm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm > index 1a1ce0d..4f862ff 100644 > --- a/gnu/packages/tls.scm > +++ b/gnu/packages/tls.scm > @@ -212,7 +212,7 @@ (define-public gnutls > (patches (search-patches "gnutls-skip-trust-store-test.patch")) > (sha256 > (base32 > - "0ghpyhhfa3nsraph6dws50jb3dc8g2cfl7dizdnyrm179fawakzp")))) > + "0kayjxy3rr2y08jjimz5f0dx92pq3xjiaj2pdnsn15h1rp2k21pa")))) When I download the release from the official website[0], via the gnupg ftp[1], I do get the file with the old hash[2]. I am not sure what is going on here, but the discrepancy should be investigated and documented in the commit message. Just adjusting the hash is probably not the best choice. I would assume the upstream[0] should be the authoritative source for the hash, not the mirror. 0: https://gnutls.org/download.html 1: https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/ 2: 0ghpyhhfa3nsraph6dws50jb3dc8g2cfl7dizdnyrm179fawakzp > (build-system gnu-build-system) > (arguments > (list #:tests? (not (or (%current-target-system) Have a nice day, Tomas
The main reason I wrote the patch - I cannot build gnutls@3.8.3 from source code. This command ``` guix build gnutls@3.8.3 --no-substitutes ``` returns me this ``` expected hash: 0ghpyhhfa3nsraph6dws50jb3dc8g2cfl7dizdnyrm179fawakzp actual hash: 0kayjxy3rr2y08jjimz5f0dx92pq3xjiaj2pdnsn15h1rp2k21pa hash mismatch for store item '/gnu/store/9zh4mcmwp2afyl4ig56943w64czdz2kp-gnutls-3.8.3.tar.xz' ``` Guix I'm using ``` guix: repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 4009d1de954d694cb11af391d4113d29c5c1379d ``` Am I getting it right - you are suggesting I replace "mirror://gnupg/gnutls/v" with "https://gnutls.org/" or "ftp://gnutls.org" ? I'm asking because I'm not the original author of this package, so it's not obvious to me, what will be the right decision here? On Tue, Oct 29, 2024 at 8:59 PM Tomas Volf <~@wolfsden.cz> wrote: > > Adam Quandour <adam.quandour@gmail.com> writes: > > > Actual hash of this package is not the same as the specified one. > > --- > > gnu/packages/tls.scm | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm > > index 1a1ce0d..4f862ff 100644 > > --- a/gnu/packages/tls.scm > > +++ b/gnu/packages/tls.scm > > @@ -212,7 +212,7 @@ (define-public gnutls > > (patches (search-patches "gnutls-skip-trust-store-test.patch")) > > (sha256 > > (base32 > > - "0ghpyhhfa3nsraph6dws50jb3dc8g2cfl7dizdnyrm179fawakzp")))) > > + "0kayjxy3rr2y08jjimz5f0dx92pq3xjiaj2pdnsn15h1rp2k21pa")))) > > When I download the release from the official website[0], via the gnupg > ftp[1], I do get the file with the old hash[2]. > > I am not sure what is going on here, but the discrepancy should be > investigated and documented in the commit message. Just adjusting the > hash is probably not the best choice. > > I would assume the upstream[0] should be the authoritative source for > the hash, not the mirror. > > 0: https://gnutls.org/download.html > 1: https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/ > 2: 0ghpyhhfa3nsraph6dws50jb3dc8g2cfl7dizdnyrm179fawakzp > > > (build-system gnu-build-system) > > (arguments > > (list #:tests? (not (or (%current-target-system) > > Have a nice day, > Tomas > > -- > There are only two hard things in Computer Science: > cache invalidation, naming things and off-by-one errors.
Adam <adam.quandour@gmail.com> writes: > The main reason I wrote the patch - I cannot build gnutls@3.8.3 from source > code. > This command > ``` > guix build gnutls@3.8.3 --no-substitutes > ``` > returns me this > ``` > expected hash: 0ghpyhhfa3nsraph6dws50jb3dc8g2cfl7dizdnyrm179fawakzp > actual hash: 0kayjxy3rr2y08jjimz5f0dx92pq3xjiaj2pdnsn15h1rp2k21pa > hash mismatch for store item > '/gnu/store/9zh4mcmwp2afyl4ig56943w64czdz2kp-gnutls-3.8.3.tar.xz' > ``` > Guix I'm using > ``` > guix: > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: 4009d1de954d694cb11af391d4113d29c5c1379d > ``` > Am I getting it right - you are suggesting I > replace "mirror://gnupg/gnutls/v" with > "https://gnutls.org/" or "ftp://gnutls.org" ? > I'm asking because I'm not the original author of this package, so it's not > obvious to me, > what will be the right decision here? I suspect this might have been fixed by a9c33e9f688fce88aed610ab04c650efb71b4ce6. So I would recommend pulling current guix and trying the build once more. It is likely it will work now. If yes, just close this issue, if no, please provide the new error (the URL should be different). Have a nice day, Tomas
I confirm, after switching to commit: ad966c3844385e8f7b60b0dc915f92a1eba47e09, I was able to build gnutls from the source. How can I close the issue? On Tue, Oct 29, 2024 at 9:43 PM Tomas Volf <~@wolfsden.cz> wrote: > Adam <adam.quandour@gmail.com> writes: > > > The main reason I wrote the patch - I cannot build gnutls@3.8.3 from > source > > code. > > This command > > ``` > > guix build gnutls@3.8.3 --no-substitutes > > ``` > > returns me this > > ``` > > expected hash: 0ghpyhhfa3nsraph6dws50jb3dc8g2cfl7dizdnyrm179fawakzp > > actual hash: 0kayjxy3rr2y08jjimz5f0dx92pq3xjiaj2pdnsn15h1rp2k21pa > > hash mismatch for store item > > '/gnu/store/9zh4mcmwp2afyl4ig56943w64czdz2kp-gnutls-3.8.3.tar.xz' > > ``` > > Guix I'm using > > ``` > > guix: > > repository URL: https://git.savannah.gnu.org/git/guix.git > > branch: master > > commit: 4009d1de954d694cb11af391d4113d29c5c1379d > > ``` > > Am I getting it right - you are suggesting I > > replace "mirror://gnupg/gnutls/v" with > > "https://gnutls.org/" or "ftp://gnutls.org" ? > > I'm asking because I'm not the original author of this package, so it's > not > > obvious to me, > > what will be the right decision here? > > I suspect this might have been fixed by > a9c33e9f688fce88aed610ab04c650efb71b4ce6. So I would recommend pulling > current guix and trying the build once more. It is likely it will work > now. > > If yes, just close this issue, if no, please provide the new error (the > URL should be different). > > Have a nice day, > Tomas > > -- > There are only two hard things in Computer Science: > cache invalidation, naming things and off-by-one errors. >
On 2024-10-29, Adam wrote: > I confirm, after switching to commit: > ad966c3844385e8f7b60b0dc915f92a1eba47e09, > I was able to build gnutls from the source. Thanks for confirming! > How can I close the issue? By sending to the -done address, which I've included in Cc. live well, vagrant > On Tue, Oct 29, 2024 at 9:43 PM Tomas Volf <~@wolfsden.cz> wrote: > >> Adam <adam.quandour@gmail.com> writes: >> >> > The main reason I wrote the patch - I cannot build gnutls@3.8.3 from >> source >> > code. >> > This command >> > ``` >> > guix build gnutls@3.8.3 --no-substitutes >> > ``` >> > returns me this >> > ``` >> > expected hash: 0ghpyhhfa3nsraph6dws50jb3dc8g2cfl7dizdnyrm179fawakzp >> > actual hash: 0kayjxy3rr2y08jjimz5f0dx92pq3xjiaj2pdnsn15h1rp2k21pa >> > hash mismatch for store item >> > '/gnu/store/9zh4mcmwp2afyl4ig56943w64czdz2kp-gnutls-3.8.3.tar.xz' >> > ``` >> > Guix I'm using >> > ``` >> > guix: >> > repository URL: https://git.savannah.gnu.org/git/guix.git >> > branch: master >> > commit: 4009d1de954d694cb11af391d4113d29c5c1379d >> > ``` >> > Am I getting it right - you are suggesting I >> > replace "mirror://gnupg/gnutls/v" with >> > "https://gnutls.org/" or "ftp://gnutls.org" ? >> > I'm asking because I'm not the original author of this package, so it's >> not >> > obvious to me, >> > what will be the right decision here? >> >> I suspect this might have been fixed by >> a9c33e9f688fce88aed610ab04c650efb71b4ce6. So I would recommend pulling >> current guix and trying the build once more. It is likely it will work >> now. >> >> If yes, just close this issue, if no, please provide the new error (the >> URL should be different). >> >> Have a nice day, >> Tomas >> >> -- >> There are only two hard things in Computer Science: >> cache invalidation, naming things and off-by-one errors. >>
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 1a1ce0d..4f862ff 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -212,7 +212,7 @@ (define-public gnutls (patches (search-patches "gnutls-skip-trust-store-test.patch")) (sha256 (base32 - "0ghpyhhfa3nsraph6dws50jb3dc8g2cfl7dizdnyrm179fawakzp")))) + "0kayjxy3rr2y08jjimz5f0dx92pq3xjiaj2pdnsn15h1rp2k21pa")))) (build-system gnu-build-system) (arguments (list #:tests? (not (or (%current-target-system)