From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.bugs Subject: bug#71356: use-package doesn't load org from elpa Date: Thu, 6 Jun 2024 08:11:37 +0200 Message-ID: References: <86plsvk57o.fsf@gnu.org> <86ed9aip6z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cffdd3061a328f1a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10953"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71356@debbugs.gnu.org, philipk@posteo.net, acorallo@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 08:25:56 2024 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 1sF6ZO-0002bX-TW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 08:25:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sF6ZK-0001Vn-MM; Thu, 06 Jun 2024 02:25:50 -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 1sF6ZI-0001TM-1y for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 02:25:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sF6ZH-0001fD-Pv for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 02:25:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sF6ZW-000193-3T for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 02:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pedro Andres Aranda Gutierrez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jun 2024 06:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71356 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71356-submit@debbugs.gnu.org id=B71356.17176551204315 (code B ref 71356); Thu, 06 Jun 2024 06:26:02 +0000 Original-Received: (at 71356) by debbugs.gnu.org; 6 Jun 2024 06:25:20 +0000 Original-Received: from localhost ([127.0.0.1]:41765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sF6Yp-00017V-UZ for submit@debbugs.gnu.org; Thu, 06 Jun 2024 02:25:20 -0400 Original-Received: from mail-ed1-f50.google.com ([209.85.208.50]:54589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sF6NI-0000YC-0a for 71356@debbugs.gnu.org; Thu, 06 Jun 2024 02:13:25 -0400 Original-Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-57a68b0fbd0so531123a12.1 for <71356@debbugs.gnu.org>; Wed, 05 Jun 2024 23:13:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717654324; x=1718259124; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uwYx+Jjp65UAqhmwd5cFaEFJ1hFR9GIKRBQhPvGOBKc=; b=Kpp4d/5jJVeZjubkWtMq8dGSJ7W1CgLWUXB2pITH8IDPTWQ8qygdgmYxd70avtAqIK GsVQvVzEKGHj7q0tpcuzxns/pSnJ2FAVbtmh2AIWKZO6uViv6kAmIZqNV03Wqmsn+8jP wteM5t3/3Vjm3dlVNs/PXHnCikIIHC7bCl2M/ZqyyW/5aGpJ4A3QK/PGuz7+4HrxXjmo jN8TRXTcRMHWaokxu1EadNKDG4aU9xBOUkCPc6XG2YMjqLfazGeU165/1udV7w0pANkx YOKuh5mF1J0p40PuHckDGO7lKC6OUR+5p8Y+NW42Ox8RTzGRfIhuOtoW83ePmtpMbY+V PF4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717654324; x=1718259124; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uwYx+Jjp65UAqhmwd5cFaEFJ1hFR9GIKRBQhPvGOBKc=; b=Nxx/mJ6IyBTytwmbxcHalSrcBdxl9n8q768nBulYcud9y3443Z5N1MBAaCMgvv3nvh n2shC09sN45eY9lWPMwxrfQD6PmPt7NhdQgnWXAmzWOSpbuH3AigXeXI712cdw5usSz3 eSQQrtTznsFJTGlCH04f95gk0qWKEaybMVi0+0wfMSjL5ayFgkVhtr/mYcEk6aeJaAFr stTt5c0AykHs78pMF6cP+h2oDsd3KVoAVWX36hgkmlqx9iZqf1vAkUGkx8/LbDF/YDA/ EAoOIj43gRjwMBIXk/4IyzRlflyBefrydt7Jei0M12jvhPPDnVAyTBeSlx8kqXDEXrqy j12Q== X-Forwarded-Encrypted: i=1; AJvYcCVtnRJd5ddRlpFJCtzrCulwL50rRI7spOfJJZRjOqL7wym0Y0zGgi05YomjKTnP/V8hfba/nDDS2Pk5zLVDppOsE3SJYXI= X-Gm-Message-State: AOJu0Yw9xI+9TC67xWo4X2z42evGyyE9tvP+bKrYHVJq2K/2/n7n4VmL P63mg/lHudZngaHbn866LKZV/ogW7gHcYFwOgG27P3TQAvS2uw9IUsEHXg8GOTzp6e5iYbtM8AK WoWAtdJfDOJH3kri5YBpRjTUBj9w= X-Google-Smtp-Source: AGHT+IFgWLJKBIzS2GB6qw2MCKXfs4cAemNYyFOuXYaUxA7V9mjy3vAwRcyWMR/G3ZskSG9VhhWpwR65tbHMFeOd2GU= X-Received: by 2002:a50:a6d5:0:b0:575:954:7ef with SMTP id 4fb4d7f45d1cf-57a8b6740f4mr3398465a12.3.1717654323721; Wed, 05 Jun 2024 23:12:03 -0700 (PDT) In-Reply-To: <86ed9aip6z.fsf@gnu.org> 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:286662 Archived-At: --000000000000cffdd3061a328f1a Content-Type: text/plain; charset="UTF-8" Answers inline On Thu, 6 Jun 2024 at 08:02, Eli Zaretskii wrote: > > From: Pedro Andres Aranda Gutierrez > > Date: Thu, 6 Jun 2024 07:46:31 +0200 > > Cc: Eli Zaretskii , Philip Kaludercic , > 71356@debbugs.gnu.org > > > > Andrea is right. Reading through all the documentation, I implied > > that use-package would upgrade built-in packages if I pinned them to an > archive > > and I :ensure'd them. > > > > Use case: want to upgrade org from the 9.6.x version packaged with > master to the > > 9.7.x version available in elpa. > > > > Maybe this is more a FR and if so, we could move this to the list and > have an informed > > discussion there. > > I'd like to hear from Philip. If use-package just uses package.el, > then the behavior is expected. > Let's see > Do you have package-install-upgrade-built-in set non-nil? If not, can > you set it non-nil and try the recipe again? > Retried on an unpatched emacs master with package-install-upgrade-builtin set to t and had the same behaviour. > As for a feature request: what exactly is the feature requested here? > Are you saying that use-package should automatically upgrade built-in > packages? If so, I don't think this will fly, since it would mean > inconsistencies with package-install. > This is exactly what I would like to discuss ;-) What options do we have to allow built-in packages to be upgradable from the archives? Maybe something that would emulate #+begin_src (require 'package) (setq package-install-upgrade-built-in t) (package-initialize) (when (not package-archive-contents) (package-refresh-contents)) (package-install 'org) #+end-src A new keyword in combination with :pin so that we can cherry-pick which packages we want to actually refresh from elpa and which ones we are fine with if they are built in? I just want to raise the question (see below ;-) ) Best, /PA -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000cffdd3061a328f1a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Answers inline

On Thu, 6 Jun 2024 at 08:02= , Eli Zaretskii <eliz@gnu.org> wr= ote:
> From: = Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Thu, 6 Jun 2024 07:46:31 +0200
> Cc: Eli Zaretskii <eliz@gnu.org>, Philip Kaludercic <philipk@posteo.net>, 71356@debbugs.gnu.org
>
> Andrea is right. Reading through all the documentation, I implied
> that use-package would upgrade built-in packages if I pinned them to a= n archive
> and I :ensure'd them.
>
> Use case: want to upgrade org from the 9.6.x version packaged with mas= ter to the
> 9.7.x version available in elpa.
>
> Maybe this is more a FR and if so, we could move this to the list and = have an informed
> discussion there.

I'd like to hear from Philip.=C2=A0 If use-package just uses package.el= ,
then the behavior is expected.

Let'= s see
=C2=A0
Do you have package-install-upgrade-built-in set non-nil?=C2=A0 If not, = can
you set it non-nil and try the recipe again?

Retried on an unpatched emacs master with package-install-upgrade-bui= ltin=C2=A0set to t and had the same behaviour.
=C2=A0
As for a feature request: what = exactly is the feature requested here?
Are you saying that use-package should automatically upgrade built-in
packages?=C2=A0 If so, I don't think this will fly, since it would mean=
inconsistencies with package-install.

This is exactly what I would like to disc= uss ;-) What options do we have to allow built-in packages to be=C2=A0
= upgradable from the archives? Maybe something that=C2=A0would emulate
=

#+begin_src
(require 'package)
(setq p= ackage-install-upgrade-built-in t)
(package-initialize)
(when (not pa= ckage-archive-contents)
=C2=A0 (package-refresh-contents))
(package-i= nstall 'org)
#+end-src

A new keyword i= n combination with :pin so that we can cherry-pick which packages we want t= o actually refresh from elpa
and which ones we are fine with if t= hey are built in?

I just want to raise the questio= n (see below ;-) )

Best, /PA
--
Fragen sind nicht da,= um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we sh= ould run a leader-deposed hook here, but we can't yet

--000000000000cffdd3061a328f1a--