squashfs: bump version
The EXTRA_CFLAGS patch is now upstream, but we need a fix for !gzip builds instead. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
764d844fbc
commit
313c3d0f39
|
@ -11,7 +11,7 @@ ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y)
|
||||||
ROOTFS_SQUASHFS_ARGS += -comp lzo
|
ROOTFS_SQUASHFS_ARGS += -comp lzo
|
||||||
else
|
else
|
||||||
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y)
|
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y)
|
||||||
ROOTFS_SQUASHFS_ARGS += -comp lzma
|
ROOTFS_SQUASHFS_ARGS += -comp xz
|
||||||
else
|
else
|
||||||
ROOTFS_SQUASHFS_ARGS += -comp gzip
|
ROOTFS_SQUASHFS_ARGS += -comp gzip
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,102 +0,0 @@
|
||||||
[PATCH]: allow custom EXTRA_CFLAGS/LDFLAGS/*_SUPPORT on the make cmd line
|
|
||||||
|
|
||||||
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
|
||||||
---
|
|
||||||
squashfs-tools/Makefile | 26 +++++++++++++-------------
|
|
||||||
1 file changed, 13 insertions(+), 13 deletions(-)
|
|
||||||
|
|
||||||
Index: squashfs4.1/squashfs-tools/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- squashfs4.1.orig/squashfs-tools/Makefile
|
|
||||||
+++ squashfs4.1/squashfs-tools/Makefile
|
|
||||||
@@ -87,11 +87,11 @@ MKSQUASHFS_OBJS = mksquashfs.o read_fs.o
|
|
||||||
UNSQUASHFS_OBJS = unsquashfs.o unsquash-1.o unsquash-2.o unsquash-3.o \
|
|
||||||
unsquash-4.o swap.o compressor.o
|
|
||||||
|
|
||||||
-CFLAGS = $(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
|
|
||||||
- -D_GNU_SOURCE -DCOMP_DEFAULT=\"$(COMP_DEFAULT)\" -O2 -Wall
|
|
||||||
+CFLAGS = $(EXTRA_CFLAGS) $(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
|
|
||||||
+ -D_GNU_SOURCE -DCOMP_DEFAULT=\"$(COMP_DEFAULT)\" -Wall
|
|
||||||
|
|
||||||
LIBS =
|
|
||||||
-ifdef GZIP_SUPPORT
|
|
||||||
+ifeq ($(GZIP_SUPPORT),1)
|
|
||||||
CFLAGS += -DGZIP_SUPPORT
|
|
||||||
MKSQUASHFS_OBJS += gzip_wrapper.o
|
|
||||||
UNSQUASHFS_OBJS += gzip_wrapper.o
|
|
||||||
@@ -99,7 +99,7 @@ LIBS += -lz
|
|
||||||
COMPRESSORS += gzip
|
|
||||||
endif
|
|
||||||
|
|
||||||
-ifdef LZMA_SUPPORT
|
|
||||||
+ifeq ($(LZMA_SUPPORT),1)
|
|
||||||
LZMA_OBJS = $(LZMA_DIR)/C/Alloc.o $(LZMA_DIR)/C/LzFind.o \
|
|
||||||
$(LZMA_DIR)/C/LzmaDec.o $(LZMA_DIR)/C/LzmaEnc.o $(LZMA_DIR)/C/LzmaLib.o
|
|
||||||
INCLUDEDIR += -I$(LZMA_DIR)/C
|
|
||||||
@@ -109,7 +109,7 @@ UNSQUASHFS_OBJS += lzma_wrapper.o $(LZMA
|
|
||||||
COMPRESSORS += lzma
|
|
||||||
endif
|
|
||||||
|
|
||||||
-ifdef XZ_SUPPORT
|
|
||||||
+ifeq ($(XZ_SUPPORT),1)
|
|
||||||
CFLAGS += -DLZMA_SUPPORT
|
|
||||||
MKSQUASHFS_OBJS += xz_wrapper.o
|
|
||||||
UNSQUASHFS_OBJS += xz_wrapper.o
|
|
||||||
@@ -117,7 +117,7 @@ LIBS += -llzma
|
|
||||||
COMPRESSORS += lzma
|
|
||||||
endif
|
|
||||||
|
|
||||||
-ifdef LZO_SUPPORT
|
|
||||||
+ifeq ($(LZO_SUPPORT),1)
|
|
||||||
CFLAGS += -DLZO_SUPPORT
|
|
||||||
ifdef LZO_DIR
|
|
||||||
INCLUDEDIR += -I$(LZO_DIR)/include
|
|
||||||
@@ -129,8 +129,8 @@ LIBS += $(LZO_LIBDIR) -llzo2
|
|
||||||
COMPRESSORS += lzo
|
|
||||||
endif
|
|
||||||
|
|
||||||
-ifdef XATTR_SUPPORT
|
|
||||||
-ifdef XATTR_DEFAULT
|
|
||||||
+ifeq ($(XATTR_SUPPORT),1)
|
|
||||||
+ifeq ($(XATTR_DEFAULT),1)
|
|
||||||
CFLAGS += -DXATTR_SUPPORT -DXATTR_DEFAULT
|
|
||||||
else
|
|
||||||
CFLAGS += -DXATTR_SUPPORT
|
|
||||||
@@ -142,7 +142,7 @@ endif
|
|
||||||
#
|
|
||||||
# If LZMA_SUPPORT is specified then LZO_DIR must be specified too
|
|
||||||
#
|
|
||||||
-ifdef LZMA_SUPPORT
|
|
||||||
+ifeq ($(LZMA_SUPPORT),1)
|
|
||||||
ifndef LZMA_DIR
|
|
||||||
$(error "LZMA_SUPPORT requires LZMA_DIR to be also defined")
|
|
||||||
endif
|
|
||||||
@@ -151,8 +151,8 @@ endif
|
|
||||||
#
|
|
||||||
# Both XZ_SUPPORT and LZMA_SUPPORT cannot be specified
|
|
||||||
#
|
|
||||||
-ifdef XZ_SUPPORT
|
|
||||||
-ifdef LZMA_SUPPORT
|
|
||||||
+ifeq ($(XZ_SUPPORT),1)
|
|
||||||
+ifeq ($(LZMA_SUPPORT),1)
|
|
||||||
$(error "Both XZ_SUPPORT and LZMA_SUPPORT cannot be specified")
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
@@ -175,7 +175,7 @@ endif
|
|
||||||
all: mksquashfs unsquashfs
|
|
||||||
|
|
||||||
mksquashfs: $(MKSQUASHFS_OBJS)
|
|
||||||
- $(CC) $(MKSQUASHFS_OBJS) -lpthread -lm $(LIBS) -o $@
|
|
||||||
+ $(CC) $(EXTRA_LDFLAGS) $(MKSQUASHFS_OBJS) -lpthread -lm $(LIBS) -o $@
|
|
||||||
|
|
||||||
mksquashfs.o: mksquashfs.c squashfs_fs.h mksquashfs.h global.h sort.h \
|
|
||||||
squashfs_swap.h xattr.h
|
|
||||||
@@ -195,7 +195,7 @@ xattr.o: xattr.h
|
|
||||||
read_xattrs.o: xattr.h
|
|
||||||
|
|
||||||
unsquashfs: $(UNSQUASHFS_OBJS)
|
|
||||||
- $(CC) $(UNSQUASHFS_OBJS) -lpthread -lm $(LIBS) -o $@
|
|
||||||
+ $(CC) $(EXTRA_LDFLAGS) $(UNSQUASHFS_OBJS) -lpthread -lm $(LIBS) -o $@
|
|
||||||
|
|
||||||
unsquashfs.o: unsquashfs.h unsquashfs.c squashfs_fs.h squashfs_swap.h \
|
|
||||||
squashfs_compat.h global.h xattr.h
|
|
26
package/squashfs/squashfs-4.2-no-gzip-fix.patch
Normal file
26
package/squashfs/squashfs-4.2-no-gzip-fix.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
[PATCH] squashfs-tools: unbreak builds without gzip support
|
||||||
|
|
||||||
|
The initialization of gzip_comp_ops if gzip support is disabled is
|
||||||
|
missing 2 null pointers, causing the id element to be initialized to 0
|
||||||
|
rather than ZLIB_COMPRESSION, which breaks all the compressor functions
|
||||||
|
as they loop until finding the correct element or id = 0.
|
||||||
|
|
||||||
|
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
||||||
|
---
|
||||||
|
squashfs-tools/compressor.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
Index: squashfs4.2/squashfs-tools/compressor.c
|
||||||
|
===================================================================
|
||||||
|
--- squashfs4.2.orig/squashfs-tools/compressor.c
|
||||||
|
+++ squashfs4.2/squashfs-tools/compressor.c
|
||||||
|
@@ -27,7 +27,8 @@
|
||||||
|
|
||||||
|
#ifndef GZIP_SUPPORT
|
||||||
|
static struct compressor gzip_comp_ops = {
|
||||||
|
- NULL, NULL, NULL, NULL, NULL, NULL, ZLIB_COMPRESSION, "gzip", 0
|
||||||
|
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ZLIB_COMPRESSION,
|
||||||
|
+ "gzip", 0
|
||||||
|
};
|
||||||
|
#else
|
||||||
|
extern struct compressor gzip_comp_ops;
|
|
@ -1,4 +1,4 @@
|
||||||
SQUASHFS_VERSION=4.1
|
SQUASHFS_VERSION=4.2
|
||||||
SQUASHFS_SOURCE=squashfs$(SQUASHFS_VERSION).tar.gz
|
SQUASHFS_SOURCE=squashfs$(SQUASHFS_VERSION).tar.gz
|
||||||
SQUASHFS_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/squashfs
|
SQUASHFS_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/squashfs
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ SQUASHFS_MAKE_ARGS = XATTR_SUPPORT=0
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_SQUASHFS_LZMA),y)
|
ifeq ($(BR2_PACKAGE_SQUASHFS_LZMA),y)
|
||||||
SQUASHFS_DEPENDENCIES += xz
|
SQUASHFS_DEPENDENCIES += xz
|
||||||
SQUASHFS_MAKE_ARGS += XZ_SUPPORT=1 COMP_DEFAULT=lzma
|
SQUASHFS_MAKE_ARGS += XZ_SUPPORT=1 COMP_DEFAULT=xz
|
||||||
else
|
else
|
||||||
SQUASHFS_MAKE_ARGS += XZ_SUPPORT=0
|
SQUASHFS_MAKE_ARGS += XZ_SUPPORT=0
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user