From unknown Fri Jun 13 09:54:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#65231 <65231@debbugs.gnu.org> To: bug#65231 <65231@debbugs.gnu.org> Subject: Status: refresh: Exception in manifest is silenced, cause all packages to be selected Reply-To: bug#65231 <65231@debbugs.gnu.org> Date: Fri, 13 Jun 2025 16:54:58 +0000 retitle 65231 refresh: Exception in manifest is silenced, cause all package= s to be selected reassign 65231 guix submitter 65231 Maxim Cournoyer severity 65231 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 11 16:04:40 2023 Received: (at submit) by debbugs.gnu.org; 11 Aug 2023 20:04:40 +0000 Received: from localhost ([127.0.0.1]:48116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUYND-0004ST-Jr for submit@debbugs.gnu.org; Fri, 11 Aug 2023 16:04:40 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUYNA-0004SA-FB for submit@debbugs.gnu.org; Fri, 11 Aug 2023 16:04:38 -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 1qUYN5-0003Zz-1Q for bug-guix@gnu.org; Fri, 11 Aug 2023 16:04:31 -0400 Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUYN3-00070c-JO for bug-guix@gnu.org; Fri, 11 Aug 2023 16:04:30 -0400 Received: by mail-qv1-xf36.google.com with SMTP id 6a1803df08f44-6418d8a659fso5585426d6.0 for ; Fri, 11 Aug 2023 13:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691784268; x=1692389068; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=hTsY0MUgq4zR+3jMLWQwiSOSPdMrBY6tYXCUVi/EmBo=; b=oozzBp3BqdFfznH/2P9iIQHo3vcGF+3dPXBRI08vNmzgCMWbTCRCrGYZHs0VtbFhOZ w1yrJZ5sK/XGijN9W3FWihveLccZFYJ0VGA6PBTF/SRElQjUDhmDxjdVObzucyQhSojS 6ORhC/EasvSdFCkQLKgbXIGfB0sN8AVARLPBzwITN0rwYvWYTuPz5rVtVOzm8JqEdAa+ wrFoAzui4Zy2TmwADij8J9INNhxu/tRGau6CuCe9qk4Is7BA5LaCGUAuhACavD5phyDv 3RxABbYqp0yR4ynfLS1+xenGPPmzJh4WuwvUtUGXsDt3IdI47ECv82ruVuZAZweT9owr NQ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691784268; x=1692389068; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hTsY0MUgq4zR+3jMLWQwiSOSPdMrBY6tYXCUVi/EmBo=; b=ThWnjJXiePMEVL/vipxgCQ21J4dk4eszvTp2a1Iz2GgYHknjnxFQbxJMmUFeP0YywT /lF2j8VzTTKR1RCjrL5hb/BFOUXHZ0xd4rsQjqwSc/QlkFrqqPAvvKyYFjTeiyxwbrde jeSJEFAcdX6LlmN3N+6+z+wb2RQVfkObYNhoX77sxVaYFGhll4yvY6lYqZ2y6tRx7wuI NJad1CITm1C1namV7nGfVQfkRWxNUt2XxThMar0ZFFMVY/gOGy3KITtK6EqUtxdjGNbm fKAsfcBLshrXFfmUxtheCu2A96dARNDYDa/+tYSUeG72J1fFhr4sRswMsYMx5qpjeXm2 b57Q== X-Gm-Message-State: AOJu0YxoyPN3vr8QciDRIehysEh7pimGAnIRjn3CLyKNlBM5/9+oKvsD 4VuddoaupwMSBYtiFRWGoqYy+xHJ8youYA== X-Google-Smtp-Source: AGHT+IGZDrOQdUv6qOZiyo9NadZQrsZA+DSX5qMZzeXmQ0/Jg2nD9TOqBGePHENqWCvII91vbTRNow== X-Received: by 2002:a0c:e281:0:b0:63c:fbe9:6837 with SMTP id r1-20020a0ce281000000b0063cfbe96837mr2454115qvl.11.1691784268253; Fri, 11 Aug 2023 13:04:28 -0700 (PDT) Received: from hurd (dsl-205-236-230-92.b2b2c.ca. [205.236.230.92]) by smtp.gmail.com with ESMTPSA id p14-20020a0ccb8e000000b0063d245c00b5sm1449966qvk.0.2023.08.11.13.04.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 13:04:28 -0700 (PDT) From: Maxim Cournoyer To: bug-guix Subject: refresh: Exception in manifest is silenced, cause all packages to be selected Date: Fri, 11 Aug 2023 16:04:27 -0400 Message-ID: <87sf8pl510.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf36.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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Guix, Consider the following manifest: --8<---------------cut here---------------start------------->8--- (use-modules (guix packages) (guix profiles) (guix utils) (gnu packages)) (define %qt-major-version "6") (manifest (map package->manifest-entry (fold-packages (lambda (package lst) (let ((uri (and=> (package-source package) (lambda (x) (and (origin? x) (origin-uri x)))))) (if (and uri (string? uri) (string-prefix? "mirror://qt/" uri) (= %qt-major-version (version-major (package-version package)))) (cons package lst) lst))) '()))) --8<---------------cut here---------------end--------------->8--- There's a subtle bug in it, which is the '=' function which is used instead of 'string=?'. I'd expect 'guix refresh -m qt-manifest.scm' to let this exception interrupt execution, but instead it proceeds to refresh all (?) the packages (taking a long time to compute). At the REPL, the error is reported as: --8<---------------cut here---------------start------------->8--- ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure =: Wrong type argument in position 1: "6" --8<---------------cut here---------------end--------------->8--- -- Thanks, Maxim