From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#48015: 28.0.50; ELPA package compilation fails Date: Tue, 27 Apr 2021 14:05:18 +0200 Message-ID: <87v988c4qp.fsf@gmx.de> References: <875z0amyxo.fsf@gmx.de> <87wnsql1ih.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35567"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48015@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 27 14:06:11 2021 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 1lbMTj-0008ut-1O for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 14:06:11 +0200 Original-Received: from localhost ([::1]:49174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbMTi-0005B0-3t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 08:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbMTa-00059B-6G for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 08:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbMTZ-0004uC-Rt for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 08:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbMTZ-0001l0-MA for bug-gnu-emacs@gnu.org; Tue, 27 Apr 2021 08:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Apr 2021 12:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48015 X-GNU-PR-Package: emacs Original-Received: via spool by 48015-submit@debbugs.gnu.org id=B48015.16195251366715 (code B ref 48015); Tue, 27 Apr 2021 12:06:01 +0000 Original-Received: (at 48015) by debbugs.gnu.org; 27 Apr 2021 12:05:36 +0000 Original-Received: from localhost ([127.0.0.1]:48220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbMT9-0001kF-Mp for submit@debbugs.gnu.org; Tue, 27 Apr 2021 08:05:36 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:53839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbMT6-0001jz-QY for 48015@debbugs.gnu.org; Tue, 27 Apr 2021 08:05:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619525124; bh=yV8RoxkASGPCy/9G2uFifkBsn5z4QnLlvcjthuDZo5c=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=OZqgxY47h00P5B85Iy0NlpDu+H9EtB9+tTXRtDg0gkwY8b1DA8aI6cToL4+Ec91JR ampJf7/Q3ZXbiC7ZV16JiXIkOVTRY4tdW9OR/rPQOdL3cEud4f/nDmnQ8bCWJGJs6I ZiflhrgZO/qEh0ikH9x+qRLgIT9B/+UDvXktOm+0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.86.54.40]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MTAFb-1m1uyl2d7n-00UY4q; Tue, 27 Apr 2021 14:05:20 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 26 Apr 2021 18:16:18 -0400") X-Provags-ID: V03:K1:c/g937Fn8WCeMfro4co5lJYPVOENYln0WfK1v06CjouBtDLKFB3 wTXwp3n0LHq3OKWSHn5bPlS07bpL6O/QgA8HtgySAEOPzZ9KCzGzuneeG/S01OeYHQmFmGK 4krU9D+gghj3Peb3yRv1OxcWpDsNYRkAgXGpEcz6YtFSjpmnNyhaUAkPNScLMzQvdbmxu5I PP/55s8C4rcqnXmEHqa8Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:iPxvN0YrDv0=:MEkt+XuWbZEx7tC49vfgHA yopL9BPModZiAR/vQXx13Lx9MwT84OhbHl2/2pvZAUCitNTWqU4eD2pzHtnTpdVwEBFAjaDiy QqyOOX1SdckkmgjrvYtSN8HN0+fgtyIEPd/Aaj2lEoVTQc6NWBP2492vRDGKb9zRAmPbJONi6 /U2oMAwwmywbSpe+XBj/d41zwyMLKBvb6UcHnxl37Y1Fw6Evq25VbhSsxLPF6wBmjcId1lSfW PeSnbRA93UJLm+Fy6C/EwbaxlVCIaxuK9RqcrvgdqUulAdL/4tkzPTcjcdxmiwLzoC5jfXVOl yAldgUtYw3TI3DQ8o8O/nZ8cd24QrJkJBXDyDqf5RaOHwbuLBW2TqLMZ1VneCIvIqQw2xDB99 QjSCZdfRVf3jpnlUy3mhx+bvYUfmkKbF/K975FZ2mZxigqoeB+CpYsbIBKwcpEZmu5jkveKYz Zp+otzqaQqHH6Nhr9URZr9I3NNGFUNR33ght2Ehk4oJLm2hJUB5PZnH8jWJYmfESDs8wwN7Mh JBkC8/l9bO9onAji0hDYt8ApUTQOSADVuKMYPZPoBKIlV7bw09gU6V205omBUjgG09yGv9PDS w0RYzcgameWCeO+f6GhW7XHmQfr4FLhe0vKqTHhFgl5OJk692YnCnOfC2Py+BWGLWjPQ0c/Yx iaRbuD0HHMArGxHvCCByL45B8zQIT0wfNAUhdZi9Y/c+2MDfV1AhtQBpi1J53UK6cJu6AYWuO BJcTvfAG/3yMzU9RxtxYV6LUld+52DLBTuz+uHeE12gyaJWPsoiqaXZ0+LwxqSkMHrgWLsre 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" Xref: news.gmane.io gmane.emacs.bugs:205011 Archived-At: Stefan Monnier writes: > The core problem that I see is the following: > > - Emacs's tramp gets loaded > - We go to a Tramp-controlled default-directory > - We call `package--load-files-for-activation` > - This starts by loading ~/.emacs.d/elpa/tramp-NN.MM/tramp-autoloads.el > This calls `tramp-register-autoload-file-name-handlers`. > - At this point, `package--load-files-for-activation` would like to > continue by (re)loading the new Tramp files, such as `tramp-compat` > and friends in the same order that they have been loaded > (i.e. `tramp-compat.el` before `tramp.el`). > - But before it gets a chance to do that, the file-name handlers > call `tramp-autoload-file-name-handler` because of `default-directory`, > which does (load "tramp" 'noerror 'nomessage), which loads the new > `tramp.el` before we got a change to load the new `tramp-compat.el`, > which then leads to an error when the new code in `tramp.el` calls > a new function from `tramp-compat.el` (which happens to be > `tramp-compat-thread-yield` AFAICT). > > At this point, I'm not sure how best to fix the problem. > Maybe replacing (load "tramp" 'noerror 'nomessage) with > (require 'tramp nil t) is all it takes. > Or maybe a better option is to arrange the autoloads such that > `tramp-register-autoload-file-name-handlers` doesn't "unload/unregister" file > handlers that have already been loaded so that the directory that was > already under Tramp's control doesn't re-trigger a call to > `tramp-autoload-file-name-handler`? What I don't understand: when (load "tramp" 'noerror 'nomessage) is called, default-directory is already local due to a let-binding. Anyway, even if the compilation runs through in case of a local default-directory, the resulting *.elc files have errors. I have quit Emacs (from the first recipe), and then I have started emacs -Q -L ~/.emacs.d/elpa/tramp-2.5.0.3/ /ssh:: There are further errors, which are related to a wrong tramp-compat.el. Only my new command tramp-recompile-elpa fixes this. > Stefan Best regards, Michael.