Linux: AppImage, deb, rpm and Arch packages from one AppDir, installed to /opt/ely-office (L1.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e3bfe8ade4
commit
15106b641f
15 files changed
+251
-21
No files matched your search
+1
-1
@@ -205,6 +205,6 @@
|
||||
- [x] L1.2 Linux 上的文件监视把读取当作改动(inotify 报打开,FSEvents 不报):Omarchy 主题、通用设置在第一次改动后、ElyTree 打开仓库起,每次重读自己又触发下一次,空闲时每 250 毫秒读一遍;四处监视(主题、设置、ElyTree、ElyMark)经 `ely_ui::watching::only_read` 略去读取,写后关闭照算改动;`theme.name` 读不出不再吞掉;`tests/scripts/linux-idle.sh`(ElyMark 要 CEF,随 L1.6 实测) — R1 写后关闭也被略去、注释超长;R2 PASS
|
||||
- [x] L1.3 设置的单测在 Linux 上失败(“a menu bar needs menus”):Linux 未设菜单时给空表而非 None,测试未像应用那样先设菜单;真窗口里 Ctrl+, 打开设置不崩(已实测) — R1 PASS
|
||||
- [x] L1.4 Linux 构建环境:`ubuntu:26.04` 容器里构建全部引擎与六个应用(glibc 不高于 2.43);`packaging/linux/container.sh`、`tests/scripts/linux-glibc.sh` — R1 读不出当作静态、缺件照过、注释超长;R2 链接文件、读错;R3 链接目录;R4 PASS
|
||||
- [ ] L1.5 Linux 包:deb、rpm、Arch(pkg.tar.zst)、AppImage 出自同一份分装,装到 `/opt/ely-office/<应用>`,带桌面项、图标与文件类型
|
||||
- [x] L1.5 Linux 包:deb、rpm、Arch(pkg.tar.zst)、AppImage 出自同一份分装,装到 `/opt/ely-office/<应用>`,带桌面项、图标与文件类型;依赖按 `packaging/linux/depends.tsv`;LibreOffice 的 cairo RUNPATH 改为 `$ORIGIN`;`tests/scripts/linux-packages.sh` — R1 列举与读错被吞、坏入口照过、无执行位;R2 坏 git-lfs 照过;R3 PASS
|
||||
- [ ] L1.6 本机出六个应用的四种包;Omarchy 上装 Arch 包与 AppImage 出窗口;deb、rpm 在各自发行版的容器里装上并冒烟
|
||||
- [ ] L1.7 v0.1.3:删去旧 AppImage,上传新包;`ci.sh` 的 Linux 产出四种包;agents.md 与官网随之
|
||||
@@ -0,0 +1,11 @@
|
||||
FAIL
|
||||
|
||||
1. packaging/linux/package.sh:131 — Both `find` process substitutions discard traversal failures, and line 135 treats a failed header read as a non-ELF file. Dependency discovery can therefore succeed without inspecting the payload. With `find` returning 74, the packaging tail generated all three native ElyTree packages with only Wayland and Vulkan dependencies, omitting the normal curl, OpenSSL, libxcb and other requirements (`.work/L1.5-r1-dependency-errors.log`). Such packages can install without their required libraries. Check enumeration and header-read status before consuming their output; abort packaging on failure and test these failure paths.
|
||||
|
||||
2. scripts/build-libreoffice.sh:155 — The new RUNPATH repair ignores failed header reads, and its `find` failure at line 162 never reaches the parent shell. A traversal/read error leaves build-tree RUNPATHs intact while the script succeeds. Probing the post-build block with a copy of the existing cairo library confirmed that normal execution changes its RUNPATH to `$ORIGIN`, whereas either injected error returns zero and retains the source-tree path (`.work/L1.5-r1-lo-errors.log`). On another machine its private dependencies cannot resolve through that path. Make enumeration and file-read failures fatal and cover them without rebuilding LibreOffice.
|
||||
|
||||
3. tests/scripts/linux-packages.sh:29 — The installed-package check ignores header-read and traversal failures and permits zero checked ELF files. Its inner shell also lacks `pipefail`. Against the freshly built, installed ElyTree deb, making either `find` or `head` fail with status 74 still printed `ely-tree: 0 ELF files link` and exited zero (`.work/L1.5-r1-test-errors.log`). This falsely certifies packages whose contents were never checked. Propagate listing/read failures, enable pipeline failure detection, and require the expected application binary to be inspected.
|
||||
|
||||
4. tests/scripts/linux-packages.sh:31 — Any `ldd` error containing “not a dynamic executable” is accepted as a static binary without validating the ELF. Replacing the installed ElyTree executable with just the four ELF magic bytes still passed with “17 ELF files link”; replacing it with executable text also passed with 16 (`.work/L1.5-r1-broken-entry.log`). Neither application can start. Validate required entry points as complete ELF executables, and distinguish valid static executables from malformed files using checked ELF headers before allowing this exception. Add these negative cases.
|
||||
|
||||
5. tests/scripts/linux-packages.sh:1 — The new script is committed as mode 100644, unlike the other shell tests. Running the command documented in agents.md, `tests/scripts/linux-packages.sh`, fails with permission denied and status 126 before checking any package (`.work/L1.5-r1-test-permission.log`). Commit its executable bit.
|
||||
@@ -0,0 +1,3 @@
|
||||
FAIL
|
||||
|
||||
1. tests/scripts/linux-packages.sh:37 — The static-binary exception still accepts malformed ELF files solely because their basename is `git-lfs`; round 1 defect 4 is only partly fixed. In a clean Ubuntu container with the rebuilt ElyTree deb installed, replacing its bundled `git/libexec/git-core/git-lfs` with the four bytes `\177ELF` still makes the package check print `ely-tree: 17 ELF files link` and exit zero. Executing that helper fails with “Exec format error” and status 126 (`.work/L1.5-r2-test-errors.log`). Validate complete ELF headers before accepting a static executable, and add a regression case for a malformed bundled helper.
|
||||
@@ -0,0 +1 @@
|
||||
PASS
|
||||
Reference in new issue
Block a user