sys-fs/zfs: revbump 0.8.4, fix not loading /etc/conf.d/zfs
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Tue, 26 May 2020 23:56:58 +0000 (16:56 -0700)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Tue, 26 May 2020 23:57:11 +0000 (16:57 -0700)
Upstream issue: https://github.com/openzfs/zfs/issues/10375
Upstream issue: https://github.com/openzfs/zfs/issues/10341

Bug: https://bugs.gentoo.org/647688
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
sys-fs/zfs/files/0.8.4-initconfdir.patch [new file with mode: 0644]
sys-fs/zfs/zfs-0.8.4-r1.ebuild [moved from sys-fs/zfs/zfs-0.8.4.ebuild with 98% similarity]

diff --git a/sys-fs/zfs/files/0.8.4-initconfdir.patch b/sys-fs/zfs/files/0.8.4-initconfdir.patch
new file mode 100644 (file)
index 0000000..aac4089
--- /dev/null
@@ -0,0 +1,35 @@
+From 5dbe98184278878746a5f548fead1d2ef1e98dbe Mon Sep 17 00:00:00 2001
+From: Georgy Yakovlev <gyakovlev@gentoo.org>
+Date: Tue, 26 May 2020 16:44:54 -0700
+Subject: [PATCH] 0.8.4 initconfdir
+
+fix for https://github.com/openzfs/zfs/issues/10375
+
+---
+ etc/zfs/Makefile.am | 1 +
+ etc/zfs/Makefile.in | 9 +++++----
+ 2 files changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/etc/zfs/Makefile.am b/openzfs/etc/zfs/Makefile.am
+index 81567a4..5370f41 100644
+--- a/etc/zfs/Makefile.am
++++ b/etc/zfs/Makefile.am
+@@ -1,4 +1,5 @@
+ pkgsysconfdir = $(sysconfdir)/zfs
++initconfdir = $(DEFAULT_INITCONF_DIR)
+ pkgsysconf_DATA = \
+       vdev_id.conf.alias.example \
+diff --git a/etc/zfs/Makefile.in b/etc/zfs/Makefile.in
+index fb02811..795d3b1 100644
+@@ -571,6 +571,7 @@ udevdir = @udevdir@
+ udevruledir = @udevruledir@
+ zfsexecdir = @zfsexecdir@
+ pkgsysconfdir = $(sysconfdir)/zfs
++initconfdir = $(DEFAULT_INITCONF_DIR)
+ pkgsysconf_DATA = \
+       vdev_id.conf.alias.example \
+       vdev_id.conf.sas_direct.example \
+-- 
+2.26.2
+
similarity index 98%
rename from sys-fs/zfs/zfs-0.8.4.ebuild
rename to sys-fs/zfs/zfs-0.8.4-r1.ebuild
index c7cc180b9ea073acac63124c188b67e83c40d87c..5f7c23109c092235187cb5900986e8a6022b2dc3 100644 (file)
@@ -68,7 +68,10 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RESTRICT="test"
 
-PATCHES=( "${FILESDIR}/bash-completion-sudo.patch" )
+PATCHES=( 
+       "${FILESDIR}/bash-completion-sudo.patch"
+       "${FILESDIR}/${PV}-initconfdir.patch"
+)
 
 pkg_setup() {
        if use kernel_linux && use test-suite; then