Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp972357ybl; Fri, 24 Jan 2020 12:59:36 -0800 (PST) X-Google-Smtp-Source: APXvYqypPSWKMd6FYRIM5UfX7EOSpymekYilSZJqZBYomoRsACrGRbo++ld8q2450MoXob425tpK X-Received: by 2002:aca:110a:: with SMTP id 10mr535850oir.130.1579899576759; Fri, 24 Jan 2020 12:59:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579899576; cv=none; d=google.com; s=arc-20160816; b=M41ouNya7Ck2xHqthJb3lE5mMsyzdzh1QtIzoQ0QiPBRp2hz1nsQFKzx4i4Zy1/0s8 TATdfYaJ+aLqqqHUejEpWWYVIAnn5JkrI/xoSrD7glFJcbB6a8AYtgI/IycjxClLbbOV +s5AuXdHcgzFjXo8ntyWlOlDKSRSU5TvsUtK+2lekQChcqHTayO5+KC07X1KdIXetTe2 GLfLGYBjNBS2GU2Lzr/bjZU2A9sCXp9nk8Dh2u2PmzxB+s6Ct6P20c9FQsSAxaiqen4u emkzM50Zv0JSiMxNpwGSW5ugp6u71ikxolZrtcxnrfXE3Aq0Nz06Cmd7MPo5DJXDsHqX D4Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+d7DytKlCNzsLahN/7D8XUE65C0RROKdzAp5N1dcw1g=; b=hFx+OfsIyhLFkdQCdmlVBaUDsMLG0vg8WlUxBnwJ6PYU52vlivfyKOuODR5YPjcAiu 2+rVCvwbzoyDK5APeY8uDNKSUihuLY6Qd/xBiA8aSZAx6lJKADFBGw4H7XkiVAoD6tUi R8iMGCG8DwyUMF0AfYTZo817gTNW7mLepkohkN9dBvqYKHQi3AGQ2juR3/RtjzOCccc3 D+uhByP9NqWxg0r644fi2JnSDvDHhxsOmqrh9PCfgK0TX012n38EVFJQx/SxTofwpLBl HHci2PPm1uxqDGbGXKusvPtR3hqD4cxnR4X08UZaRSxHTf+NzgfoXNESTL82Dr4OnvqE E6wA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si289468oic.163.2020.01.24.12.59.25; Fri, 24 Jan 2020 12:59:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390864AbgAXSkT (ORCPT + 99 others); Fri, 24 Jan 2020 13:40:19 -0500 Received: from 3.mo177.mail-out.ovh.net ([46.105.36.172]:44771 "EHLO 3.mo177.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388138AbgAXSkT (ORCPT ); Fri, 24 Jan 2020 13:40:19 -0500 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Fri, 24 Jan 2020 13:40:18 EST Received: from player774.ha.ovh.net (unknown [10.108.35.74]) by mo177.mail-out.ovh.net (Postfix) with ESMTP id EE4A212125A for ; Fri, 24 Jan 2020 19:33:36 +0100 (CET) Received: from sk2.org (unknown [77.240.182.90]) (Authenticated sender: steve@sk2.org) by player774.ha.ovh.net (Postfix) with ESMTPSA id F1711EAF5EA7; Fri, 24 Jan 2020 18:33:31 +0000 (UTC) From: Stephen Kitt To: Mauro Carvalho Chehab , Jonathan Corbet , linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] Allow git builds of Sphinx Date: Fri, 24 Jan 2020 19:33:16 +0100 Message-Id: <20200124183316.1719218-1-steve@sk2.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 4071254064175140255 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrvdeggdduuddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucfkpheptddrtddrtddrtddpjeejrddvgedtrddukedvrdeltdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejjeegrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When using a non-release version of Sphinx, from a local build (with improvements for kernel doc handling, why not), sphinx-build --version reports versions of the form sphinx-build 3.0.0+/4703d9119972 i.e. base version, a plus symbol, slash, and the start of the git hash of whatever repository the command is run in (no, not the hash that was used to build Sphinx!). This patch fixes the installation check in sphinx-pre-install to recognise such version output. Signed-off-by: Stephen Kitt --- scripts/sphinx-pre-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install index 470ccfe678aa..a8f0c002a340 100755 --- a/scripts/sphinx-pre-install +++ b/scripts/sphinx-pre-install @@ -272,7 +272,7 @@ sub check_sphinx() open IN, "$sphinx --version 2>&1 |" or die "$sphinx returned an error"; while () { - if (m/^\s*sphinx-build\s+([\d\.]+)$/) { + if (m/^\s*sphinx-build\s+([\d\.]+)(\+\/[\da-f]+)?$/) { $cur_version=$1; last; } -- 2.24.1