From nobody Tue Nov 19 17:31:01 2024 X-Original-To: dev-commits-ports-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 4XtBNj6RXkz5fFZZ; Tue, 19 Nov 2024 17:31:01 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XtBNj5WM1z4Q3V; Tue, 19 Nov 2024 17:31:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732037461; 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=rQJqsxyBcGgxShW+n1S7Wud45dURE4R8+8GnA46F+lY=; b=Y5csNpeGjVHXUO1stMllAaSP9Qm/sRIL1xv3arCMXSzzfSDPnpsMRVgqhQv22VPqgPOdog aUAiezSHSbsPi7efana6gijq+FTxtUvtLRKODqEekEqikqG8GZ08vXOw9A8Ol0q+c+pSwq YoMl7U0/9axrnDwEj1EsTNb2FcKiM4T+Gafc3eAbaUBOf6D8yWERK4c4cxLsSzRXa1+iDk eYHrAAgiLzKtACnKSTVSHOLPeEmUpMby6NwwE9sNRrcqq4WvMQjrPclCv3E0vaRYkzBl+H /QKw2Q9d8YDkz+bf0uY9HyNQSFi406TE4iV8QpKw7acMPdsTLJuOrUcvumwRKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732037461; 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=rQJqsxyBcGgxShW+n1S7Wud45dURE4R8+8GnA46F+lY=; b=BOSfuEUujXdbvFWGwQUJ9DyvzZTxybVvmKT3ItttRZtcqPTxWkj2LboHnFgTLaTAGWGzH+ Zju0BP5dJFeZSK++7J/psyMF/mdsQYaqVEM65SbltOu+m8pSOrizvl4uZbZxhat9JiD2Eg hpWwctA8CALmcZjgsIudj7gQOBybpFiiTFzKwi5v64GfkEXs0U7sopwNdpmClMSPpCimjG +ELSVGexS5decR9N93a5V9TjBg8YoeL5jiBhAbM+6R/VMiwVCoKaLfi6Z7N1w0sZxYEkEp 7p9ChA4idQEVxjk9MZO1oX6KXP/7F1lLbxyo+D7r3q6iBekibCYTCNZS0/VfUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732037461; a=rsa-sha256; cv=none; b=W4syB84biuqLSl/1O8HGxIoBRkFVmziWiouSJQfsGazQP598qQHkee0fTXnvxbvAWDJ6aB RSRPhvUDOumF9vXLze0tchA6bIeW9BUYNTNXk9J2/EvKL7j0hYOZsfuX0iIK5wuEBpkJug y0Ftanl69+8qo2BDYbBdpm9iKiLYuGhhjqEBgZFy8kZcb2uY2SwjYrDZzPY8EbHNjSzmtl 1Xr/N4xIJkJcrv5rD4+kol5ODb6UR/eKv85oaskqYDqSnmz3TLQPbwHkwiWjALl+nlwHz2 pSp4PtMjF9jS8iXczdztgyU5FSbb/jGbfBNZDeN6DWGthUMy1WugCn1s0oTImQ== 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 4XtBNj56tVzJl2; Tue, 19 Nov 2024 17:31:01 +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 4AJHV1a8076429; Tue, 19 Nov 2024 17:31:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AJHV1J2076426; Tue, 19 Nov 2024 17:31:01 GMT (envelope-from git) Date: Tue, 19 Nov 2024 17:31:01 GMT Message-Id: <202411191731.4AJHV1J2076426@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Brooks Davis Subject: git: f6132c416155 - main - Mk/Uses/sbrk.mk: centralize sbrk handling List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f6132c416155ccf2ddfb0d99f73f1b74ba073a7b Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=f6132c416155ccf2ddfb0d99f73f1b74ba073a7b commit f6132c416155ccf2ddfb0d99f73f1b74ba073a7b Author: Brooks Davis AuthorDate: 2024-11-19 17:30:56 +0000 Commit: Brooks Davis CommitDate: 2024-11-19 17:30:56 +0000 Mk/Uses/sbrk.mk: centralize sbrk handling Add a USES=sbrk that sets BROKEN_aarch64 and BROKEN_risc64. This paves the way for further deprecation of sbrk and will be extended to support patching around various uses. Approved by: portmgr (mat) Differential Revision: https://reviews.freebsd.org/D47258 --- Mk/Uses/sbrk.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Mk/Uses/sbrk.mk b/Mk/Uses/sbrk.mk new file mode 100644 index 000000000000..8f74e7a0e34c --- /dev/null +++ b/Mk/Uses/sbrk.mk @@ -0,0 +1,21 @@ +# handle ports requring sbrk +# +# Feature: sbrk +# Usage: USES=sbrk +# Valid ARGS: +# +# Software requiring the sbrk pseudo-syscall is broken on aarch64 and +# riscv64. Mark it as such. +# +# MAINTAINER: brooks@FreeBSD.org + +.if !defined(_INCLUDE_USES_SBRK_MK) +_INCLUDE_USES_SBRK_MK= yes + +. if empty(sbrk_ARGS) +BROKEN_aarch64= requires sbrk +BROKEN_riscv64= requires sbrk +. else +IGNORE= Incorrect 'USES+=sbrk:${sbrk_ARGS}'. No arguments permitted +. endif +.endif