Check the full path before copying winesync header file. This fixes a failure when selecting the feature on unsupported kernels.

This commit is contained in:
Tk-Glitch 2021-03-19 18:27:28 +01:00
parent dc110c9fe3
commit db1f97c638

View File

@ -538,7 +538,7 @@ hackbase() {
install -Dm644 "${srcdir}"/customization-full.cfg "${pkgdir}/usr/share/doc/${pkgbase}/customization.cfg"
# workaround for missing header with winesync
if [ -e "${srcdir}/winesync.rules" ]; then
if [ -e ""${srcdir}/${_srcpath}"/include/uapi/linux/winesync.h" ]; then
msg2 "Workaround missing winesync header"
install -Dm644 "${srcdir}/${_srcpath}"/include/uapi/linux/winesync.h "${pkgdir}/usr/include/linux/winesync.h"
fi