Re: [PATCH 3/4] ruby: Add workarounds to use in-tree build not the installed one
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 23 May 2012 22:02:28 +0000 (00:02 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:17 +0000 (09:47 -0800)
91/f4be45844fbe280ce07d08e797156dd7652aa2 [new file with mode: 0644]

diff --git a/91/f4be45844fbe280ce07d08e797156dd7652aa2 b/91/f4be45844fbe280ce07d08e797156dd7652aa2
new file mode 100644 (file)
index 0000000..97148f6
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <felipe.contreras@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 olra.theworths.org (Postfix) with ESMTP id 71379431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 23 May 2012 15:02:31 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id EpIS7fzBywUy for <notmuch@notmuchmail.org>;\r
+       Wed, 23 May 2012 15:02:31 -0700 (PDT)\r
+Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
+       [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B2382431FAF\r
+       for <notmuch@notmuchmail.org>; Wed, 23 May 2012 15:02:30 -0700 (PDT)\r
+Received: by lagu2 with SMTP id u2so6333709lag.26\r
+       for <notmuch@notmuchmail.org>; Wed, 23 May 2012 15:02:29 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
+       :cc:content-type;\r
+       bh=nafjjTxVuxVwWmYWy9k8+4hNrMfLy382fdbgfPoQNIw=;\r
+       b=D13+jue17wqc56vlHnn8yVUPX6RKmD/5ucFFgdq/8qmBp/iGj0M6BsYxAVP1f/FuPK\r
+       GNRIFw9JEoG8ob+czerBNBpmlurqDfZJX0jVgzRIbLXTNngso4MdciWpi6EmDTi9xrfk\r
+       PHcvMT3k9uCGYJpR01SnyLc+eJTSxs554+6u5RH9ehtqKBhtnOApFHE66EJ/oAv5sbYN\r
+       czDsxMl3ipRJa+Q2p4Qc5JPA2yBLnYYJuv8DHcIBUmtIRSQALe6OZrrReRAa1x3ipHaK\r
+       8Gc4Cu+75SE1umoDpMxh1RwP+1mnLzttv/9aEcbwFFYSK8kOrxMmIBlJ92WdhU+JlEYL\r
+       KZ/g==\r
+MIME-Version: 1.0\r
+Received: by 10.152.125.236 with SMTP id mt12mr10446295lab.12.1337810548896;\r
+       Wed, 23 May 2012 15:02:28 -0700 (PDT)\r
+Received: by 10.112.107.65 with HTTP; Wed, 23 May 2012 15:02:28 -0700 (PDT)\r
+In-Reply-To:\r
+ <1559639bc5e9e3253f2ee2220a8d8d00c39d9d43.1336402558.git.alip@exherbo.org>\r
+References: <87txzsgs4g.fsf@zancas.localnet>\r
+       <cover.1336402558.git.alip@exherbo.org>\r
+       <1559639bc5e9e3253f2ee2220a8d8d00c39d9d43.1336402558.git.alip@exherbo.org>\r
+Date: Thu, 24 May 2012 00:02:28 +0200\r
+Message-ID:\r
+ <CAMP44s15Q6F9bA0MirS3zyBU3AqomH7wKBmLvqEtAnBnzHrw=g@mail.gmail.com>\r
+Subject: Re: [PATCH 3/4] ruby: Add workarounds to use in-tree build not the\r
+       installed one\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: Ali Polatel <alip@exherbo.org>\r
+Content-Type: text/plain; charset=UTF-8\r
+Cc: David Bremner <bremner@unb.ca>, notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Wed, 23 May 2012 22:02:31 -0000\r
+\r
+On Mon, May 7, 2012 at 5:02 PM, Ali Polatel <alip@exherbo.org> wrote:\r
+> - Make mkmf use the notmuch.h under ../../lib\r
+> - Use libnotmuch.a instead of linking to the installed libnotmuch.so\r
+\r
+How has this ever worked?\r
+\r
+libnotmuch.so links to many things, fortunately when linking Ruby's\r
+notmuch.so binding to libnotmuch.so.3 all those dependencies are\r
+resolved for us, but when you link to libnotmuch.a you need notmuch.so\r
+to link against all those dependencies.\r
+\r
+This is triggering cryptic errors such as:\r
+\r
+/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require':\r
+foo/notmuch.so: undefined symbol:\r
+_ZTVN10__cxxabiv117__class_type_infoE - foo/notmuch.so (LoadError)\r
+\r
+Presumably because not even libstdc++.so is linked.\r
+\r
+I don't see how this patch could be fixed properly easily, and it was\r
+labeled as a hack, and I didn't like it in the first place anyway, so\r
+I'm going to revert it by tomorrow if I don't hear any good reason not\r
+to.\r
+\r
+I also suggest making a brown-paper-bag release 0.13.1 because 0.13\r
+has completely unusable Ruby bindings; there's just no way to compile\r
+them and make them work.\r
+\r
+Cheers.\r
+\r
+-- \r
+Felipe Contreras\r