From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: lin Sun via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62609: 29.0.60; [PATCH] src/comp.c: New variable `comp-el-to-eln-strip-prefix` for `comp-el-to-eln-rel-filename` Date: Sun, 2 Apr 2023 05:13:28 +0000 Message-ID: References: <1181651021.466162.1581309285621.ref@mail.yahoo.com> <1181651021.466162.1581309285621@mail.yahoo.com> Reply-To: lin Sun Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000064dc7305f85381f4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30655"; mail-complaints-to="usenet@ciao.gmane.io" To: 62609@debbugs.gnu.org, eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 02 07:14:18 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 1piq2j-0007qj-WC for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Apr 2023 07:14:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piq2b-0007H8-Tw; Sun, 02 Apr 2023 01:14:10 -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 1piq2W-0007Gt-OC for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 01:14:05 -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 1piq2U-00080K-Rv for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 01:14:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1piq2U-0000Rz-D7 for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 01:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: lin Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2023 05:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62609 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" , Eli Zaretskii Original-Received: via spool by submit@debbugs.gnu.org id=B.16804124331705 (code B ref -1); Sun, 02 Apr 2023 05:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Apr 2023 05:13:53 +0000 Original-Received: from localhost ([127.0.0.1]:38962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piq2L-0000RR-0O for submit@debbugs.gnu.org; Sun, 02 Apr 2023 01:13:53 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piq2J-0000RI-GZ for submit@debbugs.gnu.org; Sun, 02 Apr 2023 01:13:52 -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 1piq2J-0007GL-8h for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 01:13:51 -0400 Original-Received: from sonic302-20.consmr.mail.ne1.yahoo.com ([66.163.186.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1piq2G-0007zf-Ug for bug-gnu-emacs@gnu.org; Sun, 02 Apr 2023 01:13:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1680412425; bh=t4BZOS89mqn5pnVWLVz0wNTFJedRT/ah+2ECWPVUiHA=; h=References:In-Reply-To:From:Date:Subject:To:From:Subject:Reply-To; b=P8rE71o3F3vbUyo0Ojv1VsUOTN+vX4j2ufNw0MkrkeYelrG9ghCsGq6QM5EIi4bLDOxXXeuDyQ+lJu6F6wSKGg6rxvcASonmgaIBS97MEALhigaPfiTfb+2UiavjWCDP/rgdkoHQnFheS9kNC/vqAV5mtc0Ji2yAFa8lOxxteiTpXITxaH9iUbXGpbqNuLxGi2RJx/yq2cYL3E8slCHe2sPRLDZEbggHMUXywyPSKZ440daO9x7ia9g9BygTAENF0mNTLitSn+RNSjA/KRUCi9WAnI15yfeCtK1HRj8JyaBLS+boNRHCVVaSy6rNXXcxK/mYR2ltSrDxz9dfJsvS5Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1680412425; bh=17zTWWcJ7LlDmST+F1raZy5wcTp1NIIOxTjvBzF9Slo=; h=X-Sonic-MF:From:Date:Subject:To:From:Subject; b=gML7A65t9E/lVTOLDEsDBFkOtbeEJiWEFQW9nl5OWM9u7056/on3Ban8cswjBgmiN8nshz61e/BXeLvtdmpHD6dhbAWt5tMubL26JE7M0v1W9qDUwwAVdM8SkqJShGttcUbpOohRqjfwmSrMPb53sbr0lVv9xSUL9bAVCH9MKErxTTLNA0pjYI9TnQ22bc4Hp/d5ZVEPGmOgiKAdEgZXI09MUcallSO7eGtqotEuRkbWIzb73myZLIx0Xuk4Op13AI7h6d48XjRhXe5CttEo2RpNnXg62b8SP11rwIHEOqtr2ToMTZ9UgF7kARbPYDx7AE7OBLqbD35F/OmBLJKnfA== X-YMail-OSG: IB0FAPIVM1mWNZVuhUuPc3HupUt7uiMi08FBTxsolOjNXWzWola0HKuyW3yER53 g84WkwGKF9BxR9kl4ku1obv1Ymfv6Dfs3Ku9MO_S1qenJsaatZu2ISkkeoVeLCg2g5hEQUhQdeMn T7osbNSf3taUK0oy6ZMaskc3kR3uhP7phuzvpguy1VgyLWNt0f9eStqf4HBUj4hoE4D3_6Bq5j0m V40dn02Y6Vd0SXAX8Y0kJnvYkOPicR08OEcodOvtjOeg8vkEgnFn7pbJgekjo0mqrTmosfY06lLA XFcRLT71luF1i1wmzI3KtzAreDSfWzAGK.ttjyTjNR3Hs7dm_GGSzf8frmTSGCACHzbgxQhYcoY2 HOf52lm1C9Opk0V.yx00FTG9M44h8XvmZZNhUEzD_sFnhvaAoVmRLtCZkVkrQWCCiJDWKYRPAK9V r4VnAzbSycZgzipMBhnc7vSPSfBZc13e_wCJJng4AElhZNFKCfDYt2fz6v9uXYNM7a3JIu6U_Eff J20T0gvJhq5AkcPs97EotUUNzPTOUS2_RuVceAx.DDng5RyCVSP.fJ4eMBOimuXHPZyz1xqGwCHa IbMLLG2AFjUg4tnd61FL056FQgoJTB60MTXkFhF4PRH_lBKjMaBpF.c9UqhQA1Mwo36tuAet.gFt TPvTRS_NcIfRIIBveQjtgGIVfUgmGyqCkfWFuqVLcuJJ1wIXptlG7WMm5bD1xH5WxLb_u7d0EWNh QHamhk5jaaau931KUyQSydAmh1xjzmDjomxyv5OggVapdiCk0QkULl5hYK8wWDbqYGIVgcASbc48 ajoacA8yQvHqqRGnVcO0CQeRFXUMtPf9XrvzYPWCsn X-Sonic-MF: X-Sonic-ID: 5a97b65b-ca2f-4ee7-8463-14b1f420d244 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Sun, 2 Apr 2023 05:13:45 +0000 Original-Received: by hermes--production-ir2-74cd8fc864-qfvhg (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b4e26f7c406070854b02ad1e1d207fd8; Sun, 02 Apr 2023 05:13:41 +0000 (UTC) Original-Received: by mail-ed1-f51.google.com with SMTP id t10so104989271edd.12; Sat, 01 Apr 2023 22:13:41 -0700 (PDT) X-Gm-Message-State: AAQBX9cX/5h+QHgDNVIoWfCuDCFM1d4RpXZ+DAd0Ci0i9AdKIGNifgT3 BBy0QGf9HaNrbb/r7S/ZGfNCNZSl9YcZk0WUvs0= X-Google-Smtp-Source: AKy350anVpITxEMWrjZ7sq73daTCeW9rM+km5LLdfU4HexT7JKxA0R6e2FsOeY4lzmDK0zLNXKaGa/vYqvre15tbYN0= X-Received: by 2002:a17:906:abd3:b0:948:5b2a:7841 with SMTP id kq19-20020a170906abd300b009485b2a7841mr403563ejb.5.1680412420387; Sat, 01 Apr 2023 22:13:40 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: X-Mailer: WebService/1.1.21284 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.146; envelope-from=sunlin7@yahoo.com; helo=sonic302-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:259086 Archived-At: --00000000000064dc7305f85381f4 Content-Type: text/plain; charset="UTF-8" Hi, The emacs with native compile enabled will always rebuild all the ~/.emacs.d/eln-cache/VER/*.eln files if I moved/copied eln-cache folder from /home/userA/.emacs.d/eln-cache/ to /home/userB/.emacs.d/eln-cache/. It is caused by the function `comp-el-to-eln-rel-filename` calculating the hash value from the absolute *.el filename to be the middle of the eln file name. The new variable `comp-el-to-eln-strip-prefix` in this patch will allow moving the eln-cache/ folder without rebuilding *.eln in it. Please help review this change, Thanks Best Regards Lin --00000000000064dc7305f85381f4 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-New-variable-comp-el-to-eln-strip-prefix-for-comp-el.patch" Content-Disposition: attachment; filename="0001-New-variable-comp-el-to-eln-strip-prefix-for-comp-el.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lfyy5ou70 RnJvbSBhZTZhOTQxMjM2MDQ0ZDY0ZTJlOGY4OGY2NjczOTE0OWY1MjYwMzk0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW4gU3VuIDxzdW5saW43QGhvdG1haWwuY29tPgpEYXRlOiBT dW4sIDIgQXByIDIwMjMgMDA6MDA6MDkgKzAwMDAKU3ViamVjdDogW1BBVENIXSBOZXcgdmFyaWFi bGUgYGNvbXAtZWwtdG8tZWxuLXN0cmlwLXByZWZpeGAgZm9yCiBgY29tcC1lbC10by1lbG4tcmVs LWZpbGVuYW1lYAoKKiBzcmMvY29tcC5jOiBkZWZpbmUgdGhlIHZhcmlhYmxlIGBjb21wLWVsLXRv LWVsbi1zdHJpcC1wcmVmaXhgCiogZW1hY3MtbGlzcC9jb21wLmVsOiBmb3J3YXJkIHRoZSB2YXJp YWJsZSB0byBuYXRpdmUgY29tcGlsZSB3b3JrZXJzCi0tLQogbGlzcC9lbWFjcy1saXNwL2NvbXAu ZWwgfCAgMSArCiBzcmMvY29tcC5jICAgICAgICAgICAgICB8IDE3ICsrKysrKysrKysrKysrKy0t CiAyIGZpbGVzIGNoYW5nZWQsIDE2IGluc2VydGlvbnMoKyksIDIgZGVsZXRpb25zKC0pCgpkaWZm IC0tZ2l0IGEvbGlzcC9lbWFjcy1saXNwL2NvbXAuZWwgYi9saXNwL2VtYWNzLWxpc3AvY29tcC5l bAppbmRleCBlOTc4MzI0NTViOS4uNmM5Y2NiMjQ3Y2EgMTAwNjQ0Ci0tLSBhL2xpc3AvZW1hY3Mt bGlzcC9jb21wLmVsCisrKyBiL2xpc3AvZW1hY3MtbGlzcC9jb21wLmVsCkBAIC0zOTk2LDYgKzM5 OTYsNyBAQCBjb21wLXJ1bi1hc3luYy13b3JrZXJzCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBuYXRpdmUtY29tcC1kcml2ZXItb3B0aW9ucwogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9hZC1wYXRoCiAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiYWNrdHJhY2UtbGluZS1sZW5ndGgK KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbXAtZWwtdG8t ZWxuLXN0cmlwLXByZWZpeAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgOzsgcGFja2FnZS1sb2FkLWxpc3QKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIDs7IHBhY2thZ2UtdXNlci1kaXIKICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIDs7IHBhY2thZ2UtZGlyZWN0b3J5LWxpc3QKZGlmZiAt LWdpdCBhL3NyYy9jb21wLmMgYi9zcmMvY29tcC5jCmluZGV4IDNmNzJkMDg4YTY2Li5lYWQxMTcx YjAwMSAxMDA2NDQKLS0tIGEvc3JjL2NvbXAuYworKysgYi9zcmMvY29t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