unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Wilhelm Kirschbaum <wkirschbaum@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 49864@debbugs.gnu.org
Subject: bug#49864: 28.0.50; Fails to start after "make install"
Date: Thu, 5 Aug 2021 20:27:06 +0200	[thread overview]
Message-ID: <CAOS0-34gYco4-QUoed2FpS3UnPuoZQN=yzZDyEviGiqkQTNLRw@mail.gmail.com> (raw)
In-Reply-To: <83a6lvkg7q.fsf@gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 2470 bytes --]

The patch I attached fixes the install issue for me without any other
modification. This patch also seems to be consistent with other MKDIR_P
commands in the Makefile.

 ### Install native compiled Lisp files.
 install-eln: lisp
 ifeq ($(HAVE_NATIVE_COMP),yes)
- find native-lisp -type d -exec $(MKDIR_P) "$(ELN_DESTDIR){}" \; ; \
+ umask 022; find native-lisp -type d -exec $(MKDIR_P) "$(ELN_DESTDIR){}"
\; ; \
  find native-lisp -type f -exec ${INSTALL_DATA} "{}" "$(ELN_DESTDIR){}" \;




On Thu, Aug 5, 2021 at 6:29 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Wilhelm Kirschbaum <wkirschbaum@gmail.com>
> > Date: Thu, 5 Aug 2021 17:21:36 +0200
> > Cc: 49864@debbugs.gnu.org
> >
> > 162  if (faccessat (AT_FDCWD, file, amode, AT_EACCESS) == 0)
> > (gdb) next
> > dump_do_dump_relocation (dump_base=<optimized out>, reloc=...) at
> pdumper.c:5325
> > 5325 eln_fname = make_uninit_string (execdir_len + fn2_len);
> > (gdb) p (int)errno
> > $1 = 13
> >
> > I can indeed access
> >
> /usr/local/libexec/emacs/28.0.50/x86_64-pc-linux-gnu/../../../../bin/../lib/emacs/28.0.50/native-lisp/28.0.50-864bf4e5/preloaded/window-0d1b8b93-dcb2375f.eln
> > but only as root. Which seems wrong. I can start emacs as sudo ( have
> not even checked this before )
> >
> > Which is then probably a umask issue as this folder's permission seems
> wrong:
> >  /usr/local/lib $ sudo ls -lah emacs
> > total 12K
> > drwx------ 3 root root 4.0K Aug  3 23:00 .
> > drwxr-xr-x 4 root root 4.0K Aug  3 23:00 ..
> > drwx------ 3 root root 4.0K Aug  3 23:00 28.0.50
> >
> > sudo ls -lah emacs/28.0.50
> > total 12K
> > drwx------ 3 root root 4.0K Aug  3 23:00 .
> > drwx------ 3 root root 4.0K Aug  3 23:00 ..
> > drwx------ 3 root root 4.0K Aug  3 23:00 native-lisp
> >
> > Yes the file exists, but I cannot access it as a non-root ( should have
> checked before ). I can remove the
> > folder and re-install and the permission is the same as above.
>
> So this sounds like some problem with how "make install" sets
> permissions on directories on your system: it ends up disallowing your
> user access to those files.  Or maybe you should follow "make install"
> by a suitable chmod command, to make those files accessible?
>
> I don't know enough about sudo to help you more, but maybe someone
> else here does?  The main question to answer, from my POV, is whether
> this is something we could address in our "make install", or something
> only you can fix on your system.
>
> Thanks.
>

[-- Attachment #1.2: Type: text/html, Size: 3263 bytes --]

[-- Attachment #2: specify-native-lisp-create-dir-umask.patch --]
[-- Type: text/x-patch, Size: 466 bytes --]

diff --git a/Makefile.in b/Makefile.in
index 97d954b..39808df 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -789,7 +789,7 @@ install-etc:
 ### Install native compiled Lisp files.
 install-eln: lisp
 ifeq ($(HAVE_NATIVE_COMP),yes)
-	find native-lisp -type d -exec $(MKDIR_P) "$(ELN_DESTDIR){}" \; ; \
+	umask 022; find native-lisp -type d -exec $(MKDIR_P) "$(ELN_DESTDIR){}" \; ; \
 	find native-lisp -type f -exec ${INSTALL_DATA} "{}" "$(ELN_DESTDIR){}" \;
 endif
 

  reply	other threads:[~2021-08-05 18:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04  5:42 bug#49864: 28.0.50; Fails to start after "make install" Wilhelm Kirschbaum
2021-08-04 11:56 ` Eli Zaretskii
2021-08-05  6:42   ` Wilhelm Kirschbaum
2021-08-05  6:50     ` Eli Zaretskii
2021-08-05  7:02       ` Wilhelm Kirschbaum
2021-08-05  7:09         ` Eli Zaretskii
2021-08-05  7:14           ` Wilhelm Kirschbaum
2021-08-05  7:58             ` Eli Zaretskii
2021-08-05 12:44               ` Wilhelm Kirschbaum
2021-08-05 13:33                 ` Eli Zaretskii
2021-08-05 14:04                   ` Eli Zaretskii
2021-08-05 15:21                     ` Wilhelm Kirschbaum
2021-08-05 16:29                       ` Eli Zaretskii
2021-08-05 18:27                         ` Wilhelm Kirschbaum [this message]
2021-08-06  6:48                           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOS0-34gYco4-QUoed2FpS3UnPuoZQN=yzZDyEviGiqkQTNLRw@mail.gmail.com' \
    --to=wkirschbaum@gmail.com \
    --cc=49864@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).