[PATCH 1/9] lib: read "property" terms from messages.
[notmuch-archives.git] / 5e / 2bfe7e34be197e399f4cb44d32aa44bf444bc0
1 Return-Path: <Vladimir.Marek@Oracle.COM>\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 1321D431FAF\r
6         for <notmuch@notmuchmail.org>; Wed, 11 Apr 2012 01:44:18 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -4.999\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-4.999 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_HI=-5, UNPARSEABLE_RELAY=0.001]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id uUMgKDyJ9s4Z for <notmuch@notmuchmail.org>;\r
17         Wed, 11 Apr 2012 01:44:17 -0700 (PDT)\r
18 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 45D36431FAE\r
22         for <notmuch@notmuchmail.org>; Wed, 11 Apr 2012 01:44:17 -0700 (PDT)\r
23 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])\r
24         by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with\r
25         ESMTP id q3B8iFTk019749\r
26         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)\r
27         for <notmuch@notmuchmail.org>; Wed, 11 Apr 2012 08:44:16 GMT\r
28 Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158])\r
29         by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id\r
30         q3B8iEhd013937\r
31         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)\r
32         for <notmuch@notmuchmail.org>; Wed, 11 Apr 2012 08:44:14 GMT\r
33 Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71])\r
34         by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id\r
35         q3B8iEpi015631\r
36         for <notmuch@notmuchmail.org>; Wed, 11 Apr 2012 03:44:14 -0500\r
37 Received: from pub.czech.sun.com (/10.163.20.32)\r
38         by default (Oracle Beehive Gateway v4.0)\r
39         with ESMTP ; Wed, 11 Apr 2012 01:44:13 -0700\r
40 Date: Wed, 11 Apr 2012 10:43:42 +0200\r
41 From: Vladimir Marek <Vladimir.Marek@Oracle.COM>\r
42 To: Notmuch Mail <notmuch@notmuchmail.org>\r
43 Subject: Re: [PATCH 1/4] Make configure use /bin/bash instead of /bin/sh\r
44 Message-ID: <20120411084342.GL10554@pub.czech.sun.com>\r
45 Mail-Followup-To: Notmuch Mail <notmuch@notmuchmail.org>\r
46 References: <1333966665-10469-1-git-send-email-Vladimir.Marek@oracle.com>\r
47         <1333966665-10469-2-git-send-email-Vladimir.Marek@oracle.com>\r
48         <CAB+hUn9eVVBN7xzMSUT6kB2+MNn8H6KoKuxGDOwck0sgp9qgmw@mail.gmail.com>\r
49         <20120409121930.GA10554@pub.czech.sun.com>\r
50         <m2ehrv4hx2.fsf@guru.guru-group.fi>\r
51 MIME-Version: 1.0\r
52 Content-Type: text/plain; charset=utf-8\r
53 Content-Disposition: inline\r
54 In-Reply-To: <m2ehrv4hx2.fsf@guru.guru-group.fi>\r
55 User-Agent: Mutt/1.5.21 (2010-09-15)\r
56 X-Source-IP: acsinet22.oracle.com [141.146.126.238]\r
57 X-Auth-Type: Internal IP\r
58 X-CT-RefId: str=0001.0A090208.4F854460.00B6,ss=1,re=0.000,fgs=0\r
59 X-BeenThere: notmuch@notmuchmail.org\r
60 X-Mailman-Version: 2.1.13\r
61 Precedence: list\r
62 List-Id: "Use and development of the notmuch mail system."\r
63         <notmuch.notmuchmail.org>\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
67 List-Post: <mailto:notmuch@notmuchmail.org>\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
71 X-List-Received-Date: Wed, 11 Apr 2012 08:44:18 -0000\r
72 \r
73 Hi,\r
74 \r
75 > >> > Posix /bin/sh is not capable of running this configure and fails.\r
76 > >> \r
77 > >> What fails? What would it take to make this work on posix sh instead?\r
78 > >> \r
79 > >> The tests do require bash, but generally I think it would be preferable to\r
80 > >> not depend on bash to build.\r
81 > >\r
82 > > Well I gave it a quick stab. This is not posix:\r
83 > >\r
84 > > BLAH=$( ... )\r
85 > > BLAH=$(( ... ))\r
86 > > ${option%=*}\r
87 > > ${option%%=*}\r
88 > > ${option#=*}\r
89 > > ${option##=*}\r
90\r
91 > According to \r
92\r
93 > http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html\r
94\r
95 > all of those are part of Shell Command Language...\r
96 \r
97 Hmm, you are right. The solaris /bin/sh is older revision of posix.\r
98 \r
99 \r
100 \r
101 > Does the configure script work if you replace /bin/sh with /bin/ksh\r
102 > in your Solaris box\r
103 \r
104 yes, it does work if executed by /bin/bash or /bin/ksh\r
105 \r
106 \r
107 > If yes, something like the following could be added to the beginning\r
108 > of 'configure'\r
109\r
110 > option=option=value\r
111 > if test ! x"${option$*=}" = x"value" 2>/dev/null; then\r
112 >       if test x"${PREVENT_LOOPING-}" = x; then\r
113 >               PREVENT_LOOPING=true; export PREVENT_LOOPING\r
114 >                 test ! -x /bin/ksh || exec /bin/ksh "$0" "$@"\r
115 >                 test ! -x /bin/bash || exec /bin/bash "$0" "$@"\r
116 >         fi\r
117 >         echo "Cannot find compatible shell for '$0'" >&2\r
118 >         exit 1\r
119 > fi\r
120 \r
121 Unfortunately, no. The /bin/sh says "bad substitution" and does not run\r
122 the script at all. I also tried\r
123 \r
124 eval 'echo ${A%%1}'; echo ok\r
125 \r
126 but that does not run the 'echo ok' and fails also.\r
127 \r
128 \r
129 I can see three possible solutions\r
130 \r
131 1) use bash or ksh in the shebang line\r
132 2) rewrite the script as I gave the overview\r
133 3) declare that solaris 10 /bin/sh is not compatible with configure\r
134 script\r
135 \r
136 \r
137 Frankly even 3) is viable option, one just have to remember to run\r
138 'bash configure'. If everything else would work, I would be happy :)\r
139 \r
140 Thank you\r
141 -- \r
142         Vlad\r