diff -Nru zfs-fuse-0.7.0/debian/changelog zfs-fuse-0.7.0/debian/changelog --- zfs-fuse-0.7.0/debian/changelog 2021-12-03 10:57:18.000000000 +0000 +++ zfs-fuse-0.7.0/debian/changelog 2021-12-08 12:29:55.000000000 +0000 @@ -1,3 +1,9 @@ +zfs-fuse (0.7.0-22ubuntu1) jammy; urgency=medium + + * Add debian/patches/more-glibc-fixes.patch and fix the package from FTBFS. + + -- Ɓukasz 'sil2100' Zemczak Wed, 08 Dec 2021 13:29:55 +0100 + zfs-fuse (0.7.0-22build1) jammy; urgency=medium * No-change rebuild against openssl3 diff -Nru zfs-fuse-0.7.0/debian/control zfs-fuse-0.7.0/debian/control --- zfs-fuse-0.7.0/debian/control 2021-08-21 17:39:54.000000000 +0000 +++ zfs-fuse-0.7.0/debian/control 2021-12-08 12:29:55.000000000 +0000 @@ -1,7 +1,8 @@ Source: zfs-fuse Section: otherosfs Priority: optional -Maintainer: Debian QA Group +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian QA Group Build-Depends: debhelper-compat (= 12), libaio-dev, libattr1-dev, diff -Nru zfs-fuse-0.7.0/debian/patches/more-glibc-fixes.patch zfs-fuse-0.7.0/debian/patches/more-glibc-fixes.patch --- zfs-fuse-0.7.0/debian/patches/more-glibc-fixes.patch 1970-01-01 00:00:00.000000000 +0000 +++ zfs-fuse-0.7.0/debian/patches/more-glibc-fixes.patch 2021-12-08 12:29:48.000000000 +0000 @@ -0,0 +1,39 @@ +Description: Fix build failure with newer glibc + Currently the package FTBFS because of errors re: the deprecated __malloc_hook + etc. usage. The fix is basically taken from 'upstream' - I mention 'upstream' + as right now it's not really clear which repository can be considered upstream + for this project. +Origin: upstream, https://github.com/gordan-bobic/zfs-fuse/commit/9d554eb82861d449f5e86aa6c272da6dd91377a8 + +--- a/src/lib/libumem/malloc.c ++++ b/src/lib/libumem/malloc.c +@@ -441,29 +441,9 @@ + return (buf); + } + +-#ifdef __GLIBC__ +-static void __attribute__((constructor)) umem_malloc_init_hook(void) +-{ +- if (__malloc_hook != umem_malloc_hook) { +- umem_startup(NULL, 0, 0, NULL, NULL); +- __malloc_hook = umem_malloc_hook; +- __free_hook = umem_free_hook; +- __realloc_hook = umem_realloc_hook; +- __memalign_hook = umem_memalign_hook; +- } +-} +- +-#if __GLIBC_PREREQ(2, 14) +-void (* __volatile __malloc_initialize_hook)(void) = umem_malloc_init_hook; +-#else +-void (* __malloc_initialize_hook)(void) = umem_malloc_init_hook; +-#endif +- +-#else + void __attribute__((constructor)) + __malloc_umem_init (void) + { + umem_startup(NULL, 0, 0, NULL, NULL); + } +-#endif + diff -Nru zfs-fuse-0.7.0/debian/patches/series zfs-fuse-0.7.0/debian/patches/series --- zfs-fuse-0.7.0/debian/patches/series 2021-08-21 17:39:34.000000000 +0000 +++ zfs-fuse-0.7.0/debian/patches/series 2021-12-08 12:25:55.000000000 +0000 @@ -20,3 +20,4 @@ fix-scons-use-python3-print.patch gcc10_fixes.patch glibc-2.32-compat.patch +more-glibc-fixes.patch