From unknown Sat Jun 21 03:30:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62541: 28.2; Dependencies of packages available both built-in and in external repos Resent-From: Gustavo Barros Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Mar 2023 11:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62541 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 62541@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16801764325415 (code B ref -1); Thu, 30 Mar 2023 11:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Mar 2023 11:40:32 +0000 Received: from localhost ([127.0.0.1]:55949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phqds-0001PG-1C for submit@debbugs.gnu.org; Thu, 30 Mar 2023 07:40:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:43558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phqdq-0001P7-3H for submit@debbugs.gnu.org; Thu, 30 Mar 2023 07:40:30 -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 1phqdn-0004cV-Ud for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 07:40:29 -0400 Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phqdj-0001kd-PV for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 07:40:26 -0400 Received: by mail-yb1-xb32.google.com with SMTP id n125so23006263ybg.7 for ; Thu, 30 Mar 2023 04:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680176420; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Ad5ImuNwyDlEfNz1x9SdHr56F5759G+Oln6t9LE/Dig=; b=BlrK3ddPVvoytSJqBZHCTaI6S3oCEcuIln32TXFvxJay/LwKUH2Ai9FGy4Ri7q5KW/ ZjKWVC3bOtL7ePDEipmXImRtVFMOLiISdIpYPWueelYRzYpovY02BiCySYcwYBFUeR+n ZJi+5SnpPidN3/+ZnRA0l/4mxh4g3cQi/2roSIJJY2mwpUHqqpuQRV7alNO444ySteZE sBXU4yy1C4y+kYqodAuLQU70b6/jta62cksPYbd8ttxd+IiGct6iP0X2cmq7CJwyUNUJ 7Gli+ozx6+RpvEyCiqrPYxEpDtu6eexN1fxNnkUzWARExn6eSqQ93DGpRdiUIEZVWpK9 +ZkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680176420; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Ad5ImuNwyDlEfNz1x9SdHr56F5759G+Oln6t9LE/Dig=; b=wHx4IPJpALd+OlEYFFXIz+AD1GIvQ3XdHuQH+HxiCprpGjTBPGi12tB1dFkSoBU8GN UdSK3NyYlulLX20Co3Osys9ZeLoMtTFoM6G0VoyFF0J5gG+NbJQ9XcgtrC62SC3MfAnF dTsyLXbiXVrCGXI5ydJ75rDnydRyWQs1R10MqhWnz4W5piyB2DZbrm2d2Bqmy/9DZtr8 V7Lbuz7xE2dcAVJHC7knUUpKcnjJv4U7iplbAoi7KMpAUGJJG3nQefpUxg/fU3y8POiY FfZPpTouldfcxegMGbaxP4mPWrA3udHDGxO+iHlljWcbxcYEeppCdLMBP/qI/m5K2NIl c5uA== X-Gm-Message-State: AAQBX9eju2m4BNaQzYVDTmFN5MUpNqmeoohGSdBmeGKQcv5m5JwsdtGt EfK6EPLhNKlCuJYdJcWeAiHcqaGPojnF5WoYVfJfvFm9XOtrAg== X-Google-Smtp-Source: AKy350b7m9b4yi95rbzDm6FDeACYD1gxYKisvqSTF8mocxQhjQks8qy1aCr8CgrwSw87qTIIIQo7ut4vpXWLSTis+1Y= X-Received: by 2002:a05:6902:1586:b0:b23:4649:7ef3 with SMTP id k6-20020a056902158600b00b2346497ef3mr15448828ybu.4.1680176420003; Thu, 30 Mar 2023 04:40:20 -0700 (PDT) MIME-Version: 1.0 From: Gustavo Barros Date: Thu, 30 Mar 2023 08:40:08 -0300 Message-ID: Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::b32; envelope-from=gtvbrs@gmail.com; helo=mail-yb1-xb32.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, HK_RANDOM_ENVFROM=0.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.3 (/) 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: -1.3 (-) Hi All, since some time I've been noticing what I think is an odd behavior of `package.el' when it comes to packages that have been incorporated to the core, but are also distributed by external package repositories. For example, if I install `magit' or `rg', which are available only in external repositories, but which have a dependency to `transient' which is available both built-in and externally, `transient' is installed from an external repository, even though it is of the same version as the one currently built-in. Details: `rg` requires `(transient "0.3.0")`, `magit` requires `(transient "0.3.6")`. The currently released version of `transient` is "0.3.7", which is the same version which is available built-in (Emacs 28.2). Updating, e.g. `rg`, brings `transient` from the external repository, even though it is the same version as the built-in one and not a version required by the package. (I think the same happens to `magit` as I recall, the `rg` was just the most recent upgrade I got, and the problem occured). I may be missing something, but I don't see a way to configure this in `package-archive-priorities` (as far as I get the docstring, what I'm asking is different from setting negative priorities). What I have here is the following: (setq package-archives '(("melpa" . "https://melpa.org/packages/") ("gnu-elpa-dev" . "https://elpa.gnu.org/devel/") ("melpa-stable" . "https://stable.melpa.org/packages/") ("nongnu-elpa" . "https://elpa.nongnu.org/nongnu/") ("gnu-elpa" . "https://elpa.gnu.org/packages/"))) (setq package-archive-priorities '(("gnu-elpa" . 2) ("nongnu-elpa" . 2) ("melpa-stable" . 2) ("gnu-elpa-dev" . 1) ("melpa" . 1))) Is there a way to tell `package.el' to "prefer built-in"? Is there a way to tell `package.el' to install from an external source only if the dependency is strictly required? Best regards, Gustavo. In GNU Emacs 28.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-02-07 built on gusbrs-desktop Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Linux Mint 21.1 From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 04 04:42:09 2023 Received: (at control) by debbugs.gnu.org; 4 Sep 2023 08:42:09 +0000 Received: from localhost ([127.0.0.1]:48434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qd59t-0008R1-BH for submit@debbugs.gnu.org; Mon, 04 Sep 2023 04:42:09 -0400 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:60699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qd59q-0008Q3-WA for control@debbugs.gnu.org; Mon, 04 Sep 2023 04:42:08 -0400 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2bcb89b476bso17137331fa.1 for ; Mon, 04 Sep 2023 01:42:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693816921; x=1694421721; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=Cvr7P81Y2CEA/ZnqWnNPhxCfgFlgj1ZvUjXYDS4fd5g=; b=MFBct5H3JwXh5+p4NhU8m4gfsjaLfLPMGSIw0HZHkorSQwNoZf7uvtxgMoR6DvYuxS /UWV22TM4X4kfCBISBE1viaMIs9IHIhQgMzRwkvMA02ALK1gpRtuqaB/vU8i2/YEUXzH Bn61v1qRIp4x3XPqHg6O7O5A9OA3ZBoCspt7/sxbNTW3BDzwkDfAHk+f1W3hkFbX9V/i QmkWyCf9AU1C2l8Fv5x81f5brqtodT1FIBcF4n7NtqhN5DReU8bQ5g+aAVDi9aQVD4KJ 9OfTs3uU47Ro6POwxBaNcabSbQt98Kv1AWBtxuBlrI85EQ/I04sa48tXY04nXCifZhgM 6sGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693816921; x=1694421721; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Cvr7P81Y2CEA/ZnqWnNPhxCfgFlgj1ZvUjXYDS4fd5g=; b=MQb/+1qMRcq/oFlLaQpOEtv0GNzs3iniLXPx2mG0bTaThF4mvkU1rGSlSu7vhlFReG vlXryGZ7LdPiWMYbq1qPEztiAJeWVOd2YWgP4Cwp8VQ/bf9x/kPvF5OtghcjccG+xBcK 95BBRhP0wzPLkQlXMf/NrcMJBaqboTfxTHOpDM2hwKGe2RPy/H2zEsZfku5Y4qwIFOe5 1UdwQZa0SpbuwZPEh+R4YoPsueSRTATEc/WAzTzsL2/VEzT3mPCFN8QAh+YKFzrNqu9f 3G71wWt+cbjpastwMiwEU8kJhwZETrhd5O23YH7Png3VAw2Jxm84U0A7qY/pvkjGZ4a9 egLQ== X-Gm-Message-State: AOJu0Yx2WOUYul/G+7j4DUMuMDsy4eDcUHyD2RgYAEWsBQysD2w6dtXZ EhAuT+z9TrfQCLDfSDjA6wYKK0Iqntc1Z69/3ofODRME3pY= X-Google-Smtp-Source: AGHT+IFnHgWKkoeBB/nI3aep+euOc9WuDK7//EnnkwJdjbJxnm9NNCmzo0KwqQeOWdlyON9PFyfcvpDgmut0rDLTRrM= X-Received: by 2002:a2e:9056:0:b0:2ba:18e5:1070 with SMTP id n22-20020a2e9056000000b002ba18e51070mr6992334ljg.24.1693816921308; Mon, 04 Sep 2023 01:42:01 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 4 Sep 2023 01:42:00 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Mon, 4 Sep 2023 01:42:00 -0700 Message-ID: Subject: control message for bug #62541 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) severity 62541 wishlist quit