summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichael Lass2018-12-21 22:19:39 +0100
committerMichael Lass2018-12-21 22:19:39 +0100
commit7fabe8e4bfb14a91bf18305fba0f802143093c3a (patch)
tree1a026cd174bf81c2b9bdb4d82834b6b78e0c7771 /PKGBUILD
parented966d88bcd78dfe268792c557189e072c9c16ff (diff)
downloadaur-7fabe8e4bfb14a91bf18305fba0f802143093c3a.tar.gz
Prepare for Linux 4.20
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b3c1774a2fd..385ef097bfe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
pkgname=openafs-modules
_srcname=openafs
pkgver=1.8.2
-pkgrel=1
+pkgrel=2
pkgdesc="Kernel module for OpenAFS"
arch=('i686' 'x86_64' 'armv7h')
url="http://www.openafs.org"
@@ -15,9 +15,13 @@ depends=('openafs')
makedepends=('libelf' 'linux-headers')
conflicts=('openafs-features-libafs' 'openafs<1.6.6-2')
options=(!emptydirs)
-source=("http://openafs.org/dl/openafs/${pkgver}/${_srcname}-${pkgver}-src.tar.bz2")
+source=("http://openafs.org/dl/openafs/${pkgver}/${_srcname}-${pkgver}-src.tar.bz2"
+ 0001-Linux-4.20-current_kernel_time-is-gone.patch
+ 0002-Linux-4.20-do_settimeofday-is-gone.patch)
install=openafs-modules.install
-sha256sums=('25fd3e4261a72a2cbdd40367e5f981895d80c32aaf309a5842aecc739dd3138e')
+sha256sums=('25fd3e4261a72a2cbdd40367e5f981895d80c32aaf309a5842aecc739dd3138e'
+ 'af5f65915c33a13311280ca5f1d52e49d954341d2b5d8939fc0ccb6a15663388'
+ 'a4036be334ce54a4eb4a777621983e6535144d4c81d717e2045bb9040cf3ae8b')
# Heuristic to determine version of installed kernel
# You can modify this if the heuristic fails
@@ -27,8 +31,12 @@ _kernelver=$(cat ${_extramodules}/version)
prepare() {
cd "${srcdir}/${_srcname}-${pkgver}"
+ # Compatibility with Linux 4.20
+ patch -p1 < "${srcdir}/0001-Linux-4.20-current_kernel_time-is-gone.patch"
+ patch -p1 < "${srcdir}/0002-Linux-4.20-do_settimeofday-is-gone.patch"
+
# Only needed when changes to configure were made
- #./regen.sh -q
+ ./regen.sh -q
}
build() {