Review report

bitcoin/bitcoin: PR #36270

1 minor finding · 1 suggestion

Findings

Link

[minor] · The global Qt prefix change loses local depends translation lookup

Locally run native depends-built bitcoin-qt now looks under /usr for Qt's own translations instead of the depends directory, so standard Qt UI text can remain untranslated.

Location: depends/packages/qt.mk:86 (head).

Details and suggested fix

-prefix /usr applies to every depends build, not just Guix. Qt is configured statically without enabling relocatability, so QLibraryInfo::path(TranslationsPath) follows the configured prefix. In a native (host == build) build, qttranslations is still built and installed under <depends>/<host>/translations, but initTranslations() now searches under /usr for qt_<lang>.qm and qt_<lang_territory>.qm. It therefore no longer loads the installed depends copies for a non-English locale. Restricting the /usr prefix to Guix builds would preserve the previous local lookup. Bitcoin's embedded translations remain separate, macOS bundles override the path through qt.conf, and Guix release users did not have the old /bitcoin/depends/... directory. The practical impact on developers has not been confirmed.


Optional improvements

Link

[suggestion] · Depends-path validation skips macOS and Windows releases

DEPENDS_PATHS checks only ELF executables, and the new depends-prefix maps are Linux-only, leaving the proposed release-path guarantee unenforced for macOS and Windows.

Location: contrib/guix/symbol-check.py:294 (head).

Details and suggested fix

package.sh runs symbol-check.py for every Guix host, but the Mach-O and PE entries in CHECKS omit check_no_depends. Those formats therefore pass packaging without any equivalent depends-path residue check. The new debug and macro prefix maps are also confined to the Linux build scripts, although the Qt prefix change applies to all hosts. Extend the guard and relevant remapping to Windows and macOS, or explicitly scope this guarantee to Linux/ELF. The hard-coded /bitcoin/depends/ root is appropriate here because guix-build shares the checkout at /bitcoin. This is a validation gap, not evidence that current non-Linux release artifacts contain such paths.


Coverage details