From patchwork Thu May 12 22:28:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 53878 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 698CB385742D for ; Thu, 12 May 2022 22:28:49 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 8AEF33858427 for ; Thu, 12 May 2022 22:28:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8AEF33858427 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x429.google.com with SMTP id t6so9119879wra.4 for ; Thu, 12 May 2022 15:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:user-agent:mime-version; bh=R2b5qGFXX8oMY4BoHmJD9eYhtfcU5qmXLBEtO9V+CBI=; b=MmAkiDrIEflpxsyPBmKuOb5b58YxYBy+7r55F3A8pLKfhDk5uApQRdE5kZwCICb2gw f2APSQeVg9y8UXiKJxeWkX7p3oLYu1knQtwOh50GwGlOHeQ7akincSwtoqZp6PYyz8Cd 9Z5Dwvzy/yN0IuL0ldcy2HHBaFQSGVF1x9iCobcfEiA96BgbJwT03dCPFPku/xP8kyXg tgm4zePqv3/nXvBXIGVSnbMMimeVUR+XBPh4gmuOgjSAWIL37dqodZRwcuygpk8N7/BN kNDLQLbbd9qKgMWuA8sq5kaSzSiPn6g594xiXymr/Ev2rqnyFM9QqibGKvOilkvA5v8S FMFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version; bh=R2b5qGFXX8oMY4BoHmJD9eYhtfcU5qmXLBEtO9V+CBI=; b=xf7QgFXHcFhzZG5YubCN+uhqmP3ShTtk3wr6YgD5m5P/vJQ1f5rokgFC7+6q40HzGH 6KciIUTaNklu7JJTvhxI1N7ko9Rxw7rPUdlWlJbT87mUCZ5M1RAC/KoD/0doSmQpRzsx TIUnlE4EW0SzD2Qw7hRSwrpdkr21JLMqoPM0d0aWnL2CnwF/HW77BCNQXy2OIOidB3Eu lHDa5ATUwdj7gUeMLcTcPbq+A5Sk4/VsziCAIGXh47L1CuFVTAmGoCyPKFcum6pJiNdJ 696Kn5rZkE/paqZjeeY1pnSXY+eHdJeWPir1D33oEDa3pkUXswgLcInirkIr0LY0HEz2 VfLg== X-Gm-Message-State: AOAM533ADf+rqpCvqUgNAQE+hX4u+boQAmNtQZ3OzL0g0QmKWeFagOO1 h4Z9OkdHQqy9skX92FiKcECkzC/wJmDxOjpw X-Google-Smtp-Source: ABdhPJxlmTuFFq5q8I55IlvBdPkuTrHgJXBf6iD3vi61wpKcPSxXHoHCYeYJAFOWiTLJBYuwGKw8pQ== X-Received: by 2002:a5d:594c:0:b0:20a:dff1:6545 with SMTP id e12-20020a5d594c000000b0020adff16545mr1399453wri.211.1652394516382; Thu, 12 May 2022 15:28:36 -0700 (PDT) Received: from tpp.orcam.me.uk (tpp.orcam.me.uk. [2001:8b0:154:0:ea6a:64ff:fe24:f2fc]) by smtp.gmail.com with ESMTPSA id u7-20020a05600c210700b003942a244ecfsm693887wml.20.2022.05.12.15.28.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 May 2022 15:28:35 -0700 (PDT) Date: Thu, 12 May 2022 23:28:27 +0100 (BST) From: "Maciej W. Rozycki" To: libc-alpha@sourceware.org Subject: [PATCH v2 0/4] Avoid relying on autoconf internals in `preconfigure' scripts Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Waterman , Mao Han , Andreas Schwab , Joseph Myers Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" Hi, I have discovered that we have two kinds of `preconfigure' scripts, handwritten ones and autoconf-generated ones. While it seems perfectly fine to have these scripts handwritten, some of them wire into autoconf internals or use an ad-hoc way to report errors. The scripts for the C-SKY, m68k, MIPS and RISC-V targets fall into this category. This small patch series addresses this problem by converting these scripts to autoconf templates with suitable adjustments, then processed with autoconf to re-create functionally equivalent almost identical scripts. The RISC-V script has been verified to still correctly build the library. All have been visually inspected to ensure functional equivalence; changes are so minimal for this to be straightforward. There's some noise though from a formatting fix to replace octets of spaces with tabs in the new templates. OK to apply? Maciej