mirror of
https://aur.archlinux.org/zfs-linux.git
synced 2025-06-07 08:07:21 +02:00
Semi-automated update for kernel 4.20.0.arch1-1 + zfs 0.7.12
This commit is contained in:
parent
f8a7fee5c5
commit
91483d1c81
10
.SRCINFO
10
.SRCINFO
@ -1,17 +1,19 @@
|
|||||||
pkgbase = zfs-linux
|
pkgbase = zfs-linux
|
||||||
pkgver = 0.7.12_4.19.12.arch1.1
|
pkgver = 0.7.12_4.20.arch1.1
|
||||||
pkgrel = 2
|
pkgrel = 1
|
||||||
url = http://zfsonlinux.org/
|
url = http://zfsonlinux.org/
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = CDDL
|
license = CDDL
|
||||||
makedepends = linux-headers=4.19.12.arch1-1
|
makedepends = linux-headers=4.20.arch1-1
|
||||||
makedepends = spl-linux-headers
|
makedepends = spl-linux-headers
|
||||||
depends = kmod
|
depends = kmod
|
||||||
depends = spl-linux
|
depends = spl-linux
|
||||||
depends = zfs-utils=0.7.12
|
depends = zfs-utils=0.7.12
|
||||||
depends = linux=4.19.12.arch1-1
|
depends = linux=4.20.arch1-1
|
||||||
source = https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.12/zfs-0.7.12.tar.gz
|
source = https://github.com/zfsonlinux/zfs/releases/download/zfs-0.7.12/zfs-0.7.12.tar.gz
|
||||||
|
source = upstream-4f981f6-additional-fixes-for-current_kernel_time-in-4.20.patch
|
||||||
sha256sums = 720e3b221c1ba5d4c18c990e48b86a2eb613575a0c3cc84c0aa784b17b7c2848
|
sha256sums = 720e3b221c1ba5d4c18c990e48b86a2eb613575a0c3cc84c0aa784b17b7c2848
|
||||||
|
sha256sums = 6f27c3dae57c424e06aec31df6c1e1a821e547aa4e933f2f9b894b5e6762b52d
|
||||||
|
|
||||||
pkgname = zfs-linux
|
pkgname = zfs-linux
|
||||||
pkgdesc = Kernel modules for the Zettabyte File System.
|
pkgdesc = Kernel modules for the Zettabyte File System.
|
||||||
|
16
PKGBUILD
16
PKGBUILD
@ -18,18 +18,24 @@
|
|||||||
pkgbase="zfs-linux"
|
pkgbase="zfs-linux"
|
||||||
pkgname=("zfs-linux" "zfs-linux-headers")
|
pkgname=("zfs-linux" "zfs-linux-headers")
|
||||||
_zfsver="0.7.12"
|
_zfsver="0.7.12"
|
||||||
_kernelver="4.19.12.arch1-1"
|
_kernelver="4.20.arch1-1"
|
||||||
_extramodules="${_kernelver/.arch/-arch}-ARCH"
|
_extramodules="4.20.0-arch1-1-ARCH"
|
||||||
|
|
||||||
pkgver="${_zfsver}_$(echo ${_kernelver} | sed s/-/./g)"
|
pkgver="${_zfsver}_$(echo ${_kernelver} | sed s/-/./g)"
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
makedepends=("linux-headers=${_kernelver}" "spl-linux-headers")
|
makedepends=("linux-headers=${_kernelver}" "spl-linux-headers")
|
||||||
arch=("x86_64")
|
arch=("x86_64")
|
||||||
url="http://zfsonlinux.org/"
|
url="http://zfsonlinux.org/"
|
||||||
source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${_zfsver}/zfs-${_zfsver}.tar.gz")
|
source=("https://github.com/zfsonlinux/zfs/releases/download/zfs-${_zfsver}/zfs-${_zfsver}.tar.gz"
|
||||||
sha256sums=("720e3b221c1ba5d4c18c990e48b86a2eb613575a0c3cc84c0aa784b17b7c2848")
|
"upstream-4f981f6-additional-fixes-for-current_kernel_time-in-4.20.patch")
|
||||||
|
sha256sums=("720e3b221c1ba5d4c18c990e48b86a2eb613575a0c3cc84c0aa784b17b7c2848"
|
||||||
|
"6f27c3dae57c424e06aec31df6c1e1a821e547aa4e933f2f9b894b5e6762b52d")
|
||||||
license=("CDDL")
|
license=("CDDL")
|
||||||
depends=("kmod" 'spl-linux' "zfs-utils=${_zfsver}" "linux=${_kernelver}")
|
depends=("kmod" 'spl-linux' "zfs-utils=${_zfsver}" "linux=${_kernelver}")
|
||||||
|
prepare() {
|
||||||
|
cd "${srcdir}/zfs-${_zfsver}"
|
||||||
|
patch -Np1 -i ${srcdir}/upstream-4f981f6-additional-fixes-for-current_kernel_time-in-4.20.patch
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/zfs-${_zfsver}"
|
cd "${srcdir}/zfs-${_zfsver}"
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/include/zpios-ctl.h b/include/zpios-ctl.h
|
||||||
|
index f17f1153260..068c9eaf173 100644
|
||||||
|
--- a/include/zpios-ctl.h
|
||||||
|
+++ b/include/zpios-ctl.h
|
||||||
|
@@ -181,9 +181,12 @@ zpios_timespec_t
|
||||||
|
zpios_timespec_now(void)
|
||||||
|
{
|
||||||
|
zpios_timespec_t zts_now;
|
||||||
|
- struct timespec ts_now;
|
||||||
|
+ #if defined(HAVE_INODE_TIMESPEC64_TIMES)
|
||||||
|
+ inode_timespec_t ts_now = current_kernel_time64();
|
||||||
|
+ #else
|
||||||
|
+ inode_timespec_t ts_now = current_kernel_time();
|
||||||
|
+ #endif
|
||||||
|
|
||||||
|
- ts_now = current_kernel_time();
|
||||||
|
zts_now.ts_sec = ts_now.tv_sec;
|
||||||
|
zts_now.ts_nsec = ts_now.tv_nsec;
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user