Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / 33 / 0f8f7607b250ca14f8e3853d9180290a27359e
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 C57746DE0948\r
6  for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 23:27:45 -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.195\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.195 tagged_above=-999 required=5 tests=[AWL=0.185, \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 uSFKLDFKMw_r for <notmuch@notmuchmail.org>;\r
16  Sat, 13 Jun 2015 23:27:44 -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 186706DE0350\r
20  for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 23:27:44 -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 1Z41Nm-0002mD-0G; Sun, 14 Jun 2015 06:27:02 +0000\r
24 Received: (nullmailer pid 14219 invoked by uid 1000); Sun, 14 Jun 2015\r
25  06:26:43 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
28 Subject: [PATCH] build/ruby: use notmuch configure script values for shared\r
29  lib\r
30 Date: Sun, 14 Jun 2015 08:26:31 +0200\r
31 Message-Id: <1434263191-14171-1-git-send-email-david@tethera.net>\r
32 X-Mailer: git-send-email 2.1.4\r
33 In-Reply-To: <1433142542-2307-4-git-send-email-david@tethera.net>\r
34 References: <1433142542-2307-4-git-send-email-david@tethera.net>\r
35 X-BeenThere: notmuch@notmuchmail.org\r
36 X-Mailman-Version: 2.1.18\r
37 Precedence: list\r
38 List-Id: "Use and development of the notmuch mail system."\r
39  <notmuch.notmuchmail.org>\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
41  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
43 List-Post: <mailto:notmuch@notmuchmail.org>\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
46  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
47 X-List-Received-Date: Sun, 14 Jun 2015 06:27:45 -0000\r
48 \r
49 This is supposed to help build on systems like MacOS with different\r
50 conventions for naming shared libraries. We have already computed the\r
51 relevant names, so doing it again in ruby seems like a bad idea.\r
52 ---\r
53  bindings/Makefile.local  |  3 ++-\r
54  bindings/ruby/extconf.rb | 13 +++----------\r
55  2 files changed, 5 insertions(+), 11 deletions(-)\r
56 \r
57 diff --git a/bindings/Makefile.local b/bindings/Makefile.local\r
58 index d236f01..4ecf839 100644\r
59 --- a/bindings/Makefile.local\r
60 +++ b/bindings/Makefile.local\r
61 @@ -3,10 +3,11 @@\r
62  dir := bindings\r
63  \r
64  # force the shared library to be built\r
65 -ruby-bindings: lib/libnotmuch.so\r
66 +ruby-bindings: lib/$(LINKER_NAME)\r
67  ifeq ($(HAVE_RUBY_DEV),1)\r
68         cd $(dir)/ruby && \\r
69                 EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \\r
70 +               LIBNOTMUCH="../../lib/$(LINKER_NAME)" \\r
71                 ruby extconf.rb --vendor\r
72         $(MAKE) -C $(dir)/ruby\r
73  else\r
74 diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb\r
75 index 6d5607e..ddaa684 100644\r
76 --- a/bindings/ruby/extconf.rb\r
77 +++ b/bindings/ruby/extconf.rb\r
78 @@ -14,19 +14,12 @@ if ENV['EXTRA_LDFLAGS']\r
79    $LDFLAGS += " " + ENV['EXTRA_LDFLAGS']\r
80  end\r
81  \r
82 -def have_local_library(lib, path, func, headers = nil)\r
83 -  checking_for checking_message(func, lib) do\r
84 -    lib = File.join(path, lib)\r
85 -    if try_func(func, lib, headers)\r
86 -      $LOCAL_LIBS += lib\r
87 -    end\r
88 -  end\r
89 -end\r
90 -\r
91 -if not have_local_library('libnotmuch.so', dir, 'notmuch_database_create', 'notmuch.h')\r
92 +if not ENV['LIBNOTMUCH']\r
93    exit 1\r
94  end\r
95  \r
96 +$LOCAL_LIBS += ENV['LIBNOTMUCH']\r
97 +\r
98  # Create Makefile\r
99  dir_config('notmuch')\r
100  create_makefile('notmuch')\r
101 -- \r
102 2.1.4\r
103 \r