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#63710: use-package not working Date: Mon, 5 Jun 2023 12:06:55 +0200 Message-ID: References: <46f1b2e2-4fd3-44ac-adc7-825729aaff24@gmail.com> <83mt1snbcj.fsf@gnu.org> <83bki8myl9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008f312505fd5f11e5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18832"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63710-done@debbugs.gnu.org, Eli Zaretskii , Andrea Corallo To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 05 12:09:01 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 1q6793-0004f1-7J for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Jun 2023 12:09:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q678O-0007jA-CL; Mon, 05 Jun 2023 06:08:20 -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 1q6788-0007bK-Mi for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 06:08:10 -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 1q6786-0001FR-SR for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 06:08:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6786-0005Q2-EC for bug-gnu-emacs@gnu.org; Mon, 05 Jun 2023 06:08:02 -0400 Resent-From: Pedro Andres Aranda Gutierrez Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Jun 2023 10:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 63710 X-GNU-PR-Package: emacs Mail-Followup-To: 63710@debbugs.gnu.org, paaguti@gmail.com, paaguti@gmail.com Original-Received: via spool by 63710-done@debbugs.gnu.org id=D63710.168595965420776 (code D ref 63710); Mon, 05 Jun 2023 10:08:02 +0000 Original-Received: (at 63710-done) by debbugs.gnu.org; 5 Jun 2023 10:07:34 +0000 Original-Received: from localhost ([127.0.0.1]:48161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q677e-0005P2-6R for submit@debbugs.gnu.org; Mon, 05 Jun 2023 06:07:34 -0400 Original-Received: from mail-lj1-f176.google.com ([209.85.208.176]:52505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q677Y-0005Oh-Eb for 63710-done@debbugs.gnu.org; Mon, 05 Jun 2023 06:07:32 -0400 Original-Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2b1b30445cfso36149011fa.1 for <63710-done@debbugs.gnu.org>; Mon, 05 Jun 2023 03:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685959642; x=1688551642; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=m9Tclm/B3T4oCmcLbK4G9SgZ0AKXrf+58k29/xT4iIg=; b=Lh6W0PLqqbouXf1J9m5ynUfQLnIcHzvT0u63QFAo8iyNcfMP5o+qOT172M+J5s0Yfu KVT6F1LIKSZAEeCUvD7X27Ni0wW01J2CTkhPoqm/s7B2pTXnCpOGwowMcOfDXRc1YcWx /gCKFr47ndI2OBrfa+IO/wuFXmCm4mTbz6h0GLpGRLTdQ0CKDj1sLmIC2oiJ845kShmo /xB4m4+x7QpTsvIOjeIyR8+4hEtuWvCbA9v4wFixKl9sD69eqsbM1pauW83aabX9wj+o 2yYTr6h2JLo0ehXtFIgxJQeNt97qjgLkQd1Yy3ZWOiO0HQSOyR8Il4S4Dx1sUUtoZJBm Fg3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685959642; x=1688551642; 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=m9Tclm/B3T4oCmcLbK4G9SgZ0AKXrf+58k29/xT4iIg=; b=Tivu7a5116RJ90DatcFHmf9T0Wo05Rtcg3pg6OhdcX7id0aYkEEYb6ox0oZtEn3NQ3 SLZoytr5VdAZWA8746X0P1AFFASnuorjFvhYkPelfkff77ym+qlkBfq1XJo4SIy+Qw7F tIzbTDR2Lb1YKlv9yWAuGXoG1WwMusWbr/5e+lD61vptwqXSLDXbA4DqKnEkPpresAVk P225Mz9TTMoAwgl/W7f574wA8iRQH73IuU8K0aJkkhCqJ4EihNiD7yd3nGV8YLymXEOq uloFt6HbtyqY/uxOwu9cbeBhKQKSnYxzWMTx+0PcUzv45r58uve9J3Vp3CQ7FhHyjmab yIGQ== X-Gm-Message-State: AC+VfDxK7Rgvx2yP+pcgCOSCYBbJjFdm5WvqnrYQ2K/FpNkoum/bCQC6 2vUDuOSnzBaFziRsx9T52LN19JC73clHBiva4PKEjQFR+CU= X-Google-Smtp-Source: ACHHUZ7EmoE8Ynb8dC5Hbg7g+9zlBALCRH1QWFTpRXoFucb6w5LrkZyAGExruINwzp2fg4YlDW3RuZo7YvOyLbZl9sc= X-Received: by 2002:a2e:3c03:0:b0:2ac:e66c:e91 with SMTP id j3-20020a2e3c03000000b002ace66c0e91mr3431030lja.19.1685959641869; Mon, 05 Jun 2023 03:07:21 -0700 (PDT) In-Reply-To: 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:263001 Archived-At: --0000000000008f312505fd5f11e5 Content-Type: text/plain; charset="UTF-8" HI, I was going to suggest it. I have rebuilt emacs w/native today and it seems to be stable. Thanks! /PA On Mon, 5 Jun 2023 at 10:36, Andrea Corallo wrote: > Andrea Corallo writes: > > > Andrea Corallo writes: > > > >> Andrea Corallo writes: > >> > >>> Pedro Andres Aranda Gutierrez writes: > >>> > >>>> First: the .emacs.d/init.el test file > >>>> > >>>> ------ > >>>> ;; > >>>> ;; My .emacs file > >>>> ;; > >>>> (require 'package) > >>>> (setq package-archives '(("melpa" . "https://melpa.org/packages/") > >>>> ("gnu" . "https://elpa.gnu.org/packages/") > >>>> ("melpa-stable" . " > https://stable.melpa.org/packages/") > >>>> ("nongnu" . "https://elpa.nongnu.org/nongnu/"))) > >>>> (eval-when-compile > >>>> (require 'use-package)) > >>>> (unless (file-directory-p package-user-dir) > >>>> (package-refresh-contents)) > >>>> (require 'use-package-ensure) > >>>> (setq use-package-always-ensure t) > >>>> > >>>> (use-package "compat") > >>>> ------ > >>>> > >>>> Second: 1d5b164109b59559d34c545c2a163fa067ca22b2 does work > >>>> > >>>> BTW, it has to do with native compilation. I have accidentally not > deleted the eln-cache in on of the tests and the > >>>> 'wrong' Emacs has started correctly: > >>>> 1. started 1d5b164109b59559d34c545c2a163fa067ca22b2 with eln-clean > cache ---> OK > >>>> 2. started b2b2be98da5825e6bc130999ffe38f5ed615586a with eln-cache > from the last start --> OK > >>>> 3. started b2b2be98da5825e6bc130999ffe38f5ed615586a with clean > eln-cache ---> KO > >>> > >>>>From these SHA1s looks like there's good chance it's my fault... > >>> > >>> I'll have a look. > >> > >> Okay I did some investigation and understood the issue. > >> > >> `package-load-descriptor' was misscompiled and returning always nil as > >> the compiler was not fully picking up the user defined types at compile > >> time, it worked only after the first faulty compilation (thing that made > >> the investigaiton a bit slower). > >> > >> I'm working on a more complete fix but this requires careful testing, I > >> pushed now c8e527cbeee in order to have master stable again while I keep > >> working on the most comprehensive fix. > > > > Okay RE-sending from this account and ditching my sdf.org probably > > forever as I'm getting a bunch of bounces classifying it again as spam: > > > > Hi all, > > > > I pushed what I think is the final fix and reverted the temporary one. > > > > As of fbc96dcc4ea I'm not aware of any issue with package.el or other > > code. > > > > Please let us know if works for you and we can close the bug or, if any > > other issue arise (please remember to clean the eln-cache before testing > > as it may contain misscompiled code ;). > > Okay one week passed since the fix was pushed and no more issues were > reported on this, so I'm closing it. Happy to reopen in case. > > BR > > Andrea > -- 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 --0000000000008f312505fd5f11e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
HI,
I was going to suggest it. I have rebuilt emacs w/= native today and it seems to be stable.=C2=A0

Than= ks! /PA

On Mon, 5 Jun 2023 at 10:36, Andrea Corallo <acorallo@gnu.org> wrote:
Andrea Corallo <acorallo@gnu.org> writes:

> Andrea Corallo <a= krl@sdf.org> writes:
>
>> Andrea Corallo <akrl@sdf.org> writes:
>>
>>> Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:
>>>
>>>> First: the .emacs.d/init.el test file
>>>>
>>>> ------
>>>> ;;
>>>> ;; My .emacs file
>>>> ;;
>>>> (require 'package)
>>>> (setq package-archives '(("melpa" . "= https://melpa.org/packages/")
>>>> ("gnu" . "https://elpa.gnu.org/package= s/")
>>>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("melpa-stable" . "https://stable.melpa.org/packages/")
>>>> ("nongnu" . "https://elpa.nongnu.org/= nongnu/")))
>>>> (eval-when-compile
>>>>=C2=A0 =C2=A0(require 'use-package))
>>>> (unless (file-directory-p package-user-dir)
>>>>=C2=A0 =C2=A0 =C2=A0(package-refresh-contents))
>>>> (require 'use-package-ensure)
>>>> (setq use-package-always-ensure t)
>>>>
>>>> (use-package "compat")
>>>> ------
>>>>
>>>> Second: 1d5b164109b59559d34c545c2a163fa067ca22b2 does work=
>>>>
>>>> BTW,=C2=A0 it has to do with native compilation. I have ac= cidentally not deleted the eln-cache in on of the tests and the
>>>> 'wrong' Emacs has started correctly:
>>>> 1. started 1d5b164109b59559d34c545c2a163fa067ca22b2 with e= ln-clean cache ---> OK
>>>> 2. started b2b2be98da5825e6bc130999ffe38f5ed615586a with e= ln-cache from the last start --> OK
>>>> 3. started b2b2be98da5825e6bc130999ffe38f5ed615586a with c= lean eln-cache ---> KO
>>>
>>>>From these SHA1s looks like there's good chance it'= s my fault...
>>>
>>> I'll have a look.
>>
>> Okay I did some investigation and understood the issue.
>>
>> `package-load-descriptor' was misscompiled and returning alway= s nil as
>> the compiler was not fully picking up the user defined types at co= mpile
>> time, it worked only after the first faulty compilation (thing tha= t made
>> the investigaiton a bit slower).
>>
>> I'm working on a more complete fix but this requires careful t= esting, I
>> pushed now c8e527cbeee in order to have master stable again while = I keep
>> working on the most comprehensive fix.
>
> Okay RE-sending from this account and ditching my sdf.org probably
> forever as I'm getting a bunch of bounces classifying it again as = spam:
>
> Hi all,
>
> I pushed what I think is the final fix and reverted the temporary one.=
>
> As of fbc96dcc4ea I'm not aware of any issue with package.el or ot= her
> code.
>
> Please let us know if works for you and we can close the bug or, if an= y
> other issue arise (please remember to clean the eln-cache before testi= ng
> as it may contain misscompiled code ;).

Okay one week passed since the fix was pushed and no more issues were
reported on this, so I'm closing it.=C2=A0 Happy to reopen in case.

BR

=C2=A0 Andrea


--
Fragen sind nicht da, um bea= ntwortet 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 ru= n a leader-deposed hook here, but we can't yet

--0000000000008f312505fd5f11e5--