On Mon, Apr 29, 2024 at 11:12:54AM +0200, Johannes Schauer Marin Rodrigues 
wrote:
> Source: libarchive
> Version: 3.7.2-2
> Severity: normal
> X-Debbugs-Cc: debian-m...@lists.debian.org, ty...@mit.edu
> Control: affects -1 src:e2fsprogs
> 
> the upload of e2fsprogs 1.47.1~rc1-1 to unstable yesterday uses a new
> feature where libarchive is used to create filesystem images from
> tarballs. This works on all architectures (main as well as ports) except
> on mips64el:
> 
> https://buildd.debian.org/status/package.php?p=e2fsprogs
> 
> I attached a minimal reproducer.

Thanks Johannes for doing the root cause analysis and coming up with
the minimal reproducer!

Please note that I am preparing to upload a new release of e2fsprogs
with qthe following workaround (see attached) so that e2fsprogs will
at least build on mips64el instead of FTBFS due to the rergression
test failure.

With this workaround, attempts to run mke2fs -d foo.tar will fail (but
only on mips64el):

(sid_mips64el-dchroot)tytso@eberlin:~/e2fsprogs/e2fsprogs$ 
./debian/BUILD-STD/misc/mke2fs -t ext4 -d foo.tar -Fq foo.img 1G
__populate_fs_from_tar: you need to compile e2fsprogs with libarchive to be 
able to process tarballs
mke2fs: Operation not permitted while populating file system

The build log which shows the failure without this work around can be
found here:

https://buildd.debian.org/status/fetch.php?pkg=e2fsprogs&arch=mips64el&ver=1.47.1%7Erc1-1&stamp=1714294103&raw=0

Cheers,

                                                - Ted


commit 018cd6e9a659917ac1374775f5a60b1cf0be182c
Author: Theodore Ts'o <ty...@mit.edu>
Date:   Mon Apr 29 16:31:14 2024 -0400

    debian: don't build with libarchive on mips64el
    
    The libarchive functionality in "mke2fs -d foo.tar" is breaking the
    regression test[1].  Since this is working everywhere _except_
    mips64el, as a short-term workaround disable libarchive support on
    this platform until it can be fixed.
    
    [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070042
    
    Signed-off-by: Theodore Ts'o <ty...@mit.edu>

diff --git a/debian/rules b/debian/rules
index 6e98d9150..12dd56acc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,6 +61,11 @@ CC ?= $(DEB_HOST_GNU_TYPE)-gcc
 COMMON_CONF_FLAGS += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
 endif
 
+# work around Debian Bug #1070042
+ifeq ($(DEB_HOST_ARCH),mips64el)
+COMMON_CONF_FLAGS += --without-libarchive
+endif
+
 %:
        dh $@ -B${stdbuilddir}
 

Reply via email to