From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9B127431FAF for ; Sat, 3 Mar 2012 08:40:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I42yXF8j0IaB for ; Sat, 3 Mar 2012 08:40:33 -0800 (PST) Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0C99C431FAE for ; Sat, 3 Mar 2012 08:40:33 -0800 (PST) Received: from mail.jade-hamburg.de (unknown [85.183.11.228]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cryptobitch.de (Postfix) with ESMTPSA id 81B2A418213 for ; Sat, 3 Mar 2012 17:40:31 +0100 (CET) Received: by mail.jade-hamburg.de (Postfix, from userid 401) id 6E3BFDF2A3; Sat, 3 Mar 2012 17:40:30 +0100 (CET) Received: from thinkbox.jade-hamburg.de (unknown [85.183.11.228]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: teythoon) by mail.jade-hamburg.de (Postfix) with ESMTPSA id ADC03DF2A1 for ; Sat, 3 Mar 2012 17:40:29 +0100 (CET) Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77) (envelope-from ) id 1S3s0S-0007X5-Dg for notmuch@notmuchmail.org; Sat, 03 Mar 2012 17:40:28 +0100 From: Justus Winter <4winter@informatik.uni-hamburg.de> To: notmuch@notmuchmail.org Subject: [rfc] autotools compatibility and Hurd as platform Date: Sat, 3 Mar 2012 17:40:21 +0100 Message-Id: <1330792823-6049-1-git-send-email-4winter@informatik.uni-hamburg.de> X-Mailer: git-send-email 1.7.9.1 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2012 16:40:33 -0000 I made two tiny patches to enable notmuch to be built on the Hurd, the first one is straight forward, it just adds GNU as a platform and reuses the settings for Linux. The second one deals with the problem that the value passed as an argument to --build is not a triple but a tuple: % dpkg-architecture -qDEB_HOST_GNU_TYPE i486-gnu notmuchs configure script expects the arguments for --host and --build to be triple but autotools is much more forgiving here. It does so by canonicalizing the values using some serious voodoo in /usr/share/misc/config.sub. The patch reuses config.sub to canonicalize the arguments, but this introduces a build dependency on autotools and probably worse, it uses autotools internals and the path to config.sub has to be hardcoded. Since this might be not desirable we might also just drop the code that parses the --host and --build options since we're not using them anyway. With these two patches notmuch builds fine and works on the Hurd, the testsuite is running fine (modulo one test, but that might be broken, haven't checked on linux) and the python bindings are fine too (I've been successfully running afew to tag some mails). Cheers, Justus