From nobody Fri Aug 29 15:05:06 2025 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 4cD1lk6dsRz65gsV; Fri, 29 Aug 2025 15:05:06 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cD1lk5CNsz3vNM; Fri, 29 Aug 2025 15:05:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756479906; 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=xP0Ff9CgGgINbEzQAglqjlWOhHiKiAVzFaeRjtx8Zyw=; b=lEkYJ4xPe9PydLhoPTmrkaR1sW6OmoQplXyvCARvSK78+279IMwmg+CQsPmd5o5tTKwBcP 339wfntAas1hJdVXdpdwxxu5LBM+yQzdMxK5axZJETw71lzkefE0cgMSwX09pEeDMLTqAn js3UzcscVyLmE+Nu132/v++jYBBn0E3FFOQ75upq6u5RpJGzKH+ZCibUALnH43S5mOY/5r M+2ykWJDQJ9Cczu1X+uxbwQbFWy2yaDEUe2EHilDCH8SSjyYGR98PLf6o8ri4n0QuKQ3EO 4FClfWMhouyNOnnhK3uxv0f4AJ8fkEiOKzFWgMI4bjzvn6TNBG5eOx/HGyKbKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756479906; 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=xP0Ff9CgGgINbEzQAglqjlWOhHiKiAVzFaeRjtx8Zyw=; b=YNUDvjpelH7dXgC96MdKS3l2Onw8EufvTR9Ezs9nXoYCPLkT3StLUezZprt8KPHjlr/iez CGvSARH3al5lOOdmo8wi7tEE34o4vJAc3SeFa136NbF3YM+Qa9xBg21ixcZqEOQIddtXu2 L3H3BrCd+yf8tL/pt4Vx9wpOqh0owbuBkeAZl+GKaeTjSmDObeTwcDwVF6VZ+WThzG+ezV 3bJ4i9xNqR9rATpX1Fe9RsZTh/dGY+xTUFN86qJQlMbdOihWOy4Fwhv8I3a81MYcl8yJ8I WpVfvqyL7OXdML8mins4aSOPC4M/gInzbH+GOE+IHhh6W0qiw0hXWK14uEpqGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756479906; a=rsa-sha256; cv=none; b=Z/1ZqRa4vDVJpzN3lya0HZrAX3EA5FnTtepQRm+eT/2isVkOEqg+jmxcQi1bf/LuzvL2Fg 97HYYDXub6WdFAknhzaWtAKE3eGLBtlyvxSq3QX/SEvxNbE28HD2H6f0zs8Dd9RuRC2JJb 2jGZB2qpUQzNmcFYSOwVyT+RXO3HyTGCfJ9BXWQ90uapmTTb2mupJrm5+pBRxL5Z422qzG LeOClYz38IU2D4HBQ3GurZPWhnm2S7dG3soyoetX4u5YC5435oPe8sDbw+iYa22tvrP/+X iI927r5ofT8AiIbrSjn1DMUQBaUH/xDTxkQUtbnWUA0mWOsDudQCn3ks4hV/9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cD1lk4f89zlX0; Fri, 29 Aug 2025 15:05:06 +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 57TF56F0080527; Fri, 29 Aug 2025 15:05:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 57TF56Bt080524; Fri, 29 Aug 2025 15:05:06 GMT (envelope-from git) Date: Fri, 29 Aug 2025 15:05:06 GMT Message-Id: <202508291505.57TF56Bt080524@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 069a0460280b - stable/14 - Fix the cross-build after recent commits 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 069a0460280b5356162feffed66dd70f89d02ee3 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=069a0460280b5356162feffed66dd70f89d02ee3 commit 069a0460280b5356162feffed66dd70f89d02ee3 Author: Kyle Evans AuthorDate: 2024-09-30 04:54:32 +0000 Commit: Ed Maste CommitDate: 2025-08-29 14:57:36 +0000 Fix the cross-build after recent commits - Provide a sys/md4.h in the cross-build environment to fix bootstrap of libmd. - flua now exposes WTRAPPED which isn't incredibly common- make it conditional, we probably won't be using it in any bootstrap context any time soon. Fixes: 442e0975ee4b3 ("Consolidate md4 implementations written in C") Fixes: c2caf3b3313fe ("flua: posix: add more useful functions [...]") (cherry picked from commit aad507854efd13c4387394e88d5667cc6f060933) --- libexec/flua/modules/lposix.c | 2 + tools/build/cross-build/include/common/sys/md4.h | 91 ++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/libexec/flua/modules/lposix.c b/libexec/flua/modules/lposix.c index 78fafbaa1982..4422d54917e1 100644 --- a/libexec/flua/modules/lposix.c +++ b/libexec/flua/modules/lposix.c @@ -538,7 +538,9 @@ luaopen_posix_sys_wait(lua_State *L) lua_pushflag(L, WCONTINUED); lua_pushflag(L, WSTOPPED); +#ifdef WTRAPPED lua_pushflag(L, WTRAPPED); +#endif lua_pushflag(L, WEXITED); lua_pushflag(L, WNOWAIT); #undef lua_pushflag diff --git a/tools/build/cross-build/include/common/sys/md4.h b/tools/build/cross-build/include/common/sys/md4.h new file mode 100644 index 000000000000..e00675e9f462 --- /dev/null +++ b/tools/build/cross-build/include/common/sys/md4.h @@ -0,0 +1,91 @@ +/* MD4.H - header file for MD4C.C + */ + +/*- + SPDX-License-Identifier: RSA-MD + + Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All + rights reserved. + + License to copy and use this software is granted provided that it + is identified as the "RSA Data Security, Inc. MD4 Message-Digest + Algorithm" in all material mentioning or referencing this software + or this function. + License is also granted to make and use derivative works provided + that such works are identified as "derived from the RSA Data + Security, Inc. MD4 Message-Digest Algorithm" in all material + mentioning or referencing the derived work. + + RSA Data Security, Inc. makes no representations concerning either + the merchantability of this software or the suitability of this + software for any particular purpose. It is provided "as is" + without express or implied warranty of any kind. + + These notices must be retained in any copies of any part of this + documentation and/or software. + */ + +#ifndef _SYS_MD4_H_ +#define _SYS_MD4_H_ +/* MD4 context. */ +typedef struct MD4Context { + u_int32_t state[4]; /* state (ABCD) */ + u_int32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ + unsigned char buffer[64]; /* input buffer */ +} MD4_CTX; + +#include + +#ifndef _KERNEL + +/* Ensure libmd symbols do not clash with libcrypto */ + +#ifndef MD4Init +#define MD4Init _libmd_MD4Init +#endif +#ifndef MD4Update +#define MD4Update _libmd_MD4Update +#endif +#ifndef MD4Pad +#define MD4Pad _libmd_MD4Pad +#endif +#ifndef MD4Final +#define MD4Final _libmd_MD4Final +#endif +#ifndef MD4End +#define MD4End _libmd_MD4End +#endif +#ifndef MD4Fd +#define MD4Fd _libmd_MD4Fd +#endif +#ifndef MD4FdChunk +#define MD4FdChunk _libmd_MD4FdChunk +#endif +#ifndef MD4File +#define MD4File _libmd_MD4File +#endif +#ifndef MD4FileChunk +#define MD4FileChunk _libmd_MD4FileChunk +#endif +#ifndef MD4Data +#define MD4Data _libmd_MD4Data +#endif + +#endif + +__BEGIN_DECLS +void MD4Init(MD4_CTX *); +void MD4Update(MD4_CTX *, const unsigned char *, unsigned int); +void MD4Pad(MD4_CTX *); +void MD4Final(unsigned char [__min_size(16)], MD4_CTX *); +#ifndef _KERNEL +char * MD4End(MD4_CTX *, char *); +char * MD4Fd(int, char *); +char * MD4FdChunk(int, char *, off_t, off_t); +char * MD4File(const char *, char *); +char * MD4FileChunk(const char *, char *, off_t, off_t); +char * MD4Data(const void *, unsigned int, char *); +#endif +__END_DECLS + +#endif /* _SYS_MD4_H_ */