From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gustavo Barros Newsgroups: gmane.emacs.bugs Subject: bug#62541: 28.2; Dependencies of packages available both built-in and in external repos Date: Thu, 30 Mar 2023 08:40:08 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="396"; mail-complaints-to="usenet@ciao.gmane.io" To: 62541@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 30 13:41:16 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1phqeZ-000AUD-RC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Mar 2023 13:41:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phqeQ-0004ei-VA; Thu, 30 Mar 2023 07:41:06 -0400 Original-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 1phqeN-0004eW-Px for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 07:41:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phqeM-0001re-SV for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 07:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phqeM-0001QI-C5 for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 07:41:02 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16801764325415 (code B ref -1); Thu, 30 Mar 2023 11:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Mar 2023 11:40:32 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258920 Archived-At: 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