summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYurii Kolesnykov2023-02-13 04:07:28 +0200
committerYurii Kolesnykov2023-02-13 04:07:28 +0200
commit86dd16a6eeff1d5a69fc56cc1e585eb282865880 (patch)
tree784c49a8c4e6e6277d4b2d6f71cc983ad8e83987
parent466f1ed8e90333960e183794c010f5c178cea979 (diff)
downloadaur-86dd16a6eeff1d5a69fc56cc1e585eb282865880.tar.gz
sync with aur/zfs-utils
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD35
-rw-r--r--zfs.initcpio.hook2
-rw-r--r--zfs.initcpio.install1
4 files changed, 41 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1165b48116ee..b5a6e3e8a2eb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,27 +1,35 @@
pkgbase = zfs-utils-git
pkgdesc = Userspace utilities for the Zettabyte File System.
- pkgver = 2.1.99.r1548.gc23738c70e
+ pkgver = 2.1.99.r1726.g7883ea2234
pkgrel = 1
epoch = 2
url = https://zfsonlinux.org/
+ arch = i686
arch = x86_64
+ arch = aarch64
groups = zfs-git
license = CDDL
makedepends = python
makedepends = python-setuptools
makedepends = python-cffi
makedepends = git
- optdepends = python: pyzfs and extra utilities,
+ optdepends = python: pyzfs and extra utilities
optdepends = python-cffi: pyzfs
- provides = zfs-utils=2.1.99.r1548.gc23738c70e
+ provides = zfs-utils=2.1.99.r1726.g7883ea2234
conflicts = zfs-utils
+ backup = etc/default/zfs
+ backup = etc/zfs/zed.d/zed.rc
source = git+https://github.com/openzfs/zfs.git
source = zfs.initcpio.install
source = zfs.initcpio.hook
source = zfs.initcpio.zfsencryptssh.install
sha256sums = SKIP
- sha256sums = d19476c6a599ebe3415680b908412c8f19315246637b3a61e811e2e0961aea78
- sha256sums = 569089e5c539097457a044ee8e7ab9b979dec48f69760f993a6648ee0f21c222
+ sha256sums = 2f09c742287f4738c7c09a9669f8055cd63d3b9474cd1f6d9447152d11a1b913
+ sha256sums = 15b5acea44225b4364ec6472a08d3d48666d241fe84c142e1171cd3b78a5584f
sha256sums = 93e6ac4e16f6b38b2fa397a63327bcf7001111e3a58eb5fb97c888098c932a51
+ b2sums = SKIP
+ b2sums = cb774227f157573f960bdb345e5b014c043a573c987d37a1db027b852d77a5eda1ee699612e1d8f4a2770897624889f1a3808116a171cc4c796a95e3caa43012
+ b2sums = 779c864611249c3f21d1864508d60cfe5e0f5541d74fb3093c6bdfa56be2c76f386ac1690d363beaee491c5132f5f6dbc01553aa408cda579ebca74b0e0fd1d0
+ b2sums = 04e2af875e194df393d6cff983efc3fdf02a03a745d1b0b1e4a745f873d910b4dd0a45db956c1b5b2d97e9d5bf724ef12e23f7a2be3d5c12be027eaccf42349a
pkgname = zfs-utils-git
diff --git a/PKGBUILD b/PKGBUILD
index ec03898db6fe..b9ebdd5956e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,41 @@
# Maintainer: Yurii Kolesnykov <root@yurikoles.com>
+# Contributor: Jonathon Fernyhough <jonathon"m2x+dev>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Iacopo Isimbaldi <isiachi@rhye.it>
#
+# Based on aur/zfs-utils by Kevin Stolp <kevinstolp@gmail.com>
+# Based on archzfs/zfs-utils-git by Jan Houben <jan@nexttrex.de>
+#
# PRs are welcome: https://github.com/yurikoles-aur/zfs-utils-git
#
pkgname=zfs-utils-git
-pkgver=2.1.99.r1548.gc23738c70e
+pkgver=2.1.99.r1726.g7883ea2234
pkgrel=1
epoch=2
pkgdesc="Userspace utilities for the Zettabyte File System."
-arch=('x86_64')
+arch=("i686" "x86_64" "aarch64")
url='https://zfsonlinux.org/'
license=('CDDL')
groups=('zfs-git')
makedepends=('python' 'python-setuptools' 'python-cffi' 'git')
-optdepends=('python: pyzfs and extra utilities', 'python-cffi: pyzfs')
+optdepends=('python: pyzfs and extra utilities' 'python-cffi: pyzfs')
provides=("${pkgname%-git}=${pkgver}")
conflicts=("${pkgname%-git}")
+backup=('etc/default/zfs'
+ 'etc/zfs/zed.d/zed.rc')
source=('git+https://github.com/openzfs/zfs.git'
'zfs.initcpio.install'
'zfs.initcpio.hook'
'zfs.initcpio.zfsencryptssh.install')
sha256sums=('SKIP'
- 'd19476c6a599ebe3415680b908412c8f19315246637b3a61e811e2e0961aea78'
- '569089e5c539097457a044ee8e7ab9b979dec48f69760f993a6648ee0f21c222'
+ '2f09c742287f4738c7c09a9669f8055cd63d3b9474cd1f6d9447152d11a1b913'
+ '15b5acea44225b4364ec6472a08d3d48666d241fe84c142e1171cd3b78a5584f'
'93e6ac4e16f6b38b2fa397a63327bcf7001111e3a58eb5fb97c888098c932a51')
+b2sums=('SKIP'
+ 'cb774227f157573f960bdb345e5b014c043a573c987d37a1db027b852d77a5eda1ee699612e1d8f4a2770897624889f1a3808116a171cc4c796a95e3caa43012'
+ '779c864611249c3f21d1864508d60cfe5e0f5541d74fb3093c6bdfa56be2c76f386ac1690d363beaee491c5132f5f6dbc01553aa408cda579ebca74b0e0fd1d0'
+ '04e2af875e194df393d6cff983efc3fdf02a03a745d1b0b1e4a745f873d910b4dd0a45db956c1b5b2d97e9d5bf724ef12e23f7a2be3d5c12be027eaccf42349a')
pkgver() {
cd zfs
@@ -36,10 +46,16 @@ pkgver() {
prepare() {
cd zfs
- autoreconf -fi
+ ./autogen.sh
}
build() {
+ # Disable tree vectorization. Related issues:
+ # https://github.com/openzfs/zfs/issues/13605
+ # https://github.com/openzfs/zfs/issues/13620
+ export CFLAGS="$CFLAGS -fno-tree-vectorize"
+ export CXXFLAGS="$CXXFLAGS -fno-tree-vectorize"
+
cd zfs
./configure \
@@ -52,10 +68,11 @@ build() {
--includedir=/usr/include \
--with-udevdir=/usr/lib/udev \
--libexecdir=/usr/lib/zfs \
- --enable-pyzfs \
- --enable-systemd \
--with-config=user \
- --with-zfsexecdir=/usr/lib/zfs
+ --enable-systemd \
+ --enable-pyzfs \
+ --with-zfsexecdir=/usr/lib/zfs \
+ --localstatedir=/var
make
}
diff --git a/zfs.initcpio.hook b/zfs.initcpio.hook
index 3e260c31a9f5..4770c08e14ce 100644
--- a/zfs.initcpio.hook
+++ b/zfs.initcpio.hook
@@ -62,7 +62,7 @@ zfs_decrypt_fs() {
udevadm settle
# Wait for udev up to 10 seconds
- if [ ! -r "${keyfile}" ]; then
+ if [ ! -r "${keyfile}" ]; then
echo "Waiting for key ${keyfile} for ${encryptionroot}..."
for _ in $(seq 1 20); do
sleep 0.5s
diff --git a/zfs.initcpio.install b/zfs.initcpio.install
index fd3387f66d68..27e11f587152 100644
--- a/zfs.initcpio.install
+++ b/zfs.initcpio.install
@@ -41,6 +41,7 @@ build() {
[[ -f /etc/zfs/zpool.cache ]] && cp "/etc/zfs/zpool.cache" "${BUILDROOT}/etc/zfs/zpool.cache.org"
[[ -f /etc/modprobe.d/zfs.conf ]] && add_file "/etc/modprobe.d/zfs.conf"
+ [[ -f /etc/hostid ]] && add_file "/etc/hostid"
[[ -f /etc/fstab ]] && add_file "/etc/fstab"
}