Re: [PATCH 1/2] Add Google Inc. to AUTHORS as a contributor.
[notmuch-archives.git] / 4b / 9b3925687eaecc4f008e57f2d28cfc6040a69b
1 Return-Path: <cceleri@cs.stanford.edu>\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 5B349431FBD\r
6         for <notmuch@notmuchmail.org>; Tue,  6 May 2014 20:50:35 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 9WilArlDxeX3 for <notmuch@notmuchmail.org>;\r
16         Tue,  6 May 2014 20:50:28 -0700 (PDT)\r
17 Received: from smtp3.cs.Stanford.EDU (smtp3.cs.Stanford.EDU [171.64.64.27])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 7C7C8431FAF\r
21         for <notmuch@notmuchmail.org>; Tue,  6 May 2014 20:50:28 -0700 (PDT)\r
22 Received: from c-24-11-133-78.hsd1.sc.comcast.net ([24.11.133.78]\r
23         helo=jane.lan)\r
24         by smtp3.cs.Stanford.EDU with esmtpsa (TLSv1:DHE-RSA-SEED-SHA:128)\r
25         (Exim 4.80.1) (envelope-from <cceleri@cs.stanford.edu>)\r
26         id 1WhssA-0000I5-Qj; Tue, 06 May 2014 20:50:23 -0700\r
27 From: Charles Celerier <cceleri@cs.stanford.edu>\r
28 To: Notmuch Mail <notmuch@notmuchmail.org>\r
29 Subject: [PATCH v2 5/5] T360-symbol-hiding: Use nm instead of objdump.\r
30 Date: Tue,  6 May 2014 23:50:15 -0400\r
31 Message-Id: <1399434615-28425-2-git-send-email-cceleri@cs.stanford.edu>\r
32 X-Mailer: git-send-email 1.8.5.2 (Apple Git-48)\r
33 In-Reply-To: <1399434615-28425-1-git-send-email-cceleri@cs.stanford.edu>\r
34 References: <1399395748-44920-1-git-send-email-cceleri@cs.stanford.edu>\r
35         <1399434615-28425-1-git-send-email-cceleri@cs.stanford.edu>\r
36 X-Scan-Signature: 5e15904e367bf57319d290d73554c551\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Wed, 07 May 2014 03:50:35 -0000\r
50 \r
51 The output of `objdump -t` depends on the format of the object files\r
52 which are different across platforms (e.g. Mac OS X). Since we really\r
53 just want to filter the symbols in the object file, nm is a more\r
54 appropriate tool since it only lists symbols from object files (nm(1))\r
55 and has a consistent output format.\r
56 \r
57 Signed-off-by: Charles Celerier <cceleri@cs.stanford.edu>\r
58 ---\r
59  test/T360-symbol-hiding.sh | 2 +-\r
60  1 file changed, 1 insertion(+), 1 deletion(-)\r
61 \r
62 diff --git a/test/T360-symbol-hiding.sh b/test/T360-symbol-hiding.sh\r
63 index 9239fc1..21cabca 100755\r
64 --- a/test/T360-symbol-hiding.sh\r
65 +++ b/test/T360-symbol-hiding.sh\r
66 @@ -33,7 +33,7 @@ test_begin_subtest 'checking output'\r
67  test_expect_equal "$result" "$output"\r
68  \r
69  test_begin_subtest 'comparing existing to exported symbols'\r
70 -objdump -t $TEST_DIRECTORY/../lib/*.o | awk '$4 == ".text" && $6 ~ "^notmuch" {print $6}' | sort | uniq > ACTUAL\r
71 +nm -g $TEST_DIRECTORY/../lib/*.o | sed -n 's/.*\s\+T\s\+_\(notmuch_.*\)/\1/p' | sort | uniq > ACTUAL\r
72  sed -n 's/[[:blank:]]*\(notmuch_[^;]*\);/\1/p' $TEST_DIRECTORY/../notmuch.sym | sort | uniq > EXPORTED\r
73  test_expect_equal_file EXPORTED ACTUAL\r
74  \r
75 -- \r
76 1.8.5.2 (Apple Git-48)\r
77 \r