[PATCH] This patch is a little finger excercise for working with git. I found a piece...
[notmuch-archives.git] / 2e / 1ab7e398b747b4bf58a518fd75c0aac6f86c28
1 Return-Path: <tomi.ollila@iki.fi>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id D3945431FAF\r
6         for <notmuch@notmuchmail.org>; Wed, 28 Nov 2012 04:31:24 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id kwyRuLCBZfPR for <notmuch@notmuchmail.org>;\r
16         Wed, 28 Nov 2012 04:31:23 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id B6CA7431FAE\r
19         for <notmuch@notmuchmail.org>; Wed, 28 Nov 2012 04:31:23 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 7E53F1000E5;\r
22         Wed, 28 Nov 2012 14:31:21 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: david@tethera.net, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH] configure: really expand libdir_expanded\r
26 In-Reply-To: <1354105552-31297-1-git-send-email-david@tethera.net>\r
27 References: <1354105552-31297-1-git-send-email-david@tethera.net>\r
28 User-Agent: Notmuch/0.14+116~g29fcdb5 (http://notmuchmail.org) Emacs/24.2.1\r
29         (x86_64-unknown-linux-gnu)\r
30 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
31         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
32         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
33 Date: Wed, 28 Nov 2012 14:31:21 +0200\r
34 Message-ID: <m2ip8pewo6.fsf@guru.guru-group.fi>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain\r
37 Cc: David Bremner <bremner@debian.org>\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Wed, 28 Nov 2012 12:31:25 -0000\r
51 \r
52 On Wed, Nov 28 2012, david@tethera.net wrote:\r
53 \r
54 > From: David Bremner <bremner@debian.org>\r
55 >\r
56 > It turns out that if people really use configure in autotools style and pass\r
57 > libdir containing '${prefix}/foo' then the ldconfig previously failed.\r
58 >\r
59 > This uses sed for portability (versus bash parameter expansion with\r
60 > substitution) and hopefully a bit more robustness than blindly\r
61 > parameter expanding the string.\r
62 > ---\r
63 \r
64 For the record: +1\r
65 \r
66 Tomi\r
67 \r
68 \r
69 >  configure |    7 ++++++-\r
70 >  1 file changed, 6 insertions(+), 1 deletion(-)\r
71 >\r
72 > diff --git a/configure b/configure\r
73 > index ea8a1ad..460fcfc 100755\r
74 > --- a/configure\r
75 > +++ b/configure\r
76 > @@ -236,7 +236,12 @@ done\r
77 >  # Makefile.config file later like most values), because we need to\r
78 >  # actually investigate this value compared to the ldconfig_paths value\r
79 >  # below.\r
80 > -libdir_expanded=${LIBDIR:-${PREFIX}/lib}\r
81 > +if [ -z "$LIBDIR" ] ; then\r
82 > +    libdir_expanded="${PREFIX}/lib"\r
83 > +else\r
84 > +    # very non-general variable expansion\r
85 > +    libdir_expanded=`echo "$LIBDIR" | sed "s|\\${prefix}|${PREFIX}|g; s|\\$prefix/|${PREFIX}/|; s|//*|/|g"`\r
86 > +fi\r
87 >  \r
88 >  cat <<EOF\r
89 >  Welcome to Notmuch, a system for indexing, searching and tagging your email.\r
90 > -- \r
91 > 1.7.10.4\r
92 >\r
93 > _______________________________________________\r
94 > notmuch mailing list\r
95 > notmuch@notmuchmail.org\r
96 > http://notmuchmail.org/mailman/listinfo/notmuch\r