From db55b5b589579b2b5cfff08ed8b750e51be2dbd9 Mon Sep 17 00:00:00 2001 From: xiepengfei Date: Thu, 26 Nov 2026 19:35:44 +0800 Subject: [PATCH] fix: exclude rofd build-dep on mips64el and sw64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. mips64el/sw64 apt sources carry no librofd-ffi-dev, so pbuilder-satisfydepends aborts before the build even starts. 2. Add arch qualifiers [!mips64el !sw64] to the rofd build-dep; CMake auto-detects rofd and drops OFD support gracefully when the library is absent, so those arches still build fine. 3. Use the canonical Debian arch name "sw64", not the GNU name. Influence: 1. Verify the mips64el deb build passes dependency resolution (no longer aborts on librofd-ffi-dev) and produces a package. 2. Verify the sw64 build likewise; install the built package and confirm PDF/DJVU/DOCX files still open normally. 3. On amd64/arm64, confirm OFD files still open (rofd build-dep unchanged) and librofd-ffi0 remains a runtime dependency. 4. On mips64el, confirm the UI hides OFD entries cleanly with no crash when opening a document. fix: 排除 mips64el/sw64 架构的 rofd 构建依赖 1. mips64el/sw64 的 apt 源中没有 librofd-ffi-dev,依赖解析阶段 即告失败,构建根本无法开始。 2. 为 rofd 构建依赖添加架构限定 [!mips64el !sw64];CMake 会自动 探测 rofd,缺失时优雅关闭 OFD 支持,不影响这些架构正常构建。 3. 使用 Debian 规范架构名 "sw64",而非 GNU 名。 Influence: 1. 验证 mips64el 构建可通过依赖解析(不再因 librofd-ffi-dev 中断) 并正常出包。 2. 验证 sw64 构建同理;安装产物后确认 PDF/DJVU/DOCX 文件可正常打开。 3. 在 amd64/arm64 上确认 OFD 文件仍可打开(rofd 构建依赖未变), 运行时依赖仍包含 librofd-ffi0。 4. 在 mips64el 上确认界面干净地隐藏 OFD 相关入口,打开文档无崩溃。 Log: OFD document support is unavailable on mips64el and sw64 PMS: TASK-398545 --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 0ea30dfe..f0e0a571 100644 --- a/debian/control +++ b/debian/control @@ -18,7 +18,7 @@ Build-Depends: libdtk6core-dev [!mipsel !mips64el] | libdtkcore-dev, libgxps-dev, libcairo2-dev, - librofd-ffi-dev (>= 0.4.0), + librofd-ffi-dev (>= 0.4.0) [!mips64el !sw64], libglib2.0-dev, libdjvulibre-dev, libtiff-dev,