From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66111: is there a problem with --prefix? Date: Wed, 20 Sep 2023 15:30:52 +0300 Message-ID: <83sf79auwz.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39801"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66111@debbugs.gnu.org To: Ambrose Kofi Laing Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 20 14:32:16 2023 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 1qiwNL-000A5G-Mg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Sep 2023 14:32:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiwN5-0003za-3t; Wed, 20 Sep 2023 08:31:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qiwMy-0003xn-If for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 08:31:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qiwMy-0000Rr-Ao for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 08:31:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qiwN7-0002n3-MA for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 08:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Sep 2023 12:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66111 X-GNU-PR-Package: emacs Original-Received: via spool by 66111-submit@debbugs.gnu.org id=B66111.169521306710636 (code B ref 66111); Wed, 20 Sep 2023 12:32:01 +0000 Original-Received: (at 66111) by debbugs.gnu.org; 20 Sep 2023 12:31:07 +0000 Original-Received: from localhost ([127.0.0.1]:58488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiwMD-0002lO-8a for submit@debbugs.gnu.org; Wed, 20 Sep 2023 08:31:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiwMA-0002kp-1S for 66111@debbugs.gnu.org; Wed, 20 Sep 2023 08:31:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qiwLv-0000Ez-68; Wed, 20 Sep 2023 08:30:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xDVyAE7XHRxslar4J8LoP1EkdHwok5xz+LQo2soDP1A=; b=WyxInDZrBHxE 8cp7WkeMj1JhCD+6thsLnLuXk0mURfI/S0prOFsMDjUHpEIpd9dCkbxyPUHKjCVcVOKXknTBV1+OP VX9eZt0pRn7qirF7zHVyd12SHGmyYbpzt2+KxevUjVYtP80A8Ixik9sjBfofTEnA1VPv2GqT2/nuN DqnYDBV+K3KGWtBO1pcmquMUYOTSre7mnmaFAB4Rq8N/mBKJm1nqKF9KCZDXbkMfvKPds1JT2F1mB vmJhrIAP4ZgSWwSEbG7BHDYQPUKSYMy8I1UqdvDJOeukkpz1RXzgUfNLGre+uThbA8pIvWzKZz4A4 KFDZnbIKOEuISH4X/0dAqw==; In-Reply-To: (message from Ambrose Kofi Laing on Tue, 19 Sep 2023 13:59:26 -0400) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270921 Archived-At: > From: Ambrose Kofi Laing > Date: Tue, 19 Sep 2023 13:59:26 -0400 > > I'm trying to install emacs_29.1 at a nonstandard location, with the following commands: > > cd src/emacs-29.1 > ./autogen.sh > ./configure --prefix=/home/myname/my/custom/emacs29 --with-native-compilation=aot - > -with-imagemagick --with-json --with-tree-sitter --with-xft --without-compress-install > make -j 4 > > and I get an error message because of permission denied while trying to write under /usr/local (that is > where the script stops). In addition, there are two locations where it says the following: > > make -C src BIN_DESTDIR=''/usr/local/bin/'' \ > ELN_DESTDIR='/usr/local/lib/emacs/29.1/' all I don't see how this could have happened. BIN_DESTDIR and ELN_DESTDIR are set in the top-level Makefile.ion like this: ifeq (${ns_self_contained},no) BIN_DESTDIR='$(DESTDIR)${bindir}/' ELN_DESTDIR = $(DESTDIR)${libdir}/emacs/${version}/ else BIN_DESTDIR='${ns_appbindir}/' ELN_DESTDIR = ${ns_applibdir}/ endif Are you building the NS build on macOS? If not, the upper part of the conditional above should be true for you, and the values should have obeyed the --prefix value you used at configure time. However, I don't understand why you ran autogen.sh. Are you building from the Emacs 29.1 release tarball? If so, the configure script is already produced and provided in the tarball, you just need to run it. Could you please unpack the Emacs 29.1 tarball in a fresh directory, run the configure script without running autogen.sh, and then say "make" and "make install", and see if the problem still happens. > This happens twice (please see below the ps under my signature for the full transcript of "make > install" to see the exact context in which it happens). It seems to be that the --prefix does not override > certain locations that it is supposed to? It should, and I see the code to do that in Makefile.in, so I wonder why it didn't happen for you. > Are there other variables I need to set (other than the --prefix option to configure) that will ensure that > the compilation and installation will not try to write under /usr/local ? Please show the part of top-level Makefile where bindir and other variables are set.