qmmp: UI translations missing due to post_patch removing .qm files
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- cmake, shell
- Área
- build-system
Línea de trabajo
El problema está en la función post_patch() de srcpkgs/qmmp/template, que elimina las referencias a .qm de los archivos .qrc bajo src. Lee esa función y el campo revision, y luego comprueba si la compilación con CMake y Qt6LinguistTools genera los archivos .qm una vez eliminada esa parte. Está terminado cuando ./xbps-src pkg qmmp se completa correctamente y el paquete generado contiene archivos .qm en /usr/share/qmmp/translations, con el revision incrementado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Shell
- Estrellas
- 3.5k
- Forks
- 2.8k
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 300
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de void-linux/void-packages
-
linux6.18: enable SERIAL_DEV_BUS=y so BT_HCIUART_BCM (UART Broadcom Bluetooth) is builtPosiblemente ocupada @r0man1an la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
void-linux/void-packages#63047 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Package request: SomeWMAbiertorequest
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
void-linux/void-packages#63016 ·
Los mantenedores suelen responder en 1 día
-
nextcloud-client: VFS plugins installed where the client does not searchQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug needs-testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
void-linux/void-packages#62700 ·
Los mantenedores suelen responder en 1 día
-
Package request: LandrunAbiertorequest
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
void-linux/void-packages#62661 ·
Los mantenedores suelen responder en 1 día
-
wf-shell: mixer widget does not work (missing pipewire/wireplumber support)Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
void-linux/void-packages#62620 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de void-linux/void-packages
Issues similares
-
Security: Vulnerable PHP version (CVE-2026-109618 / CVE-2026-109619) in current Docker imagesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
MISP/misp-docker#478 ·
Los mantenedores suelen responder en 1 día
-
roadmap-100
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
priority: medium status: needs-decision work-class: scoped
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
melodic-software/claude-code-plugins#9339 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
数据界面的横向滚动条缺失Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
zilliztech/attu#1037 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
community-scripts/ProxmoxVE#18073 · 1 comentario ·
Los mantenedores suelen responder en 1 día