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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59503 in the body.
You can then email your comments to 59503 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#59503; Package emacs. (Wed, 23 Nov 2022 05:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to daanturo <daanturo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 23 Nov 2022 05:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: daanturo <daanturo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.2.50; cannot set --mandir when installing
Date: Wed, 23 Nov 2022 12:11:55 +0700
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

Currently on commit 0636e106

Configure flags:

./configure --prefix=$HOME/opt/emacs-28.2.50
--program-transform-name='s/\(ctags\)/\1.emacs/' --with-json
--with-libsystemd --with-modules --with-native-compilation
--with-sound=alsa --without-compress-install

-- 
Daanturo.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59503; Package emacs. (Wed, 23 Nov 2022 13:55:02 GMT) Full text and rfc822 format available.

Message #8 received at 59503 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: daanturo <daanturo <at> gmail.com>
Cc: 59503 <at> debbugs.gnu.org
Subject: Re: 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.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#59503; Package emacs. (Wed, 23 Nov 2022 15:21:02 GMT) Full text and rfc822 format available.

Message #11 received at 59503 <at> debbugs.gnu.org (full text, mbox):

From: daanturo <daanturo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 59503 <at> debbugs.gnu.org
Subject: Re: bug#59503: 28.2.50; cannot set --mandir when installing
Date: Wed, 23 Nov 2022 22:20:11 +0700
Thank you. Turns out it wasn't any bug but my mistake for running `make
extraclean` after `./configure` but before `make install`.

Please close this bug (I don't think bug reporters can do that, but if that's
possible, can you show me the docs?).

-- 
Daanturo.





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Wed, 23 Nov 2022 16:45:01 GMT) Full text and rfc822 format available.

Notification sent to daanturo <daanturo <at> gmail.com>:
bug acknowledged by developer. (Wed, 23 Nov 2022 16:45:01 GMT) Full text and rfc822 format available.

Message #16 received at 59503-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: daanturo <daanturo <at> gmail.com>
Cc: 59503-done <at> debbugs.gnu.org
Subject: Re: bug#59503: 28.2.50; cannot set --mandir when installing
Date: Wed, 23 Nov 2022 18:45:07 +0200
> Date: Wed, 23 Nov 2022 22:20:11 +0700
> Cc: 59503 <at> debbugs.gnu.org
> From: daanturo <daanturo <at> gmail.com>
> 
> Thank you. Turns out it wasn't any bug but my mistake for running `make
> extraclean` after `./configure` but before `make install`.
> 
> Please close this bug

Done.

> (I don't think bug reporters can do that, but if that's possible, can you
> show me the docs?).

You _can_ close bugs, just send message to NNNN-done <at> debbugs.gnu.org, where
NNNN is the bug number.  Like I did here.

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 22 Dec 2022 12:24:05 GMT) Full text and rfc822 format available.

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.