From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ZNJPGKQBol7yMgAA0tVLHw (envelope-from ) for ; Thu, 23 Apr 2020 20:59:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GLUlDasBol4wZQAAbx9fmQ (envelope-from ) for ; Thu, 23 Apr 2020 20:59:23 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 65BB3942DA0 for ; Thu, 23 Apr 2020 20:59:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id AF8F56DE119D; Thu, 23 Apr 2020 13:59:15 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lXQgKeyOkri1; Thu, 23 Apr 2020 13:59:15 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 95A086DE10B3; Thu, 23 Apr 2020 13:59:11 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 6F91B6DE10B3 for ; Thu, 23 Apr 2020 13:59:10 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PymZ13tLapAf for ; Thu, 23 Apr 2020 13:59:06 -0700 (PDT) Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201]) by arlo.cworth.org (Postfix) with ESMTPS id 509386DE10B2 for ; Thu, 23 Apr 2020 13:59:05 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by meesny.iki.fi (Postfix) with ESMTPSA id 50AA420599; Thu, 23 Apr 2020 23:59:00 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1587675540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=A3wD16V+mzNvS41vton3nhED7rdHlb73xPjOr8YnEeU=; b=eO2uUx6iYzNgayum7Ls0EKfLkkJOMWjiBJkmHzidQ8XEHyrpuUMP7qZDeasbJy5v9JnRSz p78COAlaXp+hClGNVQX7zutLaiUT35pI06hnuE22K+TeNy7yDRY0oV1Qkj49gwoJlkwoDL J6WYbitpeYwI/QUhp2J3tewZDLxtNyo= From: Tomi Ollila To: notmuch@notmuchmail.org Subject: [PATCH] configure: disable features that do not work out of tree Date: Thu, 23 Apr 2020 23:58:57 +0300 Message-Id: <20200423205857.346-1-tomi.ollila@iki.fi> X-Mailer: git-send-email 2.13.3 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1587675540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=A3wD16V+mzNvS41vton3nhED7rdHlb73xPjOr8YnEeU=; b=vZ+YY3uduDwX7oolTsOrASWmtRO+ibKXaNejDUIHoR8py2FAShlxYF3ya+eLK1+iT3VGzR 69Wp/TXAIOuweDTDx77zXi8i1UMf4ebKDq2rJLzTwLJRD3hby7mRFy4JTOld+h3J0jDbnQ 7om0K4RuLONgN3zzygKCgc+fQSEqqJU= ARC-Seal: i=1; s=meesny; d=iki.fi; t=1587675540; a=rsa-sha256; cv=none; b=Wnha90qezPeQ8FUnJ8SxMEYNv08BES/MBK9fDYs5g1Kmjr8w/8n6+5llQdsipQl1Q3nHni XZ2FYURd5a6mSZwYcL5jw37p3tkBoS1ngQAF1+HpzC6rZR+YieuAj3uawKPfkAzn4uc6Tg J/T6S6DCnzUR03BGLFbQU228XQlr9yA= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tomi.ollila@iki.fi MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 X-Spam-Score: 2.79 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=iki.fi header.s=meesny header.b=eO2uUx6i; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Scan-Result: default: False [2.79 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.4662163198671]; IP_REPUTATION_HAM(0.00)[asn: 27017(-0.19), country: US(-0.00), ip: 50.126.95.6(-0.47)]; R_DKIM_REJECT(1.00)[iki.fi:s=meesny]; TO_DN_NONE(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; ARC_REJECT(2.00)[signature check failed: fail, {[1] = sig:iki.fi:reject}]; DKIM_TRACE(0.00)[iki.fi:-]; MX_GOOD(-0.50)[cached: notmuchmail.org]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_MED(-0.20)[50.126.95.6:from]; MAILLIST(-0.20)[mailman]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:27017, ipnet:50.126.64.0/18, country:US]; FROM_NEQ_ENVFROM(0.00)[tomi.ollila@iki.fi,notmuch-bounces@notmuchmail.org]; URIBL_BLOCKED(0.00)[notmuchmail.org:email]; FROM_HAS_DN(0.00)[]; SPF_REPUTATION_HAM(0.00)[-0.4538149021625]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[notmuch@notmuchmail.org]; DMARC_NA(0.00)[iki.fi]; HAS_LIST_UNSUB(-0.01)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_COUNT_SEVEN(0.00)[8]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: OEhmT5mwLxRH When doing out of tree build, - sphinx-build cannot collect source files from source code directory and generated files from build directory. - python3-cffi did not work, did not investigate further. In order to get at least something done out of tree, these features are disabled when doing out of tree builds. The output is still useful if these features are not needed, and helps with e.g. test output comparisons. --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure b/configure index 70031d14..8c2c9b72 100755 --- a/configure +++ b/configure @@ -70,6 +70,10 @@ if [ "$srcdir" != "." ]; then mkdir bindings/ruby cp -a "$srcdir"/bindings/ruby/*.[ch] bindings/ruby cp -a "$srcdir"/bindings/ruby/extconf.rb bindings/ruby + + out_of_tree_build=1 +else + out_of_tree_build=0 fi # Set several defaults (optionally specified by the user in @@ -1089,6 +1093,11 @@ printf "\n\t%s\n" "${WARN_CFLAGS}" rm -f minimal minimal.c _libversion.c _libversion _libversion.sh _check_session_keys.c _check_session_keys +if [ "$out_of_tree_build" = 1 ]; then + printf '\n*** Out of tree build: disabling sphinx docs, python3-cffi ***\n' + have_sphinx=0 have_python3_cffi=0 +fi + # construct the Makefile.config cat > Makefile.config <