From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YESWOLh3RWZwpAAAe85BDQ:P1 (envelope-from ) for ; Thu, 16 May 2024 05:04:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YESWOLh3RWZwpAAAe85BDQ (envelope-from ) for ; Thu, 16 May 2024 05:04:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=hgBfugY3; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715828664; 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:resent-to: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=FVWWHFcJeyIg7j3kBgJMas8lNsU1M2VbXmarq+qPlTA=; b=pJYNi8XPCwnhCxMaDH/MhQi3eXqu2yDobhXMbQoMV/7UbW0r2m6nsUcvLszX+/wVPHrBRH JSCbyYhK5PiQEFpxWd8GWLSuUsJcgqcJlgvCyv4RqDKgjwS3UXiFjxtlXKfpIe0IGY6csT WGdwzn1P+n3XEiScSipBORfm45hcAyjriTNjR+TKFKzFdnoLXCPG09MEmLCn3uKBxhwf92 Xuc7r5S8ghs9oQG8Atx4UGOL0uXGoEFsS7upyQiCp/gDYaeYF5R5qGSTabfYg72thSKHG5 XG/HDyXUgu4ZNpYo0frV0A0cymwCb7/wmaBrPfHrBkscw54yujdUMSI5plswlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=hgBfugY3; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715828664; a=rsa-sha256; cv=none; b=qHUY+g1+iEnv+1sUCkGvbhlvdbtxm6IswFPBx1CmrvIK0BDe53/knJKpaTH9OIBkcFQ3SK ZBZhE8BHkR1e+QDnajDEncbaDwjSfC0CilC2KdoAWixoeKyl9onIxyBXdGlHx24/X8n1UH VcODu6VXStM5eq9c6H6Pe5jwpDA+lOCOW/p6wT9IFGbVS0JeRHkbajNExfdPgNVQG86pRP abkPWe9McrGduRVWTHz//JURQb/RaJ+xp09cdjF8/hA8Lk5pTNDNSb0O885Zs3jkpvLo+J 7YHzHhSsCc7jn3HBtO8aROH2+rvcP74F8gy1aeZG4j42Bm5Mkov5uFLQLrFLKQ== 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 965EF70432 for ; Thu, 16 May 2024 05:04:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7RPa-0004Fu-RE; Wed, 15 May 2024 23:04:06 -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 1s7RPV-0004FL-7X for bug-guix@gnu.org; Wed, 15 May 2024 23:04:01 -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 1s7RPU-0006zn-Ae for bug-guix@gnu.org; Wed, 15 May 2024 23:04:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7RPW-0003sK-9S for bug-guix@gnu.org; Wed, 15 May 2024 23:04:02 -0400 Subject: bug#70926: Having default nss-certs plus nss-certs in operating-system packages causes problems Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 16 May 2024 03:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 70926 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Liliana Marie Prikler Cc: 70926-done@debbugs.gnu.org, Christopher Baines Mail-Followup-To: 70926@debbugs.gnu.org, maxim.cournoyer@gmail.com, mail@cbaines.net Received: via spool by 70926-done@debbugs.gnu.org id=D70926.171582862014885 (code D ref 70926); Thu, 16 May 2024 03:04:02 +0000 Received: (at 70926-done) by debbugs.gnu.org; 16 May 2024 03:03:40 +0000 Received: from localhost ([127.0.0.1]:45968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7RP9-0003s1-Vq for submit@debbugs.gnu.org; Wed, 15 May 2024 23:03:40 -0400 Received: from mail-qk1-f175.google.com ([209.85.222.175]:42434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7RP8-0003rr-5t for 70926-done@debbugs.gnu.org; Wed, 15 May 2024 23:03:38 -0400 Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-792bdf626beso695136985a.1 for <70926-done@debbugs.gnu.org>; Wed, 15 May 2024 20:03:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715828549; x=1716433349; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=FVWWHFcJeyIg7j3kBgJMas8lNsU1M2VbXmarq+qPlTA=; b=hgBfugY3mdcTiwprmtD0YtcsErUVVWsW/Mz7ESPFp8o+x94cNZ7wHZMVucpJcuvrsq PudngDxqmRK7N6hZhC9VbR8njndviTrtBBv2a5Ff/xcDEzojgZA28Ofu/XTEiZcIY1sH kdN7YcXUKFiyh9e/31REZUIqE13a0+22Q7kmktGUe8q/OI4O8WjPuZEIUPRMxtxGrdQb i9EvmyWQgXdfiSExI4Kf5CmcIQmIYq4fPr2Sbf7u4Cx/KjBw8tOIydhoHOPdAVa939WX 00qaVThtRN6LeHedlJNNXZUUKHLLC5fJ/jYz9MGlAPrAbrN47/uzefbiSoyX8NgR9ZVV P7YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715828549; x=1716433349; h=mime-version:user-agent: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=FVWWHFcJeyIg7j3kBgJMas8lNsU1M2VbXmarq+qPlTA=; b=oEDwhysuDGKRKvpoWpKLYGxlZhJ7IHCT6fcS+JnIjwtctRBXEkoaczSN05zt/0vvIx G+EBOdkmVjpn2iU39l0CMV96tat0MCJ53ut4yXZu0qNj7mKUmuF/Wi0muKsayQUklAdX 3XjiQ7VnYhK2GLy53R/zu+PKHgvpTBVxKCVqJn8gVmaD97wd+bn4a6OoExglcKxSrvzt azMdBrlqqwZ1fcD7aIgVarusMtKyP/TTye5TVy+3zdCmhfpOIuS98BLB1mWNLPmMEtu0 wiEOwbw1EmhVltNvbjeQLSLCw7lmjNI7dMrUlnAwPu+Z8WAeweDns/OGxnca3DG1wIzO zZJQ== X-Forwarded-Encrypted: i=1; AJvYcCVtCXWA8jojLNDIqoXYBKhRBx5yAHvPO08fnGjPl1GnvQBjMvDYEP7jbZssR2PeWGAe8xYPsqaj3XDBc0e+WRjhz5ryyAERT7BP7g== X-Gm-Message-State: AOJu0YwiO2fDYGzNAC79TTJu8EacDbcpJ+hokxCWTtHO+Bd4yjcZzX81 Fhs0Re68OMb6sP+m2K+Qp+MjeGBq1ANyEPQ46lMElm+NThXiBdtz8PCASg== X-Google-Smtp-Source: AGHT+IEeJ8xS6HoDdkH0BPwYBPorpSFJBWSOhOrHsmh3pmud7f+r4vG+Vx/SaeCvz53JU+7e+Hcb9Q== X-Received: by 2002:a05:620a:14b2:b0:792:9d7c:d2b0 with SMTP id af79cd13be357-792c6c4e29emr2758172185a.15.1715828549457; Wed, 15 May 2024 20:02:29 -0700 (PDT) Received: from hurd (dsl-205-233-125-107.b2b2c.ca. [205.233.125.107]) by smtp.gmail.com with ESMTPSA id af79cd13be357-792bf27f915sm750645185a.38.2024.05.15.20.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 20:02:29 -0700 (PDT) From: Maxim Cournoyer In-Reply-To: (Liliana Marie Prikler's message of "Tue, 14 May 2024 07:44:30 +0200") References: <87wmnxz92i.fsf@cbaines.net> Date: Wed, 15 May 2024 23:02:27 -0400 Message-ID: <87r0e2wjb0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: 2.63 X-Migadu-Queue-Id: 965EF70432 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 2.63 X-TUID: x//QjwMmnIWx Hello, Liliana Marie Prikler writes: > Am Montag, dem 13.05.2024 um 22:38 +0100 schrieb Christopher Baines: >> I've seen this when updating systems, but it seems like something is >> wrong with the handling of nss-certs. >> >> I'm on a guix revision with nss-certs by default, and when I add >> nss-certs to my system packages (to simulate not removing it when >> upgrading), it breaks certificates (e.g. wget https://guix.gnu.org/ >> doesn't work). > I can confirm this on three machines (two of my own, one from a > relative): Having nss-certs in the packages field unexpectedly breaks > all known certificates. > >> My reading of the operating-system-packages code suggests that adding >> nss-certs shouldn't have any effect, but this doesn't seem to be >> working. > It would be really nice to detect the mismatching versions if it's > based on that. IIUC we graft nss-certs now, so that we can hot-swap > stuff like pythons certifi package. Is this use case broken by any > chance? Apparently having multiple nss-certs of the same version is no problem (they get deduped later). The original problem would thus only exist when there are multiple versions of nss-certs listed in packages, as could happen for installer-generated configs that use '(specification->package "nss-certs"), which would pick the latest version and clash with the one in %base-packages. My code could call delete even in the first case, which would clear *all* nss-certs because they were the same object. That's now guarded against in 35ae95061e1b843e1df069693177519f22f9a16d ("system: Do not delete all nss-certs packages when they are the same object."), which I've just pushed. Closing. -- Thanks, Maxim