diff --git a/talimatname/genel/v/virtualbox-guest-modules/fix-timespec.patch b/talimatname/genel/v/virtualbox-guest-modules/fix-timespec.patch new file mode 100644 index 000000000..620a0cad0 --- /dev/null +++ b/talimatname/genel/v/virtualbox-guest-modules/fix-timespec.patch @@ -0,0 +1,27 @@ +diff -Naru 1/vboxsf/utils.c 2/vboxsf/utils.c +--- 1/vboxsf/utils.c 2018-08-13 21:58:52.000000000 +0700 ++++ 2/vboxsf/utils.c 2018-08-13 22:06:59.623300208 +0700 +@@ -50,7 +50,11 @@ + RTTimeSpecSetNano(ts, t); + } + #else /* >= 2.6.0 */ ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)) + static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts) ++#else ++static void sf_ftime_from_timespec(struct timespec64 *tv, RTTIMESPEC *ts) ++#endif //(LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)) + { + int64_t t = RTTimeSpecGetNano(ts); + int64_t nsec; +@@ -60,7 +64,11 @@ + tv->tv_nsec = nsec; + } + ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)) + static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec *tv) ++#else ++static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec64 *tv) ++#endif //(LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)) + { + int64_t t = (int64_t)tv->tv_nsec + (int64_t)tv->tv_sec * 1000000000; + RTTimeSpecSetNano(ts, t); diff --git a/talimatname/genel/v/virtualbox-guest-modules/talimat b/talimatname/genel/v/virtualbox-guest-modules/talimat index 3f447d2ae..44d40fd66 100644 --- a/talimatname/genel/v/virtualbox-guest-modules/talimat +++ b/talimatname/genel/v/virtualbox-guest-modules/talimat @@ -6,13 +6,15 @@ isim=virtualbox-guest-modules surum=5.2.14 -devir=3 -kaynak=(https://sourceforge.net/projects/kaosx/files/sources/virtualbox-modules/vbox-guest-module-src-5.2.14.tar.xz) +devir=1 +kaynak=(https://sourceforge.net/projects/kaosx/files/sources/virtualbox-modules/vbox-guest-module-src-$surum.tar.xz + fix-timespec.patch) derle() { _kernver="`ls /lib/modules`" cd $SRC/vbox-guest-module-src-${surum} - make KERN_DIR=/lib/modules/${_kernver}/build MODULE_DIR_TST=${PKG}/lib/modules/${_kernver} \ + patch -p1 < "${SRC}/fix-timespec.patch" + make -j1 KERN_DIR=/lib/modules/${_kernver}/build MODULE_DIR_TST=${PKG}/lib/modules/${_kernver} \ MODULE_DIR=${PKG}/lib/modules/${_kernver}/misc cd $SRC/vbox-guest-module-src-${surum} install -dm755 ${PKG}/lib/modules/${_kernver}/extra