From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bhavin Gandhi Newsgroups: gmane.emacs.devel Subject: Packaging Emacs with native compilation enabled Date: Sun, 5 Dec 2021 19:02:08 +0530 Message-ID: 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="17974"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 14:57:36 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mts1H-0004Ss-NY for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 14:57:35 +0100 Original-Received: from localhost ([::1]:46432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mts1G-0005am-Iz for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 08:57:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtrdI-0006Mf-RA for emacs-devel@gnu.org; Sun, 05 Dec 2021 08:32:49 -0500 Original-Received: from [2607:f8b0:4864:20::b33] (port=39599 helo=mail-yb1-xb33.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtrdG-00055I-T7 for emacs-devel@gnu.org; Sun, 05 Dec 2021 08:32:48 -0500 Original-Received: by mail-yb1-xb33.google.com with SMTP id v203so23651091ybe.6 for ; Sun, 05 Dec 2021 05:32:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=TsIIMOkZMbSMHSEp4WkYRa043KRbRWM58Lm31NNDaTc=; b=FlYjn7MRLscVYt79Ty2loE/UtijJQFPtDkN6WMmGoS6/QiuTr8yFE5vuEC0sDhIuCL fJkERYBuSilgtRZOkGnwa9vlpCFk9g8kVisW9637c6NuTSB7oljH5kdZ5WM0LhMSp4aN lp3VKyMmmaHvI+9Md6vGBir57UhaM4NOQVQbM4WMaNxqDqQ9SLouW64CQPi+y4uFFpVr dta3UMwTzfMVK2WzosSE7c2KNXcQFxCPUN+KxOETZld15ndBtdDwrFhX2KYIxYwO1cVu +DLncATLVaVZMz/J5iWnrtzVzEAShNX9XYytA1eqAj+byv28o/xKEDGxAWK7bXccBnfi ufTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=TsIIMOkZMbSMHSEp4WkYRa043KRbRWM58Lm31NNDaTc=; b=wv33bgVPhcq8yj+mIv6fi9uMMDML9VThb12/B8C4AIt9cmvwxu2YQOanQZkFYYK++K QB6L7cANJwLvwh8QgRhQ32SAUi9xcY+10HMIfd1KXc9etgoFO8Qx8XXrV6vyQl6gYleS zI2eMyHCCL4Izcv47XPGhpYgbrBdWIgQ6TqzUgpfcOUN6M30RhwKtjt6ztoj+kYTtSpr SA+9D2qWGRqq7EZjhxN0uYLckAN9mYmPtkqeCX9eXPFTXIeU8U/6p+/x0FJnzjk9XrKZ iLomXEGUvUW2BSi2IKozs8CitnD8qBj3WUzN2Xmh/wgk2BWuigveAopwKbv50NPhMatI GlIA== X-Gm-Message-State: AOAM530xwYqkA7s1L4EdDSeC4q94fiV43w2KGl+PLBqJ1wmXpQe3XK6U Mw8S7ToDRQCW0u4IQfPRa2/dAuoDfL4gI/FXd8gUJVCXrYo= X-Google-Smtp-Source: ABdhPJzXwnIKV4nSVZOXdLcmzAVdqIBN1H+ABp6WcZyFS3MocbgXBl5wVbcZSXQXf6fwhH8ZICnjmMjTn3L0MV0xmPM= X-Received: by 2002:a25:ac96:: with SMTP id x22mr34428734ybi.477.1638711164850; Sun, 05 Dec 2021 05:32:44 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b33 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::b33; envelope-from=bhavin7392@gmail.com; helo=mail-yb1-xb33.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 05 Dec 2021 08:56:16 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280998 Archived-At: This is the first time I'm creating a new thread on this list. Sorry, if this is not the correct place to discuss this. I'm packaging the 28.0.90 pretest as RPM with native compilation enabled. The `make install' installs some .eln files to lib64 directory i.e. /usr/lib64/emacs/28.0.90/native-lisp/28.0.90-/. 1. Should these files be there in the final package, which is distributed to users? Based on what I have understood from Andrea's EmacsConf 2021 talk[1] and the "(elisp) Native Compilation" page: the .eln files are CPU specific and should not be shared across. And those will be created when Emacs starts on the end user's machine. With that in mind, I deleted the *.eln files from the package. But when I start emacs-nox (the one without X), it gives this error: $ emacs-nox -Q Error using execdir /usr/bin/: emacs: /usr/bin/../native-lisp/28.0.90-f21cc02e/preloaded/frame-b40fc590-e67d4a02.eln: cannot open shared object file: No such file or directory If I add the 28.0.90-f21cc02e directory to the lib64 directory mentioned above, it starts correctly. I can see the path in `native-comp-eln-load-path' variable. I think those .eln files are required. If so, is it okay to package and distribute these .eln files along with the emacs binary? If this is already discussed / documented somewhere, can anyone please point me to that resource? [1] https://emacsconf.org/2021/talks/native/ -- Regards, Bhavin Gandhi (bhavin192) | https://geeksocket.in