From patchwork Sun Nov 13 21:10:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Bergmann X-Patchwork-Id: 19452 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1833482wru; Sun, 13 Nov 2022 13:11:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf7VnJ7A1YeVEuPJY75zgywyRQZXdagTsGjYEBG/SCmUsnryyEgfxsZK/su9usTCp4wz6JVz X-Received: by 2002:a05:6402:43ce:b0:461:5d0a:78e1 with SMTP id p14-20020a05640243ce00b004615d0a78e1mr9110504edc.425.1668373887395; Sun, 13 Nov 2022 13:11:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668373887; cv=none; d=google.com; s=arc-20160816; b=jvgVtKFIGyY3NXYPCFc14Ls/NsvBijb+WnFWbIH2KXwnNc0X+mTeHTxvdi223cGUQq 2aO0Z/esMdBiFVrqW/6tnwmmuhF1lr4hoRm/a5Vg9eweUjeOEiD5Y+yGWVo2WVH5ySkT UGF8Uj8isKMXyFBCbiMruhy8LaQ7+hJRteAaKVDLPnx3XgFVZ7rqsW62hzh4VcaQ1Rjs dUJ2/nl+tF3J6O1mg0hno5PDALCKIpw8qfap7UIY/yxDtcPG4gZ+d6mm+qZ78Rz1JhvL Eqcr/isQ9UJpI/QeMtZj4WfUqmByigVpCW3ChJYjEaXEleLqrIcpWW7Jf0amex8DFV/l r9tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:content-language:subject:cc:to:user-agent :mime-version:date:message-id:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=sZMC3sn5Gyduk1OSJFpeXxRBP1/468zelhdPa3plyXM=; b=H+C5aZZm2s5DTI2yv3rv8esZVJ1e260sm+Ntt4+kgxqytNyu1x+jY2F6jtCnoXMlbG UegIJ3uPj//cqflGGaNNqk5u6Np++zuC1npe8fhb2CEDsg52PXfWiWxUFhZf1uoKXtWH NHoQCazHmAouk2XNqkyV4IVibl1MzooxZTg4fpKrp5K7kciit5rNrO3ZythPpIOj4yEc wb/+s+SANMB3eERJg5+fhIn0IjsdYParl8GT/eCjFiD+zHY3Ef91R/xajRPTkFP8eJaF Mv7GChc0BDT9qvJwHSQ2/nHDtLB36TOL69gU7x3/HPzgLW4pjIIr6GzpnmkIcAhdsLdj QlfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=UMU0nKm0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hz3-20020a1709072ce300b007ae86742c37si8086004ejc.60.2022.11.13.13.11.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 13:11:27 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=UMU0nKm0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 36A963857365 for ; Sun, 13 Nov 2022 21:11:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36A963857365 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668373886; bh=sZMC3sn5Gyduk1OSJFpeXxRBP1/468zelhdPa3plyXM=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=UMU0nKm0Izo/xqzrcWS3/D8W6pWctEu9qle31t88OSfps+gqK/2hjetxvkctWG0Vw tKPAfLFgecVR1DvmpJFHR9t6nlsDbze5bBYEDp1azOPtrUEdZpTHd1Anh3C/DgMCON MXs53XPVm0ET3s9ybKx7KqjinvAQ0vqcekQmVsjI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id DDD073858022 for ; Sun, 13 Nov 2022 21:10:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DDD073858022 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-588-QlyBXMXSMEGkTDXeXjTiLA-1; Sun, 13 Nov 2022 16:10:39 -0500 X-MC-Unique: QlyBXMXSMEGkTDXeXjTiLA-1 Received: by mail-ed1-f70.google.com with SMTP id f17-20020a056402355100b00466481256f6so6942839edd.19 for ; Sun, 13 Nov 2022 13:10:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:cc:content-language:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=sZMC3sn5Gyduk1OSJFpeXxRBP1/468zelhdPa3plyXM=; b=L+My/nTTmOVQcgf1LMrhU+x3Dbky2ghD/9qtuNpIQWh/FwIxvmrK9B4Xyx0FiSZI+v xOHAUn8qiwWg1wpmDXxUEK4ydqKP8ZpPh2xiWxuIPinlBIESOqZG0aunWElNTZiBGIUm Zm+gnv6ZY3xKKmGyqOKdW8fFPjnc5095dUEtObY5NYQZ5JcabAIzAP8fWhrxi44izlTE D4XFAL6ICpl7lGd+skjxnetTivQWXgeL0n3M2IqskD5SrX2L8YNcJ3Wl4Nhxi9bGynmw 4h78yrU6Eg0OFbjT9Ek8VxktJfA8uBVUsDZIqqvqKNkikoZy1VhJEH69Q78tDi/cq5Za yjVQ== X-Gm-Message-State: ANoB5plfUWzFgSUVBHAeO2qzOBt7JAO2m3YoZEFzV/mbj4vta0lxRL4g UFQBNYmIvO0/O6NvOz4CM9KQCkg1YzImfsbozTktWW4aQGhG/Cd9uduf1/3ftWX0F9hbqrSz3+B c4iHlRwUa91UEGyzYM68Z/7medXjKpDx0qtyzlb88x65TB3VYdWKDKZc4HeBc3/ILgYOHtg== X-Received: by 2002:aa7:c155:0:b0:461:8cf7:4783 with SMTP id r21-20020aa7c155000000b004618cf74783mr9244236edp.385.1668373836181; Sun, 13 Nov 2022 13:10:36 -0800 (PST) X-Received: by 2002:aa7:c155:0:b0:461:8cf7:4783 with SMTP id r21-20020aa7c155000000b004618cf74783mr9244229edp.385.1668373835939; Sun, 13 Nov 2022 13:10:35 -0800 (PST) Received: from [192.168.178.30] (i59F6C4A8.versanet.de. [89.246.196.168]) by smtp.gmail.com with ESMTPSA id d13-20020a1709064c4d00b007aa239cf4d9sm3355636ejw.89.2022.11.13.13.10.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Nov 2022 13:10:35 -0800 (PST) Message-ID: Date: Sun, 13 Nov 2022 22:10:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 To: gcc-patches@gcc.gnu.org Cc: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] sphinx: more build fixing if sphinx-build is missing X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Stephan Bergmann via Gcc-patches From: Stephan Bergmann Reply-To: Stephan Bergmann Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749416817109068642?= X-GMAIL-MSGID: =?utf-8?q?1749416817109068642?= ...similar to 1f9c79367e136e0ca5b775562e6111e1a0d0046f "sphinx: fix building if sphinx-build is missing" gcc/ChangeLog: * fortran/Make-lang.in: Build info pages conditionally. --- gcc/fortran/Make-lang.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) + else true; fi fortran.man: $(F95_MANFILES) diff --git a/gcc/fortran/Make-lang.in b/gcc/fortran/Make-lang.in index 48acbed1754..852b6f3327f 100644 --- a/gcc/fortran/Make-lang.in +++ b/gcc/fortran/Make-lang.in @@ -161,7 +161,9 @@ fortran.install-pdf: $(F95_PDFFILES) F95_MANFILES = doc/gfortran/man/man/gfortran.1 doc/gfortran/man/man/gfortran.1: $(SPHINX_FILES) - + make -C $(srcdir)/../doc man SOURCEDIR=$(abs_srcdir)/fortran/doc/gfortran BUILDDIR=$(objdir)/doc/gfortran/man SPHINXBUILD=$(SPHINX_BUILD) + + if [ x$(HAS_SPHINX_BUILD) = xhas-sphinx-build ]; then \ + make -C $(srcdir)/../doc man SOURCEDIR=$(abs_srcdir)/fortran/doc/gfortran BUILDDIR=$(objdir)/doc/gfortran/man SPHINXBUILD=$(SPHINX_BUILD) \