From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marco Antoniotti Newsgroups: gmane.emacs.help Subject: Re: Retrieving the "include" directory for Emacs Modules Date: Thu, 26 Dec 2024 11:01:43 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31630"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 26 10:02:28 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 1tQjlE-00089B-6z for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Dec 2024 10:02:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQjkl-0004QU-WB; Thu, 26 Dec 2024 04:02:00 -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 1tQjkk-0004QC-4s for help-gnu-emacs@gnu.org; Thu, 26 Dec 2024 04:01:58 -0500 Original-Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQjki-0004NA-FS for help-gnu-emacs@gnu.org; Thu, 26 Dec 2024 04:01:57 -0500 Original-Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-e39885e1925so539280276.3 for ; Thu, 26 Dec 2024 01:01:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735203715; x=1735808515; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=XLbFX1UxAX9O4TVwluFS1e02BfgK4AeLYTboa6BqD2I=; b=lpsQAGw7vvwAdqM/tF5wWZ3a9feccr2E7QNfTBgALr1bk4l5HbljBrJL8sSnGHjpyZ YKZczzBWjqsdMhXsdiDmaZzgNFwIJZ1WUPnXFoIP3vzfrLg9DBdZsY/1o+BKZx8O9yVr FjiayWR8TGS6ew5n/MU8JorjCkWjCc4K/WEF9hfIIH6BvwO4h3kLEiIK1d0sBCO/GS2N 5PsMepSA4gCS942A52ynR+af/BuyVbyqaompgZQisnrroR1i4ShIM3vlWEEMIXtBfHpR TD6IWHmW2DBBjCjceaFQezIjdrIeKimVLXPuHJgzB0+B1aZ/AQ+YhvxisS7mp+g3LzWD 7GRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735203715; x=1735808515; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XLbFX1UxAX9O4TVwluFS1e02BfgK4AeLYTboa6BqD2I=; b=nndJmjYxFVVQywhh+CY9LguQqLEUOAOvFdJpIL/Sp9L0m3tGHuEkPv+NYYZtkQJJtu p7AcZbgpDKbkmG+NaouZk7U7EeUx0/8w4Wjm+L6nGq63ppkL7UJasMS1O3sat3R8ztzo UjnJuBMgTFgm6rFf/YyYo+FinlxIrPe1tWTLcWp5CmIOhqiz7mW6i13TyQ30R6cgT678 L6YphNl3mCYgAxKwhqLRI2FN0KB2X8McKN4hlobAjB9+9aUJcBKXCBwMKaUQsvaKBG5X YynHCu7WIlDnhv73Wa2lmTnzCt41gKn2kXjgIQF1sbzB+95GyAjzezHoSv++UoL5sjP8 5JAw== X-Gm-Message-State: AOJu0YyOEnBxdjtxUkCpGDZ2sHeRj+vmNEKawHus7LLdyWfRM+EeZoEG A/9CjdK86wMinnOxBm0yil/OQ3ejIGG80kVPT6yz95dHaYgPseX5daqa90joB7oojdrmknMZUEi djSCRBWjyD0/xX0oa6XaA6GBXxdmdrA== X-Gm-Gg: ASbGncveRFQzPVGuPwV3I7xvpQzGlrjggb6y1/gJi7rPTAuw5u/3eUfXjkcJGoENu1P uwtwx62GkgFeR3c60bwWJH8J1PgQLBsbhsAzUnuiO X-Google-Smtp-Source: AGHT+IFFFPux/Dl01JRmLEb/IyZ9E5cwGQ3Ng2pxAVszyrazj24KkkpKnRlqJei6dyj+6fCItukAj+4FQuIgaSAq+zM= X-Received: by 2002:a05:690c:9a09:b0:6ef:827b:2441 with SMTP id 00721157ae682-6f3f823ef2fmr71725707b3.7.1735203714718; Thu, 26 Dec 2024 01:01:54 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=marcoxa@gmail.com; helo=mail-yb1-xb2e.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:148990 Archived-At: Hi Again, Stefan makes the right observation. An Emacs "installation is "proper" depending on the local rules. Even on Linux when you use snap. Therefore, the proposal is to add include-directory to the list of the following ones lisp-directory data-directory exec-directory source-directory doc-directory user-emacs-directory trash-directory Adding an em: prefix (or a more traditional em- one) would be a plus. With that you can then use EM_INCLUDE_DIR="`emacs --batch --eval '(princ include-directory)'`" in your build scripts. I am not subscribed to the help-gnu-devel mailing list. Please pass it on there. All the best Marco > Those under /usr/lib are looked in by the relevant compilers (they are > include directories private to those compilers, hard-coded into them > when they are built). Those under /usr/share are private to the > relevant packages, and are either examples or test suites (thus AFAIU > unrelated to the issue at hand here). Those under /usr/src are what I > mentioned: private headers needed to build a package. Indeed, they each have their own reason to exist. And this is in Debian, i.e. a distribution which is very careful to install things in the one central place where they belong. Other relevant cases will look very different: Emacs.app, AppImages, Snap packages, etc... Stefan -- Marco Antoniotti Somewhere over the Rainbow