From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wGwMCIIS52ZJnAAA62LTzQ:P1 (envelope-from ) for ; Sun, 15 Sep 2024 16:59:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wGwMCIIS52ZJnAAA62LTzQ (envelope-from ) for ; Sun, 15 Sep 2024 18:59:46 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ice9.digital header.s=gm1 header.b=TZZb8Shk; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726419586; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=dWrrSUWNbIiwKVQ40OELFgeCQLcuX9Bl+eagZ3mFvuo=; b=XHPlBPKUsmyi1d1bbqWgsU2le104+WIczbSwstpX9On9LuNbuTJQLfLxt0ndCk7+npFos3 OCcGE5/MzIbhXoujFIrnJQV1nsbWjMVmGIBDrouE/1gCNiPQ5NVURIbOuFOpk268k5urqM GoNQ8wsSIIVPaTvTwO5ZS9mZHvNtDfJW0CKhabX+CocHPzHZRDSF/DZXbV3llnvbbIQaXZ aqSDm4gln+udGODe6BTds08AZBYfUqCe3P09zHrVTEGwa4cw/T40xtl2iBGMgYeCjuq2hM NuKYV7JSxDIupxxkoNp9OhQy0miDsIvtSbD+QysH8XzlMbFJpydh59fi66l0aw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ice9.digital header.s=gm1 header.b=TZZb8Shk; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726419586; a=rsa-sha256; cv=none; b=M2/JJN53TqoOM6jkL5w7DFMwmLZutNUygNLsz9fKAlyzhmqzJrfYC00zN/TOF7S+DfDlE0 VYfNrjOpCVP9waFII0nho7LRLc1jCNZAWP3+QC+VWDCyamWUweW7Y2pZvZnV0kEhbbzYFj VGwsGu/qzzfeT0aJ3UAoD3A1gvAYpwyiWFteBQts0Dm8ON0GteInx/Ns0uCeMFs2RqCeLo cN631rkawmxJNTczbrzzhnD0wj4d3G9uxRE9XuYtscYkhh0nnI/puyY9EHgZlo7hj4hzTs U8S6gtxeObfZLGDZOApfwOJWDDhWdj1ftV1N2VLNBMt5zkGF0dW1h5JsCREzlQ== 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 CDDC0430A for ; Sun, 15 Sep 2024 18:59:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spsaC-0001mc-F6; Sun, 15 Sep 2024 12:58:44 -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 1spsa9-0001m0-UA for emacs-orgmode@gnu.org; Sun, 15 Sep 2024 12:58:42 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spsa7-0003Ji-I9 for emacs-orgmode@gnu.org; Sun, 15 Sep 2024 12:58:41 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 31473FF802; Sun, 15 Sep 2024 16:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ice9.digital; s=gm1; t=1726419514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dWrrSUWNbIiwKVQ40OELFgeCQLcuX9Bl+eagZ3mFvuo=; b=TZZb8ShkSN+HEc7+sdxlNPj56OYNRr9+npOqshntteYzaLr4wArUUGRdx940pgoOzvFCaV wlnZ/1THT5NBoyB+t8mchE6MVfjQj4yw1a3zUqshaaK3ZSFUw3Fg7eRMw+941rmuqzsir0 VLrxv3hGquKZBm84Q7sJQ4nu3p7q4CczUlBD/eSOcFfhRUF/HiXXkfG3hTsZex69iLalfm KUB0XpXVu3d/hEdPbp0xhwZBIAuLQUwGChwUMCm4krIRh60HdBJ77Il8pQPmPv/FMC8Hqa YtLiBb72X7TIXqrxBnWYQFmAbYEUV8TOwGEZblMWLnQ4fonvGnnrhwpn92uIKA== From: Morgan Willcock To: Ihor Radchenko Cc: Lin Jian , emacs-orgmode@gnu.org Subject: Re: [BUG] What about excluding .dir-locals.el from GNU ELPA tarball? In-Reply-To: <87bk0p72bi.fsf@localhost> (Ihor Radchenko's message of "Sun, 15 Sep 2024 08:23:29 +0000") References: <87bk0p72bi.fsf@localhost> Date: Sun, 15 Sep 2024 17:58:31 +0100 Message-ID: <87tteg26rs.fsf@ice9.digital> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: morgan@ice9.digital Received-SPF: pass client-ip=217.70.183.199; envelope-from=morgan@ice9.digital; helo=relay9-d.mail.gandi.net X-Spam_score_int: -38 X-Spam_score: -3.9 X-Spam_bar: --- X-Spam_report: (-3.9 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1.048, SPF_HELO_PASS=-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-Queue-Id: CDDC0430A X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -6.30 X-Migadu-Spam-Score: -6.30 X-TUID: Ip78vm0FFVJr Ihor Radchenko writes: > Lin Jian writes: > >> 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. > > I do not see why anything is wrong on Org side. > .dir-locals.el is a perfectly valid file that may be created by users as > well. The fact that they are native-compiled is probably a bug in NixOS > or a missing feature in Emacs's native compilation (maybe it should skip > compiling dir locals automatically). I believe it is up to the file to opt-out of compilation. If the file is created with add-dir-local-variable there is a boiler plate header inserted which opts out: ;;; Directory Local Variables -*- no-byte-compile: t -*- ;;; For more information see (info "(emacs) Directory Variables") >> 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. > > Having dir locals file in the tarball can be useful for the users who > wish to edit Org mode's source code. We set a number of editing defaults > there that are employed across Org codebase. These defaults make our > life easier when users create patches by directly modifying Org mode code > they got via ELPA. > > Not a bug. > Canceled. > > I suggest you to report a bug or feature request to Emacs upstream about > native compiling .dir-locals.el. I don't think there is any upstream bug. The solution would be to add the missing header to the .dir-locals.el file. -- Morgan Willcock