commit:     968e991786b0256ad2ec989e699a2b07e5c1c8da
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  4 17:33:52 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul  4 17:34:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=968e9917

sys-fs/zfs: force -fno-tree-vectorize (backport for older versions)

Workaround issue with GCC 12 until solved upstream. Segfault
occurs w/ 'zfs send' otherwise (and very possibly other commands).

Let's backport for older versions to be safe after discussion
w/ gyakovlev.

Bug: https://github.com/openzfs/zfs/issues/13605
Bug: https://github.com/openzfs/zfs/issues/13620
Closes: https://bugs.gentoo.org/856373
See: 1cbf3fbc336adfdcd122da5b0989c2993de358dc
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/zfs/{zfs-2.0.7.ebuild => zfs-2.0.7-r1.ebuild} | 7 +++++++
 sys-fs/zfs/{zfs-2.1.4.ebuild => zfs-2.1.4-r1.ebuild} | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/sys-fs/zfs/zfs-2.0.7.ebuild b/sys-fs/zfs/zfs-2.0.7-r1.ebuild
similarity index 97%
rename from sys-fs/zfs/zfs-2.0.7.ebuild
rename to sys-fs/zfs/zfs-2.0.7-r1.ebuild
index 2a638aee9616..68d9116fd3de 100644
--- a/sys-fs/zfs/zfs-2.0.7.ebuild
+++ b/sys-fs/zfs/zfs-2.0.7-r1.ebuild
@@ -191,6 +191,13 @@ src_configure() {
        use custom-cflags || strip-flags
        use minimal || python_setup
 
+       # All the same issue:
+       # Segfaults w/ GCC 12 and 'zfs send'
+       # bug #856373
+       # https://github.com/openzfs/zfs/issues/13620
+       # https://github.com/openzfs/zfs/issues/13605
+       append-flags -fno-tree-vectorize
+
        local myconf=(
                --bindir="${EPREFIX}/bin"
                --enable-shared

diff --git a/sys-fs/zfs/zfs-2.1.4.ebuild b/sys-fs/zfs/zfs-2.1.4-r1.ebuild
similarity index 97%
rename from sys-fs/zfs/zfs-2.1.4.ebuild
rename to sys-fs/zfs/zfs-2.1.4-r1.ebuild
index 465412d2cee6..fb6aab2ca7e7 100644
--- a/sys-fs/zfs/zfs-2.1.4.ebuild
+++ b/sys-fs/zfs/zfs-2.1.4-r1.ebuild
@@ -184,6 +184,13 @@ src_configure() {
        use custom-cflags || strip-flags
        use minimal || python_setup
 
+       # All the same issue:
+       # Segfaults w/ GCC 12 and 'zfs send'
+       # bug #856373
+       # https://github.com/openzfs/zfs/issues/13620
+       # https://github.com/openzfs/zfs/issues/13605
+       append-flags -fno-tree-vectorize
+
        local myconf=(
                --bindir="${EPREFIX}/bin"
                --enable-shared

Reply via email to