Add Linux 5.12 Patches

pull/412/head
Jan Houben 4 years ago
parent 82f77442fa
commit 59b93348fe
No known key found for this signature in database
GPG Key ID: 22C69579E1123CE6
  1. 10
      src/zfs-dkms/PKGBUILD.sh
  2. 1230
      src/zfs-dkms/linux-5.12-compat.patch
  3. 10
      src/zfs/PKGBUILD.sh
  4. 1230
      src/zfs/linux-5.12-compat.patch

@ -10,8 +10,10 @@ pkgrel=${zfs_pkgrel}
makedepends=(${zfs_makedepends})
arch=("x86_64")
url="https://zfsonlinux.org/"
source=("${zfs_src_target}")
sha256sums=("${zfs_src_hash}")
source=("${zfs_src_target}"
"linux-5.12-compat.patch")
sha256sums=("${zfs_src_hash}"
"9c601804dc473766d85da2198aa3769707e051d3659dc82dd1302edd5e91a8cf")
license=("CDDL")
depends=("${zfs_utils_pkgname}" "lsb-release" "dkms")
provides=("zfs" "zfs-headers" "spl" "spl-headers")
@ -38,4 +40,8 @@ package() {
EOF
if [[ ! ${archzfs_package_group} =~ -git$ ]] && [[ ! ${archzfs_package_group} =~ -rc$ ]]; then
sed -E -i "/^build()/i prepare() {\n cd \"${zfs_workdir}\"\n patch -Np1 -i \${srcdir}/linux-5.12-compat.patch\n}" ${zfs_dkms_pkgbuild_path}/PKGBUILD
fi
pkgbuild_cleanup "${zfs_dkms_pkgbuild_path}/PKGBUILD"

File diff suppressed because it is too large Load Diff

@ -15,8 +15,10 @@ pkgrel=${zfs_pkgrel}
makedepends=(${linux_headers_depends} ${zfs_makedepends})
arch=("x86_64")
url="https://zfsonlinux.org/"
source=("${zfs_src_target}")
sha256sums=("${zfs_src_hash}")
source=("${zfs_src_target}"
"linux-5.12-compat.patch")
sha256sums=("${zfs_src_hash}"
"9c601804dc473766d85da2198aa3769707e051d3659dc82dd1302edd5e91a8cf")
license=("CDDL")
depends=("kmod" "${zfs_utils_pkgname}" ${linux_depends})
@ -61,4 +63,8 @@ package_${zfs_pkgname}-headers() {
EOF
if [[ ! ${archzfs_package_group} =~ -git$ ]] && [[ ! ${archzfs_package_group} =~ -rc$ ]]; then
sed -E -i "/^build()/i prepare() {\n cd \"${zfs_workdir}\"\n patch -Np1 -i \${srcdir}/linux-5.12-compat.patch\n}" ${zfs_pkgbuild_path}/PKGBUILD
fi
pkgbuild_cleanup "${zfs_pkgbuild_path}/PKGBUILD"

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save