From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8DTiJ7tFil9FNQAA0tVLHw (envelope-from ) for ; Sat, 17 Oct 2020 01:15:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eAFjI7tFil9hMwAA1q6Kng (envelope-from ) for ; Sat, 17 Oct 2020 01:15:39 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 291369402CC for ; Sat, 17 Oct 2020 01:15:37 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id C0E7E2000F; Fri, 16 Oct 2020 21:15:29 -0400 (EDT) X-Greylist: delayed 16389 seconds by postgrey-1.36 at nmbug; Fri, 16 Oct 2020 21:15:27 EDT Received: from wedjat.horus-it.com (wedjat.horus-it.com [IPv6:2a01:4f9:2a:2e8d::c0de]) by mail.notmuchmail.org (Postfix) with ESMTPS id 1F3401FFD8 for ; Fri, 16 Oct 2020 21:15:27 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by wedjat.horus-it.com (Postfix) with ESMTP id 39F97A6026E1 for ; Sat, 17 Oct 2020 03:15:19 +0200 (CEST) X-Virus-Scanned: at horus-it.com Received: from wedjat (wedjat.horus-it.com [IPv6:2a01:4f9:2a:2e8d::c0de]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by wedjat.horus-it.com (Postfix) with ESMTPS id 1912DA600164 for ; Sat, 17 Oct 2020 03:15:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ml.seichter.de; s=k1; t=1602897319; bh=D/uRqUAXx4QX2B2pHsreDCwL1zzVMCJRLj0bULQsZ5s=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: Content-Type; b=nqQqz5LNL8LFpPPDUgoGgM4RglXfCjfdujaohtScAta3oeQuJXvw+Wo+DywGury3P ip9X1ryAU7I3XqEhGhY8aWJWHc1889sqQwFh0i9+hruDooCtzApOxLcP6JThFWWo1m 4ePFHJSashVpzfxMQxyhcchwBITcfwzoN+j13PHCf/inqhSATZm4dHJc4/HuwOpfaP 77UWgEFK1VHVGaKfpelCH+pMOp4zbxjYAhIskB092dVTNA35GDCWavA6xbi1jBHuWP W00fC3sdSkKG3bkiPRkFQ/pKymFGCsnq+pM0M7wtVl4v7EopmK7E1sZoph/8RaxLLS piF/f+mf1c6mA== From: Ralph Seichter To: notmuch@notmuchmail.org Subject: Re: Dependencies should include "realpath" In-Reply-To: <87sgadwvpt.fsf@tethera.net> References: <87d01hewdd.fsf@wedjat.horus-it.com> <87sgadwvpt.fsf@tethera.net> Mail-Followup-To: notmuch@notmuchmail.org Date: Sat, 17 Oct 2020 03:15:19 +0200 Message-ID: <87o8l1r6u0.fsf@wedjat.horus-it.com> MIME-Version: 1.0 Message-ID-Hash: LLKEXSE7AAAWECFXZVXOMK45NT7WLVRI X-Message-ID-Hash: LLKEXSE7AAAWECFXZVXOMK45NT7WLVRI X-MailFrom: ralph@ml.seichter.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=ml.seichter.de header.s=k1 header.b=nqQqz5LN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=ml.seichter.de (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 1.63 X-TUID: pNBUWM3DGJ4v * David Bremner: > Do you have a suggested replacement? I guess some inline perl with "use > Cwd 'realpath'" would probably work, although I haven't tested it. At a quick glance, that particular section of "configure" is run by doc/conf.py to generate three lines of Python code and store the result as sphinx.config, correct? If so, my preferred choice would be to use Python to figure out the absolute path, e.g. like so: rsti_dir = os.path.abspath('emacs') This shows the generated result, and I assume that emacs is a directory in the source tree? I also wonder if an absolute directory path is really required for the doc-build to work. The segment of conf.py which uses the generated config file does not look convincing to me anyway. Apparently the original author did not like it either, which is why the segment is labelled as "hacky". It should probably be overhauled, and not only because it uses the statement open(rsti_dir+'/'+file) which will potentially fail, depending on the build platform. -Ralph