import squashfs-tools-4.3-20.el8

This commit is contained in:
CentOS Sources 2021-05-18 02:54:12 -04:00 committed by Andrew Lukoshko
parent 07a6f92e1b
commit 9a37f1d52e
3 changed files with 45 additions and 1 deletions

13
SOURCES/bz1754815.patch Normal file
View File

@ -0,0 +1,13 @@
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -2447,8 +2447,8 @@ void *frag_deflator(void *arg)
write_buffer->block = bytes;
bytes += compressed_size;
fragments_outstanding --;
- pthread_mutex_unlock(&fragment_mutex);
queue_put(to_writer, write_buffer);
+ pthread_mutex_unlock(&fragment_mutex);
TRACE("Writing fragment %lld, uncompressed size %d, "
"compressed size %d\n", file_buffer->block,
file_buffer->size, compressed_size);

20
SOURCES/bz1895017.patch Normal file
View File

@ -0,0 +1,20 @@
--- a/squashfs-tools/unsquashfs.c 2021-01-14 14:34:49.658184361 -0600
+++ b/squashfs-tools/unsquashfs.c 2021-01-14 14:50:19.604100949 -0600
@@ -822,8 +822,6 @@ int set_attributes(char *pathname, int m
{
struct utimbuf times = { time, time };
- write_xattr(pathname, xattr);
-
if(utime(pathname, &times) == -1) {
ERROR("set_attributes: failed to set time on %s, because %s\n",
pathname, strerror(errno));
@@ -846,6 +844,8 @@ int set_attributes(char *pathname, int m
return FALSE;
}
+ write_xattr(pathname, xattr);
+
return TRUE;
}

View File

@ -1,7 +1,7 @@
Summary: Utility for the creation of squashfs filesystems
Name: squashfs-tools
Version: 4.3
Release: 19%{?dist}
Release: 20%{?dist}
License: GPLv2+
Group: System Environment/Base
URL: http://squashfs.sourceforge.net/
@ -33,6 +33,10 @@ Patch6: bz1602698.patch
Patch7: bz1624173.patch
# rhbz 1716278
Patch8: bz1716278.patch
# rhbz 1754815
Patch9: bz1754815.patch
# rhbz 1895017
Patch10: bz1895017.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: zlib-devel
@ -56,6 +60,8 @@ contains the utilities for manipulating squashfs filesystems.
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%build
pushd squashfs-tools
@ -82,6 +88,11 @@ rm -rf %{buildroot}
%{_sbindir}/unsquashfs
%changelog
* Thu Feb 25 2021 Abhi Das <adas@redhat.com> - 4.3-20
- rhbz#1895017 - unsquashfs does not preserve file capabilities
rhbz#1754815 - Kdump: Building kdump initramfs img may fail with 'dracut: Failed making squash image' occasionally
Resolves: rhbz#1895017, rhbz#1754815
* Tue Aug 06 2019 Abhi Das <adas@redhat.com> - 4.3-19
- rhbz#1602698 - Fix coverity issues
rhbz#1624173 - Fix annocheck failures