[arch-commits] Commit in deepin-anything/repos/community-x86_64 (3 files)

Felix Yan felixonmars at archlinux.org
Fri Jun 22 15:04:18 UTC 2018


    Date: Friday, June 22, 2018 @ 15:04:17
  Author: felixonmars
Revision: 344641

archrelease: copy trunk to community-x86_64

Added:
  deepin-anything/repos/community-x86_64/PKGBUILD
    (from rev 344640, deepin-anything/trunk/PKGBUILD)
  deepin-anything/repos/community-x86_64/linux-4.17.patch
    (from rev 344640, deepin-anything/trunk/linux-4.17.patch)
Deleted:
  deepin-anything/repos/community-x86_64/PKGBUILD

------------------+
 PKGBUILD         |   59 +++++++++++++++++++++++++++++------------------------
 linux-4.17.patch |   54 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+), 26 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-22 15:04:00 UTC (rev 344640)
+++ PKGBUILD	2018-06-22 15:04:17 UTC (rev 344641)
@@ -1,26 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=deepin-anything
-pkgver=0.0.1
-pkgrel=1
-pkgdesc="Deepin "
-arch=('x86_64')
-url="https://github.com/linuxdeepin/deepin-anything"
-license=('GPL3')
-depends=('dkms')
-groups=('deepin')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz")
-sha512sums=('6a210f2b3797647b0bf280ecd97b2d71ff6c882d9cd8d8daadf141b2125c5ade3af4f27086be3c6e68e3f823c0acb4753afbbadcee2cf82b0d18559409b7d64d')
-
-build() {
-  cd deepin-anything-$pkgver
-  make VERSION=$pkgver
-}
-
-package() {
-  cd deepin-anything-$pkgver
-  make VERSION=$pkgver DESTDIR="$pkgdir" install
-
-  cp debian/deepin-anything-dkms.dkms "$pkgdir"/usr/src/deepin-anything-$pkgver/dkms.conf
-}

Copied: deepin-anything/repos/community-x86_64/PKGBUILD (from rev 344640, deepin-anything/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-06-22 15:04:17 UTC (rev 344641)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-anything
+pkgver=0.0.1
+pkgrel=2
+pkgdesc="Deepin Anything file search tool"
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-anything"
+license=('GPL3')
+depends=('dkms')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz"
+        linux-4.17.patch)
+sha512sums=('6a210f2b3797647b0bf280ecd97b2d71ff6c882d9cd8d8daadf141b2125c5ade3af4f27086be3c6e68e3f823c0acb4753afbbadcee2cf82b0d18559409b7d64d'
+            'fe951583cf18401eef4b8f85c1113dee9de50633da059ad9e0f8f887c9cd8c4a80998bc16d66438efe7ccf8ca524426bf980aa00e4c4b840d1ced10c72da32c9')
+
+prepare() {
+  cd deepin-anything-$pkgver
+  patch -p1 -i ../linux-4.17.patch
+}
+
+build() {
+  cd deepin-anything-$pkgver
+  make VERSION=$pkgver
+}
+
+package() {
+  cd deepin-anything-$pkgver
+  make VERSION=$pkgver DESTDIR="$pkgdir" install
+
+  cp debian/deepin-anything-dkms.dkms "$pkgdir"/usr/src/deepin-anything-$pkgver/dkms.conf
+}

Copied: deepin-anything/repos/community-x86_64/linux-4.17.patch (from rev 344640, deepin-anything/trunk/linux-4.17.patch)
===================================================================
--- linux-4.17.patch	                        (rev 0)
+++ linux-4.17.patch	2018-06-22 15:04:17 UTC (rev 344641)
@@ -0,0 +1,54 @@
+From b3997f5be93f727be2047e8e27ed0b5b3873af55 Mon Sep 17 00:00:00 2001
+From: zccrs <ccrr1314 at live.com>
+Date: Fri, 22 Jun 2018 08:58:22 +0800
+Subject: [PATCH] fix: failed when insert the module on 4.17 version kernel
+
+sys_umount is removed
+see: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3a18ef5c1b3935cb05888fc37964321f7bd6231d
+
+Change-Id: Id865b20514248b432a49c4659bf91b0da037679f
+---
+
+diff --git a/kernelmod/vfs_kretprobes.c b/kernelmod/vfs_kretprobes.c
+index ddc264b..6744a35 100644
+--- a/kernelmod/vfs_kretprobes.c
++++ b/kernelmod/vfs_kretprobes.c
+@@ -8,6 +8,7 @@
+ #include <linux/list.h>
+ #include <linux/uaccess.h>
+ #include <linux/namei.h>
++#include <linux/version.h>
+ 
+ #include "arg_extractor.h"
+ #include "vfs_change_consts.h"
+@@ -18,14 +19,16 @@
+ 	char dir_name[NAME_MAX];
+ } do_mount_args;
+ 
+-#define DECL_CMN_KRP(fn) static struct kretprobe fn##_krp = {\
++#define _DECL_CMN_KRP(fn, symbol) static struct kretprobe fn##_krp = {\
+ 	.entry_handler	= on_##fn##_ent,\
+ 	.handler		= on_##fn##_ret,\
+ 	.data_size		= sizeof(fn##_args),\
+ 	.maxactive		= 64,\
+-	.kp.symbol_name = ""#fn"",\
++	.kp.symbol_name = ""#symbol"",\
+ };
+ 
++#define DECL_CMN_KRP(fn) _DECL_CMN_KRP(fn, fn)
++
+ static DEFINE_SPINLOCK(sl_parts);
+ static LIST_HEAD(partitions);
+ 
+@@ -207,7 +210,11 @@
+ }
+ 
+ DECL_CMN_KRP(do_mount);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0)
+ DECL_CMN_KRP(sys_umount);
++#else
++_DECL_CMN_KRP(sys_umount, ksys_umount);
++#endif
+ 
+ typedef struct __vfs_op_args__ {
+ 	unsigned char major, minor;



More information about the arch-commits mailing list