GNU bug report logs - #59503
28.2.50; cannot set --mandir when installing

Previous Next

Package: emacs;

Reported by: daanturo <daanturo <at> gmail.com>

Date: Wed, 23 Nov 2022 05:13:02 UTC

Severity: normal

Found in version 28.2.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: daanturo <daanturo <at> gmail.com>
Cc: 59503 <at> debbugs.gnu.org
Subject: bug#59503: 28.2.50; cannot set --mandir when installing
Date: Wed, 23 Nov 2022 15:54:48 +0200
> Date: Wed, 23 Nov 2022 12:11:55 +0700
> From: daanturo <daanturo <at> gmail.com>
> 
> Despite having set --prefix and/or --mandir to a writable directory in
> my $HOME, `make install` always throws me this:
> 
> /usr/bin/mkdir: cannot create directory ‘/usr/local/share/man/man1’: Permission denied

Please show the complete Makefile from the top-level directory of the tree
where you built Emacs.

AFAICT, the command to create that directory is

	umask 022; ${MKDIR_P} "$(DESTDIR)${man1dir}"

and ${man1dir} is determined as follows:

  datarootdir=${prefix}/share
  mandir=${datarootdir}/man
  man1dir=$(mandir)/man1

So if you set prefix to some directory, man pages should be installed in the
share/man/man1 subdirectory of that directory, not in
/usr/local/share/man/man1.  Something's amiss here.





This bug report was last modified 2 years and 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.