-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Packaging] Only package qm files #431
Conversation
Sorry, this is against |
Oops, good catch; thank you.
Yes, please. May I also suggest to match against |
Before this change, Storeman rpms contained translations/README.md, translations.pri, and .ts files, all of which are unnecessary in an installed app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much!
* Add comment * Document changelog format * Omit apparently superfluous processing of `%{version}` for `qmake5` (#405) * Add normative comment for `version` and `release` tags * Fix grammar * Shorten by one line * Fix typo * Post release version increase * Add stub for v0.3.6 * Update README.md * Cease pointing to OpenRepos for issues … (#428) * Cease pointing to OpenRepos for issues … … plus some wording and formatting enhancements. * Enhance wording * Shorten wording (#429) * Omit `test*_` tag for building (#430) * [build-sfos4.2_latest.yml] Omit `test*_` * [build-sfos4.2.yml] Omit `test*_` * [build-sfos3.3.yml] Omit `test*_` * [build-sfos3.3.yml] Remove empty line * [build-sfos3.1.yml] Omit `test*_` * [Packaging] Only package qm files (#431) * [Packaging] Only package qm files Before this change, Storeman rpms contained translations/README.md, translations.pri, and .ts files, all of which are unnecessary in an installed app. * Be more specific about the file ending --------- Co-authored-by: nephros <nemo@pgxperiiia10> * [harbour-storeman.changes] Start listing changes for v0.3.6 --------- Co-authored-by: Peter G <github@nephros.org> Co-authored-by: nephros <nemo@pgxperiiia10>
* Add comment * Document changelog format * Omit apparently superfluous processing of `%{version}` for `qmake5` (#405) * Add normative comment for `version` and `release` tags * Fix grammar * Shorten by one line * Fix typo * Post release version increase * Add stub for v0.3.6 * Update README.md * Cease pointing to OpenRepos for issues plus some wording and formatting enhancements. (#428) * Enhance wording * Shorten wording (#429) * Omit `test*_` tag for building (#430) * [build-sfos4.2_latest.yml] Omit `test*_` * [build-sfos4.2.yml] Omit `test*_` * [build-sfos3.3.yml] Omit `test*_` * [build-sfos3.3.yml] Remove empty line * [build-sfos3.1.yml] Omit `test*_` * [Packaging] Only package qm files (#431) * [Packaging] Only package qm files Before this change, Storeman rpms contained translations/README.md, translations.pri, and .ts files, all of which are unnecessary in an installed app. * Be more specific about the file ending --------- Co-authored-by: nephros <nemo@pgxperiiia10> * [harbour-storeman.changes] Start listing changes for v0.3.6 --------- Co-authored-by: Peter G <github@nephros.org> Co-authored-by: nephros <nemo@pgxperiiia10>
* Add comment * Document changelog format * Omit apparently superfluous processing of `%{version}` for `qmake5` (#405) * Add normative comment for `version` and `release` tags * Fix grammar * Shorten by one line * Fix typo * Post release version increase * Add stub for v0.3.6 * Update README.md * Cease pointing to OpenRepos for issues plus some wording and formatting enhancements. (#428) * Enhance wording * Shorten wording (#429) * Omit `test*_` tag for building (#430) * [build-sfos4.2_latest.yml] Omit `test*_` * [build-sfos4.2.yml] Omit `test*_` * [build-sfos3.3.yml] Omit `test*_` * [build-sfos3.3.yml] Remove empty line * [build-sfos3.1.yml] Omit `test*_` * [Packaging] Only package qm files (#431) * [Packaging] Only package qm files Before this change, Storeman rpms contained translations/README.md, translations.pri, and .ts files, all of which are unnecessary in an installed app. * Be more specific about the file ending --------- Co-authored-by: nephros <nemo@pgxperiiia10> * [harbour-storeman.changes] Start listing changes for v0.3.6 --------- Co-authored-by: Peter G <github@nephros.org> Co-authored-by: nephros <nemo@pgxperiiia10>
* Add comment * Document changelog format * Omit apparently superfluous processing of `%{version}` for `qmake5` (#405) * Add normative comment for `version` and `release` tags * Fix grammar * Shorten by one line * Fix typo * Post release version increase * Add stub for v0.3.6 * Update README.md * Cease pointing to OpenRepos for issues plus some wording and formatting enhancements. (#428) * Enhance wording * Shorten wording (#429) * Omit `test*_` tag for building (#430) * [build-sfos4.2_latest.yml] Omit `test*_` * [build-sfos4.2.yml] Omit `test*_` * [build-sfos3.3.yml] Omit `test*_` * [build-sfos3.3.yml] Remove empty line * [build-sfos3.1.yml] Omit `test*_` * [Packaging] Only package qm files (#431) * [Packaging] Only package qm files Before this change, Storeman rpms contained translations/README.md, translations.pri, and .ts files, all of which are unnecessary in an installed app. * Be more specific about the file ending --------- Co-authored-by: nephros <nemo@pgxperiiia10> * [harbour-storeman.changes] Start listing changes for v0.3.6 --------- Co-authored-by: Peter G <github@nephros.org> Co-authored-by: nephros <nemo@pgxperiiia10>
Oh, while this PR did sound reasonable and it reduced Storeman|s binary size by ~ 30%, it brought unexpected consequences: Instead of any translatable string, its ID is shown (e.g., I am using Building the @nephros, do you have an idea what went wrong? P.S.: Something else caught my eye when looking through the compilation output: |
I think I have seen this when the translation is idbased, and the -en.ts file contains some but not all translated strings. Anyway I can't imagine how leaving out the .ts and README files could cause that. |
Yes probably related to this line: https://github.com/storeman-developers/harbour-storeman/blob/devel/harbour-storeman.pro#L22 Normally the Makefile should use |
One thing I notice is that if you do
lupdate finds lots of vanished(obsolete) entries. Not sure why. |
Just to clarify: There are no strings at all, solely their IDs displayed in the current (preview) release of Storeman 0.3.6.
May "lots of" be equivalent to "all" here? ;-) |
I dunno about the exact compilation order, but maybe the |
Nope, it's 40 translated, about 170 or so obsolete. But it may be my invocation of |
Oh! OH! Simple. The packages don't contain any .qm files at all! (At least https://repo.sailfishos.org/obs/home:/olf:/harbour-storeman:/testing/sailfish_testing_aarch64/aarch64/harbour-storeman-0.3.6-1.3.1.jolla.aarch64.rpm does not). Now this would explain
and of course
... exactly what happens if there is not translation (not a non-translated string, but no file to load it from!). I have to look into how to fix this, it would seem the order of things (create .qm files, deploy them to install cache) is not correct. |
Oh, and I just discovered I have direct commit access here! Sorry I commited directly to Lets see if 92f410f fixes the issue. EDIT: it did not. Three commits later situation has not improved - I'll continue experimenting in a feature branch and come back later. EDIT2: Ah wrong, the last version works in packaging the .qm files. Issue solved? :) |
Note that I have never used The only thing I can contribute to that is the translation documentation I once overhauled. |
Nah, it's alright, not all the source files are picked up when using the .pro file as input - when using recursive mode all strings are found.
|
Yes, as there is nobody SFOS-related who I trust as much as you: Because Mentaljam (Petr T.) is very hard to contact (this may fail for weeks) and does not monitor these repos actively, what will happen if I get hit by a car? I thought I once communicated that you have admin rights for all repos of the org
Never mind: This is why I like the
Wow, Intel made really cool ads ... 13 years ago. I suppose this advertisement was created in the context of recruiting ... well, I can tell Intel was not a really cool place to be hired at even 13 years ago. But back then they were still mostly engineering driven, attracted lots of smart people due to high wages, but already exhibited most downsides of big corporations. |
I will check in practice (with a generated RPM file) ... when I find some time for that. Thank you very much, as I strongly assume that the altered line Additional kudos for spotting the unterminated source string (though it apparently did no harm)! |
Due to [this mishap](#431 (comment)).
… which had been [inserted prematurely](#431 (comment)).
* [harbour-storeman.spec] Prepare another release for 0.3.6 Due to [this mishap](#431 (comment)). * [harbour-storeman.changes] Remove stub for 0.3.7 … which had been [inserted prematurely](#431 (comment)).
* [harbour-storeman.spec] Post release version increase * [harbour-storeman.changes] Add stub for v0.3.7 * [harbour-storeman.spec] Rectify referenced line number * Fix translation file install target https://www.youtube.com/watch?v=IwfcKFrjCdg * Fix translation output file path * Fix up translation file generation * Fix unterminated source string * [translations/README.md] Indicate to use `lupdate`'s "recursive mode" * Prepare another release for 0.3.6 (#437) * [harbour-storeman.spec] Prepare another release for 0.3.6 Due to [this mishap](#431 (comment)). * [harbour-storeman.changes] Remove stub for 0.3.7 … which had been [inserted prematurely](#431 (comment)). --------- Co-authored-by: Peter G <sailfish@nephros.org> Co-authored-by: nephros <nemo@pgxperiiia10>
* [harbour-storeman.spec] Post release version increase * [harbour-storeman.changes] Add stub for v0.3.7 * [harbour-storeman.spec] Rectify referenced line number * Fix translation file install target https://www.youtube.com/watch?v=IwfcKFrjCdg * Fix translation output file path * Fix up translation file generation * Fix unterminated source string * [translations/README.md] Indicate to use `lupdate`'s "recursive mode" * Prepare another release for 0.3.6 (#437) * [harbour-storeman.spec] Prepare another release for 0.3.6 Due to [this mishap](#431 (comment)). * [harbour-storeman.changes] Remove stub for 0.3.7 … which had been [inserted prematurely](#431 (comment)). --------- Co-authored-by: Peter G <sailfish@nephros.org> Co-authored-by: nephros <nemo@pgxperiiia10>
`master`→`sfos3.2`: Commits for 0.3.6-release2 (#438) (#439) * [harbour-storeman.spec] Post release version increase * [harbour-storeman.changes] Add stub for v0.3.7 * [harbour-storeman.spec] Rectify referenced line number * Fix translation file install target https://www.youtube.com/watch?v=IwfcKFrjCdg * Fix translation output file path * Fix up translation file generation * Fix unterminated source string * [translations/README.md] Indicate to use `lupdate`'s "recursive mode" * Prepare another release for 0.3.6 (#437) * [harbour-storeman.spec] Prepare another release for 0.3.6 Due to [this mishap](#431 (comment)). * [harbour-storeman.changes] Remove stub for 0.3.7 … which had been [inserted prematurely](#431 (comment)). --------- Co-authored-by: Peter G <sailfish@nephros.org> Co-authored-by: nephros <nemo@pgxperiiia10>
* [harbour-storeman.spec] Post release version increase * [harbour-storeman.changes] Add stub for v0.3.7 * [harbour-storeman.spec] Rectify referenced line number * Fix translation file install target https://www.youtube.com/watch?v=IwfcKFrjCdg * Fix translation output file path * Fix up translation file generation * Fix unterminated source string * [translations/README.md] Indicate to use `lupdate`'s "recursive mode" * Prepare another release for 0.3.6 (#437) * [harbour-storeman.spec] Prepare another release for 0.3.6 Due to [this mishap](#431 (comment)). * [harbour-storeman.changes] Remove stub for 0.3.7 … which had been [inserted prematurely](#431 (comment)). --------- Co-authored-by: Peter G <sailfish@nephros.org> Co-authored-by: nephros <nemo@pgxperiiia10>
Yes, this is working fine, as the results of the CI runs for merging the Thank you very much! P.S.: Still I have two minor questions left, which I will pose after the weekend. |
I was able to resolve them on my own: 1.
|
SummaryThanks a lot @nephros for starting this PR, implementing and fixing it, because despite taking a meandering, a bit tedious route, this enhancement ultimately reduced the size of the binaries significantly: By 87 KiB, which is almost 20%! 🥳 Additionally it allowed to check in practice, if the current tag naming and versioning scheme is sound, both at GitHub and the SFOS-OBS, specifically for fix-up releases which only increase the release version (never had this case, since I employed the current scheme): It is. 🙂 |
Before this change, Storeman rpms contained translations/README.md,
translations.pri, and .ts files, all of which are unnecessary in an
installed app.