Skip to contentSkip to conversation

package/squashfs: bump to version 4.7

PATCH In review Thomas Petazzoni via buildroot 2 participants 6 messages Jun 23, 2025 – Jul 1, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/squashfs: bump to version 4.7

See https://github.com/plougher/squashfs-tools/releases/tag/4.7 for details:

1. Mksquashfs now reads files in parallel from the input directories
2. Rewritten and improved help system (Mksquashfs/Unsquashfs)
3. New options for building reproducible filesystems (Mksquash/Sqfstar)
4. Elimination of "fragment block stall" and -(not-)reproducible options
5. Other improvements for Mksquashfs/Sqfstar
6. Other improvements for Unsquashfs/Sqfscat
7. New environment variable SQFS_CMDLINE (Mksquashfs/Unsquashfs)

---
 package/squashfs/squashfs.hash | 4 ++--
 package/squashfs/squashfs.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/squashfs/squashfs.hash +2 -2
index c921d638bb..5593502836 100644
@@ -1,5 +1,5 @@
-# Locally computed
-sha256  94201754b36121a9f022a190c75f718441df15402df32c2b520ca331a107511c  squashfs-tools-4.6.1.tar.gz
+# From https://github.com/plougher/squashfs-tools/releases/tag/4.7
+sha256  f1605ef720aa0b23939a49ef4491f6e734333ccc4bda4324d330da647e105328  squashfs-tools-4.7.tar.gz
 
 # License files
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/squashfs/squashfs.mk +1 -1
index f2cb0ab25e..f3c72e068b 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SQUASHFS_VERSION = 4.6.1
+SQUASHFS_VERSION = 4.7
 SQUASHFS_SOURCE = squashfs-tools-$(SQUASHFS_VERSION).tar.gz
 SQUASHFS_SITE = https://github.com/plougher/squashfs-tools/releases/download/$(SQUASHFS_VERSION)
 SQUASHFS_LICENSE = GPL-2.0+
Signature · 6 lines
2.49.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Thomas,

thanks for looking at this update!

Am 23.06.25 um 23:55 schrieb Thomas Petazzoni via buildroot:

Quoted 11 lines

See https://github.com/plougher/squashfs-tools/releases/tag/4.7 for details:

1. Mksquashfs now reads files in parallel from the input directories
2. Rewritten and improved help system (Mksquashfs/Unsquashfs)
3. New options for building reproducible filesystems (Mksquash/Sqfstar)
4. Elimination of "fragment block stall" and -(not-)reproducible options
5. Other improvements for Mksquashfs/Sqfstar
6. Other improvements for Unsquashfs/Sqfscat
7. New environment variable SQFS_CMDLINE (Mksquashfs/Unsquashfs)

Quoted 1 line

Building fails with musl due to missing includes, upstream already has patches for that (both need to be applied):

https://github.com/plougher/squashfs-tools/commit/b6e9f4b62cc3e762ceeddc0fc099f7d65f7b7361
https://github.com/plougher/squashfs-tools/commit/05a895b3f996d1ac157d95b04980f5f047e7dbf7

I also noticed a bug that blocks excluding files >1407 KiB when building a squashfs image, which broke building a certain (intentionally broken) test image for me: https://github.com/plougher/squashfs-tools/issues/316
It's easy enough to work around by filtering the tar archive though, so I'm not sure if it needs to hold up the update.

Best regards,
Fiona

Quoted 22 lines
---
  package/squashfs/squashfs.hash | 4 ++--
  package/squashfs/squashfs.mk   | 2 +-
  2 files changed, 3 insertions(+), 3 deletions(-)
package/squashfs/squashfs.hash +2 -2
index c921d638bb..5593502836 100644
@@ -1,5 +1,5 @@
-# Locally computed
-sha256  94201754b36121a9f022a190c75f718441df15402df32c2b520ca331a107511c  squashfs-tools-4.6.1.tar.gz
+# From https://github.com/plougher/squashfs-tools/releases/tag/4.7
+sha256  f1605ef720aa0b23939a49ef4491f6e734333ccc4bda4324d330da647e105328  squashfs-tools-4.7.tar.gz
 
  # License files
  sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/squashfs/squashfs.mk +0 -0
index f2cb0ab25e..f3c72e068b 100644

package/squashfs/squashfs.mk line 10

Quoted 8 lines
package/squashfs/squashfs.mk +1 -1
@@ -4,7 +4,7 @@
  #
  ################################################################################
 
-SQUASHFS_VERSION = 4.6.1
+SQUASHFS_VERSION = 4.7
  SQUASHFS_SOURCE = squashfs-tools-$(SQUASHFS_VERSION).tar.gz
  SQUASHFS_SITE = https://github.com/plougher/squashfs-tools/releases/download/$(SQUASHFS_VERSION)
  SQUASHFS_LICENSE = GPL-2.0+

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
Quoted 12 lines · On Tue, 24 Jun 2025 14:10:18 +0200 Fiona Klute <[email protected]> wrote:

Am 23.06.25 um 23:55 schrieb Thomas Petazzoni via buildroot:

Quoted 11 lines

See https://github.com/plougher/squashfs-tools/releases/tag/4.7 for details:

1. Mksquashfs now reads files in parallel from the input directories
2. Rewritten and improved help system (Mksquashfs/Unsquashfs)
3. New options for building reproducible filesystems (Mksquash/Sqfstar)
4. Elimination of "fragment block stall" and -(not-)reproducible options
5. Other improvements for Mksquashfs/Sqfstar
6. Other improvements for Unsquashfs/Sqfscat
7. New environment variable SQFS_CMDLINE (Mksquashfs/Unsquashfs)

Quoted 7 lines
Quoted 1 line

Building fails with musl due to missing includes, upstream already has patches for that (both need to be applied):

https://github.com/plougher/squashfs-tools/commit/b6e9f4b62cc3e762ceeddc0fc099f7d65f7b7361
https://github.com/plougher/squashfs-tools/commit/05a895b3f996d1ac157d95b04980f5f047e7dbf7

Thanks for reporting this!

Quoted 5 lines

I also noticed a bug that blocks excluding files >1407 KiB when building a squashfs image, which broke building a certain (intentionally broken) test image for me: https://github.com/plougher/squashfs-tools/issues/316
It's easy enough to work around by filtering the tar archive though, so I'm not sure if it needs to hold up the update.

That seems pretty annoying. Let's wait for this to be fixed as well. Hopefully, they'll make a 4.7.1 release with the fixes.

Thanks again for the very useful feedback!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Thomas Petazzoni via buildroot
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

See https://github.com/plougher/squashfs-tools/releases/tag/4.7 for details:

1. Mksquashfs now reads files in parallel from the input directories
2. Rewritten and improved help system (Mksquashfs/Unsquashfs)
3. New options for building reproducible filesystems (Mksquash/Sqfstar)

I didn't look at the code, but is this something we could/should be using for BR2_REPRODUCIBLE builds?

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
Quoted 6 lines · On Mon, 30 Jun 2025 16:25:03 +0200 Peter Korsgaard <[email protected]> wrote:
Quoted 3 lines

1. Mksquashfs now reads files in parallel from the input directories
2. Rewritten and improved help system (Mksquashfs/Unsquashfs)
3. New options for building reproducible filesystems (Mksquash/Sqfstar)

I didn't look at the code, but is this something we could/should be using for BR2_REPRODUCIBLE builds?

So I did have a (admittedly very) quick look, and with BR2_REPRODUCIBLE=y and our current logic in Buildroot, we already had files date/time that were clearly "in the past" compared to the build, I believe somehow set to SOURCE_DATE_EPOCH. So it didn't feel like using those new options was really needed. But as you can see from the patch send time, it was 11:55 PM, I wanted to finish my Buildroot evening, and since I couldn't find an obvious reason to use those new options, I decided to send just the version bump as-is.

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Quoted 6 lines · On Mon, 30 Jun 2025 16:25:03 +0200 Peter Korsgaard <[email protected]> wrote:
Quoted 3 lines

1. Mksquashfs now reads files in parallel from the input directories
2. Rewritten and improved help system (Mksquashfs/Unsquashfs)
3. New options for building reproducible filesystems (Mksquash/Sqfstar)

I didn't look at the code, but is this something we could/should be using for BR2_REPRODUCIBLE builds?

Quoted 8 lines

So I did have a (admittedly very) quick look, and with BR2_REPRODUCIBLE=y and our current logic in Buildroot, we already had files date/time that were clearly "in the past" compared to the build, I believe somehow set to SOURCE_DATE_EPOCH. So it didn't feel like using those new options was really needed. But as you can see from the patch send time, it was 11:55 PM, I wanted to finish my Buildroot evening, and since I couldn't find an obvious reason to use those new options, I decided to send just the version bump as-is.

Heh, ok ;) I believe a squashfs file system also has a "creation time" timestamp, but maybe we are also handling that already?

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot