Re: [patch v3 1/4] build: integrate building ruby bindings into notmuch build process
authorJinwoo Lee <jinwoo68@gmail.com>
Sat, 13 Jun 2015 21:22:25 +0000 (14:22 +1700)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:03 +0000 (14:49 -0700)
29/1b8bc32fb8fefdc6a4047b2be2a0b61206de45 [new file with mode: 0644]

diff --git a/29/1b8bc32fb8fefdc6a4047b2be2a0b61206de45 b/29/1b8bc32fb8fefdc6a4047b2be2a0b61206de45
new file mode 100644 (file)
index 0000000..c9ef55e
--- /dev/null
@@ -0,0 +1,135 @@
+Return-Path: <jinwoo68@gmail.com>\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 BF78B6DE0AF8\r
+ for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 14:22:31 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.568\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.568 tagged_above=-999 required=5 tests=[AWL=0.002,\r
+  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001]\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 PKFhDJ8tDzBj for <notmuch@notmuchmail.org>;\r
+ Sat, 13 Jun 2015 14:22:29 -0700 (PDT)\r
+Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com\r
+ [209.85.220.42])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id C5B896DE0948\r
+ for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 14:22:29 -0700 (PDT)\r
+Received: by pacgb13 with SMTP id gb13so11372975pac.1\r
+ for <notmuch@notmuchmail.org>; Sat, 13 Jun 2015 14:22:29 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+ :mime-version:content-type;\r
+ bh=ScZRv5ZvZyLIckfYWQ8C/8iF9J5VWUgR56A/Y5H2lPE=;\r
+ b=rCTs5bN9fT2dQg/XTB7DWJU+bCBySHeduoTdyXdI53sep9icCnLwFhvvWeuhRG98uU\r
+ 7AdwsnjcoDzLgGs04aINNJylqiEHYXicDZiWIoKKSrFA2qiAr/SpRJ+pD5LegQ+wNVei\r
+ Td1Z0LPcWR6RXePw6ydqVKUnYgLXabNTFB3JQnamAe/Ldog+DXR+ryuIsCtc0KZZn9O7\r
+ 9w9hyTtqglRpcmyEAE/BF3RrIpR21RmQikKSfRacYo9fjwjk3MzMKftRq04IbAbO3prD\r
+ vuGcahQxyBo3KBLk4kk6tIlECoPA18bMZL0ya62EQtKGoZHAiec5p7QIdYaa7qY+VUs8\r
+ CARw==\r
+X-Received: by 10.66.65.134 with SMTP id x6mr33824621pas.129.1434230549480;\r
+ Sat, 13 Jun 2015 14:22:29 -0700 (PDT)\r
+Received: from localhost ([2601:647:4b02:71ea:b00c:9bdd:d6e7:4a42])\r
+ by mx.google.com with ESMTPSA id pz9sm7509485pbb.93.2015.06.13.14.22.26\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 13 Jun 2015 14:22:27 -0700 (PDT)\r
+From: Jinwoo Lee <jinwoo68@gmail.com>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [patch v3 1/4] build: integrate building ruby bindings into\r
+ notmuch build process\r
+In-Reply-To: <87bngj9uvv.fsf@maritornes.cs.unb.ca>\r
+References: <1425679073-30439-5-git-send-email-david@tethera.net>\r
+ <1433142542-2307-1-git-send-email-david@tethera.net>\r
+ <1433142542-2307-2-git-send-email-david@tethera.net>\r
+ <87zj4415bu.fsf@maritornes.cs.unb.ca>\r
+ <yq65vberz8ew.fsf@jinwoo-macbookair.roam.corp.google.com>\r
+ <yq65si9vz69j.fsf@jinwoo-macbookair.roam.corp.google.com>\r
+ <yq65pp4zz617.fsf@jinwoo-macbookair.roam.corp.google.com>\r
+ <87bngj9uvv.fsf@maritornes.cs.unb.ca>\r
+User-Agent: Notmuch/0.20.1+21~g4e79903 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-apple-darwin14.3.0)\r
+Date: Sat, 13 Jun 2015 14:22:25 -0700\r
+Message-ID: <yq654mmbnw1a.fsf@jinwoo-macbookair.roam.corp.google.com>\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: Sat, 13 Jun 2015 21:22:31 -0000\r
+\r
+On Sat, Jun 13, 2015 at 02:11 PM, David Bremner <david@tethera.net> wrote:\r
+> Jinwoo Lee <jinwoo68@gmail.com> writes:\r
+>\r
+>>> I with configure has an option to skip the ruby-bindings build.\r
+>>\r
+>> `configure' seems to try to detect whether the ruby development tools\r
+>> are installed.  It thinks I have them but I don't actually, and that's\r
+>> why my build fails.  When I manually set 'HAVE_RUBY_DEV = 0' in\r
+>> Makefile.config, everything's fine.\r
+>\r
+> Thanks for narrowing this down. Can you tell us the output of\r
+>\r
+> % ruby -e "require 'mkmf'" ; echo $?\r
+\r
+This command succeeds and returns 0.\r
+\r
+When I change the dependency of ruby-bindings from libnotmuch.so to\r
+libnotmuch.dylib and run `make', I get errors like below.\r
+\r
+Looks like mkmf.rb (I have no idea what this is) is provided by OS X by\r
+default, but actually running it fails.\r
+\r
+...\r
+[snip]\r
+...\r
+checking for notmuch_database_create in libnotmuch.so... *** extconf.rb failed ***\r
+Could not create Makefile due to some reason, probably lack of necessary\r
+libraries and/or headers.  Check the mkmf.log file for more details.  You may\r
+need configuration options.\r
+\r
+Provided configuration options:\r
+       --with-opt-dir\r
+       --without-opt-dir\r
+       --with-opt-include\r
+       --without-opt-include=${opt-dir}/include\r
+       --with-opt-lib\r
+       --without-opt-lib=${opt-dir}/lib\r
+       --with-make-prog\r
+       --without-make-prog\r
+       --srcdir=.\r
+       --curdir\r
+       --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby\r
+/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)\r
+You have to install development tools first.\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:513:in `block in try_link0'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tmpdir.rb:88:in `mktmpdir'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:510:in `try_link0'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:534:in `try_link'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:720:in `try_func'\r
+       from extconf.rb:19:in `block in have_local_library'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:895:in `block in checking_for'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:340:in `block (2 levels) in postpone'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:310:in `open'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:340:in `block in postpone'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:310:in `open'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:336:in `postpone'\r
+       from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:894:in `checking_for'\r
+       from extconf.rb:17:in `have_local_library'\r
+       from extconf.rb:25:in `<main>'\r
+make: *** [ruby-bindings] Error 1\r
+\r