Re: [PATCH] configure: Use $prefix for emacs, even when pkg-config is available.
authorTomi Ollila <tomi.ollila@iki.fi>
Sat, 28 Nov 2015 15:02:50 +0000 (17:02 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:50:05 +0000 (14:50 -0700)
0c/ea6ae2821ab8e27c054f41c43c6203f8d63d2d [new file with mode: 0644]

diff --git a/0c/ea6ae2821ab8e27c054f41c43c6203f8d63d2d b/0c/ea6ae2821ab8e27c054f41c43c6203f8d63d2d
new file mode 100644 (file)
index 0000000..d23c70b
--- /dev/null
@@ -0,0 +1,92 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id A1DAC6DE1216\r
+ for <notmuch@notmuchmail.org>; Sat, 28 Nov 2015 07:02:45 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.714\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.714 tagged_above=-999 required=5 tests=[AWL=0.062, \r
+ SPF_NEUTRAL=0.652] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id Alc753xHfAnx for <notmuch@notmuchmail.org>;\r
+ Sat, 28 Nov 2015 07:02:43 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 8157B6DE0ACD\r
+ for <notmuch@notmuchmail.org>; Sat, 28 Nov 2015 07:02:43 -0800 (PST)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id BAEBB1000CA;\r
+ Sat, 28 Nov 2015 17:02:50 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: David Bremner <david@tethera.net>,\r
+ Andrew Burgess <andrew.burgess@embecosm.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] configure: Use $prefix for emacs,\r
+ even when pkg-config is available.\r
+In-Reply-To: <87egfa2rye.fsf@zancas.localnet>\r
+References: <1448472725-11684-1-git-send-email-andrew.burgess@embecosm.com>\r
+ <87egfa2rye.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.21+32~g73439f8 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Sat, 28 Nov 2015 17:02:50 +0200\r
+Message-ID: <m2k2p2rwth.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 28 Nov 2015 15:02:45 -0000\r
+\r
+On Sat, Nov 28 2015, David Bremner <david@tethera.net> wrote:\r
+\r
+> Andrew Burgess <andrew.burgess@embecosm.com> writes:\r
+>\r
+>> Assumming that you have pkg-config installed, emacs installed, and the\r
+>> command 'pkg-config emacs --variable sitepkglispdir' returns a\r
+>> directory that only root can write to, then the make install above\r
+>> should fail.\r
+>\r
+> I agree that the current behaviour is probably wrong. I'm not sure if we\r
+> need more control here as Tomi suggests. My biggest concern is that\r
+> emacs.pc seems to be rather specific to fedora / redhat packaging, which\r
+> makes it hard for me to evaluate both the current handling and this\r
+> patch. Do any any Fedora users have opinions on just dropping the\r
+> handling of "pkg-config emacs"? Or am I missing other places that\r
+> pkg-config file is available?\r
+\r
+Now that I looked this a bit more I tend to agree with David:\r
+\r
+default PREFIX is /usr/local\r
+\r
+and $ pkg-config emacs --variable sitepkglispdir\r
+\r
+outputs\r
+\r
+/usr/share/emacs/site-lisp\r
+\r
+(in default case we should mangle /local/ there in between ... :/ ).\r
+\r
+package managers can add \r
+\r
+./configure ---emacslispdir=`pkg-config emacs --variable sitepkglispdir`\r
+\r
+in their build scripts.\r
+\r
+>\r
+> d\r
+\r
+Tomi\r