Date: Tue, 19 Nov 2024 17:31:01 GMT From: Brooks Davis <brooks@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: f6132c416155 - main - Mk/Uses/sbrk.mk: centralize sbrk handling Message-ID: <202411191731.4AJHV1J2076426@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=f6132c416155ccf2ddfb0d99f73f1b74ba073a7b commit f6132c416155ccf2ddfb0d99f73f1b74ba073a7b Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2024-11-19 17:30:56 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> 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: <none> +# +# 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411191731.4AJHV1J2076426>