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

Felix Yan felixonmars at archlinux.org
Wed May 8 09:17:04 UTC 2019


    Date: Wednesday, May 8, 2019 @ 09:17:04
  Author: felixonmars
Revision: 462761

upgpkg: deepin-anything 0.0.7-2

add a patch for 5.1 kernel

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

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-08 09:12:40 UTC (rev 462760)
+++ PKGBUILD	2019-05-08 09:17:04 UTC (rev 462761)
@@ -4,7 +4,7 @@
 pkgname=(deepin-anything deepin-anything-dkms)
 pkgver=0.0.7
 _extramodules=extramodules-ARCH
-pkgrel=1
+pkgrel=2
 pkgdesc="Deepin Anything file search tool"
 arch=('x86_64')
 url="https://github.com/linuxdeepin/deepin-anything"
@@ -11,13 +11,16 @@
 license=('GPL3')
 makedepends=('dtkcore' 'udisks2-qt5')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-anything/archive/$pkgver.tar.gz"
-        deepin-anything-server.sysusers)
+        deepin-anything-server.sysusers
+        kernel-5.1.patch)
 sha512sums=('b0951ada69a12123337d276e2cdfdd3f3c7ca3f41ac8688f0e4758b732bbe5635b34e9064dd778fb3cf9e7829e20dfa9b59135db5b19a107f194e71071662924'
-            '0ff6a6de1fbfb0c33eaac511b989da321a9e43ece92708af88aee34ad1a05e55572713b1290bc2705d70b91dc7bec4fb4abd3dc664a0abe01de27d88bd9e9c85')
+            '0ff6a6de1fbfb0c33eaac511b989da321a9e43ece92708af88aee34ad1a05e55572713b1290bc2705d70b91dc7bec4fb4abd3dc664a0abe01de27d88bd9e9c85'
+            'b23a7ad54866e04bb86ba401b144ea73725451852e8fb1ab54059a4c685203e9bbd16205b558191f0f33caa8c22a6066077a2068a346ff16f007ae7c5e31ccc7')
 
 prepare() {
   cd deepin-anything-$pkgver
   sed -i 's|^systemd_service.path.*|systemd_service.path = /usr/lib/systemd/system|' server/monitor/src/src.pro server/tool/tool.pro
+  patch -p1 -i ../kernel-5.1.patch
 }
 
 build() {

Added: kernel-5.1.patch
===================================================================
--- kernel-5.1.patch	                        (rev 0)
+++ kernel-5.1.patch	2019-05-08 09:17:04 UTC (rev 462761)
@@ -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