PKGNAME=libxcrypt
PKGSEC=libs
PKGDEP="glibc"
PKGDES="Library for one-way hashing of passwords"

# Note:
#
# --disable-failure-tokens
#     Make crypt and crypt_r return NULL on failure,
#     instead of a special "failure token" string that
#     isn't the hash of any passphrase. This matches the
#     behavior of several other crypt implementations, but
#     will break programs that assume these functions
#     never return NULL. crypt_rn and crypt_ra are not
#     affected by this option, and will always return NULL
#     on failure.
AUTOTOOLS_AFTER="--enable-largefile \
                 --disable-werror \
                 --enable-symvers \
                 --disable-valgrind \
                 --disable-valgrind-memcheck \
                 --disable-valgrind-helgrind \
                 --disable-valgrind-drd \
                 --disable-valgrind-sgcheck \
                 --disable-failure-tokens \
                 --enable-xcrypt-compat-files \
                 --enable-obsolete-api=no \
                 --enable-obsolete-api-enosys=no \
                 --enable-hashes=all"
AUTOTOOLS_AFTER__COMPAT=" \
                 ${AUTOTOOLS_AFTER} \
                 --enable-obsolete-api=glibc"

PKGBREAK="glibc<=1:2.37-1 man-pages<=6.01+posix2017-a"
PKGREP="glibc<=1:2.37-1 man-pages<=6.01+posix2017-a"

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