This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/flatpak.git#fb7919120de8cb945548e169ae601eb55c4f3bb1
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From adbd286cef9a4c4bed76eb95337d5d6f5e42dd45 Mon Sep 17 00:00:00 2001
|
|
From: Kalev Lember <klember@redhat.com>
|
|
Date: Mon, 5 Apr 2021 10:40:26 +0200
|
|
Subject: [PATCH] OCI: Switch to pax format for tar archives
|
|
|
|
For reasons unknown, libarchive appears to generate broken gnutar format
|
|
tar archives when the archive contains files that are larger than 2 GB.
|
|
This commit switches to the pax format to work this around.
|
|
|
|
This should be a better default as it also removes 256 char filename
|
|
length limitation and matches what other libraries are doing, e.g.
|
|
Python 3.8 switched to the pax format by default as well.
|
|
|
|
See https://pagure.io/fedora-infrastructure/issue/9840
|
|
---
|
|
common/flatpak-oci-registry.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/common/flatpak-oci-registry.c b/common/flatpak-oci-registry.c
|
|
index 6aa68c27..2a7f3ba1 100644
|
|
--- a/common/flatpak-oci-registry.c
|
|
+++ b/common/flatpak-oci-registry.c
|
|
@@ -1476,7 +1476,7 @@ flatpak_oci_registry_write_layer (FlatpakOciRegistry *self,
|
|
}
|
|
|
|
a = archive_write_new ();
|
|
- if (archive_write_set_format_gnutar (a) != ARCHIVE_OK ||
|
|
+ if (archive_write_set_format_pax (a) != ARCHIVE_OK ||
|
|
archive_write_add_filter_none (a) != ARCHIVE_OK)
|
|
{
|
|
propagate_libarchive_error (error, a);
|
|
--
|
|
2.30.2
|
|
|