From nobody Wed Dec 15 05:57:08 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E47A018F2DBB; Wed, 15 Dec 2021 05:57:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JDPdw4YyDz3h0K; Wed, 15 Dec 2021 05:57:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6E04016C6A; Wed, 15 Dec 2021 05:57:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BF5v8WC054769; Wed, 15 Dec 2021 05:57:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BF5v8rs054768; Wed, 15 Dec 2021 05:57:08 GMT (envelope-from git) Date: Wed, 15 Dec 2021 05:57:08 GMT Message-Id: <202112150557.1BF5v8rs054768@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: 9e5b0d9eac5b - main - cross-build: Fix bmake bootstrap with glibc 2.34 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9e5b0d9eac5b240dc0ee280870291fd11d499046 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639547828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=btJsKEcCrwLwuN9Od2+IwzUKv2Yw/ePyqUG9yu9CniM=; b=hndJKbt2egA4ifNetzhYgexkLsbSaoaukISK9i9G4sGk+gajvuM8isnmEfhZqrnjV43r8i rst178D+gqiKjwAvX08JdknL/CuwQfneWkpPEjFi6az2X7t5ybiFJC2tuwIEE0Gt1Aujnb pxuzULVSa445I6WO+2XRr+lZ6nfCjOvv+I/7En1pREv1OVJRSq38XFRLXWxCqrhTGhwC46 SI0C18wE+PWSZD/Jj85WHeNsyD9KwZF0bXpaK3F53KOgHW+svr/+A3XRnkThaBR4SL1HiL P+7apXdxS8D9neyScB3S66EUU3jgf64ZSnt6JAxDmxkVkm41AvczXSc7Og4Cjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639547828; a=rsa-sha256; cv=none; b=NMRTJdFl53ulsyEIJrE4M3pyYqY0DcdT4ZMC3fSZ4qEQ+CVJpX0xC4jlIlyXGhPhXVmPA0 oycHiru92htGzgVsEPWATsFHKsFL4B65cemLcuf16V+Z1w54ZoIMYYulFLGvLZ/9G3DYxy dU4YKRSPRcTYikRk1bFYvw2NtBImVBwEAFggGdzOsUB9bb3G7oQgp/rlO31WBu4gWMWdpA UwenbrXIMduY3xGVH/aY09CO6P78F5kYrsA+hABCjpMJ8n8b9wqzzZX1IEeRdIDc8SR+0u dVE2u+TJOmT17LppigUmjk1Il5up/RY8lh206/riv/1N/2dfBwxdNM75cygybQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=9e5b0d9eac5b240dc0ee280870291fd11d499046 commit 9e5b0d9eac5b240dc0ee280870291fd11d499046 Author: Jessica Clarke AuthorDate: 2021-12-15 05:52:13 +0000 Commit: Jessica Clarke CommitDate: 2021-12-15 05:52:13 +0000 cross-build: Fix bmake bootstrap with glibc 2.34 As of glibc 2.34, our unistd.h wrapper's inclusion of stdlib.h exposes fragility in glibc's sys/wait.h and corresponding part of stdlib.h, leading to "error: use of undeclared identifier 'WNOHANG'" and similar errors when bootstrapping bmake. Work around this by wrapping sys/wait.h to force stdlib.h's inclusion first before it's implicitly included during the problematic window in sys/wait.h. MFC after: 1 week --- tools/build/cross-build/include/linux/sys/wait.h | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tools/build/cross-build/include/linux/sys/wait.h b/tools/build/cross-build/include/linux/sys/wait.h new file mode 100644 index 000000000000..2721218a83d4 --- /dev/null +++ b/tools/build/cross-build/include/linux/sys/wait.h @@ -0,0 +1,31 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright 2021 Jessica Clarke + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#pragma once + +#include +#include_next