[arch-commits] Commit in deepin-anything-arch/trunk (PKGBUILD kernel-5.1.patch)

Felix Yan felixonmars at archlinux.org
Wed May 8 09:12:29 UTC 2019


    Date: Wednesday, May 8, 2019 @ 09:12:28
  Author: felixonmars
Revision: 462759

upgpkg: deepin-anything-arch 0.0.7-8

Added:
  deepin-anything-arch/trunk/kernel-5.1.patch
Modified:
  deepin-anything-arch/trunk/PKGBUILD

------------------+
 PKGBUILD         |   12 +++++++++---
 kernel-5.1.patch |   13 +++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-08 09:10:57 UTC (rev 462758)
+++ PKGBUILD	2019-05-08 09:12:28 UTC (rev 462759)
@@ -3,7 +3,7 @@
 pkgname=deepin-anything-arch
 pkgver=0.0.7
 _extramodules=extramodules-ARCH
-pkgrel=7
+pkgrel=8
 pkgdesc="Deepin Anything file search tool, kernel module for Arch kernel"
 arch=('x86_64')
 url="https://github.com/linuxdeepin/deepin-anything"
@@ -12,9 +12,15 @@
 makedepends=('linux-headers')
 provides=('DEEPIN-ANYTHING-MODULE')
 replaces=('deepin-anything-module')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz")
-sha512sums=('b0951ada69a12123337d276e2cdfdd3f3c7ca3f41ac8688f0e4758b732bbe5635b34e9064dd778fb3cf9e7829e20dfa9b59135db5b19a107f194e71071662924')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz"
+        kernel-5.1.patch)
+sha512sums=('b0951ada69a12123337d276e2cdfdd3f3c7ca3f41ac8688f0e4758b732bbe5635b34e9064dd778fb3cf9e7829e20dfa9b59135db5b19a107f194e71071662924'
+            'b23a7ad54866e04bb86ba401b144ea73725451852e8fb1ab54059a4c685203e9bbd16205b558191f0f33caa8c22a6066077a2068a346ff16f007ae7c5e31ccc7')
 
+prepare() {
+  patch -d deepin-anything-$pkgver -p1 -i ../kernel-5.1.patch
+}
+
 build() {
   cd deepin-anything-$pkgver
   _kernver="$(cat /usr/lib/modules/$_extramodules/version)"

Added: kernel-5.1.patch
===================================================================
--- kernel-5.1.patch	                        (rev 0)
+++ kernel-5.1.patch	2019-05-08 09:12:28 UTC (rev 462759)
@@ -0,0 +1,13 @@
+diff --git a/kernelmod/vfs_utils.c b/kernelmod/vfs_utils.c
+index d166f18..2549e10 100644
+--- a/kernelmod/vfs_utils.c
++++ b/kernelmod/vfs_utils.c
+@@ -24,7 +24,7 @@ char* __init read_file_content(const char* filename, int *real_size)
+ 		return 0;
+ 	}
+ 	mm_segment_t old_fs = get_fs();
+-	set_fs(get_ds());
++	set_fs(KERNEL_DS);
+ 
+ 	// i_size_read is useless here because procfs does not have i_size
+ 	// loff_t size = i_size_read(file_inode(filp));


More information about the arch-commits mailing list