notmuch-search-toggle-order and notmuch-tree
[notmuch-archives.git] / cc / 98c8c0b0a228215cac316c663c64d7a6bc5ce4
1 Return-Path: <schnouki@schnouki.net>\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 18689429E2A\r
6         for <notmuch@notmuchmail.org>; Wed, 20 Jul 2011 05:38:43 -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: -0.1\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\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 mXSXqS2a9R3j for <notmuch@notmuchmail.org>;\r
17         Wed, 20 Jul 2011 05:38:41 -0700 (PDT)\r
18 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
19         by olra.theworths.org (Postfix) with ESMTP id 4A26A431FB6\r
20         for <notmuch@notmuchmail.org>; Wed, 20 Jul 2011 05:38:41 -0700 (PDT)\r
21 Received: from localhost.localdomain (thor.loria.fr [152.81.12.250])\r
22         by ks3536.kimsufi.com (Postfix) with ESMTPSA id 7A1656A06A9;\r
23         Wed, 20 Jul 2011 14:47:24 +0200 (CEST)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
25         s=key-schnouki; t=1311166044;\r
26         bh=hdWiUDoB0gRHk6ltP713SZ13JE4NxFrOwdpoK51iwmw=;\r
27         h=From:To:Subject:Date:Message-Id;\r
28         b=L6YZIrkR+ZnjoIeTwIOY7XK+FCjpLSVIlC/Msm7Wqr+uOQdIWRwlxr19iC8CvlekQ\r
29         JJXXrSr3GCVDpg1EdCZYoDhrH4trCV2pXHNLrXpZ3aqZjMgx9L7D5hBqpeNcFhXiUz\r
30         86DdaSVHaPZ/y7Vt7+0y93GoitThsAiHCSUujNS8=\r
31 From: Thomas Jost <schnouki@schnouki.net>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH] libnotmuch: only build symbols list after the modules are\r
34         built\r
35 Date: Wed, 20 Jul 2011 14:38:18 +0200\r
36 Message-Id: <1311165498-12519-1-git-send-email-schnouki@schnouki.net>\r
37 X-Mailer: git-send-email 1.7.6\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, 20 Jul 2011 12:38:43 -0000\r
51 \r
52 If the notmuch.sym target does not explicitly depend on $(libnotmuch_modules),\r
53 gen-version-script.sh may be run before all the .o files are created. This can\r
54 be observed when doing a parallel build on a machine with many cores:\r
55   $ make -j\r
56   ...\r
57   sh lib/gen-version-script.sh lib/notmuch.h lib/filenames.o lib/string-list.o\r
58   lib/libsha1.o lib/message-file.o lib/messages.o lib/sha1.o lib/tags.o\r
59   lib/xutil.o lib/database.o lib/directory.o lib/index.o lib/message.o\r
60   lib/query.o lib/thread.o > notmuch.sym\r
61   nm: 'lib/libsha1.o': No such file\r
62   nm: 'lib/message-file.o': No such file\r
63   nm: 'lib/database.o': No such file\r
64   nm: 'lib/directory.o': No such file\r
65   nm: 'lib/index.o': No such file\r
66   nm: 'lib/message.o': No such file\r
67   nm: 'lib/query.o': No such file\r
68   nm: 'lib/thread.o': No such file\r
69   ...\r
70 ---\r
71  lib/Makefile.local |    2 +-\r
72  1 files changed, 1 insertions(+), 1 deletions(-)\r
73 \r
74 diff --git a/lib/Makefile.local b/lib/Makefile.local\r
75 index 9210f0e..fbc2f6a 100644\r
76 --- a/lib/Makefile.local\r
77 +++ b/lib/Makefile.local\r
78 @@ -74,7 +74,7 @@ $(dir)/libnotmuch.a: $(libnotmuch_modules)\r
79  $(dir)/$(LIBNAME): $(libnotmuch_modules) notmuch.sym\r
80         $(call quiet,CXX $(CXXFLAGS)) $(libnotmuch_modules) $(FINAL_LIBNOTMUCH_LDFLAGS) $(LIBRARY_LINK_FLAG) -o $@\r
81  \r
82 -notmuch.sym: lib/notmuch.h\r
83 +notmuch.sym: lib/notmuch.h $(libnotmuch_modules)\r
84         sh lib/gen-version-script.sh $< $(libnotmuch_modules) > $@\r
85  \r
86  $(dir)/$(SONAME): $(dir)/$(LIBNAME)\r
87 -- \r
88 1.7.6\r
89 \r