From nobody Thu Jul 25 02:47:03 2024 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 4WTwJm1W5Vz5RX75; Thu, 25 Jul 2024 02:47:04 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WTwJl5zqwz4Fcg; Thu, 25 Jul 2024 02:47:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721875623; 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=eAdZ5AgTACo9t1DpTN5fbyVXIXhTlPRTJln1lk4RNdk=; b=ve38we0jTOGUvC6BV7XF+m6vxzvTc6OG6NtQC1L6K7Xhg4AuYvHJkibLf403+COR0vQ0yO lTyS+oDe0lDAQQ4iDLcPeomtNx/vdDhGhpwVa+mgXeog5DW0195P0YQX9+0GIBJPzLWQcY ZwBbpAif2NJfdsqPCxEsCEQ7X6WjHPrEngrfxxSMkE9hEltxZ3Sb+5d+d6YwIdCc/B90vy MJtygI0CuwFt3I4EhCrV8xgoTJbFhzjZ4hlg9GBB2J4FyngKaLMmdn+YnxNjpHlkewIIKp 0/f5ezpwD6LLEy9ACoA8+2YDu88QfXu2q+9p5uihRK8qqImszApqx3iIb+bNDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721875623; a=rsa-sha256; cv=none; b=QzmZWoEj5Ev9ez2uqsVe7iDJUlCm/BjoFLIo/2o7ormdbnpKh3BF/T6td+aTMGdbBRHlhp N3oDCy0CnDSGuJCvyoDR5th7RXo183f60JaJGHYYlBvBKUxcl5F0mZVrLacdLv/1yElYn1 osm+cQOZgPIhLYbbZ1rf+LDyzWzk3XFAhPENXTGtOEMNLs5ZWJGK2ejK/2DXnP8qScbTiC nPGJpan/JUuqvNRIg9NtV7ob1ZT1t4KBJEFkECwAQXmATaYLa96HQ8t0ICz/QPcIsuE4sC nLC47V807fp3RXkbHpVJ9/sLC4FvvV5jKXxHbQ/WHIeu2HgHl+bazzcy/ImOcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721875623; 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=eAdZ5AgTACo9t1DpTN5fbyVXIXhTlPRTJln1lk4RNdk=; b=fF8JKsAiJOyxBvGmEaAmBhBOnM5k18Fz+2OuSRnVB+AxjXKLizN2jhhlfx8x+fXfxletmJ 6JGrFNqsepRVkq9OySt6T0XZiVAKrK/5Eb05PrSniv3qyPrjsd7arSRA1tkFf3ojXrkTk/ nPaJZAmXUFTFX96OjutirTEa81aUWCb/gC4iMV+qvsRN/x5p89t+r5BbXeDeEqF7V5Kp1g 0VEApva/TfW45ZWcBUxiQY4niGdpctJ0bXklOfEQaewkEmqea9M/9R6fOcxBTPHGv418Zj wtbG33Nojw2xloXYouleoyn9/NXYgxqXYoKHRH+4WiVP85pIug7lt5SJwnS9aQ== 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 4WTwJl5bzNzdJd; Thu, 25 Jul 2024 02:47:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46P2l3aN025143; Thu, 25 Jul 2024 02:47:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46P2l3ob025140; Thu, 25 Jul 2024 02:47:03 GMT (envelope-from git) Date: Thu, 25 Jul 2024 02:47:03 GMT Message-Id: <202407250247.46P2l3ob025140@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 18cf1e502321 - main - cross-build: Define DEFFILEMODE and ALLPERMS if not defined 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 18cf1e502321f98f2391244c4b9de84fcaf11371 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=18cf1e502321f98f2391244c4b9de84fcaf11371 commit 18cf1e502321f98f2391244c4b9de84fcaf11371 Author: Warner Losh AuthorDate: 2024-07-25 02:46:49 +0000 Commit: Warner Losh CommitDate: 2024-07-25 02:47:26 +0000 cross-build: Define DEFFILEMODE and ALLPERMS if not defined GLIBC defines these, but MUSL does not. FreeBSD's bootstrap code uses these defines, so define them if they aren't yet defined. Co-authored-by: Val Packett Sponsored by: Netflix Pull Request: https://github.com/freebsd/freebsd-src/pull/1066 Differential Revision: https://reviews.freebsd.org/D45375 --- tools/build/cross-build/include/linux/sys/stat.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/build/cross-build/include/linux/sys/stat.h b/tools/build/cross-build/include/linux/sys/stat.h index fa40b7e747b6..5937920ce461 100644 --- a/tools/build/cross-build/include/linux/sys/stat.h +++ b/tools/build/cross-build/include/linux/sys/stat.h @@ -58,5 +58,13 @@ #define S_ISTXT S_ISVTX #endif +#ifndef DEFFILEMODE +#define DEFFILEMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) +#endif + +#ifndef ALLPERMS +#define ALLPERMS (S_ISUID | S_ISGID | S_ISTXT | S_IRWXU | S_IRWXG | S_IRWXO) +#endif + /* This include is needed for OpenZFS bootstrap */ #include