From nobody Wed Jul 17 12:43:28 2024 X-Original-To: dev-commits-src-main@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 4WPFwc2fjZz5RFYx; Wed, 17 Jul 2024 12:43:28 +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 4WPFwc1qF5z4kG8; Wed, 17 Jul 2024 12:43:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721220208; 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=IqyN/awVg6nPk85Vcj4NB1/TsYM1eOQzWwYqGYZutO8=; b=hwYbTJyorcyjBbNM/zYNYrlE8AXLYy/dQMnI9UYCNDikwsh5r4DH5Cri3gELAy2lbUJ4HP LnlnxkUnkZjeSNthOY8nwW/4Xnjj5HQllQB6uYED9tKkLVxT//xUhCl7pjQb3chXj34xe1 yhKD7SMFqWZRVTnR5I3TEHNvvCh24gmuSw1znJL+O5McWZNFbWim2pW45GcPxYzrmEfUCy 4qrEYH9CIkWapANuhj0imby57Rlw1Wy00U86Bl6dV3ZkOs1wXb7tRvztul1ajrgFfi2aNe mpG2snP2+wNmxqnpYROPsns6CF0elV8AGlcogRidPluZ7/AXiSVo4Qj+oEjTmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721220208; a=rsa-sha256; cv=none; b=OLBS7br8y9cuyUom6+4oIFLCkgYfrPOMUBBp4aF6xV1ayCxaZHtslYZ9YM0u+fB8yXuW+K 1/gxG3W+5RzWfcudupr7TCbOQnN0NJgsw9qeIIsTebXSHG++UIMamfpbmUHfM/tgrViWLA X/vAHpAZr0pC865cvUYDlia8kUuVKibvR6iYaSBkBdP21FIOz8ThDQ6lVlCLL1Xe90jHzF eYZVZPyVwbKpfN1amGuqAQotLDiFqHebOpMsKDroOXvbzNMh408bM8/AMnEB8NfYlbmKXF l+VnE9Ul97Y9KV/xy9l+LWUFE/PXSWkX5jZagiqPumNE63rKG9kAGKAk9/57Bw== 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=1721220208; 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=IqyN/awVg6nPk85Vcj4NB1/TsYM1eOQzWwYqGYZutO8=; b=jORC7wMh0hOasWaB/ZCPmOHufdh5A9DXex+dU19GGHii3x5FslzgzgReP1RUJRdeMxO8Ad WFjq+iPlmlMmq5nPP5nH25hQEjr0LbvGJV4IS0QxtW/Qo6cscvT9AaZOacHUcxtFUgNZMt vzfnzbHWMVB3r+xBIaBUh7dJ257Sv2lPyfI4gPwBNcSiKlkBfgNC1a+mTa6o8ZK4bQNE/5 BbQkCsBqkvKfvX9RI4/E6TWdH8PvWoTHDv+CVaorjsUOlTwVcZnyHIV6QpRDjv78KOtTmW yg/JemwnLL80up8h9Wn//AAqpd16w7QjBpt3MbXSv6ATopFvNq2QChg9wlYu5w== 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 4WPFwc1Qdyz1KZl; Wed, 17 Jul 2024 12:43:28 +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 46HChSnj062425; Wed, 17 Jul 2024 12:43:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46HChSZQ062422; Wed, 17 Jul 2024 12:43:28 GMT (envelope-from git) Date: Wed, 17 Jul 2024 12:43:28 GMT Message-Id: <202407171243.46HChSZQ062422@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: e21e8c918086 - main - tools/build: Unbreak cross build by providing stub ssp/ssp.h List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: e21e8c918086ad130a3caa5116efc64e86f4574f Auto-Submitted: auto-generated The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=e21e8c918086ad130a3caa5116efc64e86f4574f commit e21e8c918086ad130a3caa5116efc64e86f4574f Author: Jessica Clarke AuthorDate: 2024-07-17 12:11:25 +0000 Commit: Jessica Clarke CommitDate: 2024-07-17 12:11:25 +0000 tools/build: Unbreak cross build by providing stub ssp/ssp.h We build arc4random.c on non-FreeBSD, which now wants the header for __ssp_real. Fixes: d0b7445904f5 ("include: ssp: fortify ") --- tools/build/cross-build/include/common/ssp/ssp.h | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/tools/build/cross-build/include/common/ssp/ssp.h b/tools/build/cross-build/include/common/ssp/ssp.h new file mode 100644 index 000000000000..2d8b43235baf --- /dev/null +++ b/tools/build/cross-build/include/common/ssp/ssp.h @@ -0,0 +1,34 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2024 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. + */ + +#ifndef _SSP_SSP_H_ +#define _SSP_SSP_H_ + +#define __ssp_real_(fun) fun +#define __ssp_real(fun) __ssp_real_(fun) + +#endif