Re: notmuch and "mute" -- useful to anyone?
[notmuch-archives.git] / 26 / a5761c1ff3c9750c7de4dd1c627e3a547e98ad
1 Return-Path: <bremner@tesseract.cs.unb.ca>\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 arlo.cworth.org (Postfix) with ESMTP id 097116DE1995\r
6  for <notmuch@notmuchmail.org>; Mon,  1 Jun 2015 00:10:37 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.266\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.266 tagged_above=-999 required=5 tests=[AWL=0.256, \r
12  T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id RArrMa5Sh8_X for <notmuch@notmuchmail.org>;\r
16  Mon,  1 Jun 2015 00:10:35 -0700 (PDT)\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
18  [87.98.215.224])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id 44E056DE1640\r
20  for <notmuch@notmuchmail.org>; Mon,  1 Jun 2015 00:10:35 -0700 (PDT)\r
21 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
22  4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)\r
23  id 1YzJqx-0007O7-UD; Mon, 01 Jun 2015 07:09:43 +0000\r
24 Received: (nullmailer pid 2453 invoked by uid 1000); Mon, 01 Jun 2015\r
25  07:09:06 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
28 Subject: [patch v3 3/4] build/ruby: use notmuch configure script values for\r
29  shared lib\r
30 Date: Mon,  1 Jun 2015 09:09:01 +0200\r
31 Message-Id: <1433142542-2307-4-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 2.1.4\r
33 In-Reply-To: <1433142542-2307-1-git-send-email-david@tethera.net>\r
34 References: <1425679073-30439-5-git-send-email-david@tethera.net>\r
35  <1433142542-2307-1-git-send-email-david@tethera.net>\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.18\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40  <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Mon, 01 Jun 2015 07:10:37 -0000\r
49 \r
50 This is supposed to help build on systems like MacOS with different\r
51 conventions for naming shared libraries. We have already computed the\r
52 relevant names, so doing it again in ruby seems like a bad idea.\r
53 ---\r
54  bindings/Makefile.local  |  1 +\r
55  bindings/ruby/extconf.rb | 13 +++----------\r
56  2 files changed, 4 insertions(+), 10 deletions(-)\r
57 \r
58 diff --git a/bindings/Makefile.local b/bindings/Makefile.local\r
59 index 2ad0b86..8b1ff83 100644\r
60 --- a/bindings/Makefile.local\r
61 +++ b/bindings/Makefile.local\r
62 @@ -7,6 +7,7 @@ ruby-bindings: lib/libnotmuch.so\r
63  ifeq ($(HAVE_RUBY_DEV),1)\r
64         cd $(dir)/ruby && \\r
65                 EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \\r
66 +               LIBNOTMUCH="../../lib/$(LINKER_NAME)" \\r
67                 ruby extconf.rb --vendor\r
68         $(MAKE) -C $(dir)/ruby\r
69  else\r
70 diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb\r
71 index 6d5607e..ddaa684 100644\r
72 --- a/bindings/ruby/extconf.rb\r
73 +++ b/bindings/ruby/extconf.rb\r
74 @@ -14,19 +14,12 @@ if ENV['EXTRA_LDFLAGS']\r
75    $LDFLAGS += " " + ENV['EXTRA_LDFLAGS']\r
76  end\r
77  \r
78 -def have_local_library(lib, path, func, headers = nil)\r
79 -  checking_for checking_message(func, lib) do\r
80 -    lib = File.join(path, lib)\r
81 -    if try_func(func, lib, headers)\r
82 -      $LOCAL_LIBS += lib\r
83 -    end\r
84 -  end\r
85 -end\r
86 -\r
87 -if not have_local_library('libnotmuch.so', dir, 'notmuch_database_create', 'notmuch.h')\r
88 +if not ENV['LIBNOTMUCH']\r
89    exit 1\r
90  end\r
91  \r
92 +$LOCAL_LIBS += ENV['LIBNOTMUCH']\r
93 +\r
94  # Create Makefile\r
95  dir_config('notmuch')\r
96  create_makefile('notmuch')\r
97 -- \r
98 2.1.4\r
99 \r