Summary: | Some account templates are missing | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Ralf Habacker <ralf.habacker> |
Component: | packaging | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git (master) | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://invent.kde.org/office/kmymoney/-/commit/3478af260352b1be16cd1a7b6df38fda960d9e81 | Version Fixed In: | 5.2 |
Sentry Crash Report: | |||
Attachments: |
Screenshot showing missing german account templates
Screenshot showing diff in contained resources between linux and windows |
Description
Ralf Habacker
2024-03-25 12:30:38 UTC
It's not only German, but also Mexican, US, Chinese and some more. Looking at the source directory, we have about 48 countries (i.e. sub-directories) listed but the attached screenshot shows only a part of them. (In reply to Thomas Baumgart from comment #1) > It's not only German, but also Mexican, US, Chinese and some more. Looking > at the source directory, we have about 48 countries (i.e. sub-directories) > listed but the attached screenshot shows only a part of them. $ find ~/src/kmymoney-master/kmymoney/templates/ -name '*.kmt' | wc -l 530 $ find kmymoney-master-3149-windows-cl-msvc2019-x86_64 -name '*.kmt' | wc -l 0 Looks like they are not included when the package is created (In reply to Ralf Habacker from comment #2) > Looks like they are not included when the package is created $ sh -x ./kmymoney-master-3149-linux-gcc-x86_64.AppImage --appimage-mount /tmp/mount_myXXXX /tmp/.mount_kmymon1ejUGl $find /tmp/.mount_kmymon1ejUGl -name '*.kmt' | wc -l It seems to be a general problem with the packaging. No, they are contained in the binary as Qt resources. Your check is wrong. (In reply to Thomas Baumgart from comment #4) > No, they are contained in the binary as Qt resources. Your check is wrong. This explains the differences, but makes it more difficult to investigate the causes due to their hidden nature. You can no longer search with strace or similar where they should be. Created attachment 167877 [details]
Screenshot showing diff in contained resources between linux and windows
The problem is created by the cmake code that constructs the resource definition file and does not extract files in locale directories named templates/xx_XX/ but only those of directories named templates/xx/ on windows. Screenshot shows the difference of the generated file between its linux (left pane) and windows (right pane) version.
Git commit 3478af260352b1be16cd1a7b6df38fda960d9e81 by Thomas Baumgart. Committed on 28/03/2024 at 08:06. Pushed by tbaumgart into branch 'master'. Fix generation of account template resources on windows FIXED-IN: 5.2 M +3 -1 kmymoney/templates/CMakeLists.txt https://invent.kde.org/office/kmymoney/-/commit/3478af260352b1be16cd1a7b6df38fda960d9e81 |