1 Return-Path: <david@tethera.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 arlo.cworth.org (Postfix) with ESMTP id 56E446DE0924
\r
6 for <notmuch@notmuchmail.org>; Tue, 30 Jun 2015 10:04:48 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=0.176 tagged_above=-999 required=5 tests=[AWL=0.176]
\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 08y1oqnvwyX8 for <notmuch@notmuchmail.org>;
\r
16 Tue, 30 Jun 2015 10:04:46 -0700 (PDT)
\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net
\r
19 by arlo.cworth.org (Postfix) with ESMTPS id 781466DE09FB
\r
20 for <notmuch@notmuchmail.org>; Tue, 30 Jun 2015 10:04:43 -0700 (PDT)
\r
21 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim
\r
22 4.80) (envelope-from <david@tethera.net>)
\r
23 id 1Z9ywF-0004nW-PA; Tue, 30 Jun 2015 17:03:15 +0000
\r
24 Received: (nullmailer pid 3685 invoked by uid 1000); Tue, 30 Jun 2015
\r
26 From: David Bremner <david@tethera.net>
\r
27 To: Suvayu Ali <fatkasuvayu+linux@gmail.com>, notmuch@notmuchmail.org
\r
28 Subject: Re: notmuch release 0.20.2 now available
\r
29 In-Reply-To: <20150630084018.GO24926@chitra.no-ip.org>
\r
30 References: <87h9pplqer.fsf@maritornes.cs.unb.ca>
\r
31 <20150630063942.GM24926@chitra.no-ip.org>
\r
32 <87a8vhlkdv.fsf@maritornes.cs.unb.ca>
\r
33 <20150630084018.GO24926@chitra.no-ip.org>
\r
34 User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.4.1
\r
35 (x86_64-pc-linux-gnu)
\r
36 Date: Tue, 30 Jun 2015 19:02:52 +0200
\r
37 Message-ID: <87r3otjfib.fsf@maritornes.cs.unb.ca>
\r
39 Content-Type: text/plain
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.18
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Tue, 30 Jun 2015 17:04:48 -0000
\r
54 Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
\r
57 > Yes, I have looked at what the official packages[1] do, I do exactly the
\r
58 > same[2]. Essentially the spec file does the following:
\r
60 > pushd bindings/ruby
\r
61 > ruby extconf.rb --vendor --with-cflags="%{optflags}"
\r
62 > make %{?_smp_mflags}
\r
65 I think the problem is contained in the original message. Since we want
\r
66 to create a shared library "notmuch.so" for ruby to import, we need to
\r
67 compile the C files in bindings/ruby with -fPIC.
\r
69 I don't know if this is Debian specific, or ruby version specific, but
\r
70 on my Debian Jessie machine with ruby 2.1, the generated Makefile
\r
71 bindings/ruby/Makefile has
\r
73 CFLAGS = $(CCDLFLAGS) -g -O2 -fstack-protector-strong -Wformat
\r
74 -Werror=format-security -fPIC $(ARCH_FLAG)
\r
78 even when invoked outside the notmuch build system; e.g.
\r
80 % cd bindings/ruby && ruby extconf.rb
\r
82 I guess the first step is to see if the -fPIC flag is also there on
\r
83 Fedora, and if not, why not. If I look at the builds for 0.19 [1]
\r
84 it seems it is. But notice there it is not required to pass it in to "--with-cflags"
\r
88 [1] https://kojipkgs.fedoraproject.org/packages/notmuch/0.19/1.fc21/data/logs/x86_64/build.log
\r
89 - I couldn't find x86_64 build logs for 0.20
\r