1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

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
This commit is contained in:
Brooks Davis 2024-11-19 17:30:56 +00:00
parent 48060e03b6
commit f6132c4161

21
Mk/Uses/sbrk.mk Normal file
View File

@ -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