Compare commits

...

3 Commits

Author SHA1 Message Date
362fd74a59
Fix undef ref for makedev
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-08-01 13:08:21 +03:00
2317c90061
Add missing patch
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-08-01 11:36:10 +03:00
2136105343
Fix compatiblity with glibc 2.26
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-08-01 11:34:23 +03:00
3 changed files with 31 additions and 1 deletions

24
glibc-sysmacros.patch Normal file
View File

@ -0,0 +1,24 @@
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
index 9427919..69df55d 100644
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -34,6 +34,7 @@
#include <stdio.h>
#include <stddef.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
diff --git a/squashfs-tools/unsquashfs.c b/squashfs-tools/unsquashfs.c
index 1323dd6..1059193 100644
--- a/squashfs-tools/unsquashfs.c
+++ b/squashfs-tools/unsquashfs.c
@@ -33,6 +33,7 @@
#include <sys/sysinfo.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <limits.h>

Binary file not shown.

View File

@ -1,7 +1,7 @@
Summary: Utility for the creation of squashfs filesystems
Name: squashfs-tools
Version: 4.3
Release: 17%{?dist}
Release: 17.1.riscv64%{?dist}
License: GPLv2+
Group: System Environment/Base
URL: http://squashfs.sourceforge.net/
@ -25,6 +25,8 @@ Patch2: 2gb.patch
Patch3: cve-2015-4645.patch
# Update formats to match changes in cve-2015-4645.patch
Patch4: local-cve-fix.patch
# Fix compatibility with glibc 2.26
Patch5: glibc-sysmacros.patch
BuildRequires: gcc
BuildRequires: zlib-devel
BuildRequires: xz-devel
@ -43,6 +45,7 @@ contains the utilities for manipulating squashfs filesystems.
%patch2 -p0
%patch3 -p1
%patch4 -p0
%patch5 -p1
%build
pushd squashfs-tools
@ -65,6 +68,9 @@ install -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/unsquashfs.1
%{_sbindir}/unsquashfs
%changelog
* Wed Aug 01 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 4.3-17.0.riscv64
- Fix compatibility with glibc 2.26
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.3-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild