Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/squashfs-tools
diff options
context:
space:
mode:
Diffstat (limited to 'community/squashfs-tools')
-rw-r--r--community/squashfs-tools/PKGBUILD10
-rw-r--r--community/squashfs-tools/squashfs-tools-4.3-sysmacros.patch24
2 files changed, 34 insertions, 0 deletions
diff --git a/community/squashfs-tools/PKGBUILD b/community/squashfs-tools/PKGBUILD
new file mode 100644
index 00000000..df02d5af
--- /dev/null
+++ b/community/squashfs-tools/PKGBUILD
@@ -0,0 +1,10 @@
+# see FS#60439
+
+source+=(squashfs-tools-4.3-sysmacros.patch)
+sha512sums+=('ba228d0c8e86a6a07bab9992c2484d66b1b414eb7509e0705d1bf2721486e2e4f39ed0902e257ea592107bfa8b749ee95a8360919939913ad97130277171b9a0')
+
+prepare() {
+ cd "$srcdir"/squashfs${pkgver}
+ patch -p1 < ../squashfs-tools-4.3-sysmacros.patch
+}
+
diff --git a/community/squashfs-tools/squashfs-tools-4.3-sysmacros.patch b/community/squashfs-tools/squashfs-tools-4.3-sysmacros.patch
new file mode 100644
index 00000000..14246b4a
--- /dev/null
+++ b/community/squashfs-tools/squashfs-tools-4.3-sysmacros.patch
@@ -0,0 +1,24 @@
+diff -rauN squashfs4.3/squashfs-tools/mksquashfs.c squashfs4.3-sysmacros-patch/squashfs-tools/mksquashfs.c
+--- squashfs4.3/squashfs-tools/mksquashfs.c 2014-05-13 00:18:20.000000000 +0200
++++ squashfs4.3-sysmacros-patch/squashfs-tools/mksquashfs.c 2018-10-26 21:25:02.550480701 +0200
+@@ -59,6 +59,7 @@
+ #else
+ #include <endian.h>
+ #include <sys/sysinfo.h>
++#include <sys/sysmacros.h>
+ #endif
+
+ #include "squashfs_fs.h"
+diff -rauN squashfs4.3/squashfs-tools/unsquashfs.c squashfs4.3-sysmacros-patch/squashfs-tools/unsquashfs.c
+--- squashfs4.3/squashfs-tools/unsquashfs.c 2014-05-13 00:18:35.000000000 +0200
++++ squashfs4.3-sysmacros-patch/squashfs-tools/unsquashfs.c 2018-10-26 21:25:27.830242229 +0200
+@@ -37,6 +37,9 @@
+ #include <sys/resource.h>
+ #include <limits.h>
+ #include <ctype.h>
++#ifdef linux
++#include <sys/sysmacros.h>
++#endif
+
+ struct cache *fragment_cache, *data_cache;
+ struct queue *to_reader, *to_inflate, *to_writer, *from_writer;