From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0ICgHW5042ZYHgAA62LTzQ:P1 (envelope-from ) for ; Thu, 12 Sep 2024 23:08:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0ICgHW5042ZYHgAA62LTzQ (envelope-from ) for ; Fri, 13 Sep 2024 01:08:30 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=linj.tech header.s=mail header.b=iW159lG0; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=linj.tech ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726182510; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pUVBlzazym6tzPFYWL+nIZATz4uyPwYDbmDoY34iU24=; b=rT1f4y5DTL+axHYg/NDkEAqS4S+9UGqBN2iYz1yhqSEzMlckc7Yy95Kkev3VbnEzsEGSIk ocisaAdnqpIcsu/ED0zH/zG9W2tPGYjiT8CSjYuSWnZJeuer7SjIW5WJS0hW2mTs5Wt1sO rHxhf+FJYDVPFCTeSlVfsl2LEspJ1v/JmMAcsNMVi84lObpN5RxvGxfodl4KGHf/Wmi94d sn4Eb8qEBbzTMkeVLJ6D6e27ynPK6x2fxUeoRXzDQiam7eUdANtiZkgrGpFkggSuue9C4K 1/v+EqqRJo0QnXgB7qgw0t0QXvBR8niqc+SsAFMw8PibBhUF1GOmAnhPssd0Mg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726182510; a=rsa-sha256; cv=none; b=mq/USpdMuq3umP5/eusTsndQpUjK0uxF59AlEixTGJA8tDvlB7NKTNnikVcLbnKQuXzcio 0Qf7mlbag844GgnHyOPBt5YqqDbeZ6C80B+33lW9A1oT/L6gby+6ymh5hJVo8jwBrPeT7S j+NH+iTnzLQ+WQg+OpMxrWcHTFYEqO2Cj8LrHF2bJzT/SMgtfz+zhQQXyikERKt+/Atl+l ZRpXgs2GZ3Ih33UIeOcjEZpMswM7IQ64Ru35vTAOLucrpzxgCCP9X4bTcnTwNsozGQOB8w Dx42PkTlb8zExgMU3bREbdsVJcFm4U/GgeA04ye6qsevw76fokeugpOALRJ8dg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=linj.tech header.s=mail header.b=iW159lG0; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=linj.tech Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 234C560E0F for ; Fri, 13 Sep 2024 01:08:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sosub-0005hh-Fx; Thu, 12 Sep 2024 19:07:41 -0400 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 1sosuZ-0005gw-3y for emacs-orgmode@gnu.org; Thu, 12 Sep 2024 19:07:39 -0400 Received: from mail.linj.tech ([5.255.109.209]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sosuW-0003zQ-US for emacs-orgmode@gnu.org; Thu, 12 Sep 2024 19:07:38 -0400 From: Lin Jian DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linj.tech; s=mail; t=1726182453; bh=pUVBlzazym6tzPFYWL+nIZATz4uyPwYDbmDoY34iU24=; h=From:To:Subject:Date; b=iW159lG0QN9P72pU3PfQcTE3dVHLRQQsFxqBveotncpCAHeD8RNFPRo6lBWrftM+D e6OfdkyqIgNuXetzQ+on0JEr04fIPoeBchOSOc3T+1BPYbgs2vXmgtwKhtjQBwVCmq 0WMrRKVGErZLDhr6D3/E6KKS6Vbx/DifLNNe6Cw7slV+pGuUR3B9iRvAvfPbF7fTXj UqQ7jctnxb/IZRLYQFnclZvXbON4OQqFH6RZibkMSsxlohl63ZkwYxr8pednEIfhPw 8GqzdlZQXX3JcvFUQIV/01Efn54rWAxLWDGCq5jn/XVjLkUUAlp8heyOf2oWOlvUdh I/00Jaw3/6Lqw== To: emacs-orgmode@gnu.org Subject: [BUG] What about excluding .dir-locals.el from GNU ELPA tarball? Date: Fri, 13 Sep 2024 07:07:26 +0800 Message-ID: <87zfocwjwx.fsf@linj.tech> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=5.255.109.209; envelope-from=me@linj.tech; helo=mail.linj.tech X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.69 X-Migadu-Queue-Id: 234C560E0F X-Spam-Score: -6.69 X-TUID: UcNi8tD+9yv+ Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Dear Org maintainers, Currently, the .dir-locals.el file is included in the GNU ELPA tarball[1], which causes this compilation error[2] when doing AOT native compilation for Emacs lisp packages in NixOS. Error: wrong-type-argument ("/nix/store/-emacs-org-9.7.10/share/emacs/site-lisp/elpa/org-9.7.10/.dir-locals.el" proper-list-p (org-edit-src-content-indentation . 0)) mapbacktrace(#f(compiled-function (evald func args flags) #)) debug-early-backtrace() debug-early(error (wrong-type-argument "/nix/store/-emacs-org-9.7.10/share/emacs/site-lisp/elpa/org-9.7.10/.dir-locals.el" proper-list-p (org-edit-src-content-indentation . 0))) signal(wrong-type-argument ("/nix/store/-emacs-org-9.7.10/share/emacs/site-lisp/elpa/org-9.7.10/.dir-locals.el" proper-list-p (org-edit-src-content-indentation . 0))) comp--native-compile("/nix/store/-emacs-org-9.7.10/share/emacs/site-lisp/elpa/org-9.7.10/.dir-locals.el") batch-native-compile() command-line-1(("--eval" "(setq large-file-warning-threshold nil)" "--eval" "(setq byte-compile-error-on-warn nil)" "-f" "batch-native-compile" "/nix/store/-emacs-org-9.7.10/share/emacs/site-lisp/elpa/org-9.7.10/.dir-locals.el")) command-line() normal-top-level() Wrong type argument: "/nix/store/-emacs-org-9.7.10/share/emacs/site-lisp/elpa/org-9.7.10/.dir-locals.el", proper-list-p, (# . 0) We can workaround this by skipping native compilation for .dir-locals.el. However, I do not think .dir-locals.el has to be included in the GNU ELPA tarball. In addition, MELPA ignores[3] that file by default. Could you exclude .dir-locals.el from GNU ELPA tarball? FYI, :ignored-files[4] of GNU ELPA specification can be used to do this. [1]: https://elpa.gnu.org/packages/org-9.7.11.tar [2]: https://hydra.nixos.org/build/271406205/nixlog/1 [3]: https://github.com/melpa/melpa/blob/0c608bf895a3b5230b781662510e1326af17ea13/README.md?plain=1#L169-L170 [4]: https://git.savannah.gnu.org/cgit/emacs/elpa.git/tree/README?id=51936a29b693bfc5f4f92e365b485a7c547b2ac1#n175 Best wishes, Lin Jian