From a20aee24fd253b750e1d64e49d3affbb14d2c632 Mon Sep 17 00:00:00 2001 From: milisbir Date: Sun, 25 Nov 2018 15:27:07 +0200 Subject: [PATCH] vbox-guest --- .../fix-timespec.patch | 27 ------------------- .../genel/v/virtualbox-guest-modules/talimat | 4 +-- 2 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 talimatname/genel/v/virtualbox-guest-modules/fix-timespec.patch diff --git a/talimatname/genel/v/virtualbox-guest-modules/fix-timespec.patch b/talimatname/genel/v/virtualbox-guest-modules/fix-timespec.patch deleted file mode 100644 index 620a0cad0..000000000 --- a/talimatname/genel/v/virtualbox-guest-modules/fix-timespec.patch +++ /dev/null @@ -1,27 +0,0 @@ -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 203fed0cb..47daa969a 100644 --- a/talimatname/genel/v/virtualbox-guest-modules/talimat +++ b/talimatname/genel/v/virtualbox-guest-modules/talimat @@ -7,13 +7,11 @@ isim=virtualbox-guest-modules surum=5.2.22 devir=1 -kaynak=(https://sourceforge.net/projects/kaosx/files/sources/virtualbox-modules/vbox-guest-module-src-$surum.tar.xz - fix-timespec.patch) +kaynak=(https://sourceforge.net/projects/kaosx/files/sources/virtualbox-modules/vbox-guest-module-src-$surum.tar.xz) derle() { _kernver="`ls /lib/modules`" cd $SRC/vbox-guest-module-src-${surum} - 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}