Repository navigation
fix: exclude rofd build-dep on mips64el and sw64 - #462
Merged
Merged
Conversation
Reviewer's GuideConfigurationExclude the rofd build dependency on mips64el and sw64, where the development package is unavailable.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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
pengfeixx
force-pushed
the
fix/rofd-arch-limit
branch
from
November 26, 2026 11:46
3521c29 to
db55b5b
Compare
lzwind
approved these changes
Nov 26, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, pengfeixx The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The mips64el and sw64 build environments (e.g. the snipe-2500u3 shuttle builder) carry no
librofd-ffi-devin their apt sources, sopbuilder-satisfydependsaborts during build-dependency resolution and the package never gets built:This PR limits the rofd build dependency to architectures that actually ship the package.
Changes
debian/control: add arch qualifiers[!mips64el !sw64]tolibrofd-ffi-dev (>= 0.4.0)sw64(not the GNU namesw_64), consistent with the qualifier names used previously in this fileImpact
rofd.h/librofd_ffi.so, only logs a warning and resolvesOFD_SUPPORToff. All OFD code paths are guarded by theOFD_SUPPORT_ENABLEDcompile definition, so the build completes cleanly; OFD format support is simply unavailable on those architectures.librofd-ffi0remains a runtime dependency via${shlibs:Depends}.Testing
dpkg-checkbuilddepsparses the modified control file without syntax errors (validates thesw64qualifier name against dpkg cputable)PMS: TASK-398545
Summary by Sourcery
Exclude the rofd build dependency on architectures that do not ship it so package builds can complete without OFD support.
Bug Fixes:
Enhancements: