Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org.
Full text available.
Received: (at submit) by debbugs.gnu.org; 30 Mar 2023 11:40:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 30 07:40:32 2023
Received: from localhost ([127.0.0.1]:55949 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1phqds-0001PG-1C
for submit <at> 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 <gtvbrs@HIDDEN>) id 1phqdq-0001P7-3H
for submit <at> 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 <gtvbrs@HIDDEN>) id 1phqdn-0004cV-Ud
for bug-gnu-emacs@HIDDEN; 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 <gtvbrs@HIDDEN>) id 1phqdj-0001kd-PV
for bug-gnu-emacs@HIDDEN; Thu, 30 Mar 2023 07:40:26 -0400
Received: by mail-yb1-xb32.google.com with SMTP id n125so23006263ybg.7
for <bug-gnu-emacs@HIDDEN>; 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 <gusbrs.2016@HIDDEN>
Date: Thu, 30 Mar 2023 08:40:08 -0300
Message-ID: <CAM9ALR8dVNJLcfR+e728pMuvwdtcGtoo=3YqJ_+2sURO1Uyixg@HIDDEN>
Subject: 28.2; Dependencies of packages available both built-in and in
external repos
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::b32;
envelope-from=gtvbrs@HIDDEN; 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-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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
Gustavo Barros <gusbrs.2016@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#62541; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.