Summary: | languages not handled properly if files were added or deleted | ||
---|---|---|---|
Product: | [Developer tools] kdesrc-build | Reporter: | Frederik Schwarzer <schwarzer> |
Component: | general | Assignee: | Michael Pyne <mpyne> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aspotashev |
Priority: | NOR | ||
Version: | 1.12 | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Force autogen.sh to run when building an l10n module |
Description
Frederik Schwarzer
2011-01-07 02:31:01 UTC
Created attachment 55668 [details]
Force autogen.sh to run when building an l10n module
It should be easy enough to force autogen.sh to run when building an l10n module. Could you try this patch and let me know if it works? (It marks l10n modules as always requiring a build system update).
I just noticed a separate bug with l10n when testing this and trying to do the initial checkout which I'll also try to fix, probably tomorrow.
Thanks for the quick responds. I applied the patch, now let's wait for the next (re)moval. SVN commit 1213129 by mpyne: Possibly fix 262364 (l10n modules don't build if files updated). This fix makes it so that the build system for l10n modules is regenerated on every build (which has the side effect of running the required autogen.sh script). Seems to work for me, should be in 1.12.1 (when I do finally release that). BUG:262364 M +2 -0 kdesrc-build WebSVN link: http://websvn.kde.org/?view=rev&revision=1213129 It does not handle removed files yet. [ 4%] Built target pofiles make[2]: *** No rule to make target `messages/extragear-base/searchbarplugin.po', needed by `messages/extragear-base/searchbarplugin.gmo'. Stop. Frederik: About the only other thing I'd be able to do is simply run make clean or similar before running autogen.sh. Does the translation build system support a better way to handle deleted files? Otherwise I can simply patch that in too. The generated CMakeLists.txt looks like file(GLOB _po_files *.po) GETTEXT_PROCESS_PO_FILES(${CURRENT_LANG} ALL INSTALL_DESTINATION ${LOCALE_INSTALL_DIR} ${_po_files} ) so it remains unchanged when files are removed. I think if "make clean" helps, it's good enough. Otherwise autogen might need some adjustments. Frederik: I just checked, and kdesrc-build should already be removing the old build directory every time l10n modules are built now. This would look like: Building l10n-kde4/de (1/1) Checking for source conflicts... Preparing build system for l10n-kde4/de. Removing files in build directory for l10n-kde4/de Old build system cleaned, starting new build system. I've also verified that the build directory really does get emptied by inserting a stop just after the "Removing files in build directory" step. If there are still problems with removed files after that, it's an error in the source directory somehow (which doesn't really make sense if CMakeLists.txt is just using GLOB to list all the files that actually exist) It is possible that this is due to a change I made last night to fix updating and building l10n modules in parallel, although the functionality should still have been the same. So, do you get the message "Removing files in the build directory" for the various l10n modules? If there are still failures building after that I'm not super sure what to do. :-/ No further problems noted, so I'm assuming I've fixed it. ;) Sorry for not reporting back. I was not building KDE for some time now due to time constraints and computer issues. I will report back when I used kdesrc-build again. |