PKGNAME=rpcbind
PKGSEC=admin
PKGDEP="bash glibc libtirpc systemd"
PKGDES="Portmap replacement which supports RPC over various protocols"

AUTOTOOLS_AFTER="--with-rpcuser=rpc \
                 --enable-warmstarts \
                 --with-statedir=/var/lib/rpcbind"

NOLTO=1
# Errate as of 1.2.5:
#
# See rpcb_svc_com.c:1057, variable svc_max_pollfd in the infinite for-loop.
#
# With LTO, rpcbind will always fail within my_svc_run() when checking conditions
# on a (erroneously allocated) zero-length array on stack.
#
# The length of the array is specified by an `extern` global variable from
# libtirpc, beyond control of rpcbind. LTO disconnects the __use__ of length
# variable from its extern declaration in tirpc.

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
