Re: database error
[notmuch-archives.git] / 07 / 0211eecd3df35dc690c1688f4dab954e8f4564
1 Return-Path: <dmitry.kurochkin@gmail.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 B77F6431FD0\r
6         for <notmuch@notmuchmail.org>; Fri, 11 Nov 2011 00:41:27 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 UiYuRAO7gcrw for <notmuch@notmuchmail.org>;\r
17         Fri, 11 Nov 2011 00:41:27 -0800 (PST)\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
19         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id CBE94431FB6\r
22         for <notmuch@notmuchmail.org>; Fri, 11 Nov 2011 00:41:26 -0800 (PST)\r
23 Received: by bkaq10 with SMTP id q10so3680553bka.26\r
24         for <notmuch@notmuchmail.org>; Fri, 11 Nov 2011 00:41:23 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
27         :mime-version:content-type;\r
28         bh=GdLOAQAnl0gb+Gf3xWa8AlhdtEMuEEmuTRCPSpcdDig=;\r
29         b=vfLbUrhptr42h+CBr4tmnKH2gjj9zFo+WMELYeB9Fo0IFXdFNCjnjfDG6DP/IBl3iK\r
30         YQ/DxvvCcO0lTdwPBF1FljF0+xIiBjdHr80cUA+C0Z3KCAq2h/84nO55vAq31nuCQZ+4\r
31         8whTBEi8ERgZcAi4wbqHlbKasbpUerXv7fivQ=\r
32 Received: by 10.204.29.8 with SMTP id o8mr7300665bkc.48.1321000883783;\r
33         Fri, 11 Nov 2011 00:41:23 -0800 (PST)\r
34 Received: from localhost ([91.144.186.21])\r
35         by mx.google.com with ESMTPS id q6sm9914973bka.6.2011.11.11.00.41.22\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Fri, 11 Nov 2011 00:41:22 -0800 (PST)\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
39 To: Tomi Ollila <tomi.ollila@iki.fi>, Notmuch Mail <notmuch@notmuchmail.org>\r
40 Subject: Re: [PATCH] test: use dtach(1) instead of screen(1) in emacs tests.\r
41 In-Reply-To: <1320963737-1666-1-git-send-email-jrollins@finestructure.net>\r
42 References: <yf6mxc3ab4t.fsf@taco2.nixu.fi>\r
43         <1320963737-1666-1-git-send-email-jrollins@finestructure.net>\r
44 User-Agent: Notmuch/0.9+55~g81c615b (http://notmuchmail.org) Emacs/23.3.1\r
45         (x86_64-pc-linux-gnu)\r
46 Date: Fri, 11 Nov 2011 12:41:11 +0400\r
47 Message-ID: <877h373vbs.fsf@gmail.com>\r
48 MIME-Version: 1.0\r
49 Content-Type: text/plain; charset=us-ascii\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Fri, 11 Nov 2011 08:41:27 -0000\r
63 \r
64 Hi Tomi.\r
65 \r
66 On Thu, 10 Nov 2011 14:22:17 -0800, Jameson Graef Rollins <jrollins@finestructure.net> wrote:\r
67 > From: Tomi Ollila <tomi.ollila@iki.fi>\r
68\r
69 > dtach is lighter than screen and is not setuid/setgid program so\r
70 > TMPDIR does not get reset by dynamic loader when executed.\r
71\r
72 > Signed-off-by: Jameson Graef Rollins <jrollins@finestructure.net>\r
73 > ---\r
74 > This tweaks the original patch slightly by removing the no-longer needed\r
75 > screenrc variables.\r
76\r
77 >  test/test-lib.sh |    5 ++---\r
78 >  1 files changed, 2 insertions(+), 3 deletions(-)\r
79\r
80 > diff --git a/test/test-lib.sh b/test/test-lib.sh\r
81 > index c81c709..c0fe037 100755\r
82 > --- a/test/test-lib.sh\r
83 > +++ b/test/test-lib.sh\r
84 > @@ -50,8 +50,6 @@ TZ=UTC\r
85 >  TERM=dumb\r
86 >  export LANG LC_ALL PAGER TERM TZ\r
87 >  GIT_TEST_CMP=${GIT_TEST_CMP:-diff -u}\r
88 > -export SCREENRC=/dev/null\r
89 > -export SYSSCREENRC=/dev/null\r
90 >  \r
91 >  # Protect ourselves from common misconfiguration to export\r
92 >  # CDPATH into the environment\r
93 > @@ -844,7 +842,8 @@ test_emacs () {\r
94 >       if [ -z "$EMACS_SERVER" ]; then\r
95 >               EMACS_SERVER="notmuch-test-suite-$$"\r
96 >               # start a detached screen session with an emacs server\r
97 > -             screen -S "$EMACS_SERVER" -d -m "$TMP_DIRECTORY/run_emacs" \\r
98 > +             TERM=xterm dtach -n "$TMP_DIRECTORY/dtach-emacs-socket-$$" \\r
99 \r
100 Can you please give a more detailed explanation (and a comment) to\r
101 justify this workaround:\r
102 \r
103 * Is it actually needed for dtach or emacs?  If it is the latter, then\r
104   it should be "dtach ... env TERM=xterm emacs ...", right?\r
105 \r
106 * Why should we care about systems that use terminals without\r
107   corresponding terminfo installed?\r
108 \r
109 * Why is it safe to use xterm?  Is there any standard that requires\r
110   xterm info to be present on the system?\r
111 \r
112 I have tried running dtach with emacs in rxvt-unicode and it worked fine\r
113 without overriding TERM.\r
114 \r
115 I have also tried running dtach with invalid TERM:\r
116 \r
117   $ TERM=non-existing-term dtach -n s /bin/sh\r
118   zsh: can't find terminal definition for non-existing-term\r
119 \r
120 No segfault, shell is started fine.\r
121 \r
122 But emacs does not work without a valid terminfo:\r
123 \r
124   $ TERM=non-existing-term emacs -nw\r
125   emacs: Terminal type non-existing-term is not defined.\r
126   If that is not the actual type of terminal you have,\r
127   use the Bourne shell command `TERM=... export TERM' (C-shell:\r
128   `setenv TERM ...') to specify the correct type.  It may be necessary\r
129   to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.\r
130 \r
131 Regards,\r
132   Dmitry\r
133 \r
134 > +                     "$TMP_DIRECTORY/run_emacs" \\r
135 >                       --no-window-system \\r
136 >                       --eval "(setq server-name \"$EMACS_SERVER\")" \\r
137 >                       --eval '(server-start)' \\r
138 > -- \r
139 > 1.7.7.1\r
140\r
141 > _______________________________________________\r
142 > notmuch mailing list\r
143 > notmuch@notmuchmail.org\r
144 > http://notmuchmail.org/mailman/listinfo/notmuch\r