From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54098: 29.0.50; Unexec build broken Date: Thu, 24 Feb 2022 08:19:55 +0800 Message-ID: <878ru186ac.fsf@yahoo.com> References: <87wnhnbcrk.fsf.ref@yahoo.com> <87wnhnbcrk.fsf@yahoo.com> <87a6ejb9ra.fsf@yahoo.com> <87wnhn9mm2.fsf@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29835"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 54098@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 24 01:21:11 2022 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 1nN1sc-0007XV-Um for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Feb 2022 01:21:11 +0100 Original-Received: from localhost ([::1]:57288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nN1sb-0008Td-RW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 19:21:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nN1sU-0008TT-Kp for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 19:21:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nN1sU-0000oB-6i for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 19:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nN1sT-0002q2-St for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 19:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Feb 2022 00:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54098 X-GNU-PR-Package: emacs Original-Received: via spool by 54098-submit@debbugs.gnu.org id=B54098.164566201110826 (code B ref 54098); Thu, 24 Feb 2022 00:21:01 +0000 Original-Received: (at 54098) by debbugs.gnu.org; 24 Feb 2022 00:20:11 +0000 Original-Received: from localhost ([127.0.0.1]:46859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nN1rf-0002oY-8F for submit@debbugs.gnu.org; Wed, 23 Feb 2022 19:20:11 -0500 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:34460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nN1rc-0002oF-Nu for 54098@debbugs.gnu.org; Wed, 23 Feb 2022 19:20:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645662002; bh=wwuJ54uxu2a3muwleliPW3VYoAC99YJEYmcv58o6VLM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=ZLFZOxNwR6D1NUWHKvyV0jYfpPGULOGjQI7dbt6YW287ETz2QBL4VjJYG0lWFE73DRwgprpbDhkH0uPc7wA1AtNAp2MBg5F8h++AuEWJCdZAPOE96AI8pOWNFanyD7HLU3oemOmx94utS4Slih2qCtrTcEvpinH+cW4Jcai5lP4EaL5VrL+wRv8Ub2KTqLxpfZd4evSDD6Ppte50zQzmn7tNIanGvRupq2EIMyR+xe+5FbZvActb+oa3ixeohowep/9mKnN28Xin2tABsjw5MG0u/JIObTGysfxEQzv86WnKRHmCOq2UtXiY0J7B+CN+We/4Vi8MGzKyAv7BpXCBRQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1645662002; bh=00UvB1zDxv5NJzK72X6k4FYt4MFzkuW+Rib1jcBhtvs=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=G/6TI2pFFwYIwo1KBQOoR6XO8yTcMx7KH7/bG7N9uolHNMhyeRJl6oAiNC/DQK18DDBhY0SKS0ukxRSjCBMgFmjhby0h5t3Yr/Ze3LEPX+y6gbPHQ5ld8B/3aGJsZQr+LHPom2d55Hteag2IV9sa1Qbo6Zte1YE7lBDG/rDIzYS4bGrBBZT2n1v3wmbQOpyLAkRSkAlDFe8RquLtHV5q7D11rRpbwXTEJIjEdnB9tiS/E46BP1/+VcKaVYV3sJNnFcYh4C2NW1+31GEMR2GEemFnrvRcxG1aPLowOYOulsvg9A8L6xu5Jsd5+H6ckrO4mkcyu+zsY1Od82oYX0X9ow== X-YMail-OSG: lL.BD88VM1meln84qapoAea2iIx_ArSxas8tzHkMndjjhis2dt2pI0IHeJmN5rd 3EhPDE3cMnl975RHMXsmPjhaXchmh.If_ajBx9flmmuyvI7toQUXxAHrwBLJsLEPwR9ooH9_M7zY 4.Y9yBZKwF_7UI_SRyNavh516b1cJTIwEuBYPr2ptFwiQ2u33ANzVS2lZ7IcQMviBGY48uIrBU7U ziwu30v8lsQWK70l5Zc1iKOqNaNthOwxwtvWZWwBBb0HVF7n2dvbzBrxZGjB566Oz7kiDQSbLpD6 G6tN2Q884AMd0MlHo46ZDP2ikS1auE5QEPl2YlmTvxHJn1zNt0PkCGGukcfzGBhZ4pf8O2z71A_s HhJiVI4xH4ryGFe9Npb4NJLDqsNvqlSuKQr_CjoEmP.0ssA_GHt7XNy45BwFK4QMJil8dvsNlYTc u2fwv_cS.9jrmw7xygjdDb8KfqPXEY51OCLNusgze14QhfY8L.J6C2L.mOPaIeXSS8YcS37QrKUE LwdZ8uylYby_RDn3nV7y9SpPvgIBVNA3qd1cFEbZKgrkVcAQG60kuaCk6rKFIqWiLzz_jANFugb_ H1BXgotFghyvVEXy1SbIztuXlToNTUcXsb8PNVzsYHf6zlWvEy87f6JkdE8Vktu45TMb6AH6is24 NnewbVkySZs4Me13HdGxZEt36YvQcQbNlYodpgmFfZggcxM04eRadWQcusnTR3Dd9MUdxLodxB7H AlusaFLPGZVi8FDkU4X.OEiGEsTUStwhAo_hIA5m_4_M1HLtHuey_0ct25uhbXrJS7pQb6fHwPy0 pDnNCxmRnLeeE6q7a2x2Z57e0AXD_.I9LQgwJ6k.rm X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Thu, 24 Feb 2022 00:20:02 +0000 Original-Received: by kubenode509.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7c2e4f5cd2e0195cb2498914c2ce2dac; Thu, 24 Feb 2022 00:19:59 +0000 (UTC) In-Reply-To: (Alan Mackenzie's message of "Wed, 23 Feb 2022 21:23:14 +0000") X-Mailer: WebService/1.1.19797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:227551 Archived-At: Alan Mackenzie writes: > I've changed approach. The previous code was continually overwriting > Lisp objects with themselves, particularly where it didn't need doing. > This is surely (??) what was happening in the pure storage. > > I've rewritten byte-run-strip-symbol-positions, so that changes are only > attempted where they're needed, i.e. where a symbol with position gets > replaced by its bare symbol. > > I'm hoping that this will now work OK, though I don't have a setup using > unexec to test it with. Would you please test it. > > I'm tending to the view that we need to make this function available to > Lisp hackers. I think we need both varieties of the function (the one > that makes a copy, and the one that modifies in situ), and that they > should be called simply strip-symbol-positions and > n-strip-symbol-positions (like reverse and nreverse). > > Anyhow, here's the patch: Bootstrapping an unexec build works now with your patch. Thanks.