summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/squashfs-tools/squashfs-tools/pid.patch40
-rw-r--r--meta/recipes-devtools/squashfs-tools/squashfs-tools/thread.patch33
-rw-r--r--meta/recipes-devtools/squashfs-tools/squashfs-tools_4.7.2.bb (renamed from meta/recipes-devtools/squashfs-tools/squashfs-tools_4.7.bb)6
3 files changed, 2 insertions, 77 deletions
diff --git a/meta/recipes-devtools/squashfs-tools/squashfs-tools/pid.patch b/meta/recipes-devtools/squashfs-tools/squashfs-tools/pid.patch
deleted file mode 100644
index a15b621124..0000000000
--- a/meta/recipes-devtools/squashfs-tools/squashfs-tools/pid.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From 05a895b3f996d1ac157d95b04980f5f047e7dbf7 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Fri, 6 Jun 2025 15:23:07 +0100
4Subject: [PATCH] print_pager: add missing includes
5
6When building with musl:
7
8 print_pager.h:33:25: error: unknown type name 'pid_t'
9 33 | extern void wait_to_die(pid_t process);
10 | ^~~~~
11 print_pager.h:34:25: error: unknown type name 'pid_t'
12 34 | extern FILE *exec_pager(pid_t *process);
13 | ^~~~~
14
15print_pager.h uses pid_t and FILE, so add the required #includes to
16ensure that these are defined.
17
18Upstream-Status: Submitted [https://github.com/plougher/squashfs-tools/pull/314]
19Signed-off-by: Ross Burton <ross.burton@arm.com>
20---
21 squashfs-tools/print_pager.h | 3 +++
22 1 file changed, 3 insertions(+)
23
24diff --git a/squashfs-tools/print_pager.h b/squashfs-tools/print_pager.h
25index c33d4d2e..f3e0da6c 100644
26--- a/squashfs-tools/print_pager.h
27+++ b/squashfs-tools/print_pager.h
28@@ -30,6 +30,9 @@
29 #define MORE_PAGER 2
30 #define UNKNOWN_PAGER 3
31
32+#include <stdio.h>
33+#include <sys/types.h>
34+
35 extern void wait_to_die(pid_t process);
36 extern FILE *exec_pager(pid_t *process);
37 extern int get_column_width();
38--
392.43.0
40
diff --git a/meta/recipes-devtools/squashfs-tools/squashfs-tools/thread.patch b/meta/recipes-devtools/squashfs-tools/squashfs-tools/thread.patch
deleted file mode 100644
index 01741639c0..0000000000
--- a/meta/recipes-devtools/squashfs-tools/squashfs-tools/thread.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From b6e9f4b62cc3e762ceeddc0fc099f7d65f7b7361 Mon Sep 17 00:00:00 2001
2From: Shiji Yang <yangshiji66@outlook.com>
3Date: Wed, 4 Jun 2025 19:53:39 +0800
4Subject: [PATCH] thread: add the missing pthread.h header
5
6Fix build error on macos:
7
8In file included from mksquashfs_help.c:35:
9./thread.h:46:39: error: unknown type name 'pthread_mutex_t'; did you mean 'pthread_attr_t'?
10 46 | extern void wait_thread_idle(int tid, pthread_mutex_t *mutex);
11 | ^~~~~~~~~~~~~~~
12 | pthread_attr_t
13
14Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
15
16Upstream-Status: Backport [b6e9f4b62cc3e762ceeddc0fc099f7d65f7b7361]
17Signed-off-by: Ross Burton <ross.burton@arm.com>
18---
19 squashfs-tools/thread.h | 1 +
20 1 file changed, 1 insertion(+)
21
22diff --git a/squashfs-tools/thread.h b/squashfs-tools/thread.h
23index 5a22fc43..e56a58cf 100644
24--- a/squashfs-tools/thread.h
25+++ b/squashfs-tools/thread.h
26@@ -22,6 +22,7 @@
27 *
28 * thread.h
29 */
30+#include <pthread.h>
31
32 #define TRUE 1
33 #define FALSE 0
diff --git a/meta/recipes-devtools/squashfs-tools/squashfs-tools_4.7.bb b/meta/recipes-devtools/squashfs-tools/squashfs-tools_4.7.2.bb
index 8006f80aee..8bca98f419 100644
--- a/meta/recipes-devtools/squashfs-tools/squashfs-tools_4.7.bb
+++ b/meta/recipes-devtools/squashfs-tools/squashfs-tools_4.7.2.bb
@@ -5,10 +5,8 @@ SECTION = "base"
5LICENSE = "GPL-2.0-only" 5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7 7
8SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https;branch=master;tag=${PV} \ 8SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https;branch=master;tag=${PV}"
9 file://pid.patch \ 9SRCREV = "99d23a31b471433c51e9c145aeba2ab1536e34df"
10 file://thread.patch"
11SRCREV = "2e87d42ed089dc31990d83eeb07437b9d085d6d1"
12 10
13UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))" 11UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(\d+(\.\d+)+))"
14 12