From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.help Subject: Re: Retrieving the "include" directory for Emacs Modules Date: Fri, 20 Dec 2024 01:50:31 +0200 Message-ID: <23743.4299824358$1734652291@news.gmane.org> References: <86ttbcdhwn.fsf@gnu.org> <865xnscj0s.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22960"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier To: Stefan Monnier via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 20 00:51:23 2024 Return-path: Envelope-to: geh-help-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 1tOQIc-0005pr-Ri for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 20 Dec 2024 00:51:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOQHz-0007Ui-2n; Thu, 19 Dec 2024 18:50:43 -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 1tOQHy-0007Ua-1m for help-gnu-emacs@gnu.org; Thu, 19 Dec 2024 18:50:42 -0500 Original-Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOQHw-0006WB-50 for help-gnu-emacs@gnu.org; Thu, 19 Dec 2024 18:50:41 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 80DBBD00099; Fri, 20 Dec 2024 01:50:32 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1734652232; bh=efBubsNo1geYwt4zTPEMeOS5974YSdsFeKvPB8B867g=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=ZrdkuDu4++tCXIhYDjA7PH1tURAhsn7g37xxgvA2YRlF9vDKRVZSK2QRkYqVQiKsO xPSDYDV+boUhxAdxyCMIcY278tze58ZnhEvpKzAe4zp8IeW08l3VX1PzLhgk+kzQpb f+DFo9o8TTFq4G/t8FzVWa71QxKP9cQAOV5sIWq8GwPFC2TM/OWdyGzHXAiXs/vlUl 5rhxo19feP1e09PzFT6mvnf0fQBtL5quWX6hgZ6IAyjCEfJepEfA0n72TuFiCTiczM 3wC8S2u5fjIyu/LUta/9suvLsulCz+Zu2M1FPEqJ3cUwCTA1MM1ExYogccKUECTMEi dDTlWFuD/dL5hjMt7KaC8Cqz6ucV5IJ3t9ob8Jj9XLpZE70YZk4/jjU3KHU2dLF9+D rQGMtyCi4fV4nnzXYQ+QPDZpFDnew/nGBB87Jv6EmH6TDhx6VFMhyDbFN+59yEJVfT SLccM6ZOFtY/Ny3C88CU4Y/HmcBBQ6IInZJR3G2PKe1r9SfDOismLG/pNLgIMISSah l2TvqI+k1R1ELdlGv9A0YL6cZ7fE3EsEvQ/M9BSuzjKJyqCgnAuitHqml9f5sMwTci 40Rr8YJWOdrk8/45mMqfRJu4mltbGzkQsGbqpUhyDDzrSrSlSOcA5P4eodYusCUZlN xyWupMcneTkAl8clviEKiXzA= In-Reply-To: (Stefan Monnier via Users list for the's message of "Tue, 10 Dec 2024 22:23:05 -0500") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 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, INVALID_MSGID=0.568, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148883 Archived-At: Stefan Monnier via Users list for the GNU Emacs text editor writes: >>> > As I tried to explain, if emacs-module.h is not installed in its >>> > intended place, we cannot know where it is installed. >>> The patch below would make sure that `emacs-module.h` is always >>> available at `$(data-directory)/include/emacs-module.h`. >> Sorry, this is wrong. [...] this is a change that will break previous >> (and correct) behavior. > > I don't see how it would break anything: the .h file is still *also* > copied to the $(includedir) for those people who want to compile their > module outside of Emacs. > >> No compiler will look in that directory without a suitable -I option, > > That's OK: the sole purpose of the change is to let ELPA packages call > `gcc` with such a `-I`! > Which is wrong for Unix-like systems except on macOS. It's debatable if packages should compile their native modules themselves but if they do they shouldn't change all systems just to accommodate macOS and Windows. Why not install the Emacs module header to PREFIX/include on these platforms and deduct the path of the header similarly to how eln-dest-dir is determined?