diff options
| author | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-08-21 22:47:55 +0000 |
|---|---|---|
| committer | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-08-21 22:47:55 +0000 |
| commit | e6f45d8772363d0730cdf030d307bdbb23a1876c (patch) | |
| tree | 0be43aa4a700132c1dbaad7d4168276d8dcc79b3 /squashfs-tools | |
| parent | 6f75fa6a85521ffd6ff74c9cff6c9de51e6960bc (diff) | |
| download | alicelinux-e6f45d8772363d0730cdf030d307bdbb23a1876c.tar.gz alicelinux-e6f45d8772363d0730cdf030d307bdbb23a1876c.zip | |
Woodpecker CI 843dc9355d70385c9345f1d42ba286275e3e433e [SKIP CI]
Diffstat (limited to 'squashfs-tools')
| -rw-r--r-- | squashfs-tools/.checksum | 3 | ||||
| -rw-r--r-- | squashfs-tools/0002-generate-manpages-Workaround-busybox-sed.patch | 105 | ||||
| -rw-r--r-- | squashfs-tools/abuild | 5 | ||||
| -rw-r--r-- | squashfs-tools/depends | 1 |
4 files changed, 111 insertions, 3 deletions
diff --git a/squashfs-tools/.checksum b/squashfs-tools/.checksum index cabfc4ad..3ca60ba5 100644 --- a/squashfs-tools/.checksum +++ b/squashfs-tools/.checksum @@ -1 +1,2 @@ -c0da71730793c5d8b6bbcbb170a75c804191f90048254203007da06bf9f0c53c squashfs-tools-4.6.1.tar.gz +528027175c87c86cf8432405313a3219dcc89c22ea32cbada17fd3646594a5fa 0002-generate-manpages-Workaround-busybox-sed.patch +388f328ead5b6f0a8401adeeb16f71fdcff21304b860d2f627c610ad42cbbd6e squashfs-tools-4.7.2.tar.gz diff --git a/squashfs-tools/0002-generate-manpages-Workaround-busybox-sed.patch b/squashfs-tools/0002-generate-manpages-Workaround-busybox-sed.patch new file mode 100644 index 00000000..a2ce7f04 --- /dev/null +++ b/squashfs-tools/0002-generate-manpages-Workaround-busybox-sed.patch @@ -0,0 +1,105 @@ +From 7e7a26b1f975396c36351ea661efc8b06777cb42 Mon Sep 17 00:00:00 2001 +From: Yao Zi <ziyao@disroot.org> +Date: Mon, 9 Jun 2025 11:56:45 +0000 +Subject: [PATCH] generate-manpages: Workaround busybox sed + +Busybox SED doesn't support \U in replacement pattern, which is used to +turning option arugments into uppercase in manpage-generation scripts. + +Let's remove the sed-compatibility check and simply don't do the +case-conversion. A less well-formatted documentation is better than +nothing. + +Signed-off-by: Yao Zi <ziyao@disroot.org> +--- + squashfs-tools/generate-manpages/functions.sh | 26 +------------------ + .../generate-manpages/mksquashfs-manpage.sh | 5 ---- + .../generate-manpages/sqfscat-manpage.sh | 5 ---- + .../generate-manpages/unsquashfs-manpage.sh | 5 ---- + 4 files changed, 1 insertion(+), 40 deletions(-) + +diff --git a/squashfs-tools/generate-manpages/functions.sh b/squashfs-tools/generate-manpages/functions.sh +index 5e31d9cdc32c..efbc00000b85 100755 +--- a/squashfs-tools/generate-manpages/functions.sh ++++ b/squashfs-tools/generate-manpages/functions.sh +@@ -53,28 +53,4 @@ if ! which echo > /dev/null 2>&1; then + fi + + ECHO=$(which echo) +- +-# The manpage generation scripts rely on sed being GNU sed. Check whether +-# 'sed' looks like GNU sed, and if not try gsed which is often what GNU sed is +-# named on BSD systems. +-# +-# If SED has been already defined on the command line then use that, but, +-# check that it looks like GNU sed too. +-if [ -n "${SED}" ]; then +- if ! check_sed "${SED}"; then +- error "$0: SED set to ${SED}, but this doesn't seem to be GNU sed!" +- error "$0: Fix variable or install GNU sed before running this script!" +- exit 1 +- fi +-elif check_sed sed; then +- SED=sed; +-elif check_sed gsed; then +- SED=gsed +-else +- error "$0: You don't seem to have GNU sed installed, either as sed or gsed." +- error "$0: Fix PATH or install GNU sed before running this script!" +- error "$0: If GNU sed is not named sed or gsed on your system" +- error "$0: use SED=xxx on command line" +- +- exit 1 +-fi ++SED=sed +diff --git a/squashfs-tools/generate-manpages/mksquashfs-manpage.sh b/squashfs-tools/generate-manpages/mksquashfs-manpage.sh +index fbbbf9610fef..4ba36b8d3239 100755 +--- a/squashfs-tools/generate-manpages/mksquashfs-manpage.sh ++++ b/squashfs-tools/generate-manpages/mksquashfs-manpage.sh +@@ -120,11 +120,6 @@ ${SED} -i -e "s/expr> as/expr> as/" -e "s/exp> as/exp> as/" \ + + ${SED} -i -e "s/act@/action@/g" -e "s/expr>/expression>/g" -e "s/exp>/expression>/" -e "s/<f>/<file>/g" $tmp/mksquashfs.help + +-# Uppercase the options operands (between < and > ) to make it conform +-# more to man page standards +- +-${SED} -i "s/<[^>]*>/\U&/g" $tmp/mksquashfs.help +- + # Undo the above for the -pd option, where the case actually matters! Also + # expand the truncated uid and gid in help text due to lack of space. + # Also put quotes around the above pseudo definitions +diff --git a/squashfs-tools/generate-manpages/sqfscat-manpage.sh b/squashfs-tools/generate-manpages/sqfscat-manpage.sh +index 76940fb2239a..71eab52a7c6a 100755 +--- a/squashfs-tools/generate-manpages/sqfscat-manpage.sh ++++ b/squashfs-tools/generate-manpages/sqfscat-manpage.sh +@@ -115,11 +115,6 @@ ${SED} -i "s/\([^ ][^ \[]*\)\[\([a-z-]*\)\]/\1, \1\2/" $tmp/sqfscat.help + + ${SED} -i "s/\t/ /g" $tmp/sqfscat.help + +-# Uppercase the options operands (between < and > ) to make it conform +-# more to man page standards +- +-${SED} -i "s/<[^>]*>/\U&/g" $tmp/sqfscat.help +- + # Remove the "<" and ">" around options operands to make it conform + # more to man page standards + +diff --git a/squashfs-tools/generate-manpages/unsquashfs-manpage.sh b/squashfs-tools/generate-manpages/unsquashfs-manpage.sh +index e2c25bd88e0d..55e0abbd948a 100755 +--- a/squashfs-tools/generate-manpages/unsquashfs-manpage.sh ++++ b/squashfs-tools/generate-manpages/unsquashfs-manpage.sh +@@ -115,11 +115,6 @@ ${SED} -i "s/\([^ ][^ \[]*\)\[\([a-z-]*\)\]/\1, \1\2/" $tmp/unsquashfs.help + + ${SED} -i "s/\t/ /g" $tmp/unsquashfs.help + +-# Uppercase the options operands (between < and > ) to make it conform +-# more to man page standards +- +-${SED} -i "s/<[^>]*>/\U&/g" $tmp/unsquashfs.help +- + # Remove the "<" and ">" around options operands to make it conform + # more to man page standards + +-- +2.49.0 + diff --git a/squashfs-tools/abuild b/squashfs-tools/abuild index c8d371fd..0aa2e8cb 100644 --- a/squashfs-tools/abuild +++ b/squashfs-tools/abuild @@ -1,7 +1,8 @@ name=squashfs-tools -version=4.6.1 +version=4.7.2 release=1 -source="https://github.com/plougher/$name/archive/$version/$name-$version.tar.gz" +source="https://github.com/plougher/$name/archive/$version/$name-$version.tar.gz + 0002-generate-manpages-Workaround-busybox-sed.patch" build() { make ZSTD_SUPPORT=1 GZIP_SUPPORT=1 LZO_SUPPORT=1 XZ_SUPPORT=1 EXTRA_CFLAGS="-fcommon" -C $name diff --git a/squashfs-tools/depends b/squashfs-tools/depends index ddde88fa..ae589085 100644 --- a/squashfs-tools/depends +++ b/squashfs-tools/depends @@ -1,2 +1,3 @@ lzo zstd +lz4 |