Bundled mksquashfs only supports zstd compression despite --comp parameter accepting other formats

未关闭
#119 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c, shell
领域
build-system, cli

调研方向

从 ci/install-static-mksquashfs.sh 开始,检查捆绑的 mksquashfs 是如何构建的,然后复现 issue 中描述的 --comp gzip 失败。完成的标准是所选择的行为得到一致实现:支持的格式可以正常工作,或者不支持的格式会被明确的消息拒绝。

由索引模型根据 Issue 内容生成。

描述

Issue: --comp parameter doesn't work with gzip/xz/lzo/lz4

Why other compression methods are not added?

Problem

Using --comp gzip fails because the bundled mksquashfs only supports zstd:

mksquashfs: Compressor "gzip" is not supported!
mksquashfs: Compressors available:
	zstd (default)
Cause

In ci/install-static-mksquashfs.sh, mksquashfs is built with only zstd enabled:

GZIP_SUPPORT=0 XZ_SUPPORT=0 LZO_SUPPORT=0 LZ4_SUPPORT=0 ZSTD_SUPPORT=1
Suggested Fix

Either:

  • Enable all compression formats in the build script, OR
  • Validate --comp parameter and reject unsupported formats with clear error message
主要语言
C
星标
462
派生
61
平均合并
20 分钟
30 天内合并 PR
8

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AppImage/appimagetool 的其他 Issue

查看 AppImage/appimagetool 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。