--- /dev/null
+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 71559431FBD\r
+ for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 11:39:01 -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 fvDQTwEJyPy8 for <notmuch@notmuchmail.org>;\r
+ Tue, 16 Apr 2013 11:39:00 -0700 (PDT)\r
+Received: from mail-la0-f52.google.com (mail-la0-f52.google.com\r
+ [209.85.215.52]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id C99E2431FAF\r
+ for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 11:38:59 -0700 (PDT)\r
+Received: by mail-la0-f52.google.com with SMTP id ek20so752692lab.11\r
+ for <notmuch@notmuchmail.org>; Tue, 16 Apr 2013 11:38:58 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=mime-version:x-received:in-reply-to:references:date:message-id\r
+ :subject:from:to:cc:content-type;\r
+ bh=SDOdvLWwYcRQGulMFu+NKGVBSvAcFvSoKp1zMAPQSdY=;\r
+ b=Gd4ZGDsTSFd1OHaMCTqUxaqpbsuRqtVgIvwfda6+gG2qtyb/vufi1TyvWzdx29Be1U\r
+ b+tYwCghi/fUOAdImevQwCf7m2Mr29WGwtjFkiMWkA4wgJ/okkSzZ9Bs9TrpIM5Q6qgl\r
+ gl3zWDwWPxMbSn1V5dfuVrZKsvSQ1UeOCCAyvxfFJJa/ECltC9RxCCS6iIhsIRw5fiR3\r
+ hjo2HeTB3h/lyL+6Upc+o2u40v7ECC7JeERXzS65ufr43tNH5A1bLSaQ3Spgn2+kt/A/\r
+ kaW5Wc22TwvO5ObTNFp82vOLMuuZQXcqcWVe3p1aiQUIaPm2qqid11UT003VDBQedV2z\r
+ y+8w==\r
+MIME-Version: 1.0\r
+X-Received: by 10.152.3.137 with SMTP id c9mr1847991lac.5.1366137538243; Tue,\r
+ 16 Apr 2013 11:38:58 -0700 (PDT)\r
+Received: by 10.114.59.210 with HTTP; Tue, 16 Apr 2013 11:38:57 -0700 (PDT)\r
+In-Reply-To: <871uact7kb.fsf@zancas.localnet>\r
+References: <1365031678-25188-1-git-send-email-felipe.contreras@gmail.com>\r
+ <87y5clte1j.fsf@zancas.localnet>\r
+ <CAMP44s07KeL4uAChs3KFiqwcsCwWTvni6MzFGzXNeO7=sd6U6Q@mail.gmail.com>\r
+ <871uact7kb.fsf@zancas.localnet>\r
+Date: Tue, 16 Apr 2013 13:38:57 -0500\r
+Message-ID:\r
+ <CAMP44s2=1g+MdtrwfwjvHLQp+=9L-nNauFAKJ86atX1mucWGHg@mail.gmail.com>\r
+Subject: Re: [PATCH] debian: package ruby bindings\r
+From: Felipe Contreras <felipe.contreras@gmail.com>\r
+To: David Bremner <bremner@debian.org>\r
+Content-Type: text/plain; charset=UTF-8\r
+Cc: 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: Tue, 16 Apr 2013 18:39:01 -0000\r
+\r
+On Mon, Apr 15, 2013 at 5:24 AM, David Bremner <bremner@debian.org> wrote:\r
+> Felipe Contreras <felipe.contreras@gmail.com> writes:\r
+>>> The package is still installing files into /usr/local, which is a\r
+>>> violation of debian policy 9.1.2\r
+>>>\r
+>>> It's a good idea to run "lintian" on the resulting debian packages;\r
+>>> that's how I caught the problem with /usr/local.\r
+>>\r
+>> Tell that to debian maintainers who configure ruby that way:\r
+>\r
+> [ ruby config deleted ]\r
+>\r
+> I don't know if there is a bug in the Debian ruby package or not, but\r
+> that does not change whether our package is allowed to install into\r
+> /usr/local. I suspect the argument is that those defaults are sensible\r
+> for admins installing ruby packages on their own systems without using\r
+> the debian package system.\r
+\r
+I asked the debian ruby packages and looked everywhere, but there was\r
+no guidance at all. Nonetheless I think this does the trick:\r
+\r
+--- a/debian/notmuch-ruby.install\r
++++ b/debian/notmuch-ruby.install\r
+@@ -1 +1 @@\r
+-usr/local/lib/site_ruby/*/*/notmuch.so\r
++usr/lib/ruby/vendor_ruby/*/*/notmuch.so\r
+diff --git a/debian/rules b/debian/rules\r
+index 1dd59d2..fed680b 100755\r
+--- a/debian/rules\r
++++ b/debian/rules\r
+@@ -12,7 +12,7 @@ override_dh_auto_build:\r
+ dh_auto_build\r
+ dh_auto_build --sourcedirectory bindings/python\r
+ cd bindings/python && $(python3_all) setup.py build\r
+- cd bindings/ruby && ruby extconf.rb && make\r
++ cd bindings/ruby && ruby extconf.rb --vendor && make\r
+ $(MAKE) -C contrib/notmuch-mutt\r
+\r
+ override_dh_auto_clean:\r
+\r
+Cheers.\r
+\r
+-- \r
+Felipe Contreras\r