diff options
| -rw-r--r-- | meta/recipes-devtools/squashfs-tools/squashfs-tools/fix-compat.patch | 46 | ||||
| -rw-r--r-- | meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb | 3 |
2 files changed, 3 insertions, 46 deletions
diff --git a/meta/recipes-devtools/squashfs-tools/squashfs-tools/fix-compat.patch b/meta/recipes-devtools/squashfs-tools/squashfs-tools/fix-compat.patch index 0ce7b4e8ce..87c1e8cac0 100644 --- a/meta/recipes-devtools/squashfs-tools/squashfs-tools/fix-compat.patch +++ b/meta/recipes-devtools/squashfs-tools/squashfs-tools/fix-compat.patch | |||
| @@ -1,39 +1,8 @@ | |||
| 1 | Define FNM_EXTMATCH if not defined its glibc specific define | ||
| 2 | include missing sys/stat.h for stat* function declarations | 1 | include missing sys/stat.h for stat* function declarations |
| 3 | 2 | ||
| 4 | Upstream-Status: Pending | 3 | Upstream-Status: Pending |
| 5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 6 | 5 | ||
| 7 | Index: squashfs-tools/action.c | ||
| 8 | =================================================================== | ||
| 9 | --- squashfs-tools.orig/action.c | ||
| 10 | +++ squashfs-tools/action.c | ||
| 11 | @@ -44,6 +44,10 @@ | ||
| 12 | #include "action.h" | ||
| 13 | #include "error.h" | ||
| 14 | |||
| 15 | +#if !defined(FNM_EXTMATCH) | ||
| 16 | +#define FNM_EXTMATCH 0 | ||
| 17 | +#endif | ||
| 18 | + | ||
| 19 | /* | ||
| 20 | * code to parse actions | ||
| 21 | */ | ||
| 22 | Index: squashfs-tools/mksquashfs.c | ||
| 23 | =================================================================== | ||
| 24 | --- squashfs-tools.orig/mksquashfs.c | ||
| 25 | +++ squashfs-tools/mksquashfs.c | ||
| 26 | @@ -1261,6 +1261,10 @@ void write_dir(squashfs_inode *inode, st | ||
| 27 | dir_size + 3, directory_block, directory_offset, NULL, NULL, | ||
| 28 | dir, 0); | ||
| 29 | |||
| 30 | +#if !defined(FNM_EXTMATCH) | ||
| 31 | +#define FNM_EXTMATCH 0 | ||
| 32 | +#endif | ||
| 33 | + | ||
| 34 | #ifdef SQUASHFS_TRACE | ||
| 35 | { | ||
| 36 | unsigned char *dirp; | ||
| 37 | Index: squashfs-tools/pseudo.c | 6 | Index: squashfs-tools/pseudo.c |
| 38 | =================================================================== | 7 | =================================================================== |
| 39 | --- squashfs-tools.orig/pseudo.c | 8 | --- squashfs-tools.orig/pseudo.c |
| @@ -46,18 +15,3 @@ Index: squashfs-tools/pseudo.c | |||
| 46 | #include <ctype.h> | 15 | #include <ctype.h> |
| 47 | 16 | ||
| 48 | #include "pseudo.h" | 17 | #include "pseudo.h" |
| 49 | Index: squashfs-tools/unsquashfs.c | ||
| 50 | =================================================================== | ||
| 51 | --- squashfs-tools.orig/unsquashfs.c | ||
| 52 | +++ squashfs-tools/unsquashfs.c | ||
| 53 | @@ -42,6 +42,10 @@ | ||
| 54 | #include <sys/sysmacros.h> | ||
| 55 | #endif | ||
| 56 | |||
| 57 | +#ifndef FNM_EXTMATCH | ||
| 58 | +#define FNM_EXTMATCH 0 | ||
| 59 | +#endif | ||
| 60 | + | ||
| 61 | struct cache *fragment_cache, *data_cache; | ||
| 62 | struct queue *to_reader, *to_inflate, *to_writer, *from_writer; | ||
| 63 | pthread_t *thread, *inflator_thread; | ||
diff --git a/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb b/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb index 5a8b5f77bd..dc1568a77c 100644 --- a/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb +++ b/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb | |||
| @@ -19,6 +19,9 @@ SRC_URI[lzma.sha256sum] = "c935fd04dd8e0e8c688a3078f3675d699679a90be81c12686837e | |||
| 19 | 19 | ||
| 20 | S = "${WORKDIR}/git/squashfs-tools" | 20 | S = "${WORKDIR}/git/squashfs-tools" |
| 21 | 21 | ||
| 22 | # needs FNM_EXTMATCH | ||
| 23 | COMPATIBLE_HOST_libc-musl = 'null' | ||
| 24 | |||
| 22 | EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS}" | 25 | EXTRA_OEMAKE = "${PACKAGECONFIG_CONFARGS}" |
| 23 | 26 | ||
| 24 | PACKAGECONFIG ??= "gzip xz lzo lz4 lzma xattr" | 27 | PACKAGECONFIG ??= "gzip xz lzo lz4 lzma xattr" |
