From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#66111: is there a problem with --prefix? Date: Sat, 30 Sep 2023 16:29:15 -0700 Message-ID: References: <83sf79auwz.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="2565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 66111-done@debbugs.gnu.org To: Ambrose Kofi Laing Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 01 01:30:12 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 1qmjPX-0000Q4-OR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Oct 2023 01:30:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmjPG-0003ur-4C; Sat, 30 Sep 2023 19:29:54 -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 1qmjPD-0003t7-Kj for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2023 19:29:52 -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 1qmjP9-00038n-Dp for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2023 19:29:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qmjPP-00013u-0L for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2023 19:30:03 -0400 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Sep 2023 23:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 66111 X-GNU-PR-Package: emacs Mail-Followup-To: 66111@debbugs.gnu.org, stefankangas@gmail.com, aklaing@gmail.com Original-Received: via spool by 66111-done@debbugs.gnu.org id=D66111.16961165944008 (code D ref 66111); Sat, 30 Sep 2023 23:30:02 +0000 Original-Received: (at 66111-done) by debbugs.gnu.org; 30 Sep 2023 23:29:54 +0000 Original-Received: from localhost ([127.0.0.1]:60025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmjP3-00012E-7x for submit@debbugs.gnu.org; Sat, 30 Sep 2023 19:29:54 -0400 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:47509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmjOz-00011t-LH for 66111-done@debbugs.gnu.org; Sat, 30 Sep 2023 19:29:40 -0400 Original-Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2c296e6543fso6770521fa.3 for <66111-done@debbugs.gnu.org>; Sat, 30 Sep 2023 16:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696116556; x=1696721356; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=7DMNvTlkaF2uqxk86bSDL2JJK2MsPTAY22YEIxJFL2w=; b=f4atWZ6TMskbo5n9qF9cp+1vucwgIdi5bSsAxy3N7zgjMpkorERTFUrJw66gtJuh9J wBpD3Q6uARsZMde6CC6Pe/e7gPC+oPxkAxC83qGZh6VAFYvyI4GTcQUp5hMM9iv9gcaq mRj+23pdiSzyNq8tRokJu29sBv5DgcxNzGGLB7osix72Zyaa/h3iYqEpP8d90rNLShZR nTbX2SAzHK8dCfFeG08IXxNsvjAYxjL1Ir6eiivFYPhvX1rUNgd0k1qvj0u+IJu0fAQ5 FWwNqp9Q53GUUOL8iAP3EfVL52H//IOln61TkC1C2TKuSDISnWD5BWeul+LhD03RjAlP rQSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696116556; x=1696721356; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7DMNvTlkaF2uqxk86bSDL2JJK2MsPTAY22YEIxJFL2w=; b=wNl0LfywFBqEaaktCYkYO2gk90BIDV49MKwvoYbqE/gT2jpO/GuySw6p66kO9R0Glt thDKm1+XwMgfopiuY2zULW5llWrGLefHxc+QThGql/MC1dZE07EI1aXa1cilxPg75nht gzm6Pm9gRMJMzqa0NWh/kOpKr65gC3vvCGQuL+1RrCQot3CjbjmoyJ8ih77Q9bCX/7Yj ooggV88dIzU9UTl2Kk5jzkTgj/exqLJFxDVSCYzUZQqTAc1+qmlHQNpF1pRsUlf/xaHg JEVE65ibROtXuUfY+SZtcsPDjowdhlDnyqMN9vAWS7BDEAeAg4hQH5tKhqyNdwQko8sq zWow== X-Gm-Message-State: AOJu0YxXP97K7m7xk5C+EABTK13ZGfqAHvSPvLX4XaEK2ro2OCDF1eiZ /tBu5bfHkI7wNG1x0pem3AKPVx7bBMR4ZMEC9uKaP3Va X-Google-Smtp-Source: AGHT+IGI9JS6vbcfAVBTT74Hwkc0eIJU4+YjDRDe9KQfW3BS1cJ6QjMdSEWAT0Zsrzc7ou8RisWdGY3/Dy9POXEUxSY= X-Received: by 2002:a05:6512:2037:b0:503:33ab:8126 with SMTP id s23-20020a056512203700b0050333ab8126mr6465262lfs.17.1696116556060; Sat, 30 Sep 2023 16:29:16 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 30 Sep 2023 16:29:15 -0700 In-Reply-To: (Ambrose Kofi Laing's message of "Wed, 20 Sep 2023 13:04:02 -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:271572 Archived-At: Ambrose Kofi Laing writes: > Hi Eli, > > Thanks for your response. I was indeed building from the tarball. > > I commented out the autogen.sh call, and still the installation went into > /usr/local, instead of to the /nonstandard/location. So that was not the only > problem. After fiddling with it some more I discovered the following (sequence of errors): > > - One of the arguments to my configure script was: --with-tree-sitter > > - libtree-sitter-dev was not available on my system [First Mistake] > > - I was running configure inside a bash shell script, and I had not put "set > -e" at the top of that bash script. [Second Mistake] > > - As a result, configure correctly detected that libtree-sitter was missing and failed (and did not produce a Makefile). > > - Since I hadn't "set -e", the bash script went on ahead to run make anyway, > instead of stopping right there. > > - make did not find a Makefile, but found a GNUMakefile, and since there was > no Makefile, make ran configure (without arguments) to generate a Makefile, > and naturally this invocation of configure did not include my setting of > --prefix=/nonstandard/location from the previous call which failed. > > - Finally when the install happened, it went into /usr/local instead of > /nonstandard/location. > > - To fix, this, I have to provide tree-sitter obviously, but the quick > fix was to remove --with-tree-sitter from the arguments of configure. > > - Once that was done, configure ran correctly and generated a Makefile, I > would assume including my setting of /nonstandard/location. By this time I had removed the autogen.sh call. > > - Then running configure and make and make install installed correctly to > /nonstandard/location. > > So technically there is nothing wrong, but I can't help wondering if it would > not be more helpful for the GNUMakefile to echo a message saying "I can't find > a Makefile, please run configure yourself to generate one", instead of being > helpful and trying to run configure for me and not quite doing it the way I > wanted. I know however that things like GNUMakefiles have a lot of history > and this behavior is probably unlikely to change. > > Anyway, I'm all set now, thank you for your help!! The issue seems resolved, so I'm closing the bug report.