qmmp: UI translations missing due to post_patch removing .qm files
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- cmake, shell
- Ambito
- build-system
Direzione di ricerca
Il problema si trova nella funzione post_patch() di srcpkgs/qmmp/template, che rimuove i riferimenti a .qm dai file .qrc sotto src. Leggi quella funzione e il campo revision, poi verifica se la build CMake con Qt6LinguistTools genera i file .qm una volta eliminata la rimozione. Il lavoro è completo quando ./xbps-src pkg qmmp termina con successo e il pacchetto compilato contiene file .qm in /usr/share/qmmp/translations, con revision incrementato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Shell
- Stelle
- 3.5k
- Fork
- 2.8k
- Merge medio
- 1g 2h
- PR unite (30g)
- 310
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di void-linux/void-packages
-
linux6.18: enable SERIAL_DEV_BUS=y so BT_HCIUART_BCM (UART Broadcom Bluetooth) is builtForse già presa @r0man1an l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
void-linux/void-packages#63047 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Package request: SomeWMApertarequest
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
void-linux/void-packages#63016 ·
I maintainer di solito rispondono entro 1 giorno
-
nextcloud-client: VFS plugins installed where the client does not searchForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertabug needs-testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
void-linux/void-packages#62700 ·
I maintainer di solito rispondono entro 1 giorno
-
Package request: LandrunApertarequest
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
void-linux/void-packages#62661 ·
I maintainer di solito rispondono entro 1 giorno
-
wf-shell: mixer widget does not work (missing pipewire/wireplumber support)Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
void-linux/void-packages#62620 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di void-linux/void-packages
Issue simili
-
uno-testing: the step-by-step procedure serializes tool use (1.7 vs 2.3 tools/call)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
unoplatform/studio#200 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
phusion/passenger-docker#480 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
quickemu-project/quickemu#1963 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
source:reader type:enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
stephrobert/blog-roadmap#95 ·