From 23b679cf9b2d1a6b346986f6a5b47c8ac88eac6e Mon Sep 17 00:00:00 2001 From: Bruno Wolff III Date: Feb 09 2020 04:14:33 +0000 Subject: Fix a duplicate definition flagged by gcc10 This git fixed a couple of weeks ago upstream, the same way. --- diff --git a/gcc10.patch b/gcc10.patch new file mode 100644 index 0000000..4b80ed5 --- /dev/null +++ b/gcc10.patch @@ -0,0 +1,11 @@ +--- squashfs-tools/mksquashfs.h.orig 2014-05-09 23:54:13.000000000 -0500 ++++ squashfs-tools/mksquashfs.h 2020-02-08 22:08:33.275388914 -0600 +@@ -132,7 +132,7 @@ + #define BLOCK_OFFSET 2 + + extern struct cache *reader_buffer, *fragment_buffer, *reserve_cache; +-struct cache *bwriter_buffer, *fwriter_buffer; ++extern struct cache *bwriter_buffer, *fwriter_buffer; + extern struct queue *to_reader, *to_deflate, *to_writer, *from_writer, + *to_frag, *locked_fragment, *to_process_frag; + extern struct append_file **file_mapping; diff --git a/squashfs-tools.spec b/squashfs-tools.spec index e52c529..4dff2a6 100644 --- a/squashfs-tools.spec +++ b/squashfs-tools.spec @@ -1,7 +1,7 @@ Summary: Utility for the creation of squashfs filesystems Name: squashfs-tools Version: 4.3 -Release: 24%{?dist} +Release: 25%{?dist} License: GPLv2+ URL: http://squashfs.sourceforge.net/ Source0: http://downloads.sourceforge.net/squashfs/squashfs%{version}.tar.gz @@ -31,6 +31,9 @@ Patch6: 0001-squashfs-tools-Add-zstd-support.patch # create_dir_entry needs a qualifier to ensure a copy is emitted if it # is not inlined to every caller Patch7: inline.patch +# gcc10 tighter checking caught a problem. It was fixed upstream +# a couple of weeks ago. +Patch8: gcc10.patch BuildRequires: gcc BuildRequires: zlib-devel @@ -54,6 +57,7 @@ contains the utilities for manipulating squashfs filesystems. %patch5 -p0 %patch6 -p1 %patch7 -p1 +%patch8 -p0 %build %set_build_flags @@ -77,6 +81,9 @@ install -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/unsquashfs.1 %{_sbindir}/unsquashfs %changelog +* Sat Feb 08 2020 Bruno Wolff III - 4.3-25 +- Fix duplicate definition flagged by gcc10 + * Fri Jan 31 2020 Fedora Release Engineering - 4.3-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild