From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74490: 31.0.50; make bootstrap fails Date: Sat, 23 Nov 2024 12:03:56 -0500 Message-ID: References: <4934163.OV4Wx5bFTl@fedora> <86mshqkqtd.fsf@gnu.org> <86iksekp39.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20387"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74490@debbugs.gnu.org, Eli Zaretskii , v.pupillo@gmail.com, Sam James To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 23 18:05:22 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 1tEtZP-00055l-H9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Nov 2024 18:05:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEtZB-0003SO-I0; Sat, 23 Nov 2024 12:05:05 -0500 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 1tEtZA-0003RM-Hr for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 12:05:04 -0500 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 1tEtZA-0002pI-9M for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 12:05:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=U8uQGwa/4oU+FAhLFPQNODtwYrzkJniCK7BZAQUuYCk=; b=AjcEot6m3+HS26URzcX6G6si2zn79wP1sZI7I1XGfA4slRqeCUAPfBydCpeD0npKrgYzN/eGdnhSVIkanaHeE05q4D8CujknQHdaUYzzS8iFpAeN5z2amDCK4xlmCLVZRyYBFEIMo1B1FDD0iFTqy2R7YYWxDw9MQhRV+iC1PRi3o66KLZVknuaTkUkfu7UUXCAzH/7lqiEfz6helPzKSgwIUFom0sHTGTYk5QAoeHfqRPrP5lwd2Ou/8Jw4r9koUkchx1bO93SP35A/LUcO0XgwmVxqiVSTmL6TOtfSPwqfus/JRE//K5JmTbsfb7rmA8rvkRsiddNlI4ITz2KeWA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEtZ8-0001DQ-2Y for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 12:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2024 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74490 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74490-submit@debbugs.gnu.org id=B74490.17323814504534 (code B ref 74490); Sat, 23 Nov 2024 17:05:02 +0000 Original-Received: (at 74490) by debbugs.gnu.org; 23 Nov 2024 17:04:10 +0000 Original-Received: from localhost ([127.0.0.1]:58907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEtYH-0001B3-Vr for submit@debbugs.gnu.org; Sat, 23 Nov 2024 12:04:10 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEtYG-0001Ah-QG for 74490@debbugs.gnu.org; Sat, 23 Nov 2024 12:04:09 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 548C6804BC; Sat, 23 Nov 2024 12:04:02 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1732381437; bh=QFCzxmKDqNNki9nknNPTs3Tv/P2ryyQ/W5yVfxcR8BY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=fZNNJ3DR5Wy3Rlawa6NHVgrSzrgy1eWQbt0Vuz6FSZthJcNb6yUP9VBQW4nbhdkAR 1ULxPgCFsZkdUAmI77Pueh9BoZCFqCeDFhjwKNrfpZmxI44gQANiEVL2tsNbuUdOF4 V78RGo0kwBWqDLqyBdYSf9wz/pZIz6n/DgpKyr4qvU8mfO6MWNqpaV4Ghs+hOGPjPm I7M3Jn3Yts02BDXTQ/g+GwEGnPec+su7hwYFs/D3obssmF4p9W6innwA0lh+9VEQXu azajp3yzlHzWPyvB7DGkzn9S3DSsr/BP/yBFoJSESdKWWzxeCsFYVgOziiiL+yvboC DOTiaoyBLv65A== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4F7B280683; Sat, 23 Nov 2024 12:03:57 -0500 (EST) Original-Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EB265120588; Sat, 23 Nov 2024 12:03:56 -0500 (EST) In-Reply-To: (Stefan Kangas's message of "Sat, 23 Nov 2024 10:53:24 -0500") 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:295851 Archived-At: > I couldn't find a clean way to do that, so I installed a quick > workaround to avoid having a broken master. If anyone has a better > idea, please speak up (or just install it). [ I don't know if it qualifies as "clean" but: ] The problem we're facing shows up only during bootstrap, when we're loading `loaddefs.el`, and not in the real dump where we load `loaddefs.elc`. Since we presumably don't make any real use of that regexp (we don't visit any Python file) while compiling Emacs, another workaround might be to wrap the call to `rx` around something like an `(when (fboundp 'rx) ...)`. >> Stefan, are there any clean ways of using calls to autoloaded macros >> in autoloaded defconst or defvar? Currently our autoloading mechanism doesn't offers any clean way to enforce some kind of ordering, sadly. I guess we could also try something like: ;;;###autoload (defconst python--auto-mode-alist-regexp (eval-when-compile (require 'rx) (rx (or (seq "." (or "py" "pth" ; Python Path Configuration File "pyi" ; Python Stub File (PEP 484) "pyw")) ; MS-Windows specific extension (seq "/" (or "SConstruct" "SConscript"))) ; SCons Build Files eos))) - Stefan