From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#63710: use-package not working Date: Mon, 29 May 2023 12:21:22 -0400 Message-ID: References: <46f1b2e2-4fd3-44ac-adc7-825729aaff24@gmail.com> <83mt1snbcj.fsf@gnu.org> <83bki8myl9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39766"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63710@debbugs.gnu.org, Eli Zaretskii , Pedro Andres Aranda Gutierrez To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 29 19:31:36 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 1q3giV-000A90-VK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 May 2023 19:31:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3gi1-0007Ov-Ot; Mon, 29 May 2023 13:31:05 -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 1q3ghz-0007OP-NH for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 13:31:03 -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 1q3ghz-0002jy-EV for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 13:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3ghz-0002ai-2f for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 13:31:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 May 2023 17:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63710 X-GNU-PR-Package: emacs Original-Received: via spool by 63710-submit@debbugs.gnu.org id=B63710.16853814629952 (code B ref 63710); Mon, 29 May 2023 17:31:03 +0000 Original-Received: (at 63710) by debbugs.gnu.org; 29 May 2023 17:31:02 +0000 Original-Received: from localhost ([127.0.0.1]:59092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3ghx-0002aE-Gn for submit@debbugs.gnu.org; Mon, 29 May 2023 13:31:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3fcd-0000Zx-S8 for 63710@debbugs.gnu.org; Mon, 29 May 2023 12:21:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3fcY-00047i-L0; Mon, 29 May 2023 12:21:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Gc8QrmaU3xsy5MSuieqWZ+TMnHcVwKDVTkYBWX8s4kM=; b=WrafMWulumzphPRUg+cq pyZMHxGRR9WZkmjYFjRQGaHMt4a8OqJ9uzsleE74hYs1VtOKGK926bONz6q41+2u8WYdEQJHFaD4r ZrupHL5TGLmM2QjFI8shN/p6O6aFZRVtYJiw/PKZ1vy6TVAMxN06QWywbSRNJKECFp8mHcwTxQE2k O+S1Ph1pmjVBB8PEf4IBLb3Vwhuhya/IhBWCPLykAw+anVSH6yjyp6oqJLkS5CMZ+VG7N8i0xBZf1 GzV7Z0NVIt5h3W6tXdaPkAYLwkIpFR4UEeWc0avTj1fckd0Gu9WXIRIcIyYxvh2nAqb0vUjAX4TGA aUXXM/udyK/PZw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1q3fcY-0007zw-Dm; Mon, 29 May 2023 12:21:22 -0400 In-Reply-To: (Andrea Corallo's message of "Sun, 28 May 2023 13:30:52 +0000") X-Mailman-Approved-At: Mon, 29 May 2023 13:30:58 -0400 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:262609 Archived-At: 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 ;). Thanks Andrea