PKGNAME=sdparm
PKGSEC=utils
PKGDEP="glibc sg3-utils"
PKGDES="A tool to list or change SCSI/SATA disk parameters"

# Note: --disable-libsgutils disables bundled libsgutils.
#
# FIXME: Broken NVMe support.
#
# sdparm-1.12/src/../lib/sg_pt_linux_nvme.c:1913:9: error: ‘vb’ undeclared
# (first use in this function); did you mean ‘vp’?
# 1913 |     if (vb) {
#      |         ^~
#      |         vp

# FIXME: Remove --enable-nvme-supp.
# Enabling or disabling this option will include broken NVMe support.
AUTOTOOLS_AFTER="--disable-debug \
                 --disable-libsgutils \
                 --enable-scsistrings \
                 --enable-fast-lebe"

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