From patchwork Thu Feb 1 17:15:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 195402 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp310008dyb; Thu, 1 Feb 2024 09:17:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6S5DvM1yDH3xRofeUnTvcE34Za33mgOmX1nJrtt+0sauTY4603NOVCOM1yhy68tPrry74 X-Received: by 2002:a05:622a:547:b0:42a:b313:e9e7 with SMTP id m7-20020a05622a054700b0042ab313e9e7mr6687929qtx.8.1706807830447; Thu, 01 Feb 2024 09:17:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706807830; cv=pass; d=google.com; s=arc-20160816; b=x3OFEGYioN4e1Ea00eHg9d03klinqhKDRK4DhgtT/Pcz1fTl9gKqC8fK7hXNEaRocT eRfMkt3OPSCjhtKz566HOlCNcXzXkXGD5uEMJE+mMMbe7z5Hhh45DengXwEUvW8xi5dp V43/dOBV4GA12uP4EnCrbvvrAGqvH/66dM1wLZmgyjtwE7gy+IJfXa0OF598OaQ9XK6F q2OqhZLh60cbx65BK0Y5Toa9aWyOkIW7gZKv1t1/fdHW11N/na5BRtyj7StI4bItsMbS zOf7pwS5W5lbRt38L9mL8b3itwE5J8SFh7TxayQd9PnIuX31xzXxkXM4lbxrvupkzZvL yEhw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=6SwiDZT8T8mVnHeTNUH8wl5tnseM7oHZR0sTTnbTIgo=; fh=OXab4IwSooitOloy4fe4VElG2TpZsdbdKpOD8ycrRLA=; b=ZgaBDXm0E+LUxXU0yQPXMFqo+tQF6QbJcgw3oH2cF0baWcJPXeirMnYcloAV4vWXm2 l+b8ZedplaZW/oNBKbt4exmrZ+jU/mjToAAry9xaogWAgQIvyYGKG+HYdUsDQ/JsXw+t HQ48pgSS9EHpXXlhpWbe4XVq69IIwb6m1TWnaWb18w6Hn6aBKc6GVZDkawqgio9GKN4H J86LnAgG//eQqlB/QwVkqsQVC50JlY+RvdOHE5O3eMTzgvKN1FKIAJGM77CHUBdCjBt/ p5dKAcneJJomkpG4emi2VowidZ5mPiB/imvTiXCqf5eCBBYRugnu291xaiAIkV3tiNgR /e6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JKOn3NTa; arc=pass (i=1); 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=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCVUEC030S5ew0smo4GuLt+secor/cppPgobjqpPl45l6H7F+dq09QYh7mzV14fai+nOzzHraFh2O8fq9eZCyFHBEhnIMg== Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id u17-20020a05622a011100b0042bf8e02246si942969qtw.614.2024.02.01.09.17.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 09:17:10 -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=@linaro.org header.s=google header.b=JKOn3NTa; arc=pass (i=1); 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=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 65E40386C5B1 for ; Thu, 1 Feb 2024 17:16:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 181E13858002 for ; Thu, 1 Feb 2024 17:15:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 181E13858002 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 181E13858002 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::32f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706807749; cv=none; b=V5qhBmrbXuovrjTyPFd0eujMGDjB9xiN7cKAH6QOKmcQrZ6SyF8oLndQ0epv0U01Jj4zzJlABsJth15zlmxMk/vTjBys0/wyhxQtE5fUXLLoPnfFReMcpqksDcDgiyiIHzd+SlABVXXbiri+f5cte1U2yFcJX1N43hSSza1WmNI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706807749; c=relaxed/simple; bh=vNrOIfLk7GTqfOkqD9sBJoSMHOTOfdPBWhZNeo71MTk=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=MObfm3CEc24Bv/bkuemAXUdfNu/tFBMmdfjMXM1xR3ukAQxUGCf207jdmCkikZwb5oUbk8CGO+ivFlyEmaXqB0nvr0q7uTIB3c/RyCezKLJsl2F4XiQTfXqEUNbY2dSg3pYIT+f1no9DqP/lPIewBsZwhHYRTLGMkFSk4z9p5GI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6e146c132e0so1050857a34.1 for ; Thu, 01 Feb 2024 09:15:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706807745; x=1707412545; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6SwiDZT8T8mVnHeTNUH8wl5tnseM7oHZR0sTTnbTIgo=; b=JKOn3NTaOXEJnI9dG7REHlWybZW5AOZy0cku2y1YRYFuF0f3qFlpJIlNccBNMJdTPq /vSeICiLzQuh99oLlUm/VsJrUQmIJtEvgbWAlvdd3Lrt+0CTk5plM0bHEXYYAyFPmvEm vWgoIenE1MvZ7woMQzHnHVSuPvJr+DlbvNZo8sHSrdPAD8WZJJSMvn6H3CLqoPxErVVj U6VFO4SUZ36yUC8Ga6RUYwrWJG5ce1GohONCey3oGs8nalQWuHxr1MUHzHGHmfCCRTFM R2jYV/h2i9Tg+S1oSHgpOWpzH0UDRUoYwPG0Jhh5iSDztDEaEZrK+WbPJ5gc1FCCdaU4 sn+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706807745; x=1707412545; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6SwiDZT8T8mVnHeTNUH8wl5tnseM7oHZR0sTTnbTIgo=; b=ZQFoITxD5P4cqJ/onNs2hdo1DuXagK70AELAcD/HfOvmHWZVqEK4PUIjaEYEWnBNBT /rfrFxKAeb6qOKR67srFwf7QbVsruQ5REmykwB1DmbOw3I2qWaKkUwOLw9FRt2kmlcW2 MXMgQz3KQ1YLZBbVKUkf2SOrQfqSNHxsIdgg2kjFC/sPuDhopy22ZNqc17hmbSqq9kip JURJ7OWn16AWpBMuYX0VHRp2USyKW1yLbG0GwkclSFIyzgZk9KKAgqRP5wZ0yOPRwtEs OO38gqf3O9ziCMWT0h2oAWnfR+h+g45pr+TWL5hAzb1/ny/kMkCI45XHLlc3YORmtsFy 8d1A== X-Gm-Message-State: AOJu0YxUL4rhwFoTVkqRW28ktGQjJuwdfZywCUbfzqh/5DvMxjZ7rWiJ u3GOGkUbHuPIRdiyRLRc9WK0LeblOUt8dlJV5u4BDffG9O7L/1YcqqeNOpGWv90sZkZW1c+JocB sr40= X-Received: by 2002:a05:6870:184a:b0:214:afeb:ea7f with SMTP id u10-20020a056870184a00b00214afebea7fmr2931473oaf.11.1706807745416; Thu, 01 Feb 2024 09:15:45 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXvEhVO9icguZpjEzcYJs5YC6wDTzu6AcwZh8QHiEsEjI/4U+XFJkAGGUPWSK7JcDX1j4PiXMZDhUSjtHwqrfnnSvfRAzs2mrFYpKoRl0dZFRFEb3Jduw== Received: from localhost.localdomain ([139.178.84.207]) by smtp.gmail.com with ESMTPSA id nx13-20020a056870be8d00b002149bb5d09asm30123oab.56.2024.02.01.09.15.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 09:15:45 -0800 (PST) From: Christophe Lyon To: gcc-patches@gcc.gnu.org, oliva@adacore.com, josmyers@redhat.com Cc: Christophe Lyon Subject: [PATCH] gcc/configure: Re-introduce INSTALL_INFO Date: Thu, 1 Feb 2024 17:15:34 +0000 Message-Id: <20240201171534.424536-1-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, 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 server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789717727648217872 X-GMAIL-MSGID: 1789717727648217872 BUILD_INFO is currently a byproduct of checking makeinfo presence/version. INSTALL_INFO used to be defined similarly, but was removed in 2000 (!) by commit 17db658241d18cf6db59d31bc2d6eac96e9257df (svn r38141). In order to save build time, our CI overrides BUILD_INFO="", which works when invoking 'make all' but not for 'make install' in case some info files need an update. I noticed this when testing a patch posted on the gcc-patches list, leading to an error at 'make install' time after updating tm.texi (the build reported 'new text' in tm.texi and stopped). This is because 'install' depends on 'install-info', which depends on $(DESTDIR)$(infodir)/gccint.info (among others). This patch replaces the 'install-info' dependency in 'install' with $(INSTALL_INFO), thus enabling to skip this step. 2024-02-01 Christophe Lyon gcc/ * Makefile.in: Add INSTALL_INFO. * configure.ac: Add INSTALL_INFO. * configure: Regenerate. --- gcc/Makefile.in | 3 ++- gcc/configure | 3 +++ gcc/configure.ac | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 95caa54a52b..4d38b162307 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -817,6 +817,7 @@ INSTALL_HEADERS=install-headers install-mkheaders # Control whether Info documentation is built and installed. BUILD_INFO = @BUILD_INFO@ +INSTALL_INFO = @INSTALL_INFO@ # Control flags for @contents placement in HTML output MAKEINFO_TOC_INLINE_FLAG = @MAKEINFO_TOC_INLINE_FLAG@ @@ -3785,7 +3786,7 @@ maintainer-clean: # Install the driver last so that the window when things are # broken is small. install: install-common $(INSTALL_HEADERS) \ - install-cpp install-man install-info install-@POSUB@ \ + install-cpp install-man $(INSTALL_INFO) install-@POSUB@ \ install-driver install-lto-wrapper install-gcc-ar ifeq ($(enable_plugin),yes) diff --git a/gcc/configure b/gcc/configure index 4acb254d830..00f8c7ed6fb 100755 --- a/gcc/configure +++ b/gcc/configure @@ -826,6 +826,7 @@ FLEX GENERATED_MANPAGES MAKEINFO_TOC_INLINE_FLAG BUILD_INFO +INSTALL_INFO MAKEINFO have_mktemp_command make_compare_target @@ -8836,8 +8837,10 @@ $as_echo "$as_me: WARNING: *** Makeinfo is missing or too old. *** Info documentation will not be built." >&2;} BUILD_INFO= + INSTALL_INFO= else BUILD_INFO=info + INSTALL_INFO=install-info fi diff --git a/gcc/configure.ac b/gcc/configure.ac index d2ed14496c1..1041c2391fb 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1246,10 +1246,13 @@ if test $gcc_cv_prog_makeinfo_modern = no; then *** Makeinfo is missing or too old. *** Info documentation will not be built.]) BUILD_INFO= + INSTALL_INFO= else BUILD_INFO=info + INSTALL_INFO=install-info fi AC_SUBST(BUILD_INFO) +AC_SUBST(INSTALL_INFO) # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable. # If it does, we want to pass it to makeinfo in order to restore the old