From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id L1O6AKiAEGM3/zAAWB0awg (envelope-from ) for ; Thu, 01 Sep 2022 05:51:36 -0400 Received: by simark.ca (Postfix, from userid 112) id E571C1E4A7; Thu, 1 Sep 2022 05:51:35 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=cZ0gbEal; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id EEE531E13B for ; Thu, 1 Sep 2022 05:51:34 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 010D9382DB0C for ; Thu, 1 Sep 2022 09:51:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 010D9382DB0C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662025892; bh=OTbq9M0kuK5ARevi+IXYjLLlDxsZzIWxlX+K92o6Jcg=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=cZ0gbEalmfRY0DDUUFpe07PXB8fThl2k+ewVk/FEGm/j/1dkGhXF7qRQjCbsF5e/5 EU2Gt5GPm4yvsrgou/Su9NCKLdDPqxS/UCD0HGZYzHlG36Z4bF2c6rq0SVb+6PYtD3 OhseTBmQrkjFW4t/CwShTWuMJE+VJSKm+8B/MPrc= Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 692CC3858C00 for ; Thu, 1 Sep 2022 09:51:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 692CC3858C00 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 802BC218F3 for ; Thu, 1 Sep 2022 09:51:11 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5FA3413A89 for ; Thu, 1 Sep 2022 09:51:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id vFIrFo+AEGNbWgAAMHmgww (envelope-from ) for ; Thu, 01 Sep 2022 09:51:11 +0000 Date: Thu, 1 Sep 2022 11:51:09 +0200 To: gdb-patches@sourceware.org Subject: [PATCH][gdb/build] Add gdb/contrib/makeinfo-dummy.sh Message-ID: <20220901095108.GA29248@delia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi, Currently, we cannot build gdb without makeinfo installed. It would be convenient to work around this by using the configure flag MAKEINFO=/usr/bin/true or some such, but that doesn't work because top-level configure requires a makeinfo of at least version 4.7, and that version check fails for /usr/bin/true, so we end up with MAKEINFO=missing instead. Work around this by adding a script gdb/contrib/makeinfo-dummy.sh that can be used instead, like so: ... $ ./src/configure MAKEINFO=$src/gdb/contrib/makeinfo-dummy.sh ... The script merely prints the version string that satisfies the version check in $src/configure. Tested on x86_64-linux, with makeinfo removed. Any comments? Thanks, - Tom [gdb/build] Add gdb/contrib/makeinfo-dummy.sh --- gdb/contrib/makeinfo-dummy.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gdb/contrib/makeinfo-dummy.sh b/gdb/contrib/makeinfo-dummy.sh new file mode 100755 index 00000000000..9fed87ed6c6 --- /dev/null +++ b/gdb/contrib/makeinfo-dummy.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# Copyright (C) 2022 Free Software Foundation, Inc. +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# This script can be used to build gdb in case makeinfo is not available, like +# this: +# +# $src/configure MAKEINFO=$src/gdb/contrib/makeinfo-dummy.sh. +# +# It currently does not do anything, so no *.info files are generated, but +# that doesn't seem to break the build. + +if [ "$1" = "--version" ]; then + # The version corresponds to the required minimum version as specified in + # $src/configure. + echo "makeinfo (dummy texinfo) 4.7" +fi