Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp4974701pxb; Mon, 28 Mar 2022 06:21:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHiv3G30ytRFMd+21KOKv7TggmD/XxzUgZ/JYlg3m0TYnz7yfXOYAkLUeD1yWbZZ+C8m4i X-Received: by 2002:a17:902:e84f:b0:153:fedf:519 with SMTP id t15-20020a170902e84f00b00153fedf0519mr26595737plg.153.1648473695417; Mon, 28 Mar 2022 06:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648473695; cv=none; d=google.com; s=arc-20160816; b=OJqil2WO296XXNv+faCK8QX1HnPmELwEhx/6CUpinb5lMeKWa0zF577KV8ROTgOTBR Ceu54XPRnC4imtvrDpP/ZUgip+CFvksscaZKHYUZvCNYji80ZzoEpQY849O/rbk/zYxj Pp7feXOJBkxN+xZNQzScfE4517DOWKLwfMKSA/SI7RL8DHmvD4mV79YZwGKKL9qSLd6E PfSiTAh27r9j+/lBl85yPLIK1X4MHzQ2zDZqoMPDznbG9QYX/Gh2eFvW3RdGhATcZzp2 04iUP++TxSuyZF3FoZJD0+m0GENkbicShGMp62YUmMX+15Ky4pa6/eC1x55y/cawYvAb uiEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=La3vnbQqOfrTD3/v/pYUbKpRo+7XkqpGZc6tgbHCE3k=; b=K6ygPGEPUjUKUBzNLoHRvYxgstgrzVE545w61kz4aYbpvivN/TCAzgID+qEqqfmX1z 1mbvM4hqhoq4G+fPqPbwCgBtB4qybMkJVc/RPeVpxcRbiyq6kcmifvtrVYEy5hUSJLiD rs10HvlmkEwHUTU0OynF07Tz/oKqSPbZy9kdR85OpU1yvn0qDGKKeaazDLPIR0jl0VtK s2hMTgxBWoy6E5ZgJWmHo1mnanDKxMlk8JJoSZEKLOw4BIi4zwSc2u+PfAQpIq7+6NaU iNLgQEkjG1JveYl71YVrYqp2GjhJ4UP7OmiXtcFHom/jo75bepkblXyrfSZYztCgDsZ6 2Vuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jb8eKOJT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n16-20020a63f810000000b003829728c900si12884991pgh.662.2022.03.28.06.21.21; Mon, 28 Mar 2022 06:21:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jb8eKOJT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240231AbiC1K17 (ORCPT + 99 others); Mon, 28 Mar 2022 06:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240235AbiC1K1u (ORCPT ); Mon, 28 Mar 2022 06:27:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3E6C36E02; Mon, 28 Mar 2022 03:26:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3F3DE60FCC; Mon, 28 Mar 2022 10:26:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B81A5C004DD; Mon, 28 Mar 2022 10:26:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648463168; bh=ClrbOWRSNMLl96m+NhBGm3Qrgj7yVuAq3b+4WcQ0rAM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Jb8eKOJTOMzxbajxJGkA9vxuWFcssjok0OoiizOjXmuFfGDzcYGBmPKnzFcMUWeJG YB7gQT8IR29Ze0+2NdPi4vN2mEDvLJD90RzrTM3JWWCpvf598luRcWob/I/SnLLRxd xV/SiWwv4kDhkYP0sQ2vLrxfR9CSCo+DuUiQg9JR3MkYpbkVnQS0vbSlcneZhnY8f6 0cFvYTTM8QtK0GZQRZ3JxZh1c56T3T9ed44RUPmAMxus5RJNA7PoAX0ieqCvLytqdp sGLPZUfJJxrRnIdKJdJu8mI4u7i3SBLjH52W2sl30XcRdbFkvDCGD6H05rGeA23A9a y0WxUfg7zoNRg== Date: Mon, 28 Mar 2022 12:26:04 +0200 From: Mauro Carvalho Chehab To: Akira Yokosawa Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: kfigure.py: Don't warn of missing PDF converter in 'make htmldocs' Message-ID: <20220328122604.67d0eb5e@coco.lan> In-Reply-To: References: X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sat, 26 Mar 2022 16:48:39 +0900 Akira Yokosawa escreveu: > SVG -> PDF conversion is not required in "make htmldocs". > It is pointless to always warn of a missing converter. > Demote the log message in setupTools() to verbose. > > For "make pdfdocs" (or "make latexdocs"), promote the dynamic > message of "include SVG raw" to a warn. > Expand the message and recommend installing Inkscape or > ImageMagick. > > Fixes: 8ccd05697a9d ("docs: sphinx/kfigure.py: Use inkscape(1) for SVG -> PDF conversion") > Signed-off-by: Akira Yokosawa > Cc: Jonathan Corbet > Cc: Mauro Carvalho Chehab > Cc: linux-doc@vger.kernel.org Makes sense to me. Acked-by: Mauro Carvalho Chehab > --- > Documentation/sphinx/kfigure.py | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/Documentation/sphinx/kfigure.py b/Documentation/sphinx/kfigure.py > index 24d2b2addcce..cefdbb7e7523 100644 > --- a/Documentation/sphinx/kfigure.py > +++ b/Documentation/sphinx/kfigure.py > @@ -212,7 +212,7 @@ def setupTools(app): > if convert_cmd: > kernellog.verbose(app, "use convert(1) from: " + convert_cmd) > else: > - kernellog.warn(app, > + kernellog.verbose(app, > "Neither inkscape(1) nor convert(1) found.\n" > "For SVG to PDF conversion, " > "install either Inkscape (https://inkscape.org/) (preferred) or\n" > @@ -296,8 +296,10 @@ def convert_image(img_node, translator, src_fname=None): > > if translator.builder.format == 'latex': > if not inkscape_cmd and convert_cmd is None: > - kernellog.verbose(app, > - "no SVG to PDF conversion available / include SVG raw.") > + kernellog.warn(app, > + "no SVG to PDF conversion available / include SVG raw." > + "\nIncluding large raw SVGs can cause xelatex error." > + "\nInstall Inkscape (preferred) or ImageMagick.") > img_node.replace_self(file2literal(src_fname)) > else: > dst_fname = path.join(translator.builder.outdir, fname + '.pdf') > > base-commit: 8d6451b9a51b555be2c9a6c326a980b2de00741a Thanks, Mauro