Re: notmuch release 0.20.2 now available
authorDavid Bremner <david@tethera.net>
Tue, 30 Jun 2015 17:02:52 +0000 (19:02 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:07 +0000 (14:49 -0700)
72/ef0755b169f1b1abd76320e2189c2af74d8957 [new file with mode: 0644]

diff --git a/72/ef0755b169f1b1abd76320e2189c2af74d8957 b/72/ef0755b169f1b1abd76320e2189c2af74d8957
new file mode 100644 (file)
index 0000000..9c3d9c0
--- /dev/null
@@ -0,0 +1,89 @@
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 56E446DE0924\r
+ for <notmuch@notmuchmail.org>; Tue, 30 Jun 2015 10:04:48 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.176\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.176 tagged_above=-999 required=5 tests=[AWL=0.176]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 08y1oqnvwyX8 for <notmuch@notmuchmail.org>;\r
+ Tue, 30 Jun 2015 10:04:46 -0700 (PDT)\r
+Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net\r
+ [87.98.215.224])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 781466DE09FB\r
+ for <notmuch@notmuchmail.org>; Tue, 30 Jun 2015 10:04:43 -0700 (PDT)\r
+Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim\r
+ 4.80) (envelope-from <david@tethera.net>)\r
+ id 1Z9ywF-0004nW-PA; Tue, 30 Jun 2015 17:03:15 +0000\r
+Received: (nullmailer pid 3685 invoked by uid 1000); Tue, 30 Jun 2015\r
+ 17:02:52 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Suvayu Ali <fatkasuvayu+linux@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: notmuch release 0.20.2 now available\r
+In-Reply-To: <20150630084018.GO24926@chitra.no-ip.org>\r
+References: <87h9pplqer.fsf@maritornes.cs.unb.ca>\r
+ <20150630063942.GM24926@chitra.no-ip.org>\r
+ <87a8vhlkdv.fsf@maritornes.cs.unb.ca>\r
+ <20150630084018.GO24926@chitra.no-ip.org>\r
+User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Tue, 30 Jun 2015 19:02:52 +0200\r
+Message-ID: <87r3otjfib.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 30 Jun 2015 17:04:48 -0000\r
+\r
+Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:\r
+\r
+>\r
+> Yes, I have looked at what the official packages[1] do, I do exactly the\r
+> same[2].  Essentially the spec file does the following:\r
+>\r
+>   pushd bindings/ruby\r
+>       ruby extconf.rb --vendor --with-cflags="%{optflags}"\r
+>       make %{?_smp_mflags}\r
+>   popd\r
+\r
+I think the problem is contained in the original message. Since we want\r
+to create a shared library "notmuch.so" for ruby to import, we need to\r
+compile the C files in bindings/ruby with -fPIC.\r
+\r
+I don't know if this is Debian specific, or ruby version specific, but\r
+on my Debian Jessie machine with ruby 2.1, the generated Makefile\r
+bindings/ruby/Makefile has\r
+\r
+CFLAGS   = $(CCDLFLAGS) -g -O2 -fstack-protector-strong -Wformat\r
+-Werror=format-security -fPIC $(ARCH_FLAG)\r
+\r
+in it\r
+\r
+even when invoked outside the notmuch build system; e.g.\r
+\r
+% cd bindings/ruby && ruby extconf.rb\r
+\r
+I guess the first step is to see if the -fPIC flag is also there on\r
+Fedora, and if not, why not. If I look at the builds for 0.19 [1]\r
+it seems it is. But notice there it is not required to pass it in to "--with-cflags"\r
+\r
+d\r
+\r
+[1] https://kojipkgs.fedoraproject.org/packages/notmuch/0.19/1.fc21/data/logs/x86_64/build.log\r
+    - I couldn't find x86_64 build logs for 0.20  \r