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.bugs Subject: bug#52376: 28.0.90; libdir is missing from native-comp-eln-load-path with GTK3 build Date: Thu, 9 Dec 2021 00:49:36 +0530 Message-ID: References: <83a6hbvw5d.fsf@gnu.org> <838rwvvtqs.fsf@gnu.org> 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="5934"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52376@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 08 20:21:29 2021 Return-path: Envelope-to: geb-bug-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 1mv2VN-0001Gt-AY for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 20:21:29 +0100 Original-Received: from localhost ([::1]:58908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mv2VL-0007Kd-Pi for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Dec 2021 14:21:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mv2Ux-0007KN-30 for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 14:21:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58107) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mv2Uw-0008Os-Rp for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 14:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mv2Uw-00048L-P3 for bug-gnu-emacs@gnu.org; Wed, 08 Dec 2021 14:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bhavin Gandhi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Dec 2021 19:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52376 X-GNU-PR-Package: emacs Original-Received: via spool by 52376-submit@debbugs.gnu.org id=B52376.163899122115795 (code B ref 52376); Wed, 08 Dec 2021 19:21:02 +0000 Original-Received: (at 52376) by debbugs.gnu.org; 8 Dec 2021 19:20:21 +0000 Original-Received: from localhost ([127.0.0.1]:41411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv2UG-00046h-TD for submit@debbugs.gnu.org; Wed, 08 Dec 2021 14:20:21 -0500 Original-Received: from mail-yb1-f182.google.com ([209.85.219.182]:34313) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv2UF-00046H-2G for 52376@debbugs.gnu.org; Wed, 08 Dec 2021 14:20:19 -0500 Original-Received: by mail-yb1-f182.google.com with SMTP id y68so8427727ybe.1 for <52376@debbugs.gnu.org>; Wed, 08 Dec 2021 11:20:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UxiGsLiWxauQvsTSlL1azpBwP41H/cgNgp+Ec908sS4=; b=nOVSeGfs5tbEreaQ8u3ym618ZCWc+hDCtoVGuTAEqmsLRgfsvoROhIJ3PSHfV/FB/o 2A+5pANgb09Nouf15akkc0lZ9WG9GPfno1k8SkAdv2LlZyGorlQ5ufiy1+0g2GPlTjF7 GwUMYRrvMSA9vh6OXLs5XHeG1Eh+xwXwn4CA49aY6aoLnesZqJG3qUDxOXPv7ivQRNv3 wZO9bwpo/+EvnNyMTLgUFjZIrbdMh7pRLn7L5diM1Y62SrcFywjrOJKpndgAfJG0eunX BxKMUI8UwGbcNR7x4kGZUhisKoMSpBxFQB5Xwm7wayHVoCP99TqbyBBPAUHI8Jm0N2er j/jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UxiGsLiWxauQvsTSlL1azpBwP41H/cgNgp+Ec908sS4=; b=nJpusjkW/1pLw2riZz45YRufNJx1tX0O8+o/d67BytG9LAO4AfR0zsJxCIUberHOB1 kEoMdUJHrAfD80HRrToj48UOFxNV2G0l2Kc51oC+IJPQ78d4rI6608J1c/nuncWCbe7x slvlOBgxCdoN4nccgC4eXW/Uo1Xg+7noUZ/7WRGFfIO6sKHeXtYUE0WGewG8mqxrSdi5 /hup0kMx9vqwR30odwOxwGn5KlbjEFJyuTIU1MyweDBdhR0/2xGSfeVZvoDi4SRXPDI3 gggimAknoR1C84UMuHq+8xUPR4M4GMEkVvu+9N1NcopzwuIDLMVp8ZiqWAmjKTPrROnZ BrXQ== X-Gm-Message-State: AOAM531OWezFAUQ5Wyoe7Gfla1dTfSMg6ircKEs01Pzgb1vTueIouAh+ uR9dZtCQUWlkGbkm9OSYZQm8Gtq5vvwDfzBT4b1Ykw/v380= X-Google-Smtp-Source: ABdhPJzcYufJX2J8Teq6Nel02Gq/bo5t7/S6n4iHZt8JXaLRdnobSsWEUpTijnd93Q8vmL5wkf8ssX/zVfwQa/4NNzY= X-Received: by 2002:a25:50cf:: with SMTP id e198mr764240ybb.508.1638991213392; Wed, 08 Dec 2021 11:20:13 -0800 (PST) In-Reply-To: <838rwvvtqs.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221940 Archived-At: On Wed, 8 Dec 2021 at 23:56, Eli Zaretskii wrote: > > > > No clean-up is done between the two builds. > > Maybe you should do the cleanup. How can I do that? By extracting the source tar again? > Also you didn't show the "make install" commands -- are they > installing into different places? Where are the corresponding > emacs.pdmp files? The way this is being done right now is: After all three are built, make install is run from build-gtk directory only. And for other two, only relevant files are copied over to the required locations as: /usr/bin/emacs => /etc/alternatives/emacs => /usr/bin/emacs-28.0.90 (actual binary) /usr/bin/emacs-28.0.90.pdmp /usr/bin/emacs-lucid => /etc/alternatives/emacs-lucid => /usr/bin/emacs-28.0.90-lucid /usr/bin/emacs-28.0.90-lucid.pdmp The corresponding directories from native-lisp for each of them are copied over as well to /usr/lib64/emacs/28.0.90/native-lisp/ This means the *.el and *.elc files from GTK3 build are used by the other two. These are the steps which happen after building all three: %{buildroot}: the final destination from which the RPM package is created, it is a chroot. %{version}: 28.0.90 here %{native_lisp}: /usr/lib64/emacs/28.0.90/native-lisp # Remove versioned file so that we end up with .1 suffix and only one DOC file rm build-{gtk,lucid,nox}/src/emacs-%{version}.* cd build-gtk %make_install cd .. # Let alternatives manage the symlink rm %{buildroot}%{_bindir}/emacs touch %{buildroot}%{_bindir}/emacs # Remove emacs.pdmp from common (we copy it over in later steps) rm %{buildroot}%{emacs_libexecdir}/emacs.pdmp # Install emacs.pdmp of the emacs with GTK+ install -p -m 0644 build-gtk/src/emacs.pdmp %{buildroot}%{_bindir}/emacs-%{version}.pdmp # Install the emacs with LUCID toolkit install -p -m 0755 build-lucid/src/emacs %{buildroot}%{_bindir}/emacs-%{version}-lucid install -p -m 0644 build-lucid/src/emacs.pdmp %{buildroot}%{_bindir}/emacs-%{version}-lucid.pdmp # Install the emacs without X install -p -m 0755 build-nox/src/emacs %{buildroot}%{_bindir}/emacs-%{version}-nox install -p -m 0644 build-nox/src/emacs.pdmp %{buildroot}%{_bindir}/emacs-%{version}-nox.pdmp lucid_comp_native_ver=$(ls -1 build-lucid/native-lisp) nox_comp_native_ver=$(ls -1 build-nox/native-lisp) cp -ar build-lucid/native-lisp/${lucid_comp_native_ver} %{buildroot}%{native_lisp} cp -ar build-nox/native-lisp/${nox_comp_native_ver} %{buildroot}%{native_lisp} > Did the final dump process show that it loads "native-compiled lisp" > files for all the preloaded files? In the native-lisp/*/preloaded directory there are 124 files, and the following log has 113 lines which say (native compiled elisp). It is same for all the 3 builds. This is what you were referring to, right? Loading loadup.el (source)... Dump mode: pdump Using load-path (/home/bhavin/src/emacs/emacs-pretest-rpm/emacs-28.0.90/build-gtk/../lisp) Loading emacs-lisp/byte-run (native compiled elisp)...