qmmp: UI translations missing due to post_patch removing .qm files
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- cmake, shell
- 領域
- build-system
調査の方向性
問題は srcpkgs/qmmp/template の post_patch() 関数にあり、src 以下の .qrc ファイルから .qm への参照を削除しています。この関数と revision フィールドを読み、その削除をなくした後に Qt6LinguistTools を使った CMake ビルドで .qm ファイルが生成されるかを確認してください。./xbps-src pkg qmmp が成功し、ビルドされたパッケージの /usr/share/qmmp/translations に .qm ファイルが含まれ、revision が上がっていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Is this a new report?
Yes
System Info
Void x86_64 glibc Linux 6.16.56
Package(s) Affected
qmmp 2.4.2_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
Description
qmmp package (version 2.4.2_1) does not load any translation. The language selector in Settings -> Appearance -> Language lists all supported languages, but selecting any language other than English (e.g. it, es, fr, de) has no effect. After restart, the UI remains in English.
Reproduction
xbps-install qmmp- Open qmmp (simple UI)
- Go to Settings -> Appearance -> Language
- Select
ItalianoorEspañol - Click OK and restart qmmp
Expected: UI in Italian/Spanish
Actual: UI still in English
Checked with strings on binary and inside /usr/share/qmmp/translations - no .qm files are installed. Qt translation loader fails silently.
Root Cause
In srcpkgs/qmmp/template:
# Remove references to prebuilt Qt translation files (.qm) that are
# missing from the source tarball and not generated by the CMake build.
post_patch() {
find src -name "*.qrc" -exec sed -i '/\.qm/d' {} +
}
## Fix
Remove post_patch() entirely. qt6-tools is already in hostmakedepends, CMake with Qt6LinguistTools will generate .qm from .ts.
Tested locally:
- Removed post_patch
- revision=1 -> revision=2
- ./xbps-src pkg qmmp
- Translations it/es now work.
Suggested diff:
- revision=1
+ revision=2
- post_patch() { find src -name "*.qrc" -exec sed -i '/\.qm/d' {} + }
### Expected behaviour
When I select a language (e.g. Italian, Spanish) in Settings -> Appearance -> Language and restart qmmp, the UI should be translated to that language. The package should include the compiled .qm translation files.
### Actual behaviour
Selecting any language other than English has no effect. The UI always stays in English after restart.
The template contains:
post_patch() {
find src -name "*.qrc" -exec sed -i '/\.qm/d' {} +
}
This removes all .qm file references from the .qrc resources because upstream tarball doesn't ship prebuilt .qm files. As a result, no translations are built or installed, even though qt6-tools (which provides lrelease) is already in hostmakedepends and CMake would generate them correctly if not deleted.
Steps to reproduce:
1. xbps-install qmmp
2. Settings -> Appearance -> Language -> select Italiano
3. Restart qmmp
4. UI still in English
### Steps to reproduce
1. Install qmmp: `sudo xbps-install -S qmmp`
2. Open qmmp (simple UI is default)
3. Go to Settings -> Appearance (or Ctrl+P -> Appearance)
4. In Language dropdown, select Italiano [it] or Español [es]
5. Click OK and restart qmmp when prompted
6. Observe: UI is still in English, not translated
- 主要言語
- Shell
- スター
- 3.5k
- フォーク
- 2.8k
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 310
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
void-linux/void-packages のほかの issue
-
linux6.18: enable SERIAL_DEV_BUS=y so BT_HCIUART_BCM (UART Broadcom Bluetooth) is built対応中かも @r0man1an が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
void-linux/void-packages#63047 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
request
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
void-linux/void-packages#63016 ·
メンテナーはふだん 1 日以内に返信
-
nextcloud-client: VFS plugins installed where the client does not search再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug needs-testing
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
void-linux/void-packages#62700 ·
メンテナーはふだん 1 日以内に返信
-
request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
void-linux/void-packages#62661 ·
メンテナーはふだん 1 日以内に返信
-
wf-shell: mixer widget does not work (missing pipewire/wireplumber support)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
void-linux/void-packages#62620 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
void-linux/void-packages の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
phusion/passenger-docker#480 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
source:reader type:enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
stephrobert/blog-roadmap#95 ·
-
Gemini: respect PLANNING_DISABLED=1 in lifecycle context hooks対応中かも @AmariAugustin が今日担当しました。 オープンbug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
OthmanAdi/planning-with-files#329 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信