From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 26 08:00:22 2023 Received: (at submit) by debbugs.gnu.org; 26 Mar 2023 12:00:22 +0000 Received: from localhost ([127.0.0.1]:44201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgP2r-0006nC-Vi for submit@debbugs.gnu.org; Sun, 26 Mar 2023 08:00:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:35200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgP2q-0006n5-HK for submit@debbugs.gnu.org; Sun, 26 Mar 2023 08:00:21 -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 1pgP2p-0003PR-7H for bug-guix@gnu.org; Sun, 26 Mar 2023 08:00:20 -0400 Received: from gabriel-smtp.zfn.uni-bremen.de ([134.102.50.15] helo=smtp.uni-bremen.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgP2m-0000wJ-RZ for bug-guix@gnu.org; Sun, 26 Mar 2023 08:00:18 -0400 Received: from [192.168.178.52] (ip4d16eb70.dynamic.kabel-deutschland.de [77.22.235.112]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.uni-bremen.de (Postfix) with ESMTPSA id 4Pkvdq3ymXzDCbV for ; Sun, 26 Mar 2023 14:00:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=uni-bremen.de; s=2019; t=1679832015; bh=PtWu0lCdcN2TGHQiOIaKuXz1ph/Je4dOAbLtD+0n12Q=; h=Date:From:To; b=Jye/2PMnjjyoMK+S870cXkKZsiMYHIUHWBQM+Tbm+P91DHiFMpv3rdMs/kixeLHXZ 9IZ5MaoEI2ppddN3zKthu5+nncK1bpo5AYCBly3bPSFW+yx6cp/FuY/NPKtsuf7p9Y DECO97If1/DZ8QWy4T1ReV0BENC3AG298+CE7YzvkdPZEvWpDzx3lrh6pDeA4jfItT +YbG7dPYL1oSSEjMMS/T4zEdz9nO2GJoRTdZxsLg9+vHea/rBvvH0dZTny9Cz2c56r bv2QDHebBrHMb7343CyCZM5FWRpjIt+TpF3gWj0Agb2UFQ5MH73s7FECJrzSgCjS5p j5o8wj5kEQTHQ== Message-ID: <468aff25-d410-102b-6e62-d8280bf70d7e@uni-bremen.de> Date: Sun, 26 Mar 2023 14:01:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 From: Martin Castillo Subject: Upgrading manifest based profile while keeping an intentionally older version of one package. To: bug-guix@gnu.org Content-Language: de-DE Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=134.102.50.15; envelope-from=castilma@uni-bremen.de; helo=smtp.uni-bremen.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) Hi, if someone has a profile made with a manifest like (specifications->manifest '("gcc@11")) and they want to update it, they might run guix package -p the-profile -u which would currently install gcc@12, or they would run something like package -p the-profile -m manifest.scm -u which aborts with this unintelligible message: Backtrace: 12 (primitive-load "/home/mcd/.config/guix/current/bin/guix") In guix/ui.scm: 2300:7 11 (run-guix . _) 2263:10 10 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 9 (with-exception-handler _ _ #:unwind? _ # _) In guix/status.scm: 850:3 8 (_) 830:4 7 (call-with-status-report _ _) In guix/store.scm: 1298:8 6 (call-with-build-handler # …) In guix/build/syscalls.scm: 1442:3 5 (_) 1408:4 4 (call-with-file-lock/no-wait "mani.lock" # …) In guix/scripts/package.scm: 708:4 3 (_) In srfi/srfi-1.scm: 460:18 2 (fold # …) In guix/scripts/package.scm: 233:4 1 (transaction-upgrade-entry _ _ _) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: Throw to key `match-error' with args `("match" "no matching pattern" #< name: "gcc" version: "11.3.0" output: "out" item: # dependencies: () search-paths: (#< variable: "C_INCLUDE_PATH" files: ("include") separator: ":" file-type: directory file-pattern: #f> #< variable: "CPLUS_INCLUDE_PATH" files: ("include/c++" "include") separator: ":" file-type: directory file-pattern: #f> #< variable: "LIBRARY_PATH" files: ("lib" "lib64") separator: ":" file-type: directory file-pattern: #f>) parent: #> properties: ((provenance (repository (version 0) (url "https://git.savannah.gnu.org/git/guix.git") (branch "master") (commit "3a2200e1ad2049ad7e25295e6b4e013f74dd84e2") (name guix) (introduction (channel-introduction (version 0) (commit "9edb3f66fd807b096b48283debdcddccfea34bad") (signer "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"))))))>)'. It would be nicer if the user got a hint how to properly upgrade such a (or any manifest based) profile instead of a backtrace. Additionally, the documentation of guix package -u could note that. Martin