Skip to content

Commit 5b0c4b5

Browse files
committed
makepkg: Only copy ntsync header over if builtin support is enabled and the header wasn't already installed by another package
Fixes #980
1 parent 91e3864 commit 5b0c4b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

PKGBUILD

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,14 @@ hackbase() {
186186
# install customization file, for reference
187187
install -Dm644 "${srcdir}"/customization-full.cfg "${pkgdir}/usr/share/doc/${pkgbase}/customization.cfg"
188188

189-
# workaround for missing header with ntsync
190-
if [ -e "${_kernel_work_folder_abs}/include/uapi/linux/ntsync.h" ]; then
191-
msg2 "Workaround missing ntsync header"
192-
install -Dm644 "${_kernel_work_folder_abs}"/include/uapi/linux/ntsync.h "${pkgdir}/usr/include/linux/ntsync.h"
193-
fi
194-
195-
# load ntsync module at boot
189+
# ntsync
196190
if [ -e "${srcdir}/ntsync.conf" ]; then
191+
# workaround for missing header with ntsync
192+
if [ -e "${_kernel_work_folder_abs}/include/uapi/linux/ntsync.h" ] && [ ! -e "/usr/include/linux/ntsync.h" ]; then
193+
msg2 "Workaround missing ntsync header"
194+
install -Dm644 "${_kernel_work_folder_abs}"/include/uapi/linux/ntsync.h "${pkgdir}/usr/include/linux/ntsync.h"
195+
fi
196+
# load ntsync module at boot
197197
msg2 "Set the ntsync module to be loaded at boot through /etc/modules-load.d"
198198
install -Dm644 "${srcdir}"/ntsync.conf "${pkgdir}/etc/modules-load.d/ntsync.conf"
199199
fi

0 commit comments

Comments
 (0)